From 24d13f92dec151a3d9c27c68b619ac1ef8307390 Mon Sep 17 00:00:00 2001 From: "alice.yin" Date: Fri, 15 Nov 2024 00:29:34 -0800 Subject: [PATCH] using new export api for tcld --- app/common.go | 8 - app/connection_test.go | 2 +- app/namespace.go | 329 +- app/namespace_test.go | 356 +- protogen/api/cloud/account/v1/message.pb.go | 249 +- protogen/api/cloud/auditlog/v1/message.pb.go | 3800 +++ .../cloudservice/v1/request_response.pb.go | 20113 ++++++++++------ .../api/cloud/cloudservice/v1/service.pb.go | 662 +- protogen/api/cloud/identity/v1/message.pb.go | 1090 +- protogen/api/cloud/namespace/v1/message.pb.go | 1786 +- .../cloud/namespace/v1/message_utils.pb.go | 120 - protogen/api/cloud/operation/v1/message.pb.go | 176 +- protogen/api/cloud/region/v1/message.pb.go | 146 +- protogen/api/cloud/resource/v1/message.pb.go | 2 +- protogen/api/cloud/sink/v1/message.pb.go | 955 + protogen/api/cloud/usage/v1/message.pb.go | 1566 ++ .../cloudservice/v1/service.pb.mock.go | 280 + 17 files changed, 22965 insertions(+), 8675 deletions(-) create mode 100644 protogen/api/cloud/auditlog/v1/message.pb.go delete mode 100644 protogen/api/cloud/namespace/v1/message_utils.pb.go create mode 100644 protogen/api/cloud/sink/v1/message.pb.go create mode 100644 protogen/api/cloud/usage/v1/message.pb.go diff --git a/app/common.go b/app/common.go index c633f8e1..2e5a605f 100644 --- a/app/common.go +++ b/app/common.go @@ -55,11 +55,3 @@ func parseSAPrincipal(saPrincipal string) (string, string, error) { return saId, gcpProjectId, nil } - -func getAssumedRoleArn(awsAccountId string, awsRoleName string) string { - return fmt.Sprintf("arn:aws:iam::%s:role/%s", awsAccountId, awsRoleName) -} - -func getSAPrincipal(saId string, gcpProjectId string) string { - return fmt.Sprintf("%s@%s.iam.gserviceaccount.com", saId, gcpProjectId) -} diff --git a/app/connection_test.go b/app/connection_test.go index af72065a..6502b443 100644 --- a/app/connection_test.go +++ b/app/connection_test.go @@ -56,7 +56,7 @@ func (s *testServer) GetAsyncOperation(ctx context.Context, req *cloudservice.Ge return &cloudservice.GetAsyncOperationResponse{ AsyncOperation: &operation.AsyncOperation{ Id: "test-id", - State: "fulfilled", + State: operation.STATE_FULFILLED, }, }, nil } diff --git a/app/namespace.go b/app/namespace.go index ca1f7818..97a20872 100644 --- a/app/namespace.go +++ b/app/namespace.go @@ -14,7 +14,6 @@ import ( "github.com/temporalio/tcld/protogen/api/auth/v1" "github.com/temporalio/tcld/protogen/api/cloud/cloudservice/v1" - "github.com/temporalio/tcld/protogen/api/sink/v1" "github.com/temporalio/tcld/utils" "github.com/kylelemons/godebug/diff" @@ -22,6 +21,8 @@ import ( "google.golang.org/grpc" "github.com/temporalio/tcld/protogen/api/authservice/v1" + cloudNamespace "github.com/temporalio/tcld/protogen/api/cloud/namespace/v1" + cloudSink "github.com/temporalio/tcld/protogen/api/cloud/sink/v1" "github.com/temporalio/tcld/protogen/api/namespace/v1" "github.com/temporalio/tcld/protogen/api/namespaceservice/v1" ) @@ -181,69 +182,7 @@ func GetNamespaceClient(ctx *cli.Context) (*NamespaceClient, error) { return NewNamespaceClient(ct, conn), nil } -func (c *NamespaceClient) getExportSink(ctx *cli.Context, namespaceName, sinkName string) (*sink.ExportSink, error) { - getRequest := &namespaceservice.GetExportSinkRequest{ - Namespace: namespaceName, - SinkName: sinkName, - } - - getResp, err := c.client.GetExportSink(c.ctx, getRequest) - if err != nil { - return nil, fmt.Errorf("failed to get export sink: %w", err) - } - return getResp.Sink, nil -} - -func (c *NamespaceClient) selectExportSinkResourceVersion(ctx *cli.Context, sink *sink.ExportSink) string { - if ctx.String(ResourceVersionFlagName) != "" { - return ctx.String(ResourceVersionFlagName) - } - return sink.ResourceVersion -} - -func (c *NamespaceClient) isS3BucketChange(ctx *cli.Context, sink *sink.ExportSink) bool { - if !ctx.IsSet(s3BucketFlagOptional.Name) { - return false - } - - return sink.GetSpec().GetS3Sink().GetBucketName() != ctx.String(s3BucketFlagOptional.Name) -} - -func (c *NamespaceClient) isAssumedRoleChange(ctx *cli.Context, sink *sink.ExportSink) bool { - if !ctx.IsSet(sinkAssumedRoleFlagOptional.Name) { - return false - } - - roleArn := getAssumedRoleArn(sink.GetSpec().GetS3Sink().GetAwsAccountId(), sink.GetSpec().GetS3Sink().GetRoleName()) - return roleArn != ctx.String(sinkAssumedRoleFlagOptional.Name) -} - -func (c *NamespaceClient) isKmsArnChange(ctx *cli.Context, sink *sink.ExportSink) bool { - if !ctx.IsSet(kmsArnFlag.Name) { - return false - } - - return sink.GetSpec().GetS3Sink().GetKmsArn() != ctx.String(kmsArnFlag.Name) -} - -func (c *NamespaceClient) isGCSBucketChange(ctx *cli.Context, sink *sink.ExportSink) bool { - if !ctx.IsSet(gcsBucketFlagOptional.Name) { - return false - } - - return sink.GetSpec().GetGcsSink().GetBucketName() != ctx.String(gcsBucketFlagOptional.Name) -} - -func (c *NamespaceClient) isSAPrincipalChange(ctx *cli.Context, sink *sink.ExportSink) bool { - if !ctx.IsSet(saPrincipalFlagOptional.Name) { - return false - } - - saPrincipal := getSAPrincipal(sink.GetSpec().GetGcsSink().GetSaId(), sink.GetSpec().GetGcsSink().GetGcpProjectId()) - return saPrincipal != ctx.String(saPrincipalFlagOptional.Name) -} - -func (c *NamespaceClient) isSinkToggleChange(ctx *cli.Context, sink *sink.ExportSink) (bool, error) { +func (c *NamespaceClient) isSinkToggleChange(ctx *cli.Context, sink *cloudNamespace.ExportSink) (bool, error) { if !ctx.IsSet(sinkEnabledFlag.Name) { return false, nil } @@ -259,17 +198,6 @@ func (c *NamespaceClient) isSinkToggleChange(ctx *cli.Context, sink *sink.Export return true, nil } -func (c *NamespaceClient) getExportSinkResourceVersion(ctx *cli.Context, namespaceName, sinkName string) (string, error) { - sink, err := c.getExportSink(ctx, namespaceName, sinkName) - if err != nil { - return "", err - } - - resourceVersion := c.selectExportSinkResourceVersion(ctx, sink) - - return resourceVersion, nil -} - func (c *NamespaceClient) deleteNamespace(ctx *cli.Context, n *namespace.Namespace) error { resourceVersion := n.ResourceVersion if v := ctx.String(ResourceVersionFlagName); v != "" { @@ -1458,7 +1386,6 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, Usage: "Manage export", Aliases: []string{"es"}, } - exportGeneralCommands := []*cli.Command{ { Name: "get", @@ -1469,13 +1396,14 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, sinkNameFlag, }, Action: func(ctx *cli.Context) error { - sink, err := c.getExportSink(ctx, ctx.String(NamespaceFlagName), ctx.String(sinkNameFlag.Name)) - + getExportSinkRes, err := c.cloudAPIClient.GetNamespaceExportSink(c.ctx, &cloudservice.GetNamespaceExportSinkRequest{ + Namespace: ctx.String("namespace"), + Name: ctx.String("sink-name"), + }) if err != nil { - return err + return fmt.Errorf("unable to get export sink: %v", err) } - - return PrintProto(sink) + return PrintProto(getExportSinkRes) }, }, { @@ -1489,26 +1417,32 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, RequestIDFlag, }, Action: func(ctx *cli.Context) error { - namespaceName := ctx.String(NamespaceFlagName) + namespaceName := ctx.String(NamespaceFlag.Name) sinkName := ctx.String(sinkNameFlag.Name) - resourceVersion, err := c.getExportSinkResourceVersion(ctx, namespaceName, sinkName) - if err != nil { - return err + resourceVersion := ctx.String(ResourceVersionFlag.Name) + + if resourceVersion == "" { + getExportSinkRes, err := c.cloudAPIClient.GetNamespaceExportSink(c.ctx, &cloudservice.GetNamespaceExportSinkRequest{ + Namespace: namespaceName, + Name: sinkName, + }) + if err != nil { + return fmt.Errorf("unable to get export sink: %v", err) + } + resourceVersion = getExportSinkRes.GetSink().GetResourceVersion() } - deleteRequest := &namespaceservice.DeleteExportSinkRequest{ + deleteRequest := &cloudservice.DeleteNamespaceExportSinkRequest{ Namespace: namespaceName, - SinkName: sinkName, + Name: sinkName, ResourceVersion: resourceVersion, - RequestId: ctx.String(RequestIDFlagName), } - deleteResp, err := c.client.DeleteExportSink(c.ctx, deleteRequest) + deleteResp, err := c.cloudAPIClient.DeleteNamespaceExportSink(c.ctx, deleteRequest) if err != nil { return err } - - return PrintProto(deleteResp.RequestStatus) + return PrintProto(deleteResp.GetAsyncOperation()) }, }, { @@ -1521,17 +1455,15 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, pageTokenFlag, }, Action: func(ctx *cli.Context) error { - request := &namespaceservice.ListExportSinksRequest{ - Namespace: ctx.String(NamespaceFlagName), - PageSize: int32(pageSizeFlag.Value), - PageToken: ctx.String(pageTokenFlag.Name), + request := &cloudservice.GetNamespaceExportSinksRequest{ + Namespace: ctx.String(NamespaceFlag.Name), + PageSize: int32(ctx.Int(pageSizeFlag.Name)), + PageToken: ctx.String("page-token"), } - - resp, err := c.client.ListExportSinks(c.ctx, request) + resp, err := c.cloudAPIClient.GetNamespaceExportSinks(c.ctx, request) if err != nil { return err } - return PrintProto(resp) }, }, @@ -1550,7 +1482,6 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, sinkNameFlag, sinkAssumedRoleFlagRequired, s3BucketFlagRequired, - RequestIDFlag, kmsArnFlag, sinkRegionFlag, }, @@ -1559,7 +1490,6 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, if err != nil { return err } - namespace := ctx.String(NamespaceFlagName) region := ctx.String(sinkRegionFlagName) @@ -1571,29 +1501,27 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, region = ns.Spec.Region } - request := &namespaceservice.CreateExportSinkRequest{ - Namespace: namespace, - Spec: &sink.ExportSinkSpec{ - Name: ctx.String(sinkNameFlag.Name), - Enabled: true, - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ - RoleName: roleName, + createRequest := &cloudservice.CreateNamespaceExportSinkRequest{ + Namespace: ctx.String(NamespaceFlag.Name), + Spec: &cloudNamespace.ExportSinkSpec{ + Name: ctx.String(sinkNameFlag.Name), + Enabled: true, + S3: &cloudSink.S3Spec{ BucketName: ctx.String(s3BucketFlagRequired.Name), - Region: region, - KmsArn: ctx.String(kmsArnFlag.Name), + RoleName: roleName, AwsAccountId: awsAccountID, + KmsArn: ctx.String(kmsArnFlag.Name), + Region: region, }, }, - RequestId: ctx.String(RequestIDFlagName), } - res, err := c.client.CreateExportSink(c.ctx, request) + createResp, err := c.cloudAPIClient.CreateNamespaceExportSink(c.ctx, createRequest) if err != nil { return err } - return PrintProto(res.RequestStatus) + return PrintProto(createResp.GetAsyncOperation()) }, }, { @@ -1623,29 +1551,28 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, return fmt.Errorf("validation failed: %v", err) } - validateRequest := &namespaceservice.ValidateExportSinkRequest{ - Namespace: ctx.String(NamespaceFlagName), - Spec: &sink.ExportSinkSpec{ - Name: ctx.String(sinkNameFlag.Name), - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ - RoleName: roleName, + validateRequest := &cloudservice.ValidateNamespaceExportSinkRequest{ + Namespace: ctx.String(NamespaceFlag.Name), + Spec: &cloudNamespace.ExportSinkSpec{ + Name: ctx.String(sinkNameFlag.Name), + S3: &cloudSink.S3Spec{ BucketName: ctx.String(s3BucketFlagRequired.Name), + RoleName: roleName, Region: region, - KmsArn: ctx.String(kmsArnFlag.Name), AwsAccountId: awsAccountID, + KmsArn: ctx.String(kmsArnFlag.Name), }, }, } - _, err = c.client.ValidateExportSink(c.ctx, validateRequest) - + _, err = c.cloudAPIClient.ValidateNamespaceExportSink(c.ctx, validateRequest) if err != nil { return fmt.Errorf("validation failed with error %v", err) } fmt.Println("Temporal Cloud was able to write test data to the sink") return nil + }, }, { @@ -1660,60 +1587,68 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, s3BucketFlagOptional, ResourceVersionFlag, kmsArnFlag, - RequestIDFlag, }, Action: func(ctx *cli.Context) error { - namespaceName := ctx.String(NamespaceFlagName) + namespaceName := ctx.String(NamespaceFlag.Name) sinkName := ctx.String(sinkNameFlag.Name) - sink, err := c.getExportSink(ctx, namespaceName, sinkName) + getExportSinkRes, err := c.cloudAPIClient.GetNamespaceExportSink(c.ctx, &cloudservice.GetNamespaceExportSinkRequest{ + Namespace: namespaceName, + Name: sinkName, + }) + if err != nil { - return err + return fmt.Errorf("unable to get export sink: %v", err) + } + + resourceVersion := ctx.String(ResourceVersionFlag.Name) + if resourceVersion == "" { + resourceVersion = getExportSinkRes.GetSink().GetResourceVersion() } - resourceVersion := c.selectExportSinkResourceVersion(ctx, sink) - isToggleChanged, err := c.isSinkToggleChange(ctx, sink) + spec := getExportSinkRes.GetSink().GetSpec() + isToggleChanged, err := c.isSinkToggleChange(ctx, getExportSinkRes.GetSink()) if err != nil { return err } - if !isToggleChanged && !c.isAssumedRoleChange(ctx, sink) && !c.isKmsArnChange(ctx, sink) && !c.isS3BucketChange(ctx, sink) { + if !isToggleChanged && !ctx.IsSet(saPrincipalFlagOptional.Name) && !ctx.IsSet(gcsBucketFlagOptional.Name) { fmt.Println("nothing to update") return nil } if isToggleChanged { - sink.Spec.Enabled = !sink.Spec.Enabled + spec.Enabled = !spec.Enabled } - if c.isAssumedRoleChange(ctx, sink) { - awsAccountID, roleName, err := parseAssumedRole(ctx.String(sinkAssumedRoleFlagOptional.Name)) + if ctx.IsSet(sinkAssumedRoleFlagOptional.Name) { + awsAccountID, roleName, err := parseAssumedRole(ctx.String(sinkAssumedRoleFlagRequired.Name)) if err != nil { return err } - sink.Spec.S3Sink.RoleName = roleName - sink.Spec.S3Sink.AwsAccountId = awsAccountID + + spec.S3.RoleName = roleName + spec.S3.AwsAccountId = awsAccountID } - if c.isKmsArnChange(ctx, sink) { - sink.Spec.S3Sink.KmsArn = ctx.String(kmsArnFlag.Name) + if ctx.IsSet(s3BucketFlagOptional.Name) { + spec.S3.BucketName = ctx.String(s3BucketFlagOptional.Name) } - if c.isS3BucketChange(ctx, sink) { - sink.Spec.S3Sink.BucketName = ctx.String(s3BucketFlagOptional.Name) + if ctx.IsSet(kmsArnFlag.Name) { + spec.S3.KmsArn = ctx.String(kmsArnFlag.Name) } - request := &namespaceservice.UpdateExportSinkRequest{ - Namespace: ctx.String(NamespaceFlagName), - Spec: sink.Spec, + + updateRequest := &cloudservice.UpdateNamespaceExportSinkRequest{ + Namespace: namespaceName, ResourceVersion: resourceVersion, - RequestId: ctx.String(RequestIDFlagName), + Spec: spec, } - resp, err := c.client.UpdateExportSink(c.ctx, request) + updateResp, err := c.cloudAPIClient.UpdateNamespaceExportSink(c.ctx, updateRequest) if err != nil { return err } - - return PrintProto(resp.RequestStatus) + return PrintProto(updateResp.GetAsyncOperation()) }, }, }, @@ -1736,36 +1671,32 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, Action: func(ctx *cli.Context) error { SaId, projectName, err := parseSAPrincipal(ctx.String(saPrincipalFlagRequired.Name)) if err != nil { - return fmt.Errorf("validation failed: %v", err) + return err } - namespace := ctx.String(NamespaceFlagName) _, err = c.getNamespace(namespace) if err != nil { return fmt.Errorf("unable to get namespace: %v", err) } - - request := &namespaceservice.CreateExportSinkRequest{ - Namespace: namespace, - Spec: &sink.ExportSinkSpec{ - Name: ctx.String(sinkNameFlag.Name), - Enabled: true, - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + createRequest := &cloudservice.CreateNamespaceExportSinkRequest{ + Namespace: ctx.String(NamespaceFlag.Name), + Spec: &cloudNamespace.ExportSinkSpec{ + Name: ctx.String(sinkNameFlag.Name), + Enabled: true, + Gcs: &cloudSink.GCSSpec{ GcpProjectId: projectName, BucketName: ctx.String(gcsBucketFlagRequired.Name), SaId: SaId, }, }, - RequestId: ctx.String(RequestIDFlagName), } - res, err := c.client.CreateExportSink(c.ctx, request) + createResp, err := c.cloudAPIClient.CreateNamespaceExportSink(c.ctx, createRequest) if err != nil { return err } - return PrintProto(res.RequestStatus) + return PrintProto(createResp.GetAsyncOperation()) }, }, { @@ -1779,68 +1710,65 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, saPrincipalFlagOptional, gcsBucketFlagOptional, ResourceVersionFlag, - RequestIDFlag, }, Action: func(ctx *cli.Context) error { - namespaceName := ctx.String(NamespaceFlagName) + namespaceName := ctx.String(NamespaceFlag.Name) sinkName := ctx.String(sinkNameFlag.Name) - sink, err := c.getExportSink(ctx, namespaceName, sinkName) - if err != nil { - return err - } - resourceVersion := c.selectExportSinkResourceVersion(ctx, sink) + getExportSinkRes, err := c.cloudAPIClient.GetNamespaceExportSink(c.ctx, &cloudservice.GetNamespaceExportSinkRequest{ + Namespace: namespaceName, + Name: sinkName, + }) - isToggleChanged, err := c.isSinkToggleChange(ctx, sink) if err != nil { - return err + return fmt.Errorf("unable to get export sink: %v", err) } - if !isToggleChanged && !c.isSAPrincipalChange(ctx, sink) && !c.isGCSBucketChange(ctx, sink) { - fmt.Println("nothing to update") - return nil + resourceVersion := ctx.String(ResourceVersionFlag.Name) + if resourceVersion == "" { + resourceVersion = getExportSinkRes.GetSink().GetResourceVersion() } + spec := getExportSinkRes.GetSink().GetSpec() + isToggleChanged, err := c.isSinkToggleChange(ctx, getExportSinkRes.GetSink()) + if err != nil { + return err + } if isToggleChanged { - sink.Spec.Enabled = !sink.Spec.Enabled + spec.Enabled = !spec.Enabled } - if c.isSAPrincipalChange(ctx, sink) { - SaId, GcpProjectId, err := parseSAPrincipal(ctx.String(saPrincipalFlagOptional.Name)) - if err != nil { - return err - } - - sink.Spec.GcsSink.SaId = SaId - sink.Spec.GcsSink.GcpProjectId = GcpProjectId + if !isToggleChanged && !ctx.IsSet(saPrincipalFlagOptional.Name) && !ctx.IsSet(gcsBucketFlagOptional.Name) { + fmt.Println("nothing to update") + return nil } - if c.isS3BucketChange(ctx, sink) { - sink.Spec.S3Sink.BucketName = ctx.String(s3BucketFlagOptional.Name) + if ctx.IsSet(saPrincipalFlagOptional.Name) { + SaId, GcpProjectId, _ := parseSAPrincipal(ctx.String(saPrincipalFlagRequired.Name)) + spec.Gcs.SaId = SaId + spec.Gcs.GcpProjectId = GcpProjectId } - if c.isGCSBucketChange(ctx, sink) { - sink.Spec.GcsSink.BucketName = ctx.String(gcsBucketFlagOptional.Name) + if ctx.IsSet(gcsBucketFlagOptional.Name) { + spec.Gcs.BucketName = ctx.String(gcsBucketFlagOptional.Name) } - request := &namespaceservice.UpdateExportSinkRequest{ - Namespace: ctx.String(NamespaceFlagName), - Spec: sink.Spec, + updateRequest := &cloudservice.UpdateNamespaceExportSinkRequest{ + Namespace: namespaceName, ResourceVersion: resourceVersion, - RequestId: ctx.String(RequestIDFlagName), + Spec: spec, } - resp, err := c.client.UpdateExportSink(c.ctx, request) + updateResp, err := c.cloudAPIClient.UpdateNamespaceExportSink(c.ctx, updateRequest) if err != nil { return err } - - return PrintProto(resp.RequestStatus) + return PrintProto(updateResp.GetAsyncOperation()) }, }, { Name: "validate", - Aliases: []string{"v"}, Usage: "Validate export sink", + Aliases: []string{"v"}, Flags: []cli.Flag{ NamespaceFlag, sinkNameFlag, @@ -1856,15 +1784,14 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, SaId, projectName, err := parseSAPrincipal(ctx.String(saPrincipalFlagRequired.Name)) if err != nil { - return fmt.Errorf("validation failed: %v", err) + return err } - validateRequest := &namespaceservice.ValidateExportSinkRequest{ - Namespace: namespace, - Spec: &sink.ExportSinkSpec{ - Name: ctx.String(sinkNameFlag.Name), - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + validateRequest := &cloudservice.ValidateNamespaceExportSinkRequest{ + Namespace: ctx.String(NamespaceFlag.Name), + Spec: &cloudNamespace.ExportSinkSpec{ + Name: ctx.String(sinkNameFlag.Name), + Gcs: &cloudSink.GCSSpec{ GcpProjectId: projectName, BucketName: ctx.String(gcsBucketFlagRequired.Name), SaId: SaId, @@ -1872,14 +1799,14 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, }, } - _, err = c.client.ValidateExportSink(c.ctx, validateRequest) - + _, err = c.cloudAPIClient.ValidateNamespaceExportSink(c.ctx, validateRequest) if err != nil { return fmt.Errorf("validation failed with error %v", err) } fmt.Println("Temporal Cloud was able to write test data to the sink") return nil + }, }, }, diff --git a/app/namespace_test.go b/app/namespace_test.go index 42c7dd56..9a4a7109 100644 --- a/app/namespace_test.go +++ b/app/namespace_test.go @@ -8,9 +8,13 @@ import ( "strings" "testing" + "github.com/temporalio/tcld/protogen/api/cloud/operation/v1" + "github.com/temporalio/tcld/protogen/api/auth/v1" "github.com/temporalio/tcld/protogen/api/authservice/v1" - "github.com/temporalio/tcld/protogen/api/sink/v1" + "github.com/temporalio/tcld/protogen/api/cloud/cloudservice/v1" + cloudNamespace "github.com/temporalio/tcld/protogen/api/cloud/namespace/v1" + cloudSink "github.com/temporalio/tcld/protogen/api/cloud/sink/v1" "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" @@ -18,6 +22,7 @@ import ( "github.com/temporalio/tcld/protogen/api/namespaceservice/v1" "github.com/temporalio/tcld/protogen/api/request/v1" authservicemock "github.com/temporalio/tcld/protogen/apimock/authservice/v1" + apimock "github.com/temporalio/tcld/protogen/apimock/cloudservice/v1" namespaceservicemock "github.com/temporalio/tcld/protogen/apimock/namespaceservice/v1" "github.com/urfave/cli/v2" ) @@ -28,10 +33,11 @@ func TestNamespace(t *testing.T) { type NamespaceTestSuite struct { suite.Suite - cliApp *cli.App - mockCtrl *gomock.Controller - mockService *namespaceservicemock.MockNamespaceServiceClient - mockAuthService *authservicemock.MockAuthServiceClient + cliApp *cli.App + mockCtrl *gomock.Controller + mockService *namespaceservicemock.MockNamespaceServiceClient + mockAuthService *authservicemock.MockAuthServiceClient + mockCloudApiClient *apimock.MockCloudServiceClient } func (s *NamespaceTestSuite) SetupTest() { @@ -41,12 +47,14 @@ func (s *NamespaceTestSuite) SetupTest() { s.mockCtrl = gomock.NewController(s.T()) s.mockService = namespaceservicemock.NewMockNamespaceServiceClient(s.mockCtrl) s.mockAuthService = authservicemock.NewMockAuthServiceClient(s.mockCtrl) + s.mockCloudApiClient = apimock.NewMockCloudServiceClient(s.mockCtrl) out, err := NewNamespaceCommand(func(ctx *cli.Context) (*NamespaceClient, error) { return &NamespaceClient{ - ctx: context.TODO(), - client: s.mockService, - authClient: s.mockAuthService, + ctx: context.TODO(), + client: s.mockService, + authClient: s.mockAuthService, + cloudAPIClient: s.mockCloudApiClient, }, nil }) s.Require().NoError(err) @@ -1647,7 +1655,7 @@ func (s *NamespaceTestSuite) TestDelete() { func (s *NamespaceTestSuite) TestCreateExportS3Sink() { ns := "testNamespace" type morphGetResp func(*namespaceservice.GetNamespaceResponse) - type morphCreateSinkReq func(*namespaceservice.CreateExportSinkRequest) + type morphCreateSinkReq func(*cloudservice.CreateNamespaceExportSinkRequest) tests := []struct { name string @@ -1661,13 +1669,12 @@ func (s *NamespaceTestSuite) TestCreateExportS3Sink() { name: "create export sink", args: []string{"namespace", "es", "s3", "create", "--namespace", ns, "--sink-name", "sink1", "--role-arn", "arn:aws:iam::123456789012:role/TestRole", "--s3-bucket-name", "testBucket"}, expectGet: func(g *namespaceservice.GetNamespaceResponse) {}, - expectRequest: func(r *namespaceservice.CreateExportSinkRequest) { + expectRequest: func(r *cloudservice.CreateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: true, - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: true, + S3: &cloudSink.S3Spec{ RoleName: "TestRole", BucketName: "testBucket", Region: "us-west-2", @@ -1699,13 +1706,12 @@ func (s *NamespaceTestSuite) TestCreateExportS3Sink() { { name: "uses region when provided as arg", args: []string{"namespace", "es", "s3", "create", "--namespace", ns, "--sink-name", "sink1", "--role-arn", "arn:aws:iam::123456789012:role/TestRole", "--s3-bucket-name", "testBucket", "--region", "us-east-1"}, - expectRequest: func(r *namespaceservice.CreateExportSinkRequest) { + expectRequest: func(r *cloudservice.CreateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: true, - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: true, + S3: &cloudSink.S3Spec{ RoleName: "TestRole", BucketName: "testBucket", Region: "us-east-1", @@ -1735,10 +1741,10 @@ func (s *NamespaceTestSuite) TestCreateExportS3Sink() { } if tc.expectRequest != nil { - req := namespaceservice.CreateExportSinkRequest{} + req := cloudservice.CreateNamespaceExportSinkRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().CreateExportSink(gomock.Any(), &req). - Return(&namespaceservice.CreateExportSinkResponse{RequestStatus: &request.RequestStatus{}}, nil).Times(1) + s.mockCloudApiClient.EXPECT().CreateNamespaceExportSink(gomock.Any(), &req). + Return(&cloudservice.CreateNamespaceExportSinkResponse{AsyncOperation: &operation.AsyncOperation{}}, nil).Times(1) } err := s.RunCmd(tc.args...) @@ -1754,7 +1760,7 @@ func (s *NamespaceTestSuite) TestCreateExportS3Sink() { func (s *NamespaceTestSuite) TestGetExportSink() { ns := "namespace" - type morphGetReq func(*namespaceservice.GetExportSinkRequest) + type morphGetReq func(*cloudservice.GetNamespaceExportSinkRequest) tests := []struct { name string @@ -1765,17 +1771,17 @@ func (s *NamespaceTestSuite) TestGetExportSink() { { name: "get export sink succeeds", args: []string{"namespace", "es", "s3", "get", "--namespace", ns, "--sink-name", "sink1"}, - expectRequest: func(r *namespaceservice.GetExportSinkRequest) { + expectRequest: func(r *cloudservice.GetNamespaceExportSinkRequest) { r.Namespace = ns - r.SinkName = "sink1" + r.Name = "sink1" }, }, { name: "get export sink succeeds", args: []string{"namespace", "es", "gcs", "get", "--namespace", ns, "--sink-name", "sink1"}, - expectRequest: func(r *namespaceservice.GetExportSinkRequest) { + expectRequest: func(r *cloudservice.GetNamespaceExportSinkRequest) { r.Namespace = ns - r.SinkName = "sink1" + r.Name = "sink1" }, }, } @@ -1783,10 +1789,10 @@ func (s *NamespaceTestSuite) TestGetExportSink() { for _, tc := range tests { s.Run(strings.Join(tc.args, " "), func() { if tc.expectRequest != nil { - req := namespaceservice.GetExportSinkRequest{} + req := cloudservice.GetNamespaceExportSinkRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().GetExportSink(gomock.Any(), &req). - Return(&namespaceservice.GetExportSinkResponse{Sink: &sink.ExportSink{}}, nil).Times(1) + s.mockCloudApiClient.EXPECT().GetNamespaceExportSink(gomock.Any(), &req). + Return(&cloudservice.GetNamespaceExportSinkResponse{Sink: &cloudNamespace.ExportSink{}}, nil).Times(1) } err := s.RunCmd(tc.args...) @@ -1799,10 +1805,10 @@ func (s *NamespaceTestSuite) TestGetExportSink() { } } -func (s *NamespaceTestSuite) TestDeleteExportSink() { +func (s *NamespaceTestSuite) TestDeleteNamespaceExportSink() { ns := "namespace" - type morphDeleteReq func(*namespaceservice.DeleteExportSinkRequest) - type morphGetSinkResp func(*namespaceservice.GetExportSinkResponse) + type morphDeleteReq func(*cloudservice.DeleteNamespaceExportSinkRequest) + type morphGetSinkResp func(*cloudservice.GetNamespaceExportSinkResponse) tests := []struct { name string @@ -1815,52 +1821,46 @@ func (s *NamespaceTestSuite) TestDeleteExportSink() { { name: "delete export sink succeeds without resource version", args: []string{"namespace", "es", "s3", "delete", "--namespace", ns, "--sink-name", "sink1"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) { - r.Sink = &sink.ExportSink{ + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) { + r.Sink = &cloudNamespace.ExportSink{ ResourceVersion: "124214124", } }, - expectRequest: func(r *namespaceservice.DeleteExportSinkRequest) { + expectRequest: func(r *cloudservice.DeleteNamespaceExportSinkRequest) { r.Namespace = ns - r.SinkName = "sink1" + r.Name = "sink1" r.ResourceVersion = "124214124" }, }, { name: "delete export succeeds sink with resource version", args: []string{"namespace", "es", "s3", "delete", "--namespace", ns, "--sink-name", "sink1", "--resource-version", "999999999"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) { - r.Sink = &sink.ExportSink{} - }, - expectRequest: func(r *namespaceservice.DeleteExportSinkRequest) { + expectRequest: func(r *cloudservice.DeleteNamespaceExportSinkRequest) { r.Namespace = ns - r.SinkName = "sink1" + r.Name = "sink1" r.ResourceVersion = "999999999" }, }, { name: "delete export sink succeeds without resource version", args: []string{"namespace", "es", "gcs", "delete", "--namespace", ns, "--sink-name", "sink1"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) { - r.Sink = &sink.ExportSink{ + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) { + r.Sink = &cloudNamespace.ExportSink{ ResourceVersion: "124214124", } }, - expectRequest: func(r *namespaceservice.DeleteExportSinkRequest) { + expectRequest: func(r *cloudservice.DeleteNamespaceExportSinkRequest) { r.Namespace = ns - r.SinkName = "sink1" + r.Name = "sink1" r.ResourceVersion = "124214124" }, }, { name: "delete export succeeds sink with resource version", args: []string{"namespace", "es", "gcs", "delete", "--namespace", ns, "--sink-name", "sink1", "--resource-version", "999999999"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) { - r.Sink = &sink.ExportSink{} - }, - expectRequest: func(r *namespaceservice.DeleteExportSinkRequest) { + expectRequest: func(r *cloudservice.DeleteNamespaceExportSinkRequest) { r.Namespace = ns - r.SinkName = "sink1" + r.Name = "sink1" r.ResourceVersion = "999999999" }, }, @@ -1869,16 +1869,16 @@ func (s *NamespaceTestSuite) TestDeleteExportSink() { for _, tc := range tests { s.Run(strings.Join(tc.args, " "), func() { if tc.expectGetSinkResponse != nil { - getSinkResp := namespaceservice.GetExportSinkResponse{Sink: &sink.ExportSink{}} + getSinkResp := cloudservice.GetNamespaceExportSinkResponse{Sink: &cloudNamespace.ExportSink{}} tc.expectGetSinkResponse(&getSinkResp) - s.mockService.EXPECT().GetExportSink(gomock.Any(), gomock.Any()).Return(&getSinkResp, nil).Times(1) + s.mockCloudApiClient.EXPECT().GetNamespaceExportSink(gomock.Any(), gomock.Any()).Return(&getSinkResp, nil).Times(1) } if tc.expectRequest != nil { - req := namespaceservice.DeleteExportSinkRequest{} + req := cloudservice.DeleteNamespaceExportSinkRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().DeleteExportSink(gomock.Any(), &req). - Return(&namespaceservice.DeleteExportSinkResponse{RequestStatus: &request.RequestStatus{}}, nil).Times(1) + s.mockCloudApiClient.EXPECT().DeleteNamespaceExportSink(gomock.Any(), &req). + Return(&cloudservice.DeleteNamespaceExportSinkResponse{AsyncOperation: &operation.AsyncOperation{}}, nil).Times(1) } err := s.RunCmd(tc.args...) @@ -1894,7 +1894,7 @@ func (s *NamespaceTestSuite) TestDeleteExportSink() { func (s *NamespaceTestSuite) TestCreateExportGCSSink() { ns := "testNamespace" type morphGetResp func(*namespaceservice.GetNamespaceResponse) - type morphCreateSinkReq func(*namespaceservice.CreateExportSinkRequest) + type morphCreateSinkReq func(*cloudservice.CreateNamespaceExportSinkRequest) tests := []struct { name string @@ -1908,13 +1908,12 @@ func (s *NamespaceTestSuite) TestCreateExportGCSSink() { name: "create export sink", args: []string{"namespace", "es", "gcs", "create", "--namespace", ns, "--sink-name", "sink1", "--service-account-email", "testSA@testGcpAccount.iam.gserviceaccount.com", "--gcs-bucket", "testBucket"}, expectGet: func(g *namespaceservice.GetNamespaceResponse) {}, - expectRequest: func(r *namespaceservice.CreateExportSinkRequest) { + expectRequest: func(r *cloudservice.CreateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: true, - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: true, + Gcs: &cloudSink.GCSSpec{ SaId: "testSA", GcpProjectId: "testGcpAccount", BucketName: "testBucket", @@ -1963,10 +1962,10 @@ func (s *NamespaceTestSuite) TestCreateExportGCSSink() { } if tc.expectRequest != nil { - req := namespaceservice.CreateExportSinkRequest{} + req := cloudservice.CreateNamespaceExportSinkRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().CreateExportSink(gomock.Any(), &req). - Return(&namespaceservice.CreateExportSinkResponse{RequestStatus: &request.RequestStatus{}}, nil).Times(1) + s.mockCloudApiClient.EXPECT().CreateNamespaceExportSink(gomock.Any(), &req). + Return(&cloudservice.CreateNamespaceExportSinkResponse{AsyncOperation: &operation.AsyncOperation{}}, nil).Times(1) } err := s.RunCmd(tc.args...) @@ -1982,8 +1981,8 @@ func (s *NamespaceTestSuite) TestCreateExportGCSSink() { func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { ns := "sink1" - type morphGetReq func(*namespaceservice.UpdateExportSinkRequest) - type morphGetSinkResp func(*namespaceservice.GetExportSinkResponse) + type morphGetReq func(*cloudservice.UpdateNamespaceExportSinkRequest) + type morphGetSinkResp func(*cloudservice.GetNamespaceExportSinkResponse) tests := []struct { name string @@ -1996,12 +1995,7 @@ func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { { name: "update export sink succeeds with no input", args: []string{"namespace", "es", "gcs", "update", "--namespace", ns, "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - }, - { - name: "update export sink succeeds with no updates", - args: []string{"namespace", "es", "gcs", "update", "--namespace", ns, "--service-account-email", "testSA@testGcpAccount.iam.gserviceaccount.com", "--enabled", "true", "--gcs-bucket", "testBucket", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, }, { name: "update export sink fails with no sink name", @@ -2012,21 +2006,20 @@ func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { { name: "update export sink fails with not valid enabled value", args: []string{"namespace", "es", "gcs", "update", "--namespace", ns, "--service-account-email", "testSA@testGcpAccount.iam.gserviceaccount.com", "--gcs-bucket", "testBucket", "--sink-name", "testSink", "--enabled", ""}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, expectErr: true, expectErrMsg: "invalid value for enabled flag", }, { name: "update export sink succeeds with enable flag", args: []string{"namespace", "es", "gcs", "update", "--namespace", ns, "--enabled", "false", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - expectRequest: func(r *namespaceservice.UpdateExportSinkRequest) { + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, + expectRequest: func(r *cloudservice.UpdateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: false, - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: false, + Gcs: &cloudSink.GCSSpec{ SaId: "testSA", GcpProjectId: "testGcpAccount", BucketName: "testBucket", @@ -2038,14 +2031,13 @@ func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { { name: "update export sink succeeds with sa principal and enabled flag", args: []string{"namespace", "es", "gcs", "update", "--namespace", ns, "--enabled", "false", "--service-account-email", "newTestSA@newTestGcpAccount.iam.gserviceaccount.com", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - expectRequest: func(r *namespaceservice.UpdateExportSinkRequest) { + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, + expectRequest: func(r *cloudservice.UpdateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: false, - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: false, + Gcs: &cloudSink.GCSSpec{ SaId: "newTestSA", GcpProjectId: "newTestGcpAccount", BucketName: "testBucket", @@ -2057,14 +2049,13 @@ func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { { name: "update export sink succeeds with sa principal, bucket name and enabled flag", args: []string{"namespace", "es", "gcs", "update", "--namespace", ns, "--service-account-email", "newTestSA@newTestGcpAccount.iam.gserviceaccount.com", "--gcs-bucket", "newTestBucket", "--enabled", "false", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - expectRequest: func(r *namespaceservice.UpdateExportSinkRequest) { + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, + expectRequest: func(r *cloudservice.UpdateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: false, - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: false, + Gcs: &cloudSink.GCSSpec{ SaId: "newTestSA", GcpProjectId: "newTestGcpAccount", BucketName: "newTestBucket", @@ -2076,14 +2067,13 @@ func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { { name: "update export sink succeeds with sa principal, bucket name and enabled flag", args: []string{"namespace", "es", "gcs", "update", "--namespace", ns, "--service-account-email", "newTestSA@newTestGcpAccount.iam.gserviceaccount.com", "--gcs-bucket", "newTestBucket", "--enabled", "false", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - expectRequest: func(r *namespaceservice.UpdateExportSinkRequest) { + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, + expectRequest: func(r *cloudservice.UpdateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: false, - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: false, + Gcs: &cloudSink.GCSSpec{ SaId: "newTestSA", GcpProjectId: "newTestGcpAccount", BucketName: "newTestBucket", @@ -2097,13 +2087,12 @@ func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { for _, tc := range tests { s.Run(strings.Join(tc.args, " "), func() { if tc.expectGetSinkResponse != nil { - getSinkResp := namespaceservice.GetExportSinkResponse{Sink: &sink.ExportSink{ + getSinkResp := cloudservice.GetNamespaceExportSinkResponse{Sink: &cloudNamespace.ExportSink{ Name: ns, - Spec: &sink.ExportSinkSpec{ - Name: ns, - Enabled: true, - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + Spec: &cloudNamespace.ExportSinkSpec{ + Name: ns, + Enabled: true, + Gcs: &cloudSink.GCSSpec{ SaId: "testSA", GcpProjectId: "testGcpAccount", BucketName: "testBucket", @@ -2112,14 +2101,14 @@ func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { ResourceVersion: "124214124", }} tc.expectGetSinkResponse(&getSinkResp) - s.mockService.EXPECT().GetExportSink(gomock.Any(), gomock.Any()).Return(&getSinkResp, nil).Times(1) + s.mockCloudApiClient.EXPECT().GetNamespaceExportSink(gomock.Any(), gomock.Any()).Return(&getSinkResp, nil).Times(1) } if tc.expectRequest != nil { - req := namespaceservice.UpdateExportSinkRequest{} + req := cloudservice.UpdateNamespaceExportSinkRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().UpdateExportSink(gomock.Any(), &req). - Return(&namespaceservice.UpdateExportSinkResponse{RequestStatus: &request.RequestStatus{}}, nil).Times(1) + s.mockCloudApiClient.EXPECT().UpdateNamespaceExportSink(gomock.Any(), &req). + Return(&cloudservice.UpdateNamespaceExportSinkResponse{AsyncOperation: &operation.AsyncOperation{}}, nil).Times(1) } err := s.RunCmd(tc.args...) @@ -2135,7 +2124,7 @@ func (s *NamespaceTestSuite) TestUpdateExportGCSSink() { func (s *NamespaceTestSuite) TestValidateExportGCPSink() { ns := "namespace" - type morphValidateReq func(*namespaceservice.ValidateExportSinkRequest) + type morphValidateReq func(*cloudservice.ValidateNamespaceExportSinkRequest) type morphGetResp func(*namespaceservice.GetNamespaceResponse) tests := []struct { @@ -2149,12 +2138,11 @@ func (s *NamespaceTestSuite) TestValidateExportGCPSink() { { name: "Validate export gcs sinks succeeds", args: []string{"namespace", "es", "gcs", "validate", "--namespace", ns, "--sink-name", "sink1", "--service-account-email", "test-sa@test-gcs.iam.gserviceaccount.com", "--gcs-bucket", "testBucket"}, - expectRequest: func(r *namespaceservice.ValidateExportSinkRequest) { + expectRequest: func(r *cloudservice.ValidateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - DestinationType: sink.EXPORT_DESTINATION_TYPE_GCS, - GcsSink: &sink.GCSSpec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Gcs: &cloudSink.GCSSpec{ SaId: "test-sa", BucketName: "testBucket", GcpProjectId: "test-gcs", @@ -2185,10 +2173,10 @@ func (s *NamespaceTestSuite) TestValidateExportGCPSink() { } if tc.expectRequest != nil { - req := namespaceservice.ValidateExportSinkRequest{} + req := cloudservice.ValidateNamespaceExportSinkRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().ValidateExportSink(gomock.Any(), &req). - Return(&namespaceservice.ValidateExportSinkResponse{}, nil).Times(1) + s.mockCloudApiClient.EXPECT().ValidateNamespaceExportSink(gomock.Any(), &req). + Return(&cloudservice.ValidateNamespaceExportSinkResponse{}, nil).Times(1) } err := s.RunCmd(tc.args...) @@ -2203,7 +2191,7 @@ func (s *NamespaceTestSuite) TestValidateExportGCPSink() { func (s *NamespaceTestSuite) TestValidateExportS3Sink() { ns := "namespace" - type morphValidateReq func(*namespaceservice.ValidateExportSinkRequest) + type morphValidateReq func(*cloudservice.ValidateNamespaceExportSinkRequest) type morphGetResp func(*namespaceservice.GetNamespaceResponse) tests := []struct { @@ -2217,12 +2205,11 @@ func (s *NamespaceTestSuite) TestValidateExportS3Sink() { { name: "Validate export sinks succeeds", args: []string{"namespace", "es", "s3", "validate", "--namespace", ns, "--sink-name", "sink1", "--role-arn", "arn:aws:iam::123456789012:role/TestRole", "--s3-bucket-name", "testBucket"}, - expectRequest: func(r *namespaceservice.ValidateExportSinkRequest) { + expectRequest: func(r *cloudservice.ValidateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + S3: &cloudSink.S3Spec{ RoleName: "TestRole", BucketName: "testBucket", Region: "us-west-2", @@ -2249,12 +2236,11 @@ func (s *NamespaceTestSuite) TestValidateExportS3Sink() { { name: "Validate export sinks succeeds", args: []string{"namespace", "es", "s3", "validate", "--namespace", ns, "--sink-name", "sink1", "--role-arn", "arn:aws:iam::123456789012:role/TestRole", "--s3-bucket-name", "testBucket", "--region", "us-east-1"}, - expectRequest: func(r *namespaceservice.ValidateExportSinkRequest) { + expectRequest: func(r *cloudservice.ValidateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + S3: &cloudSink.S3Spec{ RoleName: "TestRole", BucketName: "testBucket", Region: "us-east-1", @@ -2281,12 +2267,11 @@ func (s *NamespaceTestSuite) TestValidateExportS3Sink() { tc.expectGet(&getResp) s.mockService.EXPECT().GetNamespace(gomock.Any(), gomock.Any()).Return(&getResp, nil).AnyTimes() } - if tc.expectRequest != nil { - req := namespaceservice.ValidateExportSinkRequest{} + req := cloudservice.ValidateNamespaceExportSinkRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().ValidateExportSink(gomock.Any(), &req). - Return(&namespaceservice.ValidateExportSinkResponse{}, nil).Times(1) + s.mockCloudApiClient.EXPECT().ValidateNamespaceExportSink(gomock.Any(), &req). + Return(&cloudservice.ValidateNamespaceExportSinkResponse{}, nil).Times(1) } err := s.RunCmd(tc.args...) @@ -2301,7 +2286,7 @@ func (s *NamespaceTestSuite) TestValidateExportS3Sink() { func (s *NamespaceTestSuite) TestListExportSinks() { ns := "namespace" - type morphGetReq func(*namespaceservice.ListExportSinksRequest) + type morphGetReq func(*cloudservice.GetNamespaceExportSinksRequest) tests := []struct { name string @@ -2313,7 +2298,7 @@ func (s *NamespaceTestSuite) TestListExportSinks() { { name: "list export sinks succeeds", args: []string{"namespace", "es", "s3", "list", "--namespace", ns}, - expectRequest: func(r *namespaceservice.ListExportSinksRequest) { + expectRequest: func(r *cloudservice.GetNamespaceExportSinksRequest) { r.Namespace = ns r.PageSize = 100 }, @@ -2321,7 +2306,7 @@ func (s *NamespaceTestSuite) TestListExportSinks() { { name: "list export sinks succeeds", args: []string{"namespace", "es", "gcs", "list", "--namespace", ns}, - expectRequest: func(r *namespaceservice.ListExportSinksRequest) { + expectRequest: func(r *cloudservice.GetNamespaceExportSinksRequest) { r.Namespace = ns r.PageSize = 100 }, @@ -2331,10 +2316,10 @@ func (s *NamespaceTestSuite) TestListExportSinks() { for _, tc := range tests { s.Run(strings.Join(tc.args, " "), func() { if tc.expectRequest != nil { - req := namespaceservice.ListExportSinksRequest{} + req := cloudservice.GetNamespaceExportSinksRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().ListExportSinks(gomock.Any(), &req). - Return(&namespaceservice.ListExportSinksResponse{}, nil).Times(1) + s.mockCloudApiClient.EXPECT().GetNamespaceExportSinks(gomock.Any(), &req). + Return(&cloudservice.GetNamespaceExportSinksResponse{}, nil).Times(1) } err := s.RunCmd(tc.args...) @@ -2349,8 +2334,8 @@ func (s *NamespaceTestSuite) TestListExportSinks() { func (s *NamespaceTestSuite) TestUpdateExportS3Sink() { ns := "sink1" - type morphGetReq func(*namespaceservice.UpdateExportSinkRequest) - type morphGetSinkResp func(*namespaceservice.GetExportSinkResponse) + type morphGetReq func(*cloudservice.UpdateNamespaceExportSinkRequest) + type morphGetSinkResp func(*cloudservice.GetNamespaceExportSinkResponse) tests := []struct { name string @@ -2363,12 +2348,12 @@ func (s *NamespaceTestSuite) TestUpdateExportS3Sink() { { name: "update export sink succeeds with no input", args: []string{"namespace", "es", "s3", "update", "--namespace", ns, "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, }, { name: "update export sink succeeds with no updates", args: []string{"namespace", "es", "s3", "update", "--namespace", ns, "--role-arn", "arn:aws:iam::123456789012:role/TestRole", "--s3-bucket-name", "testBucket", "--enabled", "true", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, }, { name: "update export sink fails with no sink name", @@ -2379,21 +2364,20 @@ func (s *NamespaceTestSuite) TestUpdateExportS3Sink() { { name: "update export sink fails with not valid enabled value", args: []string{"namespace", "es", "s3", "update", "--namespace", ns, "--role-arn", "arn:aws:iam::123456789012:role/TestRole", "--s3-bucket-name", "testBucket", "--sink-name", "testSink", "--enabled", ""}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, expectErr: true, expectErrMsg: "invalid value for enabled flag", }, { name: "update export sink succeeds with enable flag", args: []string{"namespace", "es", "s3", "update", "--namespace", ns, "--enabled", "false", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - expectRequest: func(r *namespaceservice.UpdateExportSinkRequest) { + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, + expectRequest: func(r *cloudservice.UpdateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: false, - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: false, + S3: &cloudSink.S3Spec{ RoleName: "TestRole", BucketName: "testBucket", Region: "us-west-2", @@ -2406,14 +2390,13 @@ func (s *NamespaceTestSuite) TestUpdateExportS3Sink() { { name: "update export sink succeeds with role arn and enabled flag", args: []string{"namespace", "es", "s3", "update", "--namespace", ns, "--enabled", "false", "--role-arn", "arn:aws:iam::923456789012:role/newTestRole", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - expectRequest: func(r *namespaceservice.UpdateExportSinkRequest) { + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, + expectRequest: func(r *cloudservice.UpdateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: false, - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: false, + S3: &cloudSink.S3Spec{ RoleName: "newTestRole", BucketName: "testBucket", Region: "us-west-2", @@ -2426,14 +2409,13 @@ func (s *NamespaceTestSuite) TestUpdateExportS3Sink() { { name: "update export sink succeeds with role arn, bucket name and enabled flag", args: []string{"namespace", "es", "s3", "update", "--namespace", ns, "--role-arn", "arn:aws:iam::923456789012:role/newTestRole", "--s3-bucket-name", "newTestBucket", "--enabled", "false", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - expectRequest: func(r *namespaceservice.UpdateExportSinkRequest) { + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, + expectRequest: func(r *cloudservice.UpdateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: false, - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: false, + S3: &cloudSink.S3Spec{ RoleName: "newTestRole", BucketName: "newTestBucket", Region: "us-west-2", @@ -2446,14 +2428,13 @@ func (s *NamespaceTestSuite) TestUpdateExportS3Sink() { { name: "update export sink succeeds with role arn, bucket name, kms arn and enabled flag", args: []string{"namespace", "es", "s3", "update", "--namespace", ns, "--role-arn", "arn:aws:iam::923456789012:role/newTestRole", "--s3-bucket-name", "newTestBucket", "--kms-arn", "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab", "--enabled", "false", "--sink-name", "testSink"}, - expectGetSinkResponse: func(r *namespaceservice.GetExportSinkResponse) {}, - expectRequest: func(r *namespaceservice.UpdateExportSinkRequest) { + expectGetSinkResponse: func(r *cloudservice.GetNamespaceExportSinkResponse) {}, + expectRequest: func(r *cloudservice.UpdateNamespaceExportSinkRequest) { r.Namespace = ns - r.Spec = &sink.ExportSinkSpec{ - Name: "sink1", - Enabled: false, - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + r.Spec = &cloudNamespace.ExportSinkSpec{ + Name: "sink1", + Enabled: false, + S3: &cloudSink.S3Spec{ RoleName: "newTestRole", BucketName: "newTestBucket", Region: "us-west-2", @@ -2469,13 +2450,12 @@ func (s *NamespaceTestSuite) TestUpdateExportS3Sink() { for _, tc := range tests { s.Run(strings.Join(tc.args, " "), func() { if tc.expectGetSinkResponse != nil { - getSinkResp := namespaceservice.GetExportSinkResponse{Sink: &sink.ExportSink{ + getSinkResp := cloudservice.GetNamespaceExportSinkResponse{Sink: &cloudNamespace.ExportSink{ Name: ns, - Spec: &sink.ExportSinkSpec{ - Name: ns, - Enabled: true, - DestinationType: sink.EXPORT_DESTINATION_TYPE_S3, - S3Sink: &sink.S3Spec{ + Spec: &cloudNamespace.ExportSinkSpec{ + Name: ns, + Enabled: true, + S3: &cloudSink.S3Spec{ RoleName: "TestRole", BucketName: "testBucket", Region: "us-west-2", @@ -2485,14 +2465,14 @@ func (s *NamespaceTestSuite) TestUpdateExportS3Sink() { ResourceVersion: "124214124", }} tc.expectGetSinkResponse(&getSinkResp) - s.mockService.EXPECT().GetExportSink(gomock.Any(), gomock.Any()).Return(&getSinkResp, nil).Times(1) + s.mockCloudApiClient.EXPECT().GetNamespaceExportSink(gomock.Any(), gomock.Any()).Return(&getSinkResp, nil).Times(1) } if tc.expectRequest != nil { - req := namespaceservice.UpdateExportSinkRequest{} + req := cloudservice.UpdateNamespaceExportSinkRequest{} tc.expectRequest(&req) - s.mockService.EXPECT().UpdateExportSink(gomock.Any(), &req). - Return(&namespaceservice.UpdateExportSinkResponse{RequestStatus: &request.RequestStatus{}}, nil).Times(1) + s.mockCloudApiClient.EXPECT().UpdateNamespaceExportSink(gomock.Any(), &req). + Return(&cloudservice.UpdateNamespaceExportSinkResponse{AsyncOperation: &operation.AsyncOperation{}}, nil).Times(1) } err := s.RunCmd(tc.args...) diff --git a/protogen/api/cloud/account/v1/message.pb.go b/protogen/api/cloud/account/v1/message.pb.go index 31c147ab..ec156cd1 100644 --- a/protogen/api/cloud/account/v1/message.pb.go +++ b/protogen/api/cloud/account/v1/message.pb.go @@ -4,8 +4,10 @@ package account import ( + bytes "bytes" fmt "fmt" proto "github.com/gogo/protobuf/proto" + v1 "github.com/temporalio/tcld/protogen/api/cloud/resource/v1" io "io" math "math" math_bits "math/bits" @@ -25,11 +27,9 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MetricsSpec struct { - // Enables the endpoint from which clients can scrape all their namespace metrics. - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - // The base64 encoded ca cert(s) in PEM format that clients connecting to the metrics endpoint can use for authentication. + // The ca cert(s) in PEM format that clients connecting to the metrics endpoint can use for authentication. // This must only be one value, but the CA can have a chain. - AcceptedClientCa string `protobuf:"bytes,2,opt,name=accepted_client_ca,json=acceptedClientCa,proto3" json:"accepted_client_ca,omitempty"` + AcceptedClientCa []byte `protobuf:"bytes,2,opt,name=accepted_client_ca,json=acceptedClientCa,proto3" json:"accepted_client_ca,omitempty"` } func (m *MetricsSpec) Reset() { *m = MetricsSpec{} } @@ -64,22 +64,16 @@ func (m *MetricsSpec) XXX_DiscardUnknown() { var xxx_messageInfo_MetricsSpec proto.InternalMessageInfo -func (m *MetricsSpec) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} - -func (m *MetricsSpec) GetAcceptedClientCa() string { +func (m *MetricsSpec) GetAcceptedClientCa() []byte { if m != nil { return m.AcceptedClientCa } - return "" + return nil } type AccountSpec struct { // The metrics specification for this account. + // If not specified, metrics will not be enabled. Metrics *MetricsSpec `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"` } @@ -168,19 +162,19 @@ func (m *Metrics) GetUri() string { } type Account struct { + // The id of the account. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The account specification. - Spec *AccountSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` + Spec *AccountSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` // The current version of the account specification. // The next update operation will have to include this version. - ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` + ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` // The current state of the account. - // Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. - // For any failed state, reach out to Temporal Cloud support for remediation. - State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` + State v1.ResourceState `protobuf:"varint,4,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` // The id of the async operation that is updating the account, if any. - AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` + AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` // Information related to metrics. - Metrics *Metrics `protobuf:"bytes,5,opt,name=metrics,proto3" json:"metrics,omitempty"` + Metrics *Metrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"` } func (m *Account) Reset() { *m = Account{} } @@ -215,6 +209,13 @@ func (m *Account) XXX_DiscardUnknown() { var xxx_messageInfo_Account proto.InternalMessageInfo +func (m *Account) GetId() string { + if m != nil { + return m.Id + } + return "" +} + func (m *Account) GetSpec() *AccountSpec { if m != nil { return m.Spec @@ -229,11 +230,11 @@ func (m *Account) GetResourceVersion() string { return "" } -func (m *Account) GetState() string { +func (m *Account) GetState() v1.ResourceState { if m != nil { return m.State } - return "" + return v1.RESOURCE_STATE_UNSPECIFIED } func (m *Account) GetAsyncOperationId() string { @@ -262,31 +263,33 @@ func init() { } var fileDescriptor_0da0883d6b494eb5 = []byte{ - // 381 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xb1, 0xae, 0xd3, 0x30, - 0x14, 0x8d, 0x69, 0x4b, 0xa8, 0x3b, 0x50, 0x59, 0x0c, 0x91, 0x10, 0x56, 0x95, 0x01, 0x15, 0x8a, - 0x12, 0x15, 0x46, 0x24, 0x04, 0x94, 0x85, 0x01, 0x21, 0xa5, 0x82, 0x81, 0x25, 0x72, 0x9d, 0xab, - 0xca, 0x52, 0x1a, 0x5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0x2f, 0xd4, 0x3a, 0x33, 0x9a, 0xb8, - 0x3d, 0xf2, 0x0a, 0x0f, 0x35, 0x18, 0x59, 0x6a, 0x0e, 0xe9, 0x1a, 0xb4, 0x11, 0xb2, 0x68, 0x7e, - 0xfa, 0xb4, 0xed, 0xff, 0xac, 0xdb, 0xe4, 0x19, 0xee, 0x19, 0xcb, 0x2c, 0x04, 0x1d, 0x87, 0xd7, - 0x85, 0x0b, 0xcb, 0xfc, 0x2e, 0x78, 0x2a, 0x15, 0x68, 0x66, 0x85, 0x2c, 0x52, 0x91, 0x05, 0xdd, - 0x26, 0xac, 0x23, 0xf2, 0xbd, 0x05, 0xbe, 0x66, 0xe4, 0xe3, 0x29, 0x9d, 0x9e, 0x73, 0xfc, 0xf2, - 0xb2, 0x74, 0xee, 0x92, 0xf9, 0xcc, 0x36, 0x3b, 0xea, 0x6d, 0x77, 0xd4, 0x3b, 0xec, 0x28, 0xfa, - 0x53, 0x51, 0xf4, 0xaf, 0xa2, 0xe8, 0x7f, 0x45, 0xd1, 0xa6, 0xa2, 0xe8, 0xaa, 0xa2, 0xe8, 0xba, - 0xa2, 0xde, 0xa1, 0xa2, 0xe8, 0xef, 0x9e, 0x7a, 0x9b, 0x3d, 0xf5, 0xb6, 0x7b, 0xea, 0xfd, 0x9a, - 0x2c, 0xe5, 0x49, 0x48, 0xc8, 0x7b, 0xaf, 0xe9, 0x7d, 0xf3, 0x5c, 0x3c, 0x76, 0xe7, 0xf4, 0xee, - 0x36, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x46, 0xde, 0xa5, 0x7d, 0x02, 0x00, 0x00, + // 406 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xbf, 0xaa, 0xdb, 0x30, + 0x14, 0xc6, 0x2d, 0xe7, 0x1f, 0x55, 0x4a, 0x6a, 0x34, 0x99, 0x96, 0x8a, 0xe0, 0xa1, 0x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x00, 0xff, 0xff, 0xcc, 0x67, + 0xb6, 0xdb, 0xd0, 0x02, 0x00, 0x00, } func (this *MetricsSpec) Equal(that interface{}) bool { @@ -308,10 +311,7 @@ func (this *MetricsSpec) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Enabled != that1.Enabled { - return false - } - if this.AcceptedClientCa != that1.AcceptedClientCa { + if !bytes.Equal(this.AcceptedClientCa, that1.AcceptedClientCa) { return false } return true @@ -383,6 +383,9 @@ func (this *Account) Equal(that interface{}) bool { } else if this == nil { return false } + if this.Id != that1.Id { + return false + } if !this.Spec.Equal(that1.Spec) { return false } @@ -404,9 +407,8 @@ func (this *MetricsSpec) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 6) + s := make([]string, 0, 5) s = append(s, "&account.MetricsSpec{") - s = append(s, "Enabled: "+fmt.Sprintf("%#v", this.Enabled)+",\n") s = append(s, "AcceptedClientCa: "+fmt.Sprintf("%#v", this.AcceptedClientCa)+",\n") s = append(s, "}") return strings.Join(s, "") @@ -437,8 +439,9 @@ func (this *Account) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 9) + s := make([]string, 0, 10) s = append(s, "&account.Account{") + s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") if this.Spec != nil { s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } @@ -486,16 +489,6 @@ func (m *MetricsSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } @@ -594,28 +587,26 @@ func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintMessage(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x32 } if len(m.AsyncOperationId) > 0 { i -= len(m.AsyncOperationId) copy(dAtA[i:], m.AsyncOperationId) i = encodeVarintMessage(dAtA, i, uint64(len(m.AsyncOperationId))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintMessage(dAtA, i, uint64(len(m.State))) + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x20 } if len(m.ResourceVersion) > 0 { i -= len(m.ResourceVersion) copy(dAtA[i:], m.ResourceVersion) i = encodeVarintMessage(dAtA, i, uint64(len(m.ResourceVersion))) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x1a } if m.Spec != nil { { @@ -627,6 +618,13 @@ func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintMessage(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Id))) + i-- dAtA[i] = 0xa } return len(dAtA) - i, nil @@ -649,9 +647,6 @@ func (m *MetricsSpec) Size() (n int) { } var l int _ = l - if m.Enabled { - n += 2 - } l = len(m.AcceptedClientCa) if l > 0 { n += 1 + l + sovMessage(uint64(l)) @@ -691,6 +686,10 @@ func (m *Account) Size() (n int) { } var l int _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } if m.Spec != nil { l = m.Spec.Size() n += 1 + l + sovMessage(uint64(l)) @@ -699,9 +698,8 @@ func (m *Account) Size() (n int) { if l > 0 { n += 1 + l + sovMessage(uint64(l)) } - l = len(m.State) - if l > 0 { - n += 1 + l + sovMessage(uint64(l)) + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) } l = len(m.AsyncOperationId) if l > 0 { @@ -725,7 +723,6 @@ func (this *MetricsSpec) String() string { return "nil" } s := strings.Join([]string{`&MetricsSpec{`, - `Enabled:` + fmt.Sprintf("%v", this.Enabled) + `,`, `AcceptedClientCa:` + fmt.Sprintf("%v", this.AcceptedClientCa) + `,`, `}`, }, "") @@ -756,6 +753,7 @@ func (this *Account) String() string { return "nil" } s := strings.Join([]string{`&Account{`, + `Id:` + fmt.Sprintf("%v", this.Id) + `,`, `Spec:` + strings.Replace(this.Spec.String(), "AccountSpec", "AccountSpec", 1) + `,`, `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, `State:` + fmt.Sprintf("%v", this.State) + `,`, @@ -802,31 +800,11 @@ func (m *MetricsSpec) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: MetricsSpec: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AcceptedClientCa", wireType) } - var stringLen uint64 + var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowMessage @@ -836,23 +814,25 @@ func (m *MetricsSpec) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if byteLen < 0 { return ErrInvalidLengthMessage } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + byteLen if postIndex < 0 { return ErrInvalidLengthMessage } if postIndex > l { return io.ErrUnexpectedEOF } - m.AcceptedClientCa = string(dAtA[iNdEx:postIndex]) + m.AcceptedClientCa = append(m.AcceptedClientCa[:0], dAtA[iNdEx:postIndex]...) + if m.AcceptedClientCa == nil { + m.AcceptedClientCa = []byte{} + } iNdEx = postIndex default: iNdEx = preIndex @@ -1082,6 +1062,38 @@ func (m *Account) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } @@ -1117,7 +1129,7 @@ func (m *Account) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } @@ -1149,11 +1161,11 @@ func (m *Account) Unmarshal(dAtA []byte) error { } m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { + case 4: + if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) } - var stringLen uint64 + m.State = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowMessage @@ -1163,25 +1175,12 @@ func (m *Account) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.State |= v1.ResourceState(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthMessage - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMessage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -1213,7 +1212,7 @@ func (m *Account) Unmarshal(dAtA []byte) error { } m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) } diff --git a/protogen/api/cloud/auditlog/v1/message.pb.go b/protogen/api/cloud/auditlog/v1/message.pb.go new file mode 100644 index 00000000..6d59234a --- /dev/null +++ b/protogen/api/cloud/auditlog/v1/message.pb.go @@ -0,0 +1,3800 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: temporal/api/cloud/auditlog/v1/message.proto + +package auditlog + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + types "github.com/gogo/protobuf/types" + io "io" + math "math" + math_bits "math/bits" + reflect "reflect" + strconv "strconv" + strings "strings" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type LogCategory int32 + +const ( + LOG_CATEGORY_UNSPECIFIED LogCategory = 0 + LOG_CATEGORY_ADMIN LogCategory = 1 + LOG_CATEGORY_SYSTEM LogCategory = 2 +) + +var LogCategory_name = map[int32]string{ + 0: "Unspecified", + 1: "Admin", + 2: "System", +} + +var LogCategory_value = map[string]int32{ + "Unspecified": 0, + "Admin": 1, + "System": 2, +} + +func (LogCategory) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{0} +} + +type LogLevel int32 + +const ( + LOG_LEVEL_UNSPECIFIED LogLevel = 0 + LOG_LEVEL_INFO LogLevel = 1 + LOG_LEVEL_DEBUG LogLevel = 2 + LOG_LEVEL_WARN LogLevel = 3 + LOG_LEVEL_ERROR LogLevel = 4 + LOG_LEVEL_FATAL LogLevel = 5 +) + +var LogLevel_name = map[int32]string{ + 0: "Unspecified", + 1: "Info", + 2: "Debug", + 3: "Warn", + 4: "Error", + 5: "Fatal", +} + +var LogLevel_value = map[string]int32{ + "Unspecified": 0, + "Info": 1, + "Debug": 2, + "Warn": 3, + "Error": 4, + "Fatal": 5, +} + +func (LogLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{1} +} + +// LogRecord represents an audit log entry from Temporal, structured for easy parsing and analysis. +type LogRecord struct { + // Time when the log was emitted from the source + EmitTime *types.Timestamp `protobuf:"bytes,1,opt,name=emit_time,json=emitTime,proto3" json:"emit_time,omitempty"` + // Level of the log, i.e. info, warn, error etc + Level LogLevel `protobuf:"varint,2,opt,name=level,proto3,enum=temporal.api.cloud.auditlog.v1.LogLevel" json:"level,omitempty"` + // Operator email address - optional + UserEmail string `protobuf:"bytes,3,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"` + // Operator IP address or server name + CallerIpAddress string `protobuf:"bytes,4,opt,name=caller_ip_address,json=callerIpAddress,proto3" json:"caller_ip_address,omitempty"` + // Operation performed + Operation string `protobuf:"bytes,5,opt,name=operation,proto3" json:"operation,omitempty"` + // Detailed information about the operation. + Details *OperationDetail `protobuf:"bytes,6,opt,name=details,proto3" json:"details,omitempty"` + // Operation status from API call + Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` + // Admin or System + Category LogCategory `protobuf:"varint,8,opt,name=category,proto3,enum=temporal.api.cloud.auditlog.v1.LogCategory" json:"category,omitempty"` + // Specifies the version of the log entry to distinguish between different systems on the server side. + Version int32 `protobuf:"varint,9,opt,name=version,proto3" json:"version,omitempty"` + // Unique ID for the log record. + LogId string `protobuf:"bytes,10,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` + // Request ID / Async Operation ID + RequestId string `protobuf:"bytes,11,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Principal struct + Principal *Principal `protobuf:"bytes,12,opt,name=principal,proto3" json:"principal,omitempty"` +} + +func (m *LogRecord) Reset() { *m = LogRecord{} } +func (*LogRecord) ProtoMessage() {} +func (*LogRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{0} +} +func (m *LogRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LogRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LogRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LogRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_LogRecord.Merge(m, src) +} +func (m *LogRecord) XXX_Size() int { + return m.Size() +} +func (m *LogRecord) XXX_DiscardUnknown() { + xxx_messageInfo_LogRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_LogRecord proto.InternalMessageInfo + +func (m *LogRecord) GetEmitTime() *types.Timestamp { + if m != nil { + return m.EmitTime + } + return nil +} + +func (m *LogRecord) GetLevel() LogLevel { + if m != nil { + return m.Level + } + return LOG_LEVEL_UNSPECIFIED +} + +func (m *LogRecord) GetUserEmail() string { + if m != nil { + return m.UserEmail + } + return "" +} + +func (m *LogRecord) GetCallerIpAddress() string { + if m != nil { + return m.CallerIpAddress + } + return "" +} + +func (m *LogRecord) GetOperation() string { + if m != nil { + return m.Operation + } + return "" +} + +func (m *LogRecord) GetDetails() *OperationDetail { + if m != nil { + return m.Details + } + return nil +} + +func (m *LogRecord) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +func (m *LogRecord) GetCategory() LogCategory { + if m != nil { + return m.Category + } + return LOG_CATEGORY_UNSPECIFIED +} + +func (m *LogRecord) GetVersion() int32 { + if m != nil { + return m.Version + } + return 0 +} + +func (m *LogRecord) GetLogId() string { + if m != nil { + return m.LogId + } + return "" +} + +func (m *LogRecord) GetRequestId() string { + if m != nil { + return m.RequestId + } + return "" +} + +func (m *LogRecord) GetPrincipal() *Principal { + if m != nil { + return m.Principal + } + return nil +} + +// OperationDetails includes potential more detailed operation logs extracted from the different fields in the +// Temporal API logs or third party logs, e.g. auth0 +type OperationDetail struct { + // The namespace the operation was performed on - optional + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // The email addresses of the users on whom the operation was performed - optional + TargetUsers []string `protobuf:"bytes,2,rep,name=target_users,json=targetUsers,proto3" json:"target_users,omitempty"` + // Names of any roles/accesses assigned to identities that were processed in this request - optional + Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` + // Fingerprints if client ca is included - optional + ClientCaFingerprints []string `protobuf:"bytes,4,rep,name=client_ca_fingerprints,json=clientCaFingerprints,proto3" json:"client_ca_fingerprints,omitempty"` + // Details of a search attribute update - optional + SearchAttributeUpdate *SearchAttributeUpdate `protobuf:"bytes,5,opt,name=search_attribute_update,json=searchAttributeUpdate,proto3" json:"search_attribute_update,omitempty"` + // Additional relevant message - optional + AdditionalMessage string `protobuf:"bytes,6,opt,name=additional_message,json=additionalMessage,proto3" json:"additional_message,omitempty"` + // Namespace's region - optional + Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` + // If account features were updated i.e. external metrics, audit logging sink etc. - optional + AccountFeatures []string `protobuf:"bytes,8,rep,name=account_features,json=accountFeatures,proto3" json:"account_features,omitempty"` + // Third party log details eg: auth0 - optional + ThirdPartyDetails *ThirdPartyLogDetail `protobuf:"bytes,9,opt,name=third_party_details,json=thirdPartyDetails,proto3" json:"third_party_details,omitempty"` + // the access in the request if there is any + Access *Access `protobuf:"bytes,10,opt,name=access,proto3" json:"access,omitempty"` + // the namespace access in the request if there is any + NamespaceAccess *NamespaceAccess `protobuf:"bytes,11,opt,name=namespace_access,json=namespaceAccess,proto3" json:"namespace_access,omitempty"` +} + +func (m *OperationDetail) Reset() { *m = OperationDetail{} } +func (*OperationDetail) ProtoMessage() {} +func (*OperationDetail) Descriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{1} +} +func (m *OperationDetail) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OperationDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OperationDetail.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OperationDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperationDetail.Merge(m, src) +} +func (m *OperationDetail) XXX_Size() int { + return m.Size() +} +func (m *OperationDetail) XXX_DiscardUnknown() { + xxx_messageInfo_OperationDetail.DiscardUnknown(m) +} + +var xxx_messageInfo_OperationDetail proto.InternalMessageInfo + +func (m *OperationDetail) GetNamespace() string { + if m != nil { + return m.Namespace + } + return "" +} + +func (m *OperationDetail) GetTargetUsers() []string { + if m != nil { + return m.TargetUsers + } + return nil +} + +func (m *OperationDetail) GetRoles() []string { + if m != nil { + return m.Roles + } + return nil +} + +func (m *OperationDetail) GetClientCaFingerprints() []string { + if m != nil { + return m.ClientCaFingerprints + } + return nil +} + +func (m *OperationDetail) GetSearchAttributeUpdate() *SearchAttributeUpdate { + if m != nil { + return m.SearchAttributeUpdate + } + return nil +} + +func (m *OperationDetail) GetAdditionalMessage() string { + if m != nil { + return m.AdditionalMessage + } + return "" +} + +func (m *OperationDetail) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *OperationDetail) GetAccountFeatures() []string { + if m != nil { + return m.AccountFeatures + } + return nil +} + +func (m *OperationDetail) GetThirdPartyDetails() *ThirdPartyLogDetail { + if m != nil { + return m.ThirdPartyDetails + } + return nil +} + +func (m *OperationDetail) GetAccess() *Access { + if m != nil { + return m.Access + } + return nil +} + +func (m *OperationDetail) GetNamespaceAccess() *NamespaceAccess { + if m != nil { + return m.NamespaceAccess + } + return nil +} + +type Access struct { + AccountAccess *AccountAccess `protobuf:"bytes,1,opt,name=account_access,json=accountAccess,proto3" json:"account_access,omitempty"` + NamespaceAccesses map[string]*NamespaceAccess `protobuf:"bytes,2,rep,name=namespace_accesses,json=namespaceAccesses,proto3" json:"namespace_accesses,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (m *Access) Reset() { *m = Access{} } +func (*Access) ProtoMessage() {} +func (*Access) Descriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{2} +} +func (m *Access) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Access) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Access.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Access) XXX_Merge(src proto.Message) { + xxx_messageInfo_Access.Merge(m, src) +} +func (m *Access) XXX_Size() int { + return m.Size() +} +func (m *Access) XXX_DiscardUnknown() { + xxx_messageInfo_Access.DiscardUnknown(m) +} + +var xxx_messageInfo_Access proto.InternalMessageInfo + +func (m *Access) GetAccountAccess() *AccountAccess { + if m != nil { + return m.AccountAccess + } + return nil +} + +func (m *Access) GetNamespaceAccesses() map[string]*NamespaceAccess { + if m != nil { + return m.NamespaceAccesses + } + return nil +} + +type AccountAccess struct { + Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` +} + +func (m *AccountAccess) Reset() { *m = AccountAccess{} } +func (*AccountAccess) ProtoMessage() {} +func (*AccountAccess) Descriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{3} +} +func (m *AccountAccess) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AccountAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AccountAccess.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AccountAccess) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountAccess.Merge(m, src) +} +func (m *AccountAccess) XXX_Size() int { + return m.Size() +} +func (m *AccountAccess) XXX_DiscardUnknown() { + xxx_messageInfo_AccountAccess.DiscardUnknown(m) +} + +var xxx_messageInfo_AccountAccess proto.InternalMessageInfo + +func (m *AccountAccess) GetRole() string { + if m != nil { + return m.Role + } + return "" +} + +type NamespaceAccess struct { + Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` +} + +func (m *NamespaceAccess) Reset() { *m = NamespaceAccess{} } +func (*NamespaceAccess) ProtoMessage() {} +func (*NamespaceAccess) Descriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{4} +} +func (m *NamespaceAccess) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NamespaceAccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_NamespaceAccess.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *NamespaceAccess) XXX_Merge(src proto.Message) { + xxx_messageInfo_NamespaceAccess.Merge(m, src) +} +func (m *NamespaceAccess) XXX_Size() int { + return m.Size() +} +func (m *NamespaceAccess) XXX_DiscardUnknown() { + xxx_messageInfo_NamespaceAccess.DiscardUnknown(m) +} + +var xxx_messageInfo_NamespaceAccess proto.InternalMessageInfo + +func (m *NamespaceAccess) GetPermission() string { + if m != nil { + return m.Permission + } + return "" +} + +type SearchAttributeUpdate struct { + ExistingAttribute string `protobuf:"bytes,1,opt,name=existing_attribute,json=existingAttribute,proto3" json:"existing_attribute,omitempty"` + NewAttribute string `protobuf:"bytes,2,opt,name=new_attribute,json=newAttribute,proto3" json:"new_attribute,omitempty"` +} + +func (m *SearchAttributeUpdate) Reset() { *m = SearchAttributeUpdate{} } +func (*SearchAttributeUpdate) ProtoMessage() {} +func (*SearchAttributeUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{5} +} +func (m *SearchAttributeUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SearchAttributeUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SearchAttributeUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *SearchAttributeUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchAttributeUpdate.Merge(m, src) +} +func (m *SearchAttributeUpdate) XXX_Size() int { + return m.Size() +} +func (m *SearchAttributeUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_SearchAttributeUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchAttributeUpdate proto.InternalMessageInfo + +func (m *SearchAttributeUpdate) GetExistingAttribute() string { + if m != nil { + return m.ExistingAttribute + } + return "" +} + +func (m *SearchAttributeUpdate) GetNewAttribute() string { + if m != nil { + return m.NewAttribute + } + return "" +} + +type ThirdPartyLogDetail struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // the third party source, e.g. auth0 + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + // the raw log message from the third party app, e.g. the whole auth0 event log + RawMessage string `protobuf:"bytes,3,opt,name=raw_message,json=rawMessage,proto3" json:"raw_message,omitempty"` +} + +func (m *ThirdPartyLogDetail) Reset() { *m = ThirdPartyLogDetail{} } +func (*ThirdPartyLogDetail) ProtoMessage() {} +func (*ThirdPartyLogDetail) Descriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{6} +} +func (m *ThirdPartyLogDetail) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ThirdPartyLogDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ThirdPartyLogDetail.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ThirdPartyLogDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_ThirdPartyLogDetail.Merge(m, src) +} +func (m *ThirdPartyLogDetail) XXX_Size() int { + return m.Size() +} +func (m *ThirdPartyLogDetail) XXX_DiscardUnknown() { + xxx_messageInfo_ThirdPartyLogDetail.DiscardUnknown(m) +} + +var xxx_messageInfo_ThirdPartyLogDetail proto.InternalMessageInfo + +func (m *ThirdPartyLogDetail) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *ThirdPartyLogDetail) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *ThirdPartyLogDetail) GetRawMessage() string { + if m != nil { + return m.RawMessage + } + return "" +} + +type Principal struct { + // Possible type values: user, serviceaccount. + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *Principal) Reset() { *m = Principal{} } +func (*Principal) ProtoMessage() {} +func (*Principal) Descriptor() ([]byte, []int) { + return fileDescriptor_283286ea48ab34f8, []int{7} +} +func (m *Principal) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Principal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Principal.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Principal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Principal.Merge(m, src) +} +func (m *Principal) XXX_Size() int { + return m.Size() +} +func (m *Principal) XXX_DiscardUnknown() { + xxx_messageInfo_Principal.DiscardUnknown(m) +} + +var xxx_messageInfo_Principal proto.InternalMessageInfo + +func (m *Principal) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *Principal) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *Principal) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func init() { + proto.RegisterEnum("temporal.api.cloud.auditlog.v1.LogCategory", LogCategory_name, LogCategory_value) + proto.RegisterEnum("temporal.api.cloud.auditlog.v1.LogLevel", LogLevel_name, LogLevel_value) + proto.RegisterType((*LogRecord)(nil), "temporal.api.cloud.auditlog.v1.LogRecord") + proto.RegisterType((*OperationDetail)(nil), "temporal.api.cloud.auditlog.v1.OperationDetail") + proto.RegisterType((*Access)(nil), "temporal.api.cloud.auditlog.v1.Access") + proto.RegisterMapType((map[string]*NamespaceAccess)(nil), "temporal.api.cloud.auditlog.v1.Access.NamespaceAccessesEntry") + proto.RegisterType((*AccountAccess)(nil), "temporal.api.cloud.auditlog.v1.AccountAccess") + proto.RegisterType((*NamespaceAccess)(nil), "temporal.api.cloud.auditlog.v1.NamespaceAccess") + proto.RegisterType((*SearchAttributeUpdate)(nil), "temporal.api.cloud.auditlog.v1.SearchAttributeUpdate") + proto.RegisterType((*ThirdPartyLogDetail)(nil), "temporal.api.cloud.auditlog.v1.ThirdPartyLogDetail") + proto.RegisterType((*Principal)(nil), "temporal.api.cloud.auditlog.v1.Principal") +} + +func init() { + proto.RegisterFile("temporal/api/cloud/auditlog/v1/message.proto", fileDescriptor_283286ea48ab34f8) +} + +var fileDescriptor_283286ea48ab34f8 = []byte{ + // 1142 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x16, 0x69, 0xcb, 0x31, 0x47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61, 0x77, 0x0b, 0x17, 0xce, 0xbc, + 0x20, 0x8b, 0x2d, 0x7a, 0x08, 0xe5, 0x90, 0x9c, 0x90, 0xd0, 0xd4, 0xd7, 0xb5, 0x8d, 0xc5, 0xad, + 0x0d, 0xfb, 0xbf, 0xcf, 0x65, 0x77, 0xe2, 0xa0, 0x23, 0xf8, 0x4e, 0x2e, 0x43, 0x1f, 0x03, 0x64, + 0x29, 0x61, 0x2e, 0xe9, 0x61, 0x1a, 0x9a, 0x33, 0xeb, 0xda, 0x86, 0xe1, 0x18, 0x02, 0x69, 0x09, + 0x00, 0xdd, 0x83, 0x65, 0x0f, 0x87, 0x21, 0x61, 0x2e, 0x4d, 0x5c, 0xec, 0xfb, 0x8c, 0xa4, 0xa9, + 0x39, 0x2b, 0x59, 0x4b, 0xb9, 0xa1, 0x9d, 0x34, 0x73, 0x18, 0xdd, 0x04, 0x23, 0x4e, 0x08, 0xc3, + 0x9c, 0xc6, 0x91, 0x59, 0xce, 0x3d, 0x0d, 0x00, 0xd4, 0x86, 0x2b, 0x3e, 0xe1, 0x98, 0x86, 0xa9, + 0x39, 0x27, 0xf3, 0xab, 0x4f, 0x3b, 0xea, 0x41, 0xa1, 0xdd, 0x91, 0x3a, 0xa7, 0xd0, 0xa3, 0x35, + 0x98, 0x4b, 0x39, 0xe6, 0x59, 0x6a, 0x5e, 0x91, 0x51, 0xd4, 0x0e, 0xed, 0xc1, 0xbc, 0x87, 0x39, + 0x09, 0x62, 0x76, 0x66, 0xce, 0xcb, 0x72, 0x7c, 0x76, 0x89, 0x72, 0x6c, 0x2b, 0x89, 0x33, 0x10, + 0x23, 0x13, 0xae, 0x9c, 0x10, 0x96, 0x8a, 0x3c, 0x8c, 0x75, 0x6d, 0xa3, 0xec, 0x14, 0x5b, 0xb4, + 0x0a, 0x73, 0x61, 0x1c, 0xb8, 0xd4, 0x37, 0x41, 0x86, 0x2e, 0x87, 0x71, 0xd0, 0xf6, 0x45, 0x15, + 0x19, 0xf9, 0x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0xdd, 0x85, 0x2a, 0xf6, 0xbc, 0x38, + 0x8b, 0xb8, 0xfb, 0x82, 0x60, 0x9e, 0x31, 0x92, 0x9a, 0xf3, 0x32, 0xcb, 0x25, 0x85, 0xef, 0x2a, + 0x18, 0x79, 0xb0, 0xc2, 0x5f, 0x52, 0xe6, 0xbb, 0x09, 0x66, 0xfc, 0xcc, 0x2d, 0x5a, 0xda, 0x90, + 0xc9, 0x3d, 0x98, 0x96, 0x5c, 0x57, 0x48, 0x0f, 0x85, 0xb2, 0x13, 0x07, 0xaa, 0xad, 0x97, 0xf9, + 0x00, 0xdc, 0x51, 0x0d, 0xfe, 0x10, 0xe6, 0xb0, 0xe7, 0x89, 0x51, 0x03, 0xe9, 0xf7, 0xd3, 0x69, + 0x7e, 0x9b, 0x92, 0xed, 0x28, 0x15, 0x7a, 0x06, 0xd5, 0x41, 0x07, 0xb8, 0xca, 0x53, 0xe5, 0x72, + 0x43, 0xb7, 0x5f, 0xe8, 0x94, 0xcb, 0xa5, 0x68, 0x1c, 0xa8, 0xfd, 0xa1, 0xc3, 0x5c, 0xbe, 0x44, + 0x5d, 0x58, 0x2c, 0xca, 0xa6, 0x82, 0xe4, 0x2f, 0xd7, 0xfd, 0x4b, 0x1c, 0x57, 0xa8, 0x54, 0x88, + 0xab, 0x78, 0x74, 0x8b, 0x42, 0x40, 0x93, 0x87, 0x27, 0x79, 0xdf, 0x56, 0xb6, 0xbe, 0xbd, 0x5c, + 0x21, 0x26, 0xb3, 0x20, 0x69, 0x2b, 0xe2, 0xec, 0xcc, 0x59, 0x8e, 0x26, 0xf1, 0x1b, 0x19, 0xac, + 0x5d, 0x4c, 0x46, 0x55, 0x98, 0x79, 0x45, 0xce, 0xd4, 0x44, 0x89, 0x25, 0x6a, 0x41, 0xf9, 0x04, + 0x87, 0x19, 0x91, 0x6f, 0xed, 0xff, 0xa8, 0x65, 0xae, 0x6e, 0xe8, 0x5f, 0x6b, 0xb5, 0x3b, 0x70, + 0x75, 0xac, 0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0xf1, + 0x64, 0xf3, 0xf9, 0x9c, 0xfc, 0x1d, 0x7a, 0xf0, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x64, 0x9b, + 0x63, 0x46, 0xaf, 0x09, 0x00, 0x00, +} + +func (x LogCategory) String() string { + s, ok := LogCategory_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (x LogLevel) String() string { + s, ok := LogLevel_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (this *LogRecord) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*LogRecord) + if !ok { + that2, ok := that.(LogRecord) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.EmitTime.Equal(that1.EmitTime) { + return false + } + if this.Level != that1.Level { + return false + } + if this.UserEmail != that1.UserEmail { + return false + } + if this.CallerIpAddress != that1.CallerIpAddress { + return false + } + if this.Operation != that1.Operation { + return false + } + if !this.Details.Equal(that1.Details) { + return false + } + if this.Status != that1.Status { + return false + } + if this.Category != that1.Category { + return false + } + if this.Version != that1.Version { + return false + } + if this.LogId != that1.LogId { + return false + } + if this.RequestId != that1.RequestId { + return false + } + if !this.Principal.Equal(that1.Principal) { + return false + } + return true +} +func (this *OperationDetail) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*OperationDetail) + if !ok { + that2, ok := that.(OperationDetail) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Namespace != that1.Namespace { + return false + } + if len(this.TargetUsers) != len(that1.TargetUsers) { + return false + } + for i := range this.TargetUsers { + if this.TargetUsers[i] != that1.TargetUsers[i] { + return false + } + } + if len(this.Roles) != len(that1.Roles) { + return false + } + for i := range this.Roles { + if this.Roles[i] != that1.Roles[i] { + return false + } + } + if len(this.ClientCaFingerprints) != len(that1.ClientCaFingerprints) { + return false + } + for i := range this.ClientCaFingerprints { + if this.ClientCaFingerprints[i] != that1.ClientCaFingerprints[i] { + return false + } + } + if !this.SearchAttributeUpdate.Equal(that1.SearchAttributeUpdate) { + return false + } + if this.AdditionalMessage != that1.AdditionalMessage { + return false + } + if this.Region != that1.Region { + return false + } + if len(this.AccountFeatures) != len(that1.AccountFeatures) { + return false + } + for i := range this.AccountFeatures { + if this.AccountFeatures[i] != that1.AccountFeatures[i] { + return false + } + } + if !this.ThirdPartyDetails.Equal(that1.ThirdPartyDetails) { + return false + } + if !this.Access.Equal(that1.Access) { + return false + } + if !this.NamespaceAccess.Equal(that1.NamespaceAccess) { + return false + } + return true +} +func (this *Access) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Access) + if !ok { + that2, ok := that.(Access) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.AccountAccess.Equal(that1.AccountAccess) { + return false + } + if len(this.NamespaceAccesses) != len(that1.NamespaceAccesses) { + return false + } + for i := range this.NamespaceAccesses { + if !this.NamespaceAccesses[i].Equal(that1.NamespaceAccesses[i]) { + return false + } + } + return true +} +func (this *AccountAccess) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*AccountAccess) + if !ok { + that2, ok := that.(AccountAccess) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Role != that1.Role { + return false + } + return true +} +func (this *NamespaceAccess) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*NamespaceAccess) + if !ok { + that2, ok := that.(NamespaceAccess) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Permission != that1.Permission { + return false + } + return true +} +func (this *SearchAttributeUpdate) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*SearchAttributeUpdate) + if !ok { + that2, ok := that.(SearchAttributeUpdate) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.ExistingAttribute != that1.ExistingAttribute { + return false + } + if this.NewAttribute != that1.NewAttribute { + return false + } + return true +} +func (this *ThirdPartyLogDetail) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ThirdPartyLogDetail) + if !ok { + that2, ok := that.(ThirdPartyLogDetail) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Id != that1.Id { + return false + } + if this.Source != that1.Source { + return false + } + if this.RawMessage != that1.RawMessage { + return false + } + return true +} +func (this *Principal) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Principal) + if !ok { + that2, ok := that.(Principal) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Type != that1.Type { + return false + } + if this.Id != that1.Id { + return false + } + if this.Name != that1.Name { + return false + } + return true +} +func (this *LogRecord) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 16) + s = append(s, "&auditlog.LogRecord{") + if this.EmitTime != nil { + s = append(s, "EmitTime: "+fmt.Sprintf("%#v", this.EmitTime)+",\n") + } + s = append(s, "Level: "+fmt.Sprintf("%#v", this.Level)+",\n") + s = append(s, "UserEmail: "+fmt.Sprintf("%#v", this.UserEmail)+",\n") + s = append(s, "CallerIpAddress: "+fmt.Sprintf("%#v", this.CallerIpAddress)+",\n") + s = append(s, "Operation: "+fmt.Sprintf("%#v", this.Operation)+",\n") + if this.Details != nil { + s = append(s, "Details: "+fmt.Sprintf("%#v", this.Details)+",\n") + } + s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") + s = append(s, "Category: "+fmt.Sprintf("%#v", this.Category)+",\n") + s = append(s, "Version: "+fmt.Sprintf("%#v", this.Version)+",\n") + s = append(s, "LogId: "+fmt.Sprintf("%#v", this.LogId)+",\n") + s = append(s, "RequestId: "+fmt.Sprintf("%#v", this.RequestId)+",\n") + if this.Principal != nil { + s = append(s, "Principal: "+fmt.Sprintf("%#v", this.Principal)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *OperationDetail) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 15) + s = append(s, "&auditlog.OperationDetail{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "TargetUsers: "+fmt.Sprintf("%#v", this.TargetUsers)+",\n") + s = append(s, "Roles: "+fmt.Sprintf("%#v", this.Roles)+",\n") + s = append(s, "ClientCaFingerprints: "+fmt.Sprintf("%#v", this.ClientCaFingerprints)+",\n") + if this.SearchAttributeUpdate != nil { + s = append(s, "SearchAttributeUpdate: "+fmt.Sprintf("%#v", this.SearchAttributeUpdate)+",\n") + } + s = append(s, "AdditionalMessage: "+fmt.Sprintf("%#v", this.AdditionalMessage)+",\n") + s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") + s = append(s, "AccountFeatures: "+fmt.Sprintf("%#v", this.AccountFeatures)+",\n") + if this.ThirdPartyDetails != nil { + s = append(s, "ThirdPartyDetails: "+fmt.Sprintf("%#v", this.ThirdPartyDetails)+",\n") + } + if this.Access != nil { + s = append(s, "Access: "+fmt.Sprintf("%#v", this.Access)+",\n") + } + if this.NamespaceAccess != nil { + s = append(s, "NamespaceAccess: "+fmt.Sprintf("%#v", this.NamespaceAccess)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Access) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&auditlog.Access{") + if this.AccountAccess != nil { + s = append(s, "AccountAccess: "+fmt.Sprintf("%#v", this.AccountAccess)+",\n") + } + keysForNamespaceAccesses := make([]string, 0, len(this.NamespaceAccesses)) + for k, _ := range this.NamespaceAccesses { + keysForNamespaceAccesses = append(keysForNamespaceAccesses, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNamespaceAccesses) + mapStringForNamespaceAccesses := "map[string]*NamespaceAccess{" + for _, k := range keysForNamespaceAccesses { + mapStringForNamespaceAccesses += fmt.Sprintf("%#v: %#v,", k, this.NamespaceAccesses[k]) + } + mapStringForNamespaceAccesses += "}" + if this.NamespaceAccesses != nil { + s = append(s, "NamespaceAccesses: "+mapStringForNamespaceAccesses+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AccountAccess) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&auditlog.AccountAccess{") + s = append(s, "Role: "+fmt.Sprintf("%#v", this.Role)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *NamespaceAccess) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&auditlog.NamespaceAccess{") + s = append(s, "Permission: "+fmt.Sprintf("%#v", this.Permission)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *SearchAttributeUpdate) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&auditlog.SearchAttributeUpdate{") + s = append(s, "ExistingAttribute: "+fmt.Sprintf("%#v", this.ExistingAttribute)+",\n") + s = append(s, "NewAttribute: "+fmt.Sprintf("%#v", this.NewAttribute)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ThirdPartyLogDetail) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&auditlog.ThirdPartyLogDetail{") + s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") + s = append(s, "Source: "+fmt.Sprintf("%#v", this.Source)+",\n") + s = append(s, "RawMessage: "+fmt.Sprintf("%#v", this.RawMessage)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Principal) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&auditlog.Principal{") + s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") + s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") + s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringMessage(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func (m *LogRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LogRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LogRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Principal != nil { + { + size, err := m.Principal.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + if len(m.RequestId) > 0 { + i -= len(m.RequestId) + copy(dAtA[i:], m.RequestId) + i = encodeVarintMessage(dAtA, i, uint64(len(m.RequestId))) + i-- + dAtA[i] = 0x5a + } + if len(m.LogId) > 0 { + i -= len(m.LogId) + copy(dAtA[i:], m.LogId) + i = encodeVarintMessage(dAtA, i, uint64(len(m.LogId))) + i-- + dAtA[i] = 0x52 + } + if m.Version != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Version)) + i-- + dAtA[i] = 0x48 + } + if m.Category != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Category)) + i-- + dAtA[i] = 0x40 + } + if len(m.Status) > 0 { + i -= len(m.Status) + copy(dAtA[i:], m.Status) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Status))) + i-- + dAtA[i] = 0x3a + } + if m.Details != nil { + { + size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.Operation) > 0 { + i -= len(m.Operation) + copy(dAtA[i:], m.Operation) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Operation))) + i-- + dAtA[i] = 0x2a + } + if len(m.CallerIpAddress) > 0 { + i -= len(m.CallerIpAddress) + copy(dAtA[i:], m.CallerIpAddress) + i = encodeVarintMessage(dAtA, i, uint64(len(m.CallerIpAddress))) + i-- + dAtA[i] = 0x22 + } + if len(m.UserEmail) > 0 { + i -= len(m.UserEmail) + copy(dAtA[i:], m.UserEmail) + i = encodeVarintMessage(dAtA, i, uint64(len(m.UserEmail))) + i-- + dAtA[i] = 0x1a + } + if m.Level != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Level)) + i-- + dAtA[i] = 0x10 + } + if m.EmitTime != nil { + { + size, err := m.EmitTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *OperationDetail) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OperationDetail) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperationDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NamespaceAccess != nil { + { + size, err := m.NamespaceAccess.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + if m.Access != nil { + { + size, err := m.Access.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + if m.ThirdPartyDetails != nil { + { + size, err := m.ThirdPartyDetails.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + if len(m.AccountFeatures) > 0 { + for iNdEx := len(m.AccountFeatures) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.AccountFeatures[iNdEx]) + copy(dAtA[i:], m.AccountFeatures[iNdEx]) + i = encodeVarintMessage(dAtA, i, uint64(len(m.AccountFeatures[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(m.Region) > 0 { + i -= len(m.Region) + copy(dAtA[i:], m.Region) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Region))) + i-- + dAtA[i] = 0x3a + } + if len(m.AdditionalMessage) > 0 { + i -= len(m.AdditionalMessage) + copy(dAtA[i:], m.AdditionalMessage) + i = encodeVarintMessage(dAtA, i, uint64(len(m.AdditionalMessage))) + i-- + dAtA[i] = 0x32 + } + if m.SearchAttributeUpdate != nil { + { + size, err := m.SearchAttributeUpdate.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.ClientCaFingerprints) > 0 { + for iNdEx := len(m.ClientCaFingerprints) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ClientCaFingerprints[iNdEx]) + copy(dAtA[i:], m.ClientCaFingerprints[iNdEx]) + i = encodeVarintMessage(dAtA, i, uint64(len(m.ClientCaFingerprints[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.Roles) > 0 { + for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Roles[iNdEx]) + copy(dAtA[i:], m.Roles[iNdEx]) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Roles[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.TargetUsers) > 0 { + for iNdEx := len(m.TargetUsers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.TargetUsers[iNdEx]) + copy(dAtA[i:], m.TargetUsers[iNdEx]) + i = encodeVarintMessage(dAtA, i, uint64(len(m.TargetUsers[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Access) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Access) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Access) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NamespaceAccesses) > 0 { + for k := range m.NamespaceAccesses { + v := m.NamespaceAccesses[k] + baseI := i + if v != nil { + { + size, err := v.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintMessage(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintMessage(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + if m.AccountAccess != nil { + { + size, err := m.AccountAccess.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *AccountAccess) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AccountAccess) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccountAccess) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Role) > 0 { + i -= len(m.Role) + copy(dAtA[i:], m.Role) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Role))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *NamespaceAccess) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NamespaceAccess) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NamespaceAccess) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Permission) > 0 { + i -= len(m.Permission) + copy(dAtA[i:], m.Permission) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Permission))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *SearchAttributeUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SearchAttributeUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SearchAttributeUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NewAttribute) > 0 { + i -= len(m.NewAttribute) + copy(dAtA[i:], m.NewAttribute) + i = encodeVarintMessage(dAtA, i, uint64(len(m.NewAttribute))) + i-- + dAtA[i] = 0x12 + } + if len(m.ExistingAttribute) > 0 { + i -= len(m.ExistingAttribute) + copy(dAtA[i:], m.ExistingAttribute) + i = encodeVarintMessage(dAtA, i, uint64(len(m.ExistingAttribute))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ThirdPartyLogDetail) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ThirdPartyLogDetail) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ThirdPartyLogDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RawMessage) > 0 { + i -= len(m.RawMessage) + copy(dAtA[i:], m.RawMessage) + i = encodeVarintMessage(dAtA, i, uint64(len(m.RawMessage))) + i-- + dAtA[i] = 0x1a + } + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x12 + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Principal) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Principal) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Principal) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.Id) > 0 { + i -= len(m.Id) + copy(dAtA[i:], m.Id) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Id))) + i-- + dAtA[i] = 0x12 + } + if len(m.Type) > 0 { + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMessage(dAtA []byte, offset int, v uint64) int { + offset -= sovMessage(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *LogRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EmitTime != nil { + l = m.EmitTime.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if m.Level != 0 { + n += 1 + sovMessage(uint64(m.Level)) + } + l = len(m.UserEmail) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.CallerIpAddress) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.Operation) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + if m.Details != nil { + l = m.Details.Size() + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.Status) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + if m.Category != 0 { + n += 1 + sovMessage(uint64(m.Category)) + } + if m.Version != 0 { + n += 1 + sovMessage(uint64(m.Version)) + } + l = len(m.LogId) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.RequestId) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + if m.Principal != nil { + l = m.Principal.Size() + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *OperationDetail) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + if len(m.TargetUsers) > 0 { + for _, s := range m.TargetUsers { + l = len(s) + n += 1 + l + sovMessage(uint64(l)) + } + } + if len(m.Roles) > 0 { + for _, s := range m.Roles { + l = len(s) + n += 1 + l + sovMessage(uint64(l)) + } + } + if len(m.ClientCaFingerprints) > 0 { + for _, s := range m.ClientCaFingerprints { + l = len(s) + n += 1 + l + sovMessage(uint64(l)) + } + } + if m.SearchAttributeUpdate != nil { + l = m.SearchAttributeUpdate.Size() + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.AdditionalMessage) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.Region) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + if len(m.AccountFeatures) > 0 { + for _, s := range m.AccountFeatures { + l = len(s) + n += 1 + l + sovMessage(uint64(l)) + } + } + if m.ThirdPartyDetails != nil { + l = m.ThirdPartyDetails.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if m.Access != nil { + l = m.Access.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if m.NamespaceAccess != nil { + l = m.NamespaceAccess.Size() + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *Access) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AccountAccess != nil { + l = m.AccountAccess.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if len(m.NamespaceAccesses) > 0 { + for k, v := range m.NamespaceAccesses { + _ = k + _ = v + l = 0 + if v != nil { + l = v.Size() + l += 1 + sovMessage(uint64(l)) + } + mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + l + n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize)) + } + } + return n +} + +func (m *AccountAccess) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Role) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *NamespaceAccess) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Permission) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *SearchAttributeUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ExistingAttribute) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.NewAttribute) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *ThirdPartyLogDetail) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.Source) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.RawMessage) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *Principal) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Type) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.Id) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func sovMessage(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMessage(x uint64) (n int) { + return sovMessage(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *LogRecord) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LogRecord{`, + `EmitTime:` + strings.Replace(fmt.Sprintf("%v", this.EmitTime), "Timestamp", "types.Timestamp", 1) + `,`, + `Level:` + fmt.Sprintf("%v", this.Level) + `,`, + `UserEmail:` + fmt.Sprintf("%v", this.UserEmail) + `,`, + `CallerIpAddress:` + fmt.Sprintf("%v", this.CallerIpAddress) + `,`, + `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`, + `Details:` + strings.Replace(this.Details.String(), "OperationDetail", "OperationDetail", 1) + `,`, + `Status:` + fmt.Sprintf("%v", this.Status) + `,`, + `Category:` + fmt.Sprintf("%v", this.Category) + `,`, + `Version:` + fmt.Sprintf("%v", this.Version) + `,`, + `LogId:` + fmt.Sprintf("%v", this.LogId) + `,`, + `RequestId:` + fmt.Sprintf("%v", this.RequestId) + `,`, + `Principal:` + strings.Replace(this.Principal.String(), "Principal", "Principal", 1) + `,`, + `}`, + }, "") + return s +} +func (this *OperationDetail) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&OperationDetail{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `TargetUsers:` + fmt.Sprintf("%v", this.TargetUsers) + `,`, + `Roles:` + fmt.Sprintf("%v", this.Roles) + `,`, + `ClientCaFingerprints:` + fmt.Sprintf("%v", this.ClientCaFingerprints) + `,`, + `SearchAttributeUpdate:` + strings.Replace(this.SearchAttributeUpdate.String(), "SearchAttributeUpdate", "SearchAttributeUpdate", 1) + `,`, + `AdditionalMessage:` + fmt.Sprintf("%v", this.AdditionalMessage) + `,`, + `Region:` + fmt.Sprintf("%v", this.Region) + `,`, + `AccountFeatures:` + fmt.Sprintf("%v", this.AccountFeatures) + `,`, + `ThirdPartyDetails:` + strings.Replace(this.ThirdPartyDetails.String(), "ThirdPartyLogDetail", "ThirdPartyLogDetail", 1) + `,`, + `Access:` + strings.Replace(this.Access.String(), "Access", "Access", 1) + `,`, + `NamespaceAccess:` + strings.Replace(this.NamespaceAccess.String(), "NamespaceAccess", "NamespaceAccess", 1) + `,`, + `}`, + }, "") + return s +} +func (this *Access) String() string { + if this == nil { + return "nil" + } + keysForNamespaceAccesses := make([]string, 0, len(this.NamespaceAccesses)) + for k, _ := range this.NamespaceAccesses { + keysForNamespaceAccesses = append(keysForNamespaceAccesses, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNamespaceAccesses) + mapStringForNamespaceAccesses := "map[string]*NamespaceAccess{" + for _, k := range keysForNamespaceAccesses { + mapStringForNamespaceAccesses += fmt.Sprintf("%v: %v,", k, this.NamespaceAccesses[k]) + } + mapStringForNamespaceAccesses += "}" + s := strings.Join([]string{`&Access{`, + `AccountAccess:` + strings.Replace(this.AccountAccess.String(), "AccountAccess", "AccountAccess", 1) + `,`, + `NamespaceAccesses:` + mapStringForNamespaceAccesses + `,`, + `}`, + }, "") + return s +} +func (this *AccountAccess) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AccountAccess{`, + `Role:` + fmt.Sprintf("%v", this.Role) + `,`, + `}`, + }, "") + return s +} +func (this *NamespaceAccess) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NamespaceAccess{`, + `Permission:` + fmt.Sprintf("%v", this.Permission) + `,`, + `}`, + }, "") + return s +} +func (this *SearchAttributeUpdate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SearchAttributeUpdate{`, + `ExistingAttribute:` + fmt.Sprintf("%v", this.ExistingAttribute) + `,`, + `NewAttribute:` + fmt.Sprintf("%v", this.NewAttribute) + `,`, + `}`, + }, "") + return s +} +func (this *ThirdPartyLogDetail) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ThirdPartyLogDetail{`, + `Id:` + fmt.Sprintf("%v", this.Id) + `,`, + `Source:` + fmt.Sprintf("%v", this.Source) + `,`, + `RawMessage:` + fmt.Sprintf("%v", this.RawMessage) + `,`, + `}`, + }, "") + return s +} +func (this *Principal) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Principal{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Id:` + fmt.Sprintf("%v", this.Id) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func valueToStringMessage(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *LogRecord) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LogRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LogRecord: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EmitTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EmitTime == nil { + m.EmitTime = &types.Timestamp{} + } + if err := m.EmitTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) + } + m.Level = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Level |= LogLevel(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserEmail", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserEmail = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CallerIpAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CallerIpAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Operation = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Details", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Details == nil { + m.Details = &OperationDetail{} + } + if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Status = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Category", wireType) + } + m.Category = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Category |= LogCategory(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + } + m.Version = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Version |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LogId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LogId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RequestId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RequestId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Principal", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Principal == nil { + m.Principal = &Principal{} + } + if err := m.Principal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *OperationDetail) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OperationDetail: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OperationDetail: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetUsers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetUsers = append(m.TargetUsers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClientCaFingerprints", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClientCaFingerprints = append(m.ClientCaFingerprints, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributeUpdate", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SearchAttributeUpdate == nil { + m.SearchAttributeUpdate = &SearchAttributeUpdate{} + } + if err := m.SearchAttributeUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AdditionalMessage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AdditionalMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Region = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountFeatures", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AccountFeatures = append(m.AccountFeatures, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ThirdPartyDetails", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ThirdPartyDetails == nil { + m.ThirdPartyDetails = &ThirdPartyLogDetail{} + } + if err := m.ThirdPartyDetails.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Access", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Access == nil { + m.Access = &Access{} + } + if err := m.Access.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NamespaceAccess", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NamespaceAccess == nil { + m.NamespaceAccess = &NamespaceAccess{} + } + if err := m.NamespaceAccess.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Access) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Access: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Access: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccountAccess", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AccountAccess == nil { + m.AccountAccess = &AccountAccess{} + } + if err := m.AccountAccess.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NamespaceAccesses", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NamespaceAccesses == nil { + m.NamespaceAccesses = make(map[string]*NamespaceAccess) + } + var mapkey string + var mapvalue *NamespaceAccess + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthMessage + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMessage + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthMessage + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthMessage + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &NamespaceAccess{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.NamespaceAccesses[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AccountAccess) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AccountAccess: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AccountAccess: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Role = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NamespaceAccess) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NamespaceAccess: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NamespaceAccess: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Permission = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SearchAttributeUpdate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SearchAttributeUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SearchAttributeUpdate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExistingAttribute", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExistingAttribute = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NewAttribute", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NewAttribute = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ThirdPartyLogDetail) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ThirdPartyLogDetail: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ThirdPartyLogDetail: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RawMessage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RawMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Principal) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Principal: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Principal: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMessage(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMessage + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMessage + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMessage + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") +) diff --git a/protogen/api/cloud/cloudservice/v1/request_response.pb.go b/protogen/api/cloud/cloudservice/v1/request_response.pb.go index f87e3d01..8f6cc4b9 100644 --- a/protogen/api/cloud/cloudservice/v1/request_response.pb.go +++ b/protogen/api/cloud/cloudservice/v1/request_response.pb.go @@ -6,12 +6,15 @@ package cloudservice import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" + types "github.com/gogo/protobuf/types" v15 "github.com/temporalio/tcld/protogen/api/cloud/account/v1" + v16 "github.com/temporalio/tcld/protogen/api/cloud/auditlog/v1" v1 "github.com/temporalio/tcld/protogen/api/cloud/identity/v1" v12 "github.com/temporalio/tcld/protogen/api/cloud/namespace/v1" v14 "github.com/temporalio/tcld/protogen/api/cloud/nexus/v1" v11 "github.com/temporalio/tcld/protogen/api/cloud/operation/v1" v13 "github.com/temporalio/tcld/protogen/api/cloud/region/v1" + v17 "github.com/temporalio/tcld/protogen/api/cloud/usage/v1" io "io" math "math" math_bits "math/bits" @@ -1561,6 +1564,8 @@ type AddNamespaceRegionRequest struct { // The namespace to add the region to. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The id of the standby region to add to the namespace. + // The GetRegions API can be used to get the list of valid region ids. + // Example: "aws-us-west-2". Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` // The version of the namespace for which this add region operation is intended for. // The latest version can be found in the GetNamespace operation response. @@ -2391,85 +2396,6 @@ func (m *DeleteNexusEndpointResponse) GetAsyncOperation() *v11.AsyncOperation { return nil } -type GetAccountRequest struct { -} - -func (m *GetAccountRequest) Reset() { *m = GetAccountRequest{} } -func (*GetAccountRequest) ProtoMessage() {} -func (*GetAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{44} -} -func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAccountRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetAccountRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAccountRequest.Merge(m, src) -} -func (m *GetAccountRequest) XXX_Size() int { - return m.Size() -} -func (m *GetAccountRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetAccountRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetAccountRequest proto.InternalMessageInfo - -type GetAccountResponse struct { - // The account. - Account *v15.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` -} - -func (m *GetAccountResponse) Reset() { *m = GetAccountResponse{} } -func (*GetAccountResponse) ProtoMessage() {} -func (*GetAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{45} -} -func (m *GetAccountResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GetAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GetAccountResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *GetAccountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAccountResponse.Merge(m, src) -} -func (m *GetAccountResponse) XXX_Size() int { - return m.Size() -} -func (m *GetAccountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAccountResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetAccountResponse proto.InternalMessageInfo - -func (m *GetAccountResponse) GetAccount() *v15.Account { - if m != nil { - return m.Account - } - return nil -} - type UpdateAccountRequest struct { // The updated account specification to apply. Spec *v15.AccountSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` @@ -2484,7 +2410,7 @@ type UpdateAccountRequest struct { func (m *UpdateAccountRequest) Reset() { *m = UpdateAccountRequest{} } func (*UpdateAccountRequest) ProtoMessage() {} func (*UpdateAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{46} + return fileDescriptor_d04330087ace166d, []int{44} } func (m *UpdateAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2542,7 +2468,7 @@ type UpdateAccountResponse struct { func (m *UpdateAccountResponse) Reset() { *m = UpdateAccountResponse{} } func (*UpdateAccountResponse) ProtoMessage() {} func (*UpdateAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{47} + return fileDescriptor_d04330087ace166d, []int{45} } func (m *UpdateAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2586,14 +2512,16 @@ type GetUserGroupsRequest struct { PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Filter groups by the namespace they have access to - optional. Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` - // Filter groups by their name - optional. - GroupName string `protobuf:"bytes,4,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + // Filter groups by the display name - optional. + DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + // Filter groups by the google group specification - optional. + GoogleGroup *GetUserGroupsRequest_GoogleGroupFilter `protobuf:"bytes,5,opt,name=google_group,json=googleGroup,proto3" json:"google_group,omitempty"` } func (m *GetUserGroupsRequest) Reset() { *m = GetUserGroupsRequest{} } func (*GetUserGroupsRequest) ProtoMessage() {} func (*GetUserGroupsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{48} + return fileDescriptor_d04330087ace166d, []int{46} } func (m *GetUserGroupsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2643,9 +2571,62 @@ func (m *GetUserGroupsRequest) GetNamespace() string { return "" } -func (m *GetUserGroupsRequest) GetGroupName() string { +func (m *GetUserGroupsRequest) GetDisplayName() string { + if m != nil { + return m.DisplayName + } + return "" +} + +func (m *GetUserGroupsRequest) GetGoogleGroup() *GetUserGroupsRequest_GoogleGroupFilter { + if m != nil { + return m.GoogleGroup + } + return nil +} + +type GetUserGroupsRequest_GoogleGroupFilter struct { + // Filter groups by the google group email - optional. + EmailAddress string `protobuf:"bytes,1,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` +} + +func (m *GetUserGroupsRequest_GoogleGroupFilter) Reset() { + *m = GetUserGroupsRequest_GoogleGroupFilter{} +} +func (*GetUserGroupsRequest_GoogleGroupFilter) ProtoMessage() {} +func (*GetUserGroupsRequest_GoogleGroupFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{46, 0} +} +func (m *GetUserGroupsRequest_GoogleGroupFilter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetUserGroupsRequest_GoogleGroupFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetUserGroupsRequest_GoogleGroupFilter.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GetUserGroupsRequest_GoogleGroupFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetUserGroupsRequest_GoogleGroupFilter.Merge(m, src) +} +func (m *GetUserGroupsRequest_GoogleGroupFilter) XXX_Size() int { + return m.Size() +} +func (m *GetUserGroupsRequest_GoogleGroupFilter) XXX_DiscardUnknown() { + xxx_messageInfo_GetUserGroupsRequest_GoogleGroupFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_GetUserGroupsRequest_GoogleGroupFilter proto.InternalMessageInfo + +func (m *GetUserGroupsRequest_GoogleGroupFilter) GetEmailAddress() string { if m != nil { - return m.GroupName + return m.EmailAddress } return "" } @@ -2660,7 +2641,7 @@ type GetUserGroupsResponse struct { func (m *GetUserGroupsResponse) Reset() { *m = GetUserGroupsResponse{} } func (*GetUserGroupsResponse) ProtoMessage() {} func (*GetUserGroupsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{49} + return fileDescriptor_d04330087ace166d, []int{47} } func (m *GetUserGroupsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2711,7 +2692,7 @@ type GetUserGroupRequest struct { func (m *GetUserGroupRequest) Reset() { *m = GetUserGroupRequest{} } func (*GetUserGroupRequest) ProtoMessage() {} func (*GetUserGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{50} + return fileDescriptor_d04330087ace166d, []int{48} } func (m *GetUserGroupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2755,7 +2736,7 @@ type GetUserGroupResponse struct { func (m *GetUserGroupResponse) Reset() { *m = GetUserGroupResponse{} } func (*GetUserGroupResponse) ProtoMessage() {} func (*GetUserGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{51} + return fileDescriptor_d04330087ace166d, []int{49} } func (m *GetUserGroupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2802,7 +2783,7 @@ type CreateUserGroupRequest struct { func (m *CreateUserGroupRequest) Reset() { *m = CreateUserGroupRequest{} } func (*CreateUserGroupRequest) ProtoMessage() {} func (*CreateUserGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{52} + return fileDescriptor_d04330087ace166d, []int{50} } func (m *CreateUserGroupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2855,7 +2836,7 @@ type CreateUserGroupResponse struct { func (m *CreateUserGroupResponse) Reset() { *m = CreateUserGroupResponse{} } func (*CreateUserGroupResponse) ProtoMessage() {} func (*CreateUserGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{53} + return fileDescriptor_d04330087ace166d, []int{51} } func (m *CreateUserGroupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2914,7 +2895,7 @@ type UpdateUserGroupRequest struct { func (m *UpdateUserGroupRequest) Reset() { *m = UpdateUserGroupRequest{} } func (*UpdateUserGroupRequest) ProtoMessage() {} func (*UpdateUserGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{54} + return fileDescriptor_d04330087ace166d, []int{52} } func (m *UpdateUserGroupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2979,7 +2960,7 @@ type UpdateUserGroupResponse struct { func (m *UpdateUserGroupResponse) Reset() { *m = UpdateUserGroupResponse{} } func (*UpdateUserGroupResponse) ProtoMessage() {} func (*UpdateUserGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{55} + return fileDescriptor_d04330087ace166d, []int{53} } func (m *UpdateUserGroupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3029,7 +3010,7 @@ type DeleteUserGroupRequest struct { func (m *DeleteUserGroupRequest) Reset() { *m = DeleteUserGroupRequest{} } func (*DeleteUserGroupRequest) ProtoMessage() {} func (*DeleteUserGroupRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{56} + return fileDescriptor_d04330087ace166d, []int{54} } func (m *DeleteUserGroupRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3087,7 +3068,7 @@ type DeleteUserGroupResponse struct { func (m *DeleteUserGroupResponse) Reset() { *m = DeleteUserGroupResponse{} } func (*DeleteUserGroupResponse) ProtoMessage() {} func (*DeleteUserGroupResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{57} + return fileDescriptor_d04330087ace166d, []int{55} } func (m *DeleteUserGroupResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3140,7 +3121,7 @@ type SetUserGroupNamespaceAccessRequest struct { func (m *SetUserGroupNamespaceAccessRequest) Reset() { *m = SetUserGroupNamespaceAccessRequest{} } func (*SetUserGroupNamespaceAccessRequest) ProtoMessage() {} func (*SetUserGroupNamespaceAccessRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{58} + return fileDescriptor_d04330087ace166d, []int{56} } func (m *SetUserGroupNamespaceAccessRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3212,7 +3193,7 @@ type SetUserGroupNamespaceAccessResponse struct { func (m *SetUserGroupNamespaceAccessResponse) Reset() { *m = SetUserGroupNamespaceAccessResponse{} } func (*SetUserGroupNamespaceAccessResponse) ProtoMessage() {} func (*SetUserGroupNamespaceAccessResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{59} + return fileDescriptor_d04330087ace166d, []int{57} } func (m *SetUserGroupNamespaceAccessResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3258,7 +3239,7 @@ type CreateServiceAccountRequest struct { func (m *CreateServiceAccountRequest) Reset() { *m = CreateServiceAccountRequest{} } func (*CreateServiceAccountRequest) ProtoMessage() {} func (*CreateServiceAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{60} + return fileDescriptor_d04330087ace166d, []int{58} } func (m *CreateServiceAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3311,7 +3292,7 @@ type CreateServiceAccountResponse struct { func (m *CreateServiceAccountResponse) Reset() { *m = CreateServiceAccountResponse{} } func (*CreateServiceAccountResponse) ProtoMessage() {} func (*CreateServiceAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{61} + return fileDescriptor_d04330087ace166d, []int{59} } func (m *CreateServiceAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3362,7 +3343,7 @@ type GetServiceAccountRequest struct { func (m *GetServiceAccountRequest) Reset() { *m = GetServiceAccountRequest{} } func (*GetServiceAccountRequest) ProtoMessage() {} func (*GetServiceAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{62} + return fileDescriptor_d04330087ace166d, []int{60} } func (m *GetServiceAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3406,7 +3387,7 @@ type GetServiceAccountResponse struct { func (m *GetServiceAccountResponse) Reset() { *m = GetServiceAccountResponse{} } func (*GetServiceAccountResponse) ProtoMessage() {} func (*GetServiceAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{63} + return fileDescriptor_d04330087ace166d, []int{61} } func (m *GetServiceAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3453,7 +3434,7 @@ type GetServiceAccountsRequest struct { func (m *GetServiceAccountsRequest) Reset() { *m = GetServiceAccountsRequest{} } func (*GetServiceAccountsRequest) ProtoMessage() {} func (*GetServiceAccountsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{64} + return fileDescriptor_d04330087ace166d, []int{62} } func (m *GetServiceAccountsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3506,7 +3487,7 @@ type GetServiceAccountsResponse struct { func (m *GetServiceAccountsResponse) Reset() { *m = GetServiceAccountsResponse{} } func (*GetServiceAccountsResponse) ProtoMessage() {} func (*GetServiceAccountsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{65} + return fileDescriptor_d04330087ace166d, []int{63} } func (m *GetServiceAccountsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3564,7 +3545,7 @@ type UpdateServiceAccountRequest struct { func (m *UpdateServiceAccountRequest) Reset() { *m = UpdateServiceAccountRequest{} } func (*UpdateServiceAccountRequest) ProtoMessage() {} func (*UpdateServiceAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{66} + return fileDescriptor_d04330087ace166d, []int{64} } func (m *UpdateServiceAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3629,7 +3610,7 @@ type UpdateServiceAccountResponse struct { func (m *UpdateServiceAccountResponse) Reset() { *m = UpdateServiceAccountResponse{} } func (*UpdateServiceAccountResponse) ProtoMessage() {} func (*UpdateServiceAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{67} + return fileDescriptor_d04330087ace166d, []int{65} } func (m *UpdateServiceAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3678,7 +3659,7 @@ type DeleteServiceAccountRequest struct { func (m *DeleteServiceAccountRequest) Reset() { *m = DeleteServiceAccountRequest{} } func (*DeleteServiceAccountRequest) ProtoMessage() {} func (*DeleteServiceAccountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{68} + return fileDescriptor_d04330087ace166d, []int{66} } func (m *DeleteServiceAccountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3736,7 +3717,7 @@ type DeleteServiceAccountResponse struct { func (m *DeleteServiceAccountResponse) Reset() { *m = DeleteServiceAccountResponse{} } func (*DeleteServiceAccountResponse) ProtoMessage() {} func (*DeleteServiceAccountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{69} + return fileDescriptor_d04330087ace166d, []int{67} } func (m *DeleteServiceAccountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3782,13 +3763,16 @@ type GetApiKeysRequest struct { OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // Filter api keys by owner type - optional. // Possible values: user, service-account - OwnerType string `protobuf:"bytes,4,opt,name=owner_type,json=ownerType,proto3" json:"owner_type,omitempty"` + OwnerTypeDeprecated string `protobuf:"bytes,4,opt,name=owner_type_deprecated,json=ownerTypeDeprecated,proto3" json:"owner_type_deprecated,omitempty"` // Deprecated: Do not use. + // Filter api keys by owner type - optional. + // temporal:enums:replaces=owner_type_deprecated + OwnerType v1.OwnerType `protobuf:"varint,5,opt,name=owner_type,json=ownerType,proto3,enum=temporal.api.cloud.identity.v1.OwnerType" json:"owner_type,omitempty"` } func (m *GetApiKeysRequest) Reset() { *m = GetApiKeysRequest{} } func (*GetApiKeysRequest) ProtoMessage() {} func (*GetApiKeysRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{70} + return fileDescriptor_d04330087ace166d, []int{68} } func (m *GetApiKeysRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3838,24 +3822,32 @@ func (m *GetApiKeysRequest) GetOwnerId() string { return "" } -func (m *GetApiKeysRequest) GetOwnerType() string { +// Deprecated: Do not use. +func (m *GetApiKeysRequest) GetOwnerTypeDeprecated() string { if m != nil { - return m.OwnerType + return m.OwnerTypeDeprecated } return "" } +func (m *GetApiKeysRequest) GetOwnerType() v1.OwnerType { + if m != nil { + return m.OwnerType + } + return v1.OWNER_TYPE_UNSPECIFIED +} + type GetApiKeysResponse struct { - // The list of API keys in ascending ids order + // The list of api keys in ascending id order. ApiKeys []*v1.ApiKey `protobuf:"bytes,1,rep,name=api_keys,json=apiKeys,proto3" json:"api_keys,omitempty"` - // The next page's token + // The next page's token. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (m *GetApiKeysResponse) Reset() { *m = GetApiKeysResponse{} } func (*GetApiKeysResponse) ProtoMessage() {} func (*GetApiKeysResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{71} + return fileDescriptor_d04330087ace166d, []int{69} } func (m *GetApiKeysResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3899,14 +3891,14 @@ func (m *GetApiKeysResponse) GetNextPageToken() string { } type GetApiKeyRequest struct { - // The id of the API key to get + // The id of the api key to get. KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` } func (m *GetApiKeyRequest) Reset() { *m = GetApiKeyRequest{} } func (*GetApiKeyRequest) ProtoMessage() {} func (*GetApiKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{72} + return fileDescriptor_d04330087ace166d, []int{70} } func (m *GetApiKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3943,14 +3935,14 @@ func (m *GetApiKeyRequest) GetKeyId() string { } type GetApiKeyResponse struct { - // The API key + // The api key. ApiKey *v1.ApiKey `protobuf:"bytes,1,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"` } func (m *GetApiKeyResponse) Reset() { *m = GetApiKeyResponse{} } func (*GetApiKeyResponse) ProtoMessage() {} func (*GetApiKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{73} + return fileDescriptor_d04330087ace166d, []int{71} } func (m *GetApiKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3987,17 +3979,17 @@ func (m *GetApiKeyResponse) GetApiKey() *v1.ApiKey { } type CreateApiKeyRequest struct { - // The spec for the API key to invite - // Create api key only supports service-account owner type + // The spec for the api key to create. + // Create api key only supports service-account owner type for now. Spec *v1.ApiKeySpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` - // The id to use for this async operation - optional + // The id to use for this async operation - optional. AsyncOperationId string `protobuf:"bytes,2,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` } func (m *CreateApiKeyRequest) Reset() { *m = CreateApiKeyRequest{} } func (*CreateApiKeyRequest) ProtoMessage() {} func (*CreateApiKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{74} + return fileDescriptor_d04330087ace166d, []int{72} } func (m *CreateApiKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4041,18 +4033,20 @@ func (m *CreateApiKeyRequest) GetAsyncOperationId() string { } type CreateApiKeyResponse struct { - // The id of the API Key created + // The id of the api key created. KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - // The token of the API Key created + // The token of the api key created. + // This is a secret and should be stored securely. + // It will not be retrievable after this response. Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - // The async operation + // The async operation. AsyncOperation *v11.AsyncOperation `protobuf:"bytes,3,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` } func (m *CreateApiKeyResponse) Reset() { *m = CreateApiKeyResponse{} } func (*CreateApiKeyResponse) ProtoMessage() {} func (*CreateApiKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{75} + return fileDescriptor_d04330087ace166d, []int{73} } func (m *CreateApiKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4103,21 +4097,21 @@ func (m *CreateApiKeyResponse) GetAsyncOperation() *v11.AsyncOperation { } type UpdateApiKeyRequest struct { - // The id of the API key to update + // The id of the api key to update. KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - // The new API key specification + // The new api key specification. Spec *v1.ApiKeySpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // The version of the API key for which this update is intended for - // The latest version can be found in the GetAPIKey operation response + // The version of the api key for which this update is intended for. + // The latest version can be found in the GetApiKey operation response. ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional + // The id to use for this async operation - optional. AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` } func (m *UpdateApiKeyRequest) Reset() { *m = UpdateApiKeyRequest{} } func (*UpdateApiKeyRequest) ProtoMessage() {} func (*UpdateApiKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{76} + return fileDescriptor_d04330087ace166d, []int{74} } func (m *UpdateApiKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4175,14 +4169,14 @@ func (m *UpdateApiKeyRequest) GetAsyncOperationId() string { } type UpdateApiKeyResponse struct { - // The async operation + // The async operation. AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` } func (m *UpdateApiKeyResponse) Reset() { *m = UpdateApiKeyResponse{} } func (*UpdateApiKeyResponse) ProtoMessage() {} func (*UpdateApiKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{77} + return fileDescriptor_d04330087ace166d, []int{75} } func (m *UpdateApiKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4219,19 +4213,19 @@ func (m *UpdateApiKeyResponse) GetAsyncOperation() *v11.AsyncOperation { } type DeleteApiKeyRequest struct { - // The id of the API key to delete + // The id of the api key to delete. KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - // The version of the API key for which this delete is intended for - // The latest version can be found in the GetAPIKey operation response + // The version of the api key for which this delete is intended for. + // The latest version can be found in the GetApiKey operation response. ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The id to use for this async operation - optional + // The id to use for this async operation - optional. AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` } func (m *DeleteApiKeyRequest) Reset() { *m = DeleteApiKeyRequest{} } func (*DeleteApiKeyRequest) ProtoMessage() {} func (*DeleteApiKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{78} + return fileDescriptor_d04330087ace166d, []int{76} } func (m *DeleteApiKeyRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4282,14 +4276,14 @@ func (m *DeleteApiKeyRequest) GetAsyncOperationId() string { } type DeleteApiKeyResponse struct { - // The async operation + // The async operation. AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` } func (m *DeleteApiKeyResponse) Reset() { *m = DeleteApiKeyResponse{} } func (*DeleteApiKeyResponse) ProtoMessage() {} func (*DeleteApiKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d04330087ace166d, []int{79} + return fileDescriptor_d04330087ace166d, []int{77} } func (m *DeleteApiKeyResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4325,827 +4319,1248 @@ func (m *DeleteApiKeyResponse) GetAsyncOperation() *v11.AsyncOperation { return nil } -func init() { - proto.RegisterType((*GetUsersRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUsersRequest") - proto.RegisterType((*GetUsersResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUsersResponse") - proto.RegisterType((*GetUserRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUserRequest") - proto.RegisterType((*GetUserResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUserResponse") - proto.RegisterType((*CreateUserRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateUserRequest") - proto.RegisterType((*CreateUserResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateUserResponse") - proto.RegisterType((*UpdateUserRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateUserRequest") - proto.RegisterType((*UpdateUserResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateUserResponse") - proto.RegisterType((*DeleteUserRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteUserRequest") - proto.RegisterType((*DeleteUserResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteUserResponse") - proto.RegisterType((*SetUserNamespaceAccessRequest)(nil), "temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest") - proto.RegisterType((*SetUserNamespaceAccessResponse)(nil), "temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse") - proto.RegisterType((*GetAsyncOperationRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetAsyncOperationRequest") - proto.RegisterType((*GetAsyncOperationResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse") - proto.RegisterType((*CreateNamespaceRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest") - proto.RegisterType((*CreateNamespaceResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse") - proto.RegisterType((*GetNamespacesRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespacesRequest") - proto.RegisterType((*GetNamespacesResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespacesResponse") - proto.RegisterType((*GetNamespaceRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespaceRequest") - proto.RegisterType((*GetNamespaceResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespaceResponse") - proto.RegisterType((*UpdateNamespaceRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest") - proto.RegisterType((*UpdateNamespaceResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse") - proto.RegisterType((*RenameCustomSearchAttributeRequest)(nil), "temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeRequest") - proto.RegisterType((*RenameCustomSearchAttributeResponse)(nil), "temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse") - proto.RegisterType((*DeleteNamespaceRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNamespaceRequest") - proto.RegisterType((*DeleteNamespaceResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNamespaceResponse") - proto.RegisterType((*FailoverNamespaceRegionRequest)(nil), "temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionRequest") - proto.RegisterType((*FailoverNamespaceRegionResponse)(nil), "temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionResponse") - proto.RegisterType((*AddNamespaceRegionRequest)(nil), "temporal.api.cloud.cloudservice.v1.AddNamespaceRegionRequest") - proto.RegisterType((*AddNamespaceRegionResponse)(nil), "temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse") - proto.RegisterType((*GetRegionsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetRegionsRequest") - proto.RegisterType((*GetRegionsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetRegionsResponse") - proto.RegisterType((*GetRegionRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetRegionRequest") - proto.RegisterType((*GetRegionResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetRegionResponse") - proto.RegisterType((*GetNexusEndpointsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNexusEndpointsRequest") - proto.RegisterType((*GetNexusEndpointsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse") - proto.RegisterType((*GetNexusEndpointRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNexusEndpointRequest") - proto.RegisterType((*GetNexusEndpointResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse") - proto.RegisterType((*CreateNexusEndpointRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest") - proto.RegisterType((*CreateNexusEndpointResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse") - proto.RegisterType((*UpdateNexusEndpointRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest") - proto.RegisterType((*UpdateNexusEndpointResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse") - proto.RegisterType((*DeleteNexusEndpointRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointRequest") - proto.RegisterType((*DeleteNexusEndpointResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse") - proto.RegisterType((*GetAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetAccountRequest") - proto.RegisterType((*GetAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetAccountResponse") - proto.RegisterType((*UpdateAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateAccountRequest") - proto.RegisterType((*UpdateAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateAccountResponse") - proto.RegisterType((*GetUserGroupsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest") - proto.RegisterType((*GetUserGroupsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse") - proto.RegisterType((*GetUserGroupRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupRequest") - proto.RegisterType((*GetUserGroupResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupResponse") - proto.RegisterType((*CreateUserGroupRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest") - proto.RegisterType((*CreateUserGroupResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse") - proto.RegisterType((*UpdateUserGroupRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest") - proto.RegisterType((*UpdateUserGroupResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse") - proto.RegisterType((*DeleteUserGroupRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteUserGroupRequest") - proto.RegisterType((*DeleteUserGroupResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse") - proto.RegisterType((*SetUserGroupNamespaceAccessRequest)(nil), "temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest") - proto.RegisterType((*SetUserGroupNamespaceAccessResponse)(nil), "temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse") - proto.RegisterType((*CreateServiceAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest") - proto.RegisterType((*CreateServiceAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse") - proto.RegisterType((*GetServiceAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetServiceAccountRequest") - proto.RegisterType((*GetServiceAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse") - proto.RegisterType((*GetServiceAccountsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetServiceAccountsRequest") - proto.RegisterType((*GetServiceAccountsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse") - proto.RegisterType((*UpdateServiceAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest") - proto.RegisterType((*UpdateServiceAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse") - proto.RegisterType((*DeleteServiceAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteServiceAccountRequest") - proto.RegisterType((*DeleteServiceAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse") - proto.RegisterType((*GetApiKeysRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetApiKeysRequest") - proto.RegisterType((*GetApiKeysResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetApiKeysResponse") - proto.RegisterType((*GetApiKeyRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetApiKeyRequest") - proto.RegisterType((*GetApiKeyResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetApiKeyResponse") - proto.RegisterType((*CreateApiKeyRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest") - proto.RegisterType((*CreateApiKeyResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse") - proto.RegisterType((*UpdateApiKeyRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest") - proto.RegisterType((*UpdateApiKeyResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse") - proto.RegisterType((*DeleteApiKeyRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteApiKeyRequest") - proto.RegisterType((*DeleteApiKeyResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse") +type GetAuditLogsRequest struct { + // The requested size of the page to retrieve - optional. + // Cannot exceed 1000. Defaults to 100. + PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // The page token if this is continuing from another response - optional. + PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + // Filter for UTC time >= (defaults to 30 days ago) - optional. + StartTimeInclusive *types.Timestamp `protobuf:"bytes,3,opt,name=start_time_inclusive,json=startTimeInclusive,proto3" json:"start_time_inclusive,omitempty"` + // Filter for UTC time < (defaults to current time) - optional. + EndTimeExclusive *types.Timestamp `protobuf:"bytes,4,opt,name=end_time_exclusive,json=endTimeExclusive,proto3" json:"end_time_exclusive,omitempty"` } -func init() { - proto.RegisterFile("temporal/api/cloud/cloudservice/v1/request_response.proto", fileDescriptor_d04330087ace166d) +func (m *GetAuditLogsRequest) Reset() { *m = GetAuditLogsRequest{} } +func (*GetAuditLogsRequest) ProtoMessage() {} +func (*GetAuditLogsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{78} } - -var fileDescriptor_d04330087ace166d = []byte{ - // 1835 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0x4b, 0x6f, 0x1c, 0xc5, - 0x16, 0x76, 0x8d, 0x3d, 0x7e, 0x9c, 0xe8, 0xc6, 0x76, 0xdb, 0xf1, 0x3b, 0x13, 0xdf, 0xce, 0x4d, - 0x64, 0xfb, 0x26, 0xe3, 0x9b, 0x44, 0x57, 0x82, 0x10, 0x02, 0x4e, 0x20, 0x8e, 0x89, 0x14, 0x92, - 0xb1, 0x93, 0x20, 0x24, 0x34, 0x74, 0x66, 0x0a, 0xd3, 0xb2, 0xdd, 0xdd, 0xe9, 0xee, 0x19, 0x7b, - 0xc2, 0xc2, 0x3c, 0x05, 0x01, 0xc4, 0x43, 0x48, 0x88, 0x4d, 0x76, 0x08, 0x21, 0x36, 0xac, 0xf8, - 0x05, 0x08, 0xc4, 0x8e, 0x48, 0x08, 0x29, 0x4b, 0xe2, 0x6c, 0x58, 0xb0, 0xc8, 0x92, 0x1d, 0xa8, - 0xeb, 0x35, 0xdd, 0x33, 0xd5, 0xe3, 0x9e, 0xc9, 0x54, 0xc4, 0xc6, 0x72, 0x57, 0xd7, 0x39, 0xf5, - 0x9d, 0xef, 0x54, 0x9d, 0x47, 0xf5, 0xc0, 0xe3, 0x3e, 0xde, 0x70, 0x6c, 0xd7, 0x58, 0x9f, 0x37, - 0x1c, 0x73, 0xbe, 0xb0, 0x6e, 0x97, 0x8a, 0xf4, 0xaf, 0x87, 0xdd, 0xb2, 0x59, 0xc0, 0xf3, 0x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10, 0x4e, 0x52, 0xaa, 0x25, 0x92, 0x66, - 0x61, 0xc0, 0xc5, 0x9e, 0x5d, 0x72, 0x0b, 0x38, 0x5f, 0xc6, 0xae, 0x17, 0xd8, 0x41, 0xb7, 0x69, - 0x3f, 0x1f, 0xbf, 0x4a, 0x87, 0x63, 0xf8, 0xec, 0x8a, 0xe1, 0xd3, 0x02, 0x2d, 0x6c, 0x04, 0xa3, - 0x53, 0xc2, 0x1a, 0x6a, 0x0f, 0x6b, 0xef, 0x20, 0x18, 0x7c, 0x06, 0xaf, 0xe3, 0x84, 0xac, 0xc9, - 0xec, 0x4e, 0x35, 0x63, 0x77, 0x67, 0xbc, 0xdd, 0x61, 0x18, 0xca, 0xed, 0xfe, 0x13, 0xc1, 0xfe, - 0x65, 0x7a, 0x0c, 0x2f, 0xf2, 0xe8, 0xb1, 0x50, 0x28, 0x60, 0x4f, 0x84, 0xae, 0x48, 0xa0, 0x41, - 0x35, 0x81, 0x26, 0xcc, 0x50, 0x2a, 0xc2, 0xd0, 0x22, 0x74, 0x1b, 0x44, 0x0f, 0x31, 0x35, 0x06, - 0x69, 0x78, 0x67, 0xd5, 0x2e, 0xcf, 0xc4, 0xa5, 0x54, 0x77, 0x35, 0x43, 0x75, 0x3a, 0x86, 0xea, - 0x9b, 0x90, 0x89, 0xb3, 0x5c, 0x39, 0xed, 0xe7, 0x61, 0x6c, 0x11, 0xfb, 0x35, 0x93, 0x18, 0xe1, - 0x72, 0x2b, 0x50, 0x8c, 0x15, 0x25, 0x18, 0x97, 0x68, 0x52, 0x6e, 0xc0, 0xfb, 0x08, 0x46, 0x68, - 0xbc, 0x13, 0xe4, 0x71, 0xfc, 0x67, 0x22, 0x11, 0x25, 0x2b, 0x5b, 0x49, 0xec, 0x9f, 0x88, 0xe3, - 0x77, 0x0d, 0xbe, 0x71, 0x87, 0xe6, 0x53, 0x04, 0xa3, 0x75, 0x60, 0x18, 0x05, 0x8d, 0xb7, 0xaf, - 0xba, 0x30, 0xfc, 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43, 0xa4, 0x18, - 0xae, 0x35, 0x84, 0x91, 0x74, 0x16, 0xfa, 0x30, 0x1f, 0x64, 0x7e, 0x3a, 0x24, 0x4d, 0xe8, 0x81, - 0x78, 0x40, 0x13, 0x57, 0x91, 0xab, 0xca, 0x25, 0x2e, 0x84, 0x4e, 0xc2, 0x68, 0x2d, 0x12, 0xce, - 0xe8, 0x01, 0xd8, 0xc3, 0xf5, 0x55, 0x0b, 0x7b, 0xe0, 0x43, 0x4b, 0x45, 0xfd, 0xa5, 0x7a, 0x77, - 0x08, 0x23, 0x16, 0xa0, 0x97, 0xcf, 0x64, 0xbe, 0x4e, 0x68, 0x83, 0x10, 0xd3, 0x6f, 0x21, 0x98, - 0x60, 0xd5, 0xb2, 0x0c, 0xde, 0x93, 0x91, 0x5b, 0x93, 0xd9, 0x44, 0xda, 0x5b, 0xbe, 0x36, 0xf9, - 0x02, 0xc1, 0xa4, 0x14, 0x0b, 0x33, 0x77, 0x37, 0xae, 0x14, 0x16, 0xf0, 0xbf, 0x22, 0x98, 0x60, - 0xe5, 0x55, 0x2b, 0x5e, 0x14, 0x3c, 0xa6, 0x5a, 0xe3, 0x51, 0x59, 0x3c, 0xdd, 0x84, 0x49, 0xa9, - 0x59, 0xca, 0x03, 0xea, 0xe7, 0x08, 0x26, 0x58, 0xbe, 0x6f, 0x89, 0x50, 0x65, 0x75, 0xc8, 0x26, - 0x4c, 0x4a, 0x71, 0x3d, 0xa2, 0x14, 0xb3, 0x40, 0x2f, 0x92, 0x79, 0x8a, 0xb9, 0x4a, 0x52, 0x8c, - 0x18, 0x64, 0x20, 0x9e, 0x86, 0x1e, 0x76, 0xe1, 0xcc, 0x16, 0x3f, 0x2c, 0x5b, 0x9c, 0x4d, 0x21, - 0x4b, 0x33, 0x05, 0x5c, 0x4c, 0xff, 0x16, 0xc1, 0x30, 0x75, 0x7c, 0x74, 0x41, 0xed, 0x74, 0xe4, - 0xc0, 0xcf, 0x25, 0xd3, 0xbb, 0xcb, 0x4e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60, 0x27, 0x83, 0x3e, 0xb9, 0x9f, 0xe9, - 0xb8, 0x73, 0x3f, 0xd3, 0x71, 0xf7, 0x7e, 0xa6, 0xe3, 0xc5, 0xff, 0xaf, 0xda, 0xd5, 0x85, 0x4d, - 0x3b, 0xfe, 0xd7, 0xa5, 0x4f, 0x84, 0x9f, 0xaf, 0x77, 0x93, 0x9f, 0x49, 0x9e, 0xf8, 0x3b, 0x00, - 0x00, 0xff, 0xff, 0xc6, 0xd9, 0x6e, 0x86, 0x97, 0x2a, 0x00, 0x00, +func (m *GetAuditLogsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) } - -func (this *GetUsersRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*GetUsersRequest) - if !ok { - that2, ok := that.(GetUsersRequest) - if ok { - that1 = &that2 - } else { - return false +func (m *GetAuditLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAuditLogsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if this.PageToken != that1.PageToken { - return false +} +func (m *GetAuditLogsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAuditLogsRequest.Merge(m, src) +} +func (m *GetAuditLogsRequest) XXX_Size() int { + return m.Size() +} +func (m *GetAuditLogsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetAuditLogsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetAuditLogsRequest proto.InternalMessageInfo + +func (m *GetAuditLogsRequest) GetPageSize() int32 { + if m != nil { + return m.PageSize } - if this.Email != that1.Email { - return false + return 0 +} + +func (m *GetAuditLogsRequest) GetPageToken() string { + if m != nil { + return m.PageToken } - if this.Namespace != that1.Namespace { - return false + return "" +} + +func (m *GetAuditLogsRequest) GetStartTimeInclusive() *types.Timestamp { + if m != nil { + return m.StartTimeInclusive } - return true + return nil } -func (this *GetUsersResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *GetAuditLogsRequest) GetEndTimeExclusive() *types.Timestamp { + if m != nil { + return m.EndTimeExclusive } + return nil +} - that1, ok := that.(*GetUsersResponse) - if !ok { - that2, ok := that.(GetUsersResponse) - if ok { - that1 = &that2 - } else { - return false +type GetAuditLogsResponse struct { + // The list of audit logs ordered by inserted time, emit time, log_id + Logs []*v16.LogRecord `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` + // The next page's token. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (m *GetAuditLogsResponse) Reset() { *m = GetAuditLogsResponse{} } +func (*GetAuditLogsResponse) ProtoMessage() {} +func (*GetAuditLogsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{79} +} +func (m *GetAuditLogsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAuditLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAuditLogsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false +} +func (m *GetAuditLogsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAuditLogsResponse.Merge(m, src) +} +func (m *GetAuditLogsResponse) XXX_Size() int { + return m.Size() +} +func (m *GetAuditLogsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetAuditLogsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetAuditLogsResponse proto.InternalMessageInfo + +func (m *GetAuditLogsResponse) GetLogs() []*v16.LogRecord { + if m != nil { + return m.Logs } - if len(this.Users) != len(that1.Users) { - return false + return nil +} + +func (m *GetAuditLogsResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken } - for i := range this.Users { - if !this.Users[i].Equal(that1.Users[i]) { - return false + return "" +} + +type GetUsageRequest struct { + // Filter for UTC time >= - optional. + // Defaults to: start of the current month. + // Must be: within the last 90 days from the current date. + // Must be: midnight UTC time. + StartTimeInclusive *types.Timestamp `protobuf:"bytes,1,opt,name=start_time_inclusive,json=startTimeInclusive,proto3" json:"start_time_inclusive,omitempty"` + // Filter for UTC time < - optional. + // Defaults to: start of the next UTC day. + // Must be: within the last 90 days from the current date. + // Must be: midnight UTC time. + EndTimeExclusive *types.Timestamp `protobuf:"bytes,2,opt,name=end_time_exclusive,json=endTimeExclusive,proto3" json:"end_time_exclusive,omitempty"` + // The requested size of the page to retrieve - optional. + // Each count corresponds to a single object - per day per namespace + // Cannot exceed 1000. Defaults to 100. + PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // The page token if this is continuing from another response - optional. + PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (m *GetUsageRequest) Reset() { *m = GetUsageRequest{} } +func (*GetUsageRequest) ProtoMessage() {} +func (*GetUsageRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{80} +} +func (m *GetUsageRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetUsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetUsageRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if this.NextPageToken != that1.NextPageToken { - return false - } - return true } -func (this *GetUserRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (m *GetUsageRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetUsageRequest.Merge(m, src) +} +func (m *GetUsageRequest) XXX_Size() int { + return m.Size() +} +func (m *GetUsageRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetUsageRequest.DiscardUnknown(m) +} - that1, ok := that.(*GetUserRequest) - if !ok { - that2, ok := that.(GetUserRequest) - if ok { - that1 = &that2 - } else { - return false - } +var xxx_messageInfo_GetUsageRequest proto.InternalMessageInfo + +func (m *GetUsageRequest) GetStartTimeInclusive() *types.Timestamp { + if m != nil { + return m.StartTimeInclusive } - if that1 == nil { - return this == nil - } else if this == nil { - return false + return nil +} + +func (m *GetUsageRequest) GetEndTimeExclusive() *types.Timestamp { + if m != nil { + return m.EndTimeExclusive } - if this.UserId != that1.UserId { - return false + return nil +} + +func (m *GetUsageRequest) GetPageSize() int32 { + if m != nil { + return m.PageSize } - return true + return 0 } -func (this *GetUserResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *GetUsageRequest) GetPageToken() string { + if m != nil { + return m.PageToken } + return "" +} - that1, ok := that.(*GetUserResponse) - if !ok { - that2, ok := that.(GetUserResponse) - if ok { - that1 = &that2 - } else { - return false +type GetUsageResponse struct { + // The list of data based on granularity (per Day for now) + // Ordered by: time range in ascending order + Summaries []*v17.Summary `protobuf:"bytes,1,rep,name=summaries,proto3" json:"summaries,omitempty"` + // The next page's token. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (m *GetUsageResponse) Reset() { *m = GetUsageResponse{} } +func (*GetUsageResponse) ProtoMessage() {} +func (*GetUsageResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{81} +} +func (m *GetUsageResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetUsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetUsageResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.User.Equal(that1.User) { - return false +} +func (m *GetUsageResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetUsageResponse.Merge(m, src) +} +func (m *GetUsageResponse) XXX_Size() int { + return m.Size() +} +func (m *GetUsageResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetUsageResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetUsageResponse proto.InternalMessageInfo + +func (m *GetUsageResponse) GetSummaries() []*v17.Summary { + if m != nil { + return m.Summaries } - return true + return nil } -func (this *CreateUserRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *GetUsageResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken } + return "" +} - that1, ok := that.(*CreateUserRequest) - if !ok { - that2, ok := that.(CreateUserRequest) - if ok { - that1 = &that2 - } else { - return false +type GetAccountRequest struct { +} + +func (m *GetAccountRequest) Reset() { *m = GetAccountRequest{} } +func (*GetAccountRequest) ProtoMessage() {} +func (*GetAccountRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{82} +} +func (m *GetAccountRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAccountRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Spec.Equal(that1.Spec) { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { - return false - } - return true } -func (this *CreateUserResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (m *GetAccountRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAccountRequest.Merge(m, src) +} +func (m *GetAccountRequest) XXX_Size() int { + return m.Size() +} +func (m *GetAccountRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetAccountRequest.DiscardUnknown(m) +} - that1, ok := that.(*CreateUserResponse) - if !ok { - that2, ok := that.(CreateUserResponse) - if ok { - that1 = &that2 - } else { - return false +var xxx_messageInfo_GetAccountRequest proto.InternalMessageInfo + +type GetAccountResponse struct { + // The account. + Account *v15.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` +} + +func (m *GetAccountResponse) Reset() { *m = GetAccountResponse{} } +func (*GetAccountResponse) ProtoMessage() {} +func (*GetAccountResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{83} +} +func (m *GetAccountResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetAccountResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.UserId != that1.UserId { - return false - } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { - return false - } - return true } -func (this *UpdateUserRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil +func (m *GetAccountResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetAccountResponse.Merge(m, src) +} +func (m *GetAccountResponse) XXX_Size() int { + return m.Size() +} +func (m *GetAccountResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetAccountResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetAccountResponse proto.InternalMessageInfo + +func (m *GetAccountResponse) GetAccount() *v15.Account { + if m != nil { + return m.Account } + return nil +} - that1, ok := that.(*UpdateUserRequest) - if !ok { - that2, ok := that.(UpdateUserRequest) - if ok { - that1 = &that2 - } else { - return false +type CreateNamespaceExportSinkRequest struct { + // The namespace under which the sink is configured. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // The specification for the export sink. + Spec *v12.ExportSinkSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Optional. The ID to use for this async operation. + AsyncOperationId string `protobuf:"bytes,3,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` +} + +func (m *CreateNamespaceExportSinkRequest) Reset() { *m = CreateNamespaceExportSinkRequest{} } +func (*CreateNamespaceExportSinkRequest) ProtoMessage() {} +func (*CreateNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{84} +} +func (m *CreateNamespaceExportSinkRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateNamespaceExportSinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateNamespaceExportSinkRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.UserId != that1.UserId { - return false - } - if !this.Spec.Equal(that1.Spec) { - return false - } - if this.ResourceVersion != that1.ResourceVersion { - return false +} +func (m *CreateNamespaceExportSinkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNamespaceExportSinkRequest.Merge(m, src) +} +func (m *CreateNamespaceExportSinkRequest) XXX_Size() int { + return m.Size() +} +func (m *CreateNamespaceExportSinkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNamespaceExportSinkRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNamespaceExportSinkRequest proto.InternalMessageInfo + +func (m *CreateNamespaceExportSinkRequest) GetNamespace() string { + if m != nil { + return m.Namespace } - if this.AsyncOperationId != that1.AsyncOperationId { - return false + return "" +} + +func (m *CreateNamespaceExportSinkRequest) GetSpec() *v12.ExportSinkSpec { + if m != nil { + return m.Spec } - return true + return nil } -func (this *UpdateUserResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *CreateNamespaceExportSinkRequest) GetAsyncOperationId() string { + if m != nil { + return m.AsyncOperationId } + return "" +} - that1, ok := that.(*UpdateUserResponse) - if !ok { - that2, ok := that.(UpdateUserResponse) - if ok { - that1 = &that2 - } else { - return false +type CreateNamespaceExportSinkResponse struct { + // The async operation. + AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` +} + +func (m *CreateNamespaceExportSinkResponse) Reset() { *m = CreateNamespaceExportSinkResponse{} } +func (*CreateNamespaceExportSinkResponse) ProtoMessage() {} +func (*CreateNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{85} +} +func (m *CreateNamespaceExportSinkResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *CreateNamespaceExportSinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_CreateNamespaceExportSinkResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { - return false - } - return true } -func (this *DeleteUserRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil +func (m *CreateNamespaceExportSinkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CreateNamespaceExportSinkResponse.Merge(m, src) +} +func (m *CreateNamespaceExportSinkResponse) XXX_Size() int { + return m.Size() +} +func (m *CreateNamespaceExportSinkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_CreateNamespaceExportSinkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_CreateNamespaceExportSinkResponse proto.InternalMessageInfo + +func (m *CreateNamespaceExportSinkResponse) GetAsyncOperation() *v11.AsyncOperation { + if m != nil { + return m.AsyncOperation } + return nil +} - that1, ok := that.(*DeleteUserRequest) - if !ok { - that2, ok := that.(DeleteUserRequest) - if ok { - that1 = &that2 - } else { - return false +type GetNamespaceExportSinkRequest struct { + // The namespace to which the sink belongs. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // The name of the sink to retrieve. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *GetNamespaceExportSinkRequest) Reset() { *m = GetNamespaceExportSinkRequest{} } +func (*GetNamespaceExportSinkRequest) ProtoMessage() {} +func (*GetNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{86} +} +func (m *GetNamespaceExportSinkRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetNamespaceExportSinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetNamespaceExportSinkRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.UserId != that1.UserId { - return false - } - if this.ResourceVersion != that1.ResourceVersion { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { - return false - } - return true } -func (this *DeleteUserResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (m *GetNamespaceExportSinkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNamespaceExportSinkRequest.Merge(m, src) +} +func (m *GetNamespaceExportSinkRequest) XXX_Size() int { + return m.Size() +} +func (m *GetNamespaceExportSinkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetNamespaceExportSinkRequest.DiscardUnknown(m) +} - that1, ok := that.(*DeleteUserResponse) - if !ok { - that2, ok := that.(DeleteUserResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { - return false +var xxx_messageInfo_GetNamespaceExportSinkRequest proto.InternalMessageInfo + +func (m *GetNamespaceExportSinkRequest) GetNamespace() string { + if m != nil { + return m.Namespace } - return true + return "" } -func (this *SetUserNamespaceAccessRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SetUserNamespaceAccessRequest) - if !ok { - that2, ok := that.(SetUserNamespaceAccessRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Namespace != that1.Namespace { - return false - } - if this.UserId != that1.UserId { - return false - } - if !this.Access.Equal(that1.Access) { - return false - } - if this.ResourceVersion != that1.ResourceVersion { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { - return false +func (m *GetNamespaceExportSinkRequest) GetName() string { + if m != nil { + return m.Name } - return true + return "" } -func (this *SetUserNamespaceAccessResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*SetUserNamespaceAccessResponse) - if !ok { - that2, ok := that.(SetUserNamespaceAccessResponse) - if ok { - that1 = &that2 - } else { - return false +type GetNamespaceExportSinkResponse struct { + // The export sink retrieved. + Sink *v12.ExportSink `protobuf:"bytes,1,opt,name=sink,proto3" json:"sink,omitempty"` +} + +func (m *GetNamespaceExportSinkResponse) Reset() { *m = GetNamespaceExportSinkResponse{} } +func (*GetNamespaceExportSinkResponse) ProtoMessage() {} +func (*GetNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{87} +} +func (m *GetNamespaceExportSinkResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetNamespaceExportSinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetNamespaceExportSinkResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { - return false - } - return true } -func (this *GetAsyncOperationRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil +func (m *GetNamespaceExportSinkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNamespaceExportSinkResponse.Merge(m, src) +} +func (m *GetNamespaceExportSinkResponse) XXX_Size() int { + return m.Size() +} +func (m *GetNamespaceExportSinkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetNamespaceExportSinkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetNamespaceExportSinkResponse proto.InternalMessageInfo + +func (m *GetNamespaceExportSinkResponse) GetSink() *v12.ExportSink { + if m != nil { + return m.Sink } + return nil +} - that1, ok := that.(*GetAsyncOperationRequest) - if !ok { - that2, ok := that.(GetAsyncOperationRequest) - if ok { - that1 = &that2 - } else { - return false +type GetNamespaceExportSinksRequest struct { + // The namespace to which the sinks belong. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // The requested size of the page to retrieve. Cannot exceed 1000. + // Defaults to 100 if not specified. + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + // The page token if this is continuing from another response - optional. + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` +} + +func (m *GetNamespaceExportSinksRequest) Reset() { *m = GetNamespaceExportSinksRequest{} } +func (*GetNamespaceExportSinksRequest) ProtoMessage() {} +func (*GetNamespaceExportSinksRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{88} +} +func (m *GetNamespaceExportSinksRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetNamespaceExportSinksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetNamespaceExportSinksRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false +} +func (m *GetNamespaceExportSinksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNamespaceExportSinksRequest.Merge(m, src) +} +func (m *GetNamespaceExportSinksRequest) XXX_Size() int { + return m.Size() +} +func (m *GetNamespaceExportSinksRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetNamespaceExportSinksRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetNamespaceExportSinksRequest proto.InternalMessageInfo + +func (m *GetNamespaceExportSinksRequest) GetNamespace() string { + if m != nil { + return m.Namespace } - if this.AsyncOperationId != that1.AsyncOperationId { - return false + return "" +} + +func (m *GetNamespaceExportSinksRequest) GetPageSize() int32 { + if m != nil { + return m.PageSize } - return true + return 0 } -func (this *GetAsyncOperationResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *GetNamespaceExportSinksRequest) GetPageToken() string { + if m != nil { + return m.PageToken } + return "" +} - that1, ok := that.(*GetAsyncOperationResponse) - if !ok { - that2, ok := that.(GetAsyncOperationResponse) - if ok { - that1 = &that2 - } else { - return false +type GetNamespaceExportSinksResponse struct { + // The list of export sinks retrieved. + Sinks []*v12.ExportSink `protobuf:"bytes,1,rep,name=sinks,proto3" json:"sinks,omitempty"` + // The next page token, set if there is another page. + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` +} + +func (m *GetNamespaceExportSinksResponse) Reset() { *m = GetNamespaceExportSinksResponse{} } +func (*GetNamespaceExportSinksResponse) ProtoMessage() {} +func (*GetNamespaceExportSinksResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{89} +} +func (m *GetNamespaceExportSinksResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GetNamespaceExportSinksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GetNamespaceExportSinksResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { - return false +} +func (m *GetNamespaceExportSinksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNamespaceExportSinksResponse.Merge(m, src) +} +func (m *GetNamespaceExportSinksResponse) XXX_Size() int { + return m.Size() +} +func (m *GetNamespaceExportSinksResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetNamespaceExportSinksResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetNamespaceExportSinksResponse proto.InternalMessageInfo + +func (m *GetNamespaceExportSinksResponse) GetSinks() []*v12.ExportSink { + if m != nil { + return m.Sinks } - return true + return nil } -func (this *CreateNamespaceRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *GetNamespaceExportSinksResponse) GetNextPageToken() string { + if m != nil { + return m.NextPageToken } + return "" +} - that1, ok := that.(*CreateNamespaceRequest) - if !ok { - that2, ok := that.(CreateNamespaceRequest) - if ok { - that1 = &that2 - } else { - return false +type UpdateNamespaceExportSinkRequest struct { + // The namespace to which the sink belongs. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // The updated export sink specification. + Spec *v12.ExportSinkSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // The version of the sink to update. The latest version can be + // retrieved using the GetNamespaceExportSink call. + ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` + // The ID to use for this async operation - optional. + AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` +} + +func (m *UpdateNamespaceExportSinkRequest) Reset() { *m = UpdateNamespaceExportSinkRequest{} } +func (*UpdateNamespaceExportSinkRequest) ProtoMessage() {} +func (*UpdateNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{90} +} +func (m *UpdateNamespaceExportSinkRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateNamespaceExportSinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateNamespaceExportSinkRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Spec.Equal(that1.Spec) { - return false +} +func (m *UpdateNamespaceExportSinkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateNamespaceExportSinkRequest.Merge(m, src) +} +func (m *UpdateNamespaceExportSinkRequest) XXX_Size() int { + return m.Size() +} +func (m *UpdateNamespaceExportSinkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateNamespaceExportSinkRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateNamespaceExportSinkRequest proto.InternalMessageInfo + +func (m *UpdateNamespaceExportSinkRequest) GetNamespace() string { + if m != nil { + return m.Namespace } - if this.AsyncOperationId != that1.AsyncOperationId { - return false + return "" +} + +func (m *UpdateNamespaceExportSinkRequest) GetSpec() *v12.ExportSinkSpec { + if m != nil { + return m.Spec } - return true + return nil } -func (this *CreateNamespaceResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *UpdateNamespaceExportSinkRequest) GetResourceVersion() string { + if m != nil { + return m.ResourceVersion } + return "" +} - that1, ok := that.(*CreateNamespaceResponse) - if !ok { - that2, ok := that.(CreateNamespaceResponse) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Namespace != that1.Namespace { - return false - } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { - return false +func (m *UpdateNamespaceExportSinkRequest) GetAsyncOperationId() string { + if m != nil { + return m.AsyncOperationId } - return true + return "" } -func (this *GetNamespacesRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*GetNamespacesRequest) - if !ok { - that2, ok := that.(GetNamespacesRequest) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.PageSize != that1.PageSize { - return false - } - if this.PageToken != that1.PageToken { - return false - } - if this.Name != that1.Name { - return false - } - return true +type UpdateNamespaceExportSinkResponse struct { + // The async operation. + AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` } -func (this *GetNamespacesResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - that1, ok := that.(*GetNamespacesResponse) - if !ok { - that2, ok := that.(GetNamespacesResponse) - if ok { - that1 = &that2 - } else { - return false +func (m *UpdateNamespaceExportSinkResponse) Reset() { *m = UpdateNamespaceExportSinkResponse{} } +func (*UpdateNamespaceExportSinkResponse) ProtoMessage() {} +func (*UpdateNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{91} +} +func (m *UpdateNamespaceExportSinkResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UpdateNamespaceExportSinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_UpdateNamespaceExportSinkResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if len(this.Namespaces) != len(that1.Namespaces) { - return false +} +func (m *UpdateNamespaceExportSinkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateNamespaceExportSinkResponse.Merge(m, src) +} +func (m *UpdateNamespaceExportSinkResponse) XXX_Size() int { + return m.Size() +} +func (m *UpdateNamespaceExportSinkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateNamespaceExportSinkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateNamespaceExportSinkResponse proto.InternalMessageInfo + +func (m *UpdateNamespaceExportSinkResponse) GetAsyncOperation() *v11.AsyncOperation { + if m != nil { + return m.AsyncOperation } - for i := range this.Namespaces { - if !this.Namespaces[i].Equal(that1.Namespaces[i]) { - return false + return nil +} + +type DeleteNamespaceExportSinkRequest struct { + // The namespace to which the sink belongs. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // The name of the sink to delete. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // The version of the sink to delete. The latest version can be + // retrieved using the GetNamespaceExportSink call. + ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` + // The ID to use for this async operation - optional. + AsyncOperationId string `protobuf:"bytes,4,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` +} + +func (m *DeleteNamespaceExportSinkRequest) Reset() { *m = DeleteNamespaceExportSinkRequest{} } +func (*DeleteNamespaceExportSinkRequest) ProtoMessage() {} +func (*DeleteNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{92} +} +func (m *DeleteNamespaceExportSinkRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteNamespaceExportSinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteNamespaceExportSinkRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if this.NextPageToken != that1.NextPageToken { - return false - } - return true } -func (this *GetNamespaceRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil - } +func (m *DeleteNamespaceExportSinkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteNamespaceExportSinkRequest.Merge(m, src) +} +func (m *DeleteNamespaceExportSinkRequest) XXX_Size() int { + return m.Size() +} +func (m *DeleteNamespaceExportSinkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteNamespaceExportSinkRequest.DiscardUnknown(m) +} - that1, ok := that.(*GetNamespaceRequest) - if !ok { - that2, ok := that.(GetNamespaceRequest) - if ok { - that1 = &that2 - } else { - return false - } +var xxx_messageInfo_DeleteNamespaceExportSinkRequest proto.InternalMessageInfo + +func (m *DeleteNamespaceExportSinkRequest) GetNamespace() string { + if m != nil { + return m.Namespace } - if that1 == nil { - return this == nil - } else if this == nil { - return false + return "" +} + +func (m *DeleteNamespaceExportSinkRequest) GetName() string { + if m != nil { + return m.Name } - if this.Namespace != that1.Namespace { - return false + return "" +} + +func (m *DeleteNamespaceExportSinkRequest) GetResourceVersion() string { + if m != nil { + return m.ResourceVersion } - return true + return "" } -func (this *GetNamespaceResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *DeleteNamespaceExportSinkRequest) GetAsyncOperationId() string { + if m != nil { + return m.AsyncOperationId } + return "" +} - that1, ok := that.(*GetNamespaceResponse) - if !ok { - that2, ok := that.(GetNamespaceResponse) - if ok { - that1 = &that2 - } else { - return false +type DeleteNamespaceExportSinkResponse struct { + // The async operation. + AsyncOperation *v11.AsyncOperation `protobuf:"bytes,1,opt,name=async_operation,json=asyncOperation,proto3" json:"async_operation,omitempty"` +} + +func (m *DeleteNamespaceExportSinkResponse) Reset() { *m = DeleteNamespaceExportSinkResponse{} } +func (*DeleteNamespaceExportSinkResponse) ProtoMessage() {} +func (*DeleteNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{93} +} +func (m *DeleteNamespaceExportSinkResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteNamespaceExportSinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteNamespaceExportSinkResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.Namespace.Equal(that1.Namespace) { - return false - } - return true } -func (this *UpdateNamespaceRequest) Equal(that interface{}) bool { - if that == nil { - return this == nil +func (m *DeleteNamespaceExportSinkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteNamespaceExportSinkResponse.Merge(m, src) +} +func (m *DeleteNamespaceExportSinkResponse) XXX_Size() int { + return m.Size() +} +func (m *DeleteNamespaceExportSinkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteNamespaceExportSinkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteNamespaceExportSinkResponse proto.InternalMessageInfo + +func (m *DeleteNamespaceExportSinkResponse) GetAsyncOperation() *v11.AsyncOperation { + if m != nil { + return m.AsyncOperation } + return nil +} - that1, ok := that.(*UpdateNamespaceRequest) - if !ok { - that2, ok := that.(UpdateNamespaceRequest) - if ok { - that1 = &that2 - } else { - return false +type ValidateNamespaceExportSinkRequest struct { + // The namespace to which the sink belongs. + Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + // The export sink specification to validate. + Spec *v12.ExportSinkSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` +} + +func (m *ValidateNamespaceExportSinkRequest) Reset() { *m = ValidateNamespaceExportSinkRequest{} } +func (*ValidateNamespaceExportSinkRequest) ProtoMessage() {} +func (*ValidateNamespaceExportSinkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{94} +} +func (m *ValidateNamespaceExportSinkRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidateNamespaceExportSinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidateNamespaceExportSinkRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.Namespace != that1.Namespace { - return false - } - if !this.Spec.Equal(that1.Spec) { - return false - } - if this.ResourceVersion != that1.ResourceVersion { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { - return false +} +func (m *ValidateNamespaceExportSinkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidateNamespaceExportSinkRequest.Merge(m, src) +} +func (m *ValidateNamespaceExportSinkRequest) XXX_Size() int { + return m.Size() +} +func (m *ValidateNamespaceExportSinkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ValidateNamespaceExportSinkRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidateNamespaceExportSinkRequest proto.InternalMessageInfo + +func (m *ValidateNamespaceExportSinkRequest) GetNamespace() string { + if m != nil { + return m.Namespace } - return true + return "" } -func (this *UpdateNamespaceResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil + +func (m *ValidateNamespaceExportSinkRequest) GetSpec() *v12.ExportSinkSpec { + if m != nil { + return m.Spec } + return nil +} - that1, ok := that.(*UpdateNamespaceResponse) - if !ok { - that2, ok := that.(UpdateNamespaceResponse) - if ok { - that1 = &that2 - } else { - return false +type ValidateNamespaceExportSinkResponse struct { +} + +func (m *ValidateNamespaceExportSinkResponse) Reset() { *m = ValidateNamespaceExportSinkResponse{} } +func (*ValidateNamespaceExportSinkResponse) ProtoMessage() {} +func (*ValidateNamespaceExportSinkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d04330087ace166d, []int{95} +} +func (m *ValidateNamespaceExportSinkResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValidateNamespaceExportSinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValidateNamespaceExportSinkResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { - return false - } - return true } -func (this *RenameCustomSearchAttributeRequest) Equal(that interface{}) bool { +func (m *ValidateNamespaceExportSinkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValidateNamespaceExportSinkResponse.Merge(m, src) +} +func (m *ValidateNamespaceExportSinkResponse) XXX_Size() int { + return m.Size() +} +func (m *ValidateNamespaceExportSinkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ValidateNamespaceExportSinkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ValidateNamespaceExportSinkResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*GetUsersRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUsersRequest") + proto.RegisterType((*GetUsersResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUsersResponse") + proto.RegisterType((*GetUserRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUserRequest") + proto.RegisterType((*GetUserResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUserResponse") + proto.RegisterType((*CreateUserRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateUserRequest") + proto.RegisterType((*CreateUserResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateUserResponse") + proto.RegisterType((*UpdateUserRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateUserRequest") + proto.RegisterType((*UpdateUserResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateUserResponse") + proto.RegisterType((*DeleteUserRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteUserRequest") + proto.RegisterType((*DeleteUserResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteUserResponse") + proto.RegisterType((*SetUserNamespaceAccessRequest)(nil), "temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessRequest") + proto.RegisterType((*SetUserNamespaceAccessResponse)(nil), "temporal.api.cloud.cloudservice.v1.SetUserNamespaceAccessResponse") + proto.RegisterType((*GetAsyncOperationRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetAsyncOperationRequest") + proto.RegisterType((*GetAsyncOperationResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetAsyncOperationResponse") + proto.RegisterType((*CreateNamespaceRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateNamespaceRequest") + proto.RegisterType((*CreateNamespaceResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateNamespaceResponse") + proto.RegisterType((*GetNamespacesRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespacesRequest") + proto.RegisterType((*GetNamespacesResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespacesResponse") + proto.RegisterType((*GetNamespaceRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespaceRequest") + proto.RegisterType((*GetNamespaceResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespaceResponse") + proto.RegisterType((*UpdateNamespaceRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNamespaceRequest") + proto.RegisterType((*UpdateNamespaceResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNamespaceResponse") + proto.RegisterType((*RenameCustomSearchAttributeRequest)(nil), "temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeRequest") + proto.RegisterType((*RenameCustomSearchAttributeResponse)(nil), "temporal.api.cloud.cloudservice.v1.RenameCustomSearchAttributeResponse") + proto.RegisterType((*DeleteNamespaceRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNamespaceRequest") + proto.RegisterType((*DeleteNamespaceResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNamespaceResponse") + proto.RegisterType((*FailoverNamespaceRegionRequest)(nil), "temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionRequest") + proto.RegisterType((*FailoverNamespaceRegionResponse)(nil), "temporal.api.cloud.cloudservice.v1.FailoverNamespaceRegionResponse") + proto.RegisterType((*AddNamespaceRegionRequest)(nil), "temporal.api.cloud.cloudservice.v1.AddNamespaceRegionRequest") + proto.RegisterType((*AddNamespaceRegionResponse)(nil), "temporal.api.cloud.cloudservice.v1.AddNamespaceRegionResponse") + proto.RegisterType((*GetRegionsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetRegionsRequest") + proto.RegisterType((*GetRegionsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetRegionsResponse") + proto.RegisterType((*GetRegionRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetRegionRequest") + proto.RegisterType((*GetRegionResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetRegionResponse") + proto.RegisterType((*GetNexusEndpointsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNexusEndpointsRequest") + proto.RegisterType((*GetNexusEndpointsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNexusEndpointsResponse") + proto.RegisterType((*GetNexusEndpointRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNexusEndpointRequest") + proto.RegisterType((*GetNexusEndpointResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNexusEndpointResponse") + proto.RegisterType((*CreateNexusEndpointRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateNexusEndpointRequest") + proto.RegisterType((*CreateNexusEndpointResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateNexusEndpointResponse") + proto.RegisterType((*UpdateNexusEndpointRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointRequest") + proto.RegisterType((*UpdateNexusEndpointResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNexusEndpointResponse") + proto.RegisterType((*DeleteNexusEndpointRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointRequest") + proto.RegisterType((*DeleteNexusEndpointResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNexusEndpointResponse") + proto.RegisterType((*UpdateAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateAccountRequest") + proto.RegisterType((*UpdateAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateAccountResponse") + proto.RegisterType((*GetUserGroupsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest") + proto.RegisterType((*GetUserGroupsRequest_GoogleGroupFilter)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupsRequest.GoogleGroupFilter") + proto.RegisterType((*GetUserGroupsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupsResponse") + proto.RegisterType((*GetUserGroupRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupRequest") + proto.RegisterType((*GetUserGroupResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUserGroupResponse") + proto.RegisterType((*CreateUserGroupRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateUserGroupRequest") + proto.RegisterType((*CreateUserGroupResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateUserGroupResponse") + proto.RegisterType((*UpdateUserGroupRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateUserGroupRequest") + proto.RegisterType((*UpdateUserGroupResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateUserGroupResponse") + proto.RegisterType((*DeleteUserGroupRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteUserGroupRequest") + proto.RegisterType((*DeleteUserGroupResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteUserGroupResponse") + proto.RegisterType((*SetUserGroupNamespaceAccessRequest)(nil), "temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessRequest") + proto.RegisterType((*SetUserGroupNamespaceAccessResponse)(nil), "temporal.api.cloud.cloudservice.v1.SetUserGroupNamespaceAccessResponse") + proto.RegisterType((*CreateServiceAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateServiceAccountRequest") + proto.RegisterType((*CreateServiceAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateServiceAccountResponse") + proto.RegisterType((*GetServiceAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetServiceAccountRequest") + proto.RegisterType((*GetServiceAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetServiceAccountResponse") + proto.RegisterType((*GetServiceAccountsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetServiceAccountsRequest") + proto.RegisterType((*GetServiceAccountsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetServiceAccountsResponse") + proto.RegisterType((*UpdateServiceAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateServiceAccountRequest") + proto.RegisterType((*UpdateServiceAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateServiceAccountResponse") + proto.RegisterType((*DeleteServiceAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteServiceAccountRequest") + proto.RegisterType((*DeleteServiceAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteServiceAccountResponse") + proto.RegisterType((*GetApiKeysRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetApiKeysRequest") + proto.RegisterType((*GetApiKeysResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetApiKeysResponse") + proto.RegisterType((*GetApiKeyRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetApiKeyRequest") + proto.RegisterType((*GetApiKeyResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetApiKeyResponse") + proto.RegisterType((*CreateApiKeyRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateApiKeyRequest") + proto.RegisterType((*CreateApiKeyResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateApiKeyResponse") + proto.RegisterType((*UpdateApiKeyRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateApiKeyRequest") + proto.RegisterType((*UpdateApiKeyResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateApiKeyResponse") + proto.RegisterType((*DeleteApiKeyRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteApiKeyRequest") + proto.RegisterType((*DeleteApiKeyResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteApiKeyResponse") + proto.RegisterType((*GetAuditLogsRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetAuditLogsRequest") + proto.RegisterType((*GetAuditLogsResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetAuditLogsResponse") + proto.RegisterType((*GetUsageRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetUsageRequest") + proto.RegisterType((*GetUsageResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetUsageResponse") + proto.RegisterType((*GetAccountRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetAccountRequest") + proto.RegisterType((*GetAccountResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetAccountResponse") + proto.RegisterType((*CreateNamespaceExportSinkRequest)(nil), "temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkRequest") + proto.RegisterType((*CreateNamespaceExportSinkResponse)(nil), "temporal.api.cloud.cloudservice.v1.CreateNamespaceExportSinkResponse") + proto.RegisterType((*GetNamespaceExportSinkRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkRequest") + proto.RegisterType((*GetNamespaceExportSinkResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinkResponse") + proto.RegisterType((*GetNamespaceExportSinksRequest)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksRequest") + proto.RegisterType((*GetNamespaceExportSinksResponse)(nil), "temporal.api.cloud.cloudservice.v1.GetNamespaceExportSinksResponse") + proto.RegisterType((*UpdateNamespaceExportSinkRequest)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkRequest") + proto.RegisterType((*UpdateNamespaceExportSinkResponse)(nil), "temporal.api.cloud.cloudservice.v1.UpdateNamespaceExportSinkResponse") + proto.RegisterType((*DeleteNamespaceExportSinkRequest)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkRequest") + proto.RegisterType((*DeleteNamespaceExportSinkResponse)(nil), "temporal.api.cloud.cloudservice.v1.DeleteNamespaceExportSinkResponse") + proto.RegisterType((*ValidateNamespaceExportSinkRequest)(nil), "temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkRequest") + proto.RegisterType((*ValidateNamespaceExportSinkResponse)(nil), "temporal.api.cloud.cloudservice.v1.ValidateNamespaceExportSinkResponse") +} + +func init() { + proto.RegisterFile("temporal/api/cloud/cloudservice/v1/request_response.proto", fileDescriptor_d04330087ace166d) +} + +var fileDescriptor_d04330087ace166d = []byte{ + // 2390 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5b, 0x5b, 0x6c, 0xdc, 0x58, + 0x19, 0xce, 0x99, 0x4c, 0x92, 0xe6, 0x4f, 0xb7, 0x49, 0x9c, 0x34, 0x49, 0xa7, 0xe9, 0x34, 0x75, + 0xb7, 0x55, 0xd2, 0xed, 0x4e, 0x48, 0x57, 0xa0, 0x25, 0xec, 0x2e, 0x4c, 0xb2, 0x6d, 0x9a, 0xdd, + 0x6a, 0xb7, 0x75, 0xd2, 0x14, 0x21, 0x21, 0xe3, 0x8e, 0xcf, 0x0e, 0x56, 0x66, 0x6c, 0xd7, 0xf6, + 0x24, 0x99, 0xa2, 0x52, 0xae, 0x5a, 0x2e, 0x2b, 0x2e, 0x42, 0x42, 0xbc, 0xec, 0x1b, 0x42, 0x68, + 0x25, 0xc4, 0x03, 0xe2, 0x8d, 0x37, 0x04, 0xe2, 0x8d, 0x4a, 0x08, 0x69, 0x9f, 0x10, 0x4d, 0x85, + 0x04, 0x68, 0x1f, 0xf6, 0x91, 0x07, 0x24, 0x90, 0xcf, 0xc5, 0x63, 0x7b, 0xec, 0x89, 0x67, 0x76, + 0x0e, 0xe5, 0x25, 0x1d, 0x1f, 0x9f, 0xff, 0x3f, 0xdf, 0xf7, 0x9d, 0xcb, 0xff, 0x9f, 0xe3, 0x53, + 0xf8, 0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, 0x86, 0xcc, + 0x0d, 0x2b, 0xfd, 0x3f, 0x4c, 0x7d, 0x2a, 0xfc, 0xfc, 0x5e, 0xee, 0xd9, 0x6d, 0x66, 0x64, 0x58, + 0xfe, 0x2e, 0xa0, 0xb4, 0x4e, 0x5a, 0x25, 0x7f, 0xd9, 0xd6, 0xbf, 0xb4, 0xb3, 0xf2, 0xcf, 0xdc, + 0x62, 0xab, 0xda, 0xea, 0x6a, 0xd9, 0x36, 0x56, 0x57, 0x49, 0x15, 0xf6, 0x0f, 0xab, 0xb9, 0xba, + 0xba, 0xb3, 0x72, 0x77, 0x98, 0xe4, 0x20, 0x2f, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x03, 0x82, + 0xc7, 0x82, 0xbc, 0x35, 0x00, 0x00, +} + +func (this *GetUsersRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*RenameCustomSearchAttributeRequest) + that1, ok := that.(*GetUsersRequest) if !ok { - that2, ok := that.(RenameCustomSearchAttributeRequest) + that2, ok := that.(GetUsersRequest) if ok { that1 = &that2 } else { @@ -5157,31 +5572,28 @@ func (this *RenameCustomSearchAttributeRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Namespace != that1.Namespace { - return false - } - if this.ExistingCustomSearchAttributeName != that1.ExistingCustomSearchAttributeName { + if this.PageSize != that1.PageSize { return false } - if this.NewCustomSearchAttributeName != that1.NewCustomSearchAttributeName { + if this.PageToken != that1.PageToken { return false } - if this.ResourceVersion != that1.ResourceVersion { + if this.Email != that1.Email { return false } - if this.AsyncOperationId != that1.AsyncOperationId { + if this.Namespace != that1.Namespace { return false } return true } -func (this *RenameCustomSearchAttributeResponse) Equal(that interface{}) bool { +func (this *GetUsersResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*RenameCustomSearchAttributeResponse) + that1, ok := that.(*GetUsersResponse) if !ok { - that2, ok := that.(RenameCustomSearchAttributeResponse) + that2, ok := that.(GetUsersResponse) if ok { that1 = &that2 } else { @@ -5193,19 +5605,27 @@ func (this *RenameCustomSearchAttributeResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + if len(this.Users) != len(that1.Users) { + return false + } + for i := range this.Users { + if !this.Users[i].Equal(that1.Users[i]) { + return false + } + } + if this.NextPageToken != that1.NextPageToken { return false } return true } -func (this *DeleteNamespaceRequest) Equal(that interface{}) bool { +func (this *GetUserRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteNamespaceRequest) + that1, ok := that.(*GetUserRequest) if !ok { - that2, ok := that.(DeleteNamespaceRequest) + that2, ok := that.(GetUserRequest) if ok { that1 = &that2 } else { @@ -5217,25 +5637,19 @@ func (this *DeleteNamespaceRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Namespace != that1.Namespace { - return false - } - if this.ResourceVersion != that1.ResourceVersion { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { + if this.UserId != that1.UserId { return false } return true } -func (this *DeleteNamespaceResponse) Equal(that interface{}) bool { +func (this *GetUserResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteNamespaceResponse) + that1, ok := that.(*GetUserResponse) if !ok { - that2, ok := that.(DeleteNamespaceResponse) + that2, ok := that.(GetUserResponse) if ok { that1 = &that2 } else { @@ -5247,19 +5661,19 @@ func (this *DeleteNamespaceResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + if !this.User.Equal(that1.User) { return false } return true } -func (this *FailoverNamespaceRegionRequest) Equal(that interface{}) bool { +func (this *CreateUserRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*FailoverNamespaceRegionRequest) + that1, ok := that.(*CreateUserRequest) if !ok { - that2, ok := that.(FailoverNamespaceRegionRequest) + that2, ok := that.(CreateUserRequest) if ok { that1 = &that2 } else { @@ -5271,10 +5685,7 @@ func (this *FailoverNamespaceRegionRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Namespace != that1.Namespace { - return false - } - if this.Region != that1.Region { + if !this.Spec.Equal(that1.Spec) { return false } if this.AsyncOperationId != that1.AsyncOperationId { @@ -5282,14 +5693,14 @@ func (this *FailoverNamespaceRegionRequest) Equal(that interface{}) bool { } return true } -func (this *FailoverNamespaceRegionResponse) Equal(that interface{}) bool { +func (this *CreateUserResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*FailoverNamespaceRegionResponse) + that1, ok := that.(*CreateUserResponse) if !ok { - that2, ok := that.(FailoverNamespaceRegionResponse) + that2, ok := that.(CreateUserResponse) if ok { that1 = &that2 } else { @@ -5301,19 +5712,22 @@ func (this *FailoverNamespaceRegionResponse) Equal(that interface{}) bool { } else if this == nil { return false } + if this.UserId != that1.UserId { + return false + } if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *AddNamespaceRegionRequest) Equal(that interface{}) bool { +func (this *UpdateUserRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*AddNamespaceRegionRequest) + that1, ok := that.(*UpdateUserRequest) if !ok { - that2, ok := that.(AddNamespaceRegionRequest) + that2, ok := that.(UpdateUserRequest) if ok { that1 = &that2 } else { @@ -5325,10 +5739,10 @@ func (this *AddNamespaceRegionRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Namespace != that1.Namespace { + if this.UserId != that1.UserId { return false } - if this.Region != that1.Region { + if !this.Spec.Equal(that1.Spec) { return false } if this.ResourceVersion != that1.ResourceVersion { @@ -5339,14 +5753,14 @@ func (this *AddNamespaceRegionRequest) Equal(that interface{}) bool { } return true } -func (this *AddNamespaceRegionResponse) Equal(that interface{}) bool { +func (this *UpdateUserResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*AddNamespaceRegionResponse) + that1, ok := that.(*UpdateUserResponse) if !ok { - that2, ok := that.(AddNamespaceRegionResponse) + that2, ok := that.(UpdateUserResponse) if ok { that1 = &that2 } else { @@ -5363,14 +5777,14 @@ func (this *AddNamespaceRegionResponse) Equal(that interface{}) bool { } return true } -func (this *GetRegionsRequest) Equal(that interface{}) bool { +func (this *DeleteUserRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetRegionsRequest) + that1, ok := that.(*DeleteUserRequest) if !ok { - that2, ok := that.(GetRegionsRequest) + that2, ok := that.(DeleteUserRequest) if ok { that1 = &that2 } else { @@ -5382,16 +5796,25 @@ func (this *GetRegionsRequest) Equal(that interface{}) bool { } else if this == nil { return false } + if this.UserId != that1.UserId { + return false + } + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { + return false + } return true } -func (this *GetRegionsResponse) Equal(that interface{}) bool { +func (this *DeleteUserResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetRegionsResponse) + that1, ok := that.(*DeleteUserResponse) if !ok { - that2, ok := that.(GetRegionsResponse) + that2, ok := that.(DeleteUserResponse) if ok { that1 = &that2 } else { @@ -5403,24 +5826,19 @@ func (this *GetRegionsResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.Regions) != len(that1.Regions) { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } - for i := range this.Regions { - if !this.Regions[i].Equal(that1.Regions[i]) { - return false - } - } return true } -func (this *GetRegionRequest) Equal(that interface{}) bool { +func (this *SetUserNamespaceAccessRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetRegionRequest) + that1, ok := that.(*SetUserNamespaceAccessRequest) if !ok { - that2, ok := that.(GetRegionRequest) + that2, ok := that.(SetUserNamespaceAccessRequest) if ok { that1 = &that2 } else { @@ -5432,19 +5850,31 @@ func (this *GetRegionRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Region != that1.Region { + if this.Namespace != that1.Namespace { return false } - return true -} -func (this *GetRegionResponse) Equal(that interface{}) bool { - if that == nil { - return this == nil + if this.UserId != that1.UserId { + return false + } + if !this.Access.Equal(that1.Access) { + return false + } + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { + return false + } + return true +} +func (this *SetUserNamespaceAccessResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - that1, ok := that.(*GetRegionResponse) + that1, ok := that.(*SetUserNamespaceAccessResponse) if !ok { - that2, ok := that.(GetRegionResponse) + that2, ok := that.(SetUserNamespaceAccessResponse) if ok { that1 = &that2 } else { @@ -5456,19 +5886,19 @@ func (this *GetRegionResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Region.Equal(that1.Region) { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *GetNexusEndpointsRequest) Equal(that interface{}) bool { +func (this *GetAsyncOperationRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetNexusEndpointsRequest) + that1, ok := that.(*GetAsyncOperationRequest) if !ok { - that2, ok := that.(GetNexusEndpointsRequest) + that2, ok := that.(GetAsyncOperationRequest) if ok { that1 = &that2 } else { @@ -5480,31 +5910,19 @@ func (this *GetNexusEndpointsRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.PageSize != that1.PageSize { - return false - } - if this.PageToken != that1.PageToken { - return false - } - if this.TargetNamespaceId != that1.TargetNamespaceId { - return false - } - if this.TargetTaskQueue != that1.TargetTaskQueue { - return false - } - if this.Name != that1.Name { + if this.AsyncOperationId != that1.AsyncOperationId { return false } return true } -func (this *GetNexusEndpointsResponse) Equal(that interface{}) bool { +func (this *GetAsyncOperationResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetNexusEndpointsResponse) + that1, ok := that.(*GetAsyncOperationResponse) if !ok { - that2, ok := that.(GetNexusEndpointsResponse) + that2, ok := that.(GetAsyncOperationResponse) if ok { that1 = &that2 } else { @@ -5516,27 +5934,19 @@ func (this *GetNexusEndpointsResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.Endpoints) != len(that1.Endpoints) { - return false - } - for i := range this.Endpoints { - if !this.Endpoints[i].Equal(that1.Endpoints[i]) { - return false - } - } - if this.NextPageToken != that1.NextPageToken { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *GetNexusEndpointRequest) Equal(that interface{}) bool { +func (this *CreateNamespaceRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetNexusEndpointRequest) + that1, ok := that.(*CreateNamespaceRequest) if !ok { - that2, ok := that.(GetNexusEndpointRequest) + that2, ok := that.(CreateNamespaceRequest) if ok { that1 = &that2 } else { @@ -5548,19 +5958,22 @@ func (this *GetNexusEndpointRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.EndpointId != that1.EndpointId { + if !this.Spec.Equal(that1.Spec) { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { return false } return true } -func (this *GetNexusEndpointResponse) Equal(that interface{}) bool { +func (this *CreateNamespaceResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetNexusEndpointResponse) + that1, ok := that.(*CreateNamespaceResponse) if !ok { - that2, ok := that.(GetNexusEndpointResponse) + that2, ok := that.(CreateNamespaceResponse) if ok { that1 = &that2 } else { @@ -5572,19 +5985,22 @@ func (this *GetNexusEndpointResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Endpoint.Equal(that1.Endpoint) { + if this.Namespace != that1.Namespace { + return false + } + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *CreateNexusEndpointRequest) Equal(that interface{}) bool { +func (this *GetNamespacesRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*CreateNexusEndpointRequest) + that1, ok := that.(*GetNamespacesRequest) if !ok { - that2, ok := that.(CreateNexusEndpointRequest) + that2, ok := that.(GetNamespacesRequest) if ok { that1 = &that2 } else { @@ -5596,22 +6012,25 @@ func (this *CreateNexusEndpointRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Spec.Equal(that1.Spec) { + if this.PageSize != that1.PageSize { return false } - if this.AsyncOperationId != that1.AsyncOperationId { + if this.PageToken != that1.PageToken { + return false + } + if this.Name != that1.Name { return false } return true } -func (this *CreateNexusEndpointResponse) Equal(that interface{}) bool { +func (this *GetNamespacesResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*CreateNexusEndpointResponse) + that1, ok := that.(*GetNamespacesResponse) if !ok { - that2, ok := that.(CreateNexusEndpointResponse) + that2, ok := that.(GetNamespacesResponse) if ok { that1 = &that2 } else { @@ -5623,22 +6042,27 @@ func (this *CreateNexusEndpointResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if this.EndpointId != that1.EndpointId { + if len(this.Namespaces) != len(that1.Namespaces) { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + for i := range this.Namespaces { + if !this.Namespaces[i].Equal(that1.Namespaces[i]) { + return false + } + } + if this.NextPageToken != that1.NextPageToken { return false } return true } -func (this *UpdateNexusEndpointRequest) Equal(that interface{}) bool { +func (this *GetNamespaceRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateNexusEndpointRequest) + that1, ok := that.(*GetNamespaceRequest) if !ok { - that2, ok := that.(UpdateNexusEndpointRequest) + that2, ok := that.(GetNamespaceRequest) if ok { that1 = &that2 } else { @@ -5650,28 +6074,19 @@ func (this *UpdateNexusEndpointRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.EndpointId != that1.EndpointId { - return false - } - if !this.Spec.Equal(that1.Spec) { - return false - } - if this.ResourceVersion != that1.ResourceVersion { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { + if this.Namespace != that1.Namespace { return false } return true } -func (this *UpdateNexusEndpointResponse) Equal(that interface{}) bool { +func (this *GetNamespaceResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateNexusEndpointResponse) + that1, ok := that.(*GetNamespaceResponse) if !ok { - that2, ok := that.(UpdateNexusEndpointResponse) + that2, ok := that.(GetNamespaceResponse) if ok { that1 = &that2 } else { @@ -5683,19 +6098,19 @@ func (this *UpdateNexusEndpointResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + if !this.Namespace.Equal(that1.Namespace) { return false } return true } -func (this *DeleteNexusEndpointRequest) Equal(that interface{}) bool { +func (this *UpdateNamespaceRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteNexusEndpointRequest) + that1, ok := that.(*UpdateNamespaceRequest) if !ok { - that2, ok := that.(DeleteNexusEndpointRequest) + that2, ok := that.(UpdateNamespaceRequest) if ok { that1 = &that2 } else { @@ -5707,7 +6122,10 @@ func (this *DeleteNexusEndpointRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.EndpointId != that1.EndpointId { + if this.Namespace != that1.Namespace { + return false + } + if !this.Spec.Equal(that1.Spec) { return false } if this.ResourceVersion != that1.ResourceVersion { @@ -5718,14 +6136,14 @@ func (this *DeleteNexusEndpointRequest) Equal(that interface{}) bool { } return true } -func (this *DeleteNexusEndpointResponse) Equal(that interface{}) bool { +func (this *UpdateNamespaceResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteNexusEndpointResponse) + that1, ok := that.(*UpdateNamespaceResponse) if !ok { - that2, ok := that.(DeleteNexusEndpointResponse) + that2, ok := that.(UpdateNamespaceResponse) if ok { that1 = &that2 } else { @@ -5742,14 +6160,14 @@ func (this *DeleteNexusEndpointResponse) Equal(that interface{}) bool { } return true } -func (this *GetAccountRequest) Equal(that interface{}) bool { +func (this *RenameCustomSearchAttributeRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetAccountRequest) + that1, ok := that.(*RenameCustomSearchAttributeRequest) if !ok { - that2, ok := that.(GetAccountRequest) + that2, ok := that.(RenameCustomSearchAttributeRequest) if ok { that1 = &that2 } else { @@ -5761,16 +6179,31 @@ func (this *GetAccountRequest) Equal(that interface{}) bool { } else if this == nil { return false } + if this.Namespace != that1.Namespace { + return false + } + if this.ExistingCustomSearchAttributeName != that1.ExistingCustomSearchAttributeName { + return false + } + if this.NewCustomSearchAttributeName != that1.NewCustomSearchAttributeName { + return false + } + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { + return false + } return true } -func (this *GetAccountResponse) Equal(that interface{}) bool { +func (this *RenameCustomSearchAttributeResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetAccountResponse) + that1, ok := that.(*RenameCustomSearchAttributeResponse) if !ok { - that2, ok := that.(GetAccountResponse) + that2, ok := that.(RenameCustomSearchAttributeResponse) if ok { that1 = &that2 } else { @@ -5782,19 +6215,19 @@ func (this *GetAccountResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Account.Equal(that1.Account) { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *UpdateAccountRequest) Equal(that interface{}) bool { +func (this *DeleteNamespaceRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateAccountRequest) + that1, ok := that.(*DeleteNamespaceRequest) if !ok { - that2, ok := that.(UpdateAccountRequest) + that2, ok := that.(DeleteNamespaceRequest) if ok { that1 = &that2 } else { @@ -5806,7 +6239,7 @@ func (this *UpdateAccountRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Spec.Equal(that1.Spec) { + if this.Namespace != that1.Namespace { return false } if this.ResourceVersion != that1.ResourceVersion { @@ -5817,14 +6250,14 @@ func (this *UpdateAccountRequest) Equal(that interface{}) bool { } return true } -func (this *UpdateAccountResponse) Equal(that interface{}) bool { +func (this *DeleteNamespaceResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateAccountResponse) + that1, ok := that.(*DeleteNamespaceResponse) if !ok { - that2, ok := that.(UpdateAccountResponse) + that2, ok := that.(DeleteNamespaceResponse) if ok { that1 = &that2 } else { @@ -5841,14 +6274,14 @@ func (this *UpdateAccountResponse) Equal(that interface{}) bool { } return true } -func (this *GetUserGroupsRequest) Equal(that interface{}) bool { +func (this *FailoverNamespaceRegionRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetUserGroupsRequest) + that1, ok := that.(*FailoverNamespaceRegionRequest) if !ok { - that2, ok := that.(GetUserGroupsRequest) + that2, ok := that.(FailoverNamespaceRegionRequest) if ok { that1 = &that2 } else { @@ -5860,28 +6293,25 @@ func (this *GetUserGroupsRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.PageSize != that1.PageSize { - return false - } - if this.PageToken != that1.PageToken { + if this.Namespace != that1.Namespace { return false } - if this.Namespace != that1.Namespace { + if this.Region != that1.Region { return false } - if this.GroupName != that1.GroupName { + if this.AsyncOperationId != that1.AsyncOperationId { return false } return true } -func (this *GetUserGroupsResponse) Equal(that interface{}) bool { +func (this *FailoverNamespaceRegionResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetUserGroupsResponse) + that1, ok := that.(*FailoverNamespaceRegionResponse) if !ok { - that2, ok := that.(GetUserGroupsResponse) + that2, ok := that.(FailoverNamespaceRegionResponse) if ok { that1 = &that2 } else { @@ -5893,27 +6323,19 @@ func (this *GetUserGroupsResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.Groups) != len(that1.Groups) { - return false - } - for i := range this.Groups { - if !this.Groups[i].Equal(that1.Groups[i]) { - return false - } - } - if this.NextPageToken != that1.NextPageToken { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *GetUserGroupRequest) Equal(that interface{}) bool { +func (this *AddNamespaceRegionRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetUserGroupRequest) + that1, ok := that.(*AddNamespaceRegionRequest) if !ok { - that2, ok := that.(GetUserGroupRequest) + that2, ok := that.(AddNamespaceRegionRequest) if ok { that1 = &that2 } else { @@ -5925,19 +6347,28 @@ func (this *GetUserGroupRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.GroupId != that1.GroupId { + if this.Namespace != that1.Namespace { + return false + } + if this.Region != that1.Region { + return false + } + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { return false } return true } -func (this *GetUserGroupResponse) Equal(that interface{}) bool { +func (this *AddNamespaceRegionResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetUserGroupResponse) + that1, ok := that.(*AddNamespaceRegionResponse) if !ok { - that2, ok := that.(GetUserGroupResponse) + that2, ok := that.(AddNamespaceRegionResponse) if ok { that1 = &that2 } else { @@ -5949,19 +6380,19 @@ func (this *GetUserGroupResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Group.Equal(that1.Group) { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *CreateUserGroupRequest) Equal(that interface{}) bool { +func (this *GetRegionsRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*CreateUserGroupRequest) + that1, ok := that.(*GetRegionsRequest) if !ok { - that2, ok := that.(CreateUserGroupRequest) + that2, ok := that.(GetRegionsRequest) if ok { that1 = &that2 } else { @@ -5973,22 +6404,16 @@ func (this *CreateUserGroupRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Spec.Equal(that1.Spec) { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { - return false - } return true } -func (this *CreateUserGroupResponse) Equal(that interface{}) bool { +func (this *GetRegionsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*CreateUserGroupResponse) + that1, ok := that.(*GetRegionsResponse) if !ok { - that2, ok := that.(CreateUserGroupResponse) + that2, ok := that.(GetRegionsResponse) if ok { that1 = &that2 } else { @@ -6000,22 +6425,24 @@ func (this *CreateUserGroupResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if this.GroupId != that1.GroupId { + if len(this.Regions) != len(that1.Regions) { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { - return false + for i := range this.Regions { + if !this.Regions[i].Equal(that1.Regions[i]) { + return false + } } return true } -func (this *UpdateUserGroupRequest) Equal(that interface{}) bool { +func (this *GetRegionRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateUserGroupRequest) + that1, ok := that.(*GetRegionRequest) if !ok { - that2, ok := that.(UpdateUserGroupRequest) + that2, ok := that.(GetRegionRequest) if ok { that1 = &that2 } else { @@ -6027,28 +6454,19 @@ func (this *UpdateUserGroupRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.GroupId != that1.GroupId { - return false - } - if !this.Spec.Equal(that1.Spec) { - return false - } - if this.ResourceVersion != that1.ResourceVersion { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { + if this.Region != that1.Region { return false } return true } -func (this *UpdateUserGroupResponse) Equal(that interface{}) bool { +func (this *GetRegionResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateUserGroupResponse) + that1, ok := that.(*GetRegionResponse) if !ok { - that2, ok := that.(UpdateUserGroupResponse) + that2, ok := that.(GetRegionResponse) if ok { that1 = &that2 } else { @@ -6060,19 +6478,19 @@ func (this *UpdateUserGroupResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + if !this.Region.Equal(that1.Region) { return false } return true } -func (this *DeleteUserGroupRequest) Equal(that interface{}) bool { +func (this *GetNexusEndpointsRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteUserGroupRequest) + that1, ok := that.(*GetNexusEndpointsRequest) if !ok { - that2, ok := that.(DeleteUserGroupRequest) + that2, ok := that.(GetNexusEndpointsRequest) if ok { that1 = &that2 } else { @@ -6084,25 +6502,31 @@ func (this *DeleteUserGroupRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.GroupId != that1.GroupId { + if this.PageSize != that1.PageSize { return false } - if this.ResourceVersion != that1.ResourceVersion { + if this.PageToken != that1.PageToken { return false } - if this.AsyncOperationId != that1.AsyncOperationId { + if this.TargetNamespaceId != that1.TargetNamespaceId { + return false + } + if this.TargetTaskQueue != that1.TargetTaskQueue { + return false + } + if this.Name != that1.Name { return false } return true } -func (this *DeleteUserGroupResponse) Equal(that interface{}) bool { +func (this *GetNexusEndpointsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteUserGroupResponse) + that1, ok := that.(*GetNexusEndpointsResponse) if !ok { - that2, ok := that.(DeleteUserGroupResponse) + that2, ok := that.(GetNexusEndpointsResponse) if ok { that1 = &that2 } else { @@ -6114,19 +6538,27 @@ func (this *DeleteUserGroupResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + if len(this.Endpoints) != len(that1.Endpoints) { + return false + } + for i := range this.Endpoints { + if !this.Endpoints[i].Equal(that1.Endpoints[i]) { + return false + } + } + if this.NextPageToken != that1.NextPageToken { return false } return true } -func (this *SetUserGroupNamespaceAccessRequest) Equal(that interface{}) bool { +func (this *GetNexusEndpointRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*SetUserGroupNamespaceAccessRequest) + that1, ok := that.(*GetNexusEndpointRequest) if !ok { - that2, ok := that.(SetUserGroupNamespaceAccessRequest) + that2, ok := that.(GetNexusEndpointRequest) if ok { that1 = &that2 } else { @@ -6138,31 +6570,19 @@ func (this *SetUserGroupNamespaceAccessRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Namespace != that1.Namespace { - return false - } - if this.GroupId != that1.GroupId { - return false - } - if !this.Access.Equal(that1.Access) { - return false - } - if this.ResourceVersion != that1.ResourceVersion { - return false - } - if this.AsyncOperationId != that1.AsyncOperationId { + if this.EndpointId != that1.EndpointId { return false } return true } -func (this *SetUserGroupNamespaceAccessResponse) Equal(that interface{}) bool { +func (this *GetNexusEndpointResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*SetUserGroupNamespaceAccessResponse) + that1, ok := that.(*GetNexusEndpointResponse) if !ok { - that2, ok := that.(SetUserGroupNamespaceAccessResponse) + that2, ok := that.(GetNexusEndpointResponse) if ok { that1 = &that2 } else { @@ -6174,19 +6594,19 @@ func (this *SetUserGroupNamespaceAccessResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + if !this.Endpoint.Equal(that1.Endpoint) { return false } return true } -func (this *CreateServiceAccountRequest) Equal(that interface{}) bool { +func (this *CreateNexusEndpointRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*CreateServiceAccountRequest) + that1, ok := that.(*CreateNexusEndpointRequest) if !ok { - that2, ok := that.(CreateServiceAccountRequest) + that2, ok := that.(CreateNexusEndpointRequest) if ok { that1 = &that2 } else { @@ -6206,14 +6626,14 @@ func (this *CreateServiceAccountRequest) Equal(that interface{}) bool { } return true } -func (this *CreateServiceAccountResponse) Equal(that interface{}) bool { +func (this *CreateNexusEndpointResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*CreateServiceAccountResponse) + that1, ok := that.(*CreateNexusEndpointResponse) if !ok { - that2, ok := that.(CreateServiceAccountResponse) + that2, ok := that.(CreateNexusEndpointResponse) if ok { that1 = &that2 } else { @@ -6225,7 +6645,7 @@ func (this *CreateServiceAccountResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if this.ServiceAccountId != that1.ServiceAccountId { + if this.EndpointId != that1.EndpointId { return false } if !this.AsyncOperation.Equal(that1.AsyncOperation) { @@ -6233,14 +6653,14 @@ func (this *CreateServiceAccountResponse) Equal(that interface{}) bool { } return true } -func (this *GetServiceAccountRequest) Equal(that interface{}) bool { +func (this *UpdateNexusEndpointRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetServiceAccountRequest) + that1, ok := that.(*UpdateNexusEndpointRequest) if !ok { - that2, ok := that.(GetServiceAccountRequest) + that2, ok := that.(UpdateNexusEndpointRequest) if ok { that1 = &that2 } else { @@ -6252,19 +6672,28 @@ func (this *GetServiceAccountRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.ServiceAccountId != that1.ServiceAccountId { + if this.EndpointId != that1.EndpointId { + return false + } + if !this.Spec.Equal(that1.Spec) { + return false + } + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { return false } return true } -func (this *GetServiceAccountResponse) Equal(that interface{}) bool { +func (this *UpdateNexusEndpointResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetServiceAccountResponse) + that1, ok := that.(*UpdateNexusEndpointResponse) if !ok { - that2, ok := that.(GetServiceAccountResponse) + that2, ok := that.(UpdateNexusEndpointResponse) if ok { that1 = &that2 } else { @@ -6276,19 +6705,19 @@ func (this *GetServiceAccountResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.ServiceAccount.Equal(that1.ServiceAccount) { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *GetServiceAccountsRequest) Equal(that interface{}) bool { +func (this *DeleteNexusEndpointRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetServiceAccountsRequest) + that1, ok := that.(*DeleteNexusEndpointRequest) if !ok { - that2, ok := that.(GetServiceAccountsRequest) + that2, ok := that.(DeleteNexusEndpointRequest) if ok { that1 = &that2 } else { @@ -6300,22 +6729,25 @@ func (this *GetServiceAccountsRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.PageSize != that1.PageSize { + if this.EndpointId != that1.EndpointId { return false } - if this.PageToken != that1.PageToken { + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { return false } return true } -func (this *GetServiceAccountsResponse) Equal(that interface{}) bool { +func (this *DeleteNexusEndpointResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetServiceAccountsResponse) + that1, ok := that.(*DeleteNexusEndpointResponse) if !ok { - that2, ok := that.(GetServiceAccountsResponse) + that2, ok := that.(DeleteNexusEndpointResponse) if ok { that1 = &that2 } else { @@ -6327,27 +6759,19 @@ func (this *GetServiceAccountsResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.ServiceAccount) != len(that1.ServiceAccount) { - return false - } - for i := range this.ServiceAccount { - if !this.ServiceAccount[i].Equal(that1.ServiceAccount[i]) { - return false - } - } - if this.NextPageToken != that1.NextPageToken { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *UpdateServiceAccountRequest) Equal(that interface{}) bool { +func (this *UpdateAccountRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateServiceAccountRequest) + that1, ok := that.(*UpdateAccountRequest) if !ok { - that2, ok := that.(UpdateServiceAccountRequest) + that2, ok := that.(UpdateAccountRequest) if ok { that1 = &that2 } else { @@ -6359,9 +6783,6 @@ func (this *UpdateServiceAccountRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.ServiceAccountId != that1.ServiceAccountId { - return false - } if !this.Spec.Equal(that1.Spec) { return false } @@ -6373,14 +6794,14 @@ func (this *UpdateServiceAccountRequest) Equal(that interface{}) bool { } return true } -func (this *UpdateServiceAccountResponse) Equal(that interface{}) bool { +func (this *UpdateAccountResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateServiceAccountResponse) + that1, ok := that.(*UpdateAccountResponse) if !ok { - that2, ok := that.(UpdateServiceAccountResponse) + that2, ok := that.(UpdateAccountResponse) if ok { that1 = &that2 } else { @@ -6397,14 +6818,14 @@ func (this *UpdateServiceAccountResponse) Equal(that interface{}) bool { } return true } -func (this *DeleteServiceAccountRequest) Equal(that interface{}) bool { +func (this *GetUserGroupsRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteServiceAccountRequest) + that1, ok := that.(*GetUserGroupsRequest) if !ok { - that2, ok := that.(DeleteServiceAccountRequest) + that2, ok := that.(GetUserGroupsRequest) if ok { that1 = &that2 } else { @@ -6416,25 +6837,31 @@ func (this *DeleteServiceAccountRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.ServiceAccountId != that1.ServiceAccountId { + if this.PageSize != that1.PageSize { return false } - if this.ResourceVersion != that1.ResourceVersion { + if this.PageToken != that1.PageToken { return false } - if this.AsyncOperationId != that1.AsyncOperationId { + if this.Namespace != that1.Namespace { + return false + } + if this.DisplayName != that1.DisplayName { + return false + } + if !this.GoogleGroup.Equal(that1.GoogleGroup) { return false } return true } -func (this *DeleteServiceAccountResponse) Equal(that interface{}) bool { +func (this *GetUserGroupsRequest_GoogleGroupFilter) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteServiceAccountResponse) + that1, ok := that.(*GetUserGroupsRequest_GoogleGroupFilter) if !ok { - that2, ok := that.(DeleteServiceAccountResponse) + that2, ok := that.(GetUserGroupsRequest_GoogleGroupFilter) if ok { that1 = &that2 } else { @@ -6446,19 +6873,19 @@ func (this *DeleteServiceAccountResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + if this.EmailAddress != that1.EmailAddress { return false } return true } -func (this *GetApiKeysRequest) Equal(that interface{}) bool { +func (this *GetUserGroupsResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetApiKeysRequest) + that1, ok := that.(*GetUserGroupsResponse) if !ok { - that2, ok := that.(GetApiKeysRequest) + that2, ok := that.(GetUserGroupsResponse) if ok { that1 = &that2 } else { @@ -6470,28 +6897,27 @@ func (this *GetApiKeysRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.PageSize != that1.PageSize { - return false - } - if this.PageToken != that1.PageToken { + if len(this.Groups) != len(that1.Groups) { return false } - if this.OwnerId != that1.OwnerId { - return false + for i := range this.Groups { + if !this.Groups[i].Equal(that1.Groups[i]) { + return false + } } - if this.OwnerType != that1.OwnerType { + if this.NextPageToken != that1.NextPageToken { return false } return true } -func (this *GetApiKeysResponse) Equal(that interface{}) bool { +func (this *GetUserGroupRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetApiKeysResponse) + that1, ok := that.(*GetUserGroupRequest) if !ok { - that2, ok := that.(GetApiKeysResponse) + that2, ok := that.(GetUserGroupRequest) if ok { that1 = &that2 } else { @@ -6503,27 +6929,19 @@ func (this *GetApiKeysResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if len(this.ApiKeys) != len(that1.ApiKeys) { - return false - } - for i := range this.ApiKeys { - if !this.ApiKeys[i].Equal(that1.ApiKeys[i]) { - return false - } - } - if this.NextPageToken != that1.NextPageToken { + if this.GroupId != that1.GroupId { return false } return true } -func (this *GetApiKeyRequest) Equal(that interface{}) bool { +func (this *GetUserGroupResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetApiKeyRequest) + that1, ok := that.(*GetUserGroupResponse) if !ok { - that2, ok := that.(GetApiKeyRequest) + that2, ok := that.(GetUserGroupResponse) if ok { that1 = &that2 } else { @@ -6535,19 +6953,19 @@ func (this *GetApiKeyRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.KeyId != that1.KeyId { + if !this.Group.Equal(that1.Group) { return false } return true } -func (this *GetApiKeyResponse) Equal(that interface{}) bool { +func (this *CreateUserGroupRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*GetApiKeyResponse) + that1, ok := that.(*CreateUserGroupRequest) if !ok { - that2, ok := that.(GetApiKeyResponse) + that2, ok := that.(CreateUserGroupRequest) if ok { that1 = &that2 } else { @@ -6559,19 +6977,22 @@ func (this *GetApiKeyResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.ApiKey.Equal(that1.ApiKey) { + if !this.Spec.Equal(that1.Spec) { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { return false } return true } -func (this *CreateApiKeyRequest) Equal(that interface{}) bool { +func (this *CreateUserGroupResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*CreateApiKeyRequest) + that1, ok := that.(*CreateUserGroupResponse) if !ok { - that2, ok := that.(CreateApiKeyRequest) + that2, ok := that.(CreateUserGroupResponse) if ok { that1 = &that2 } else { @@ -6583,22 +7004,22 @@ func (this *CreateApiKeyRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if !this.Spec.Equal(that1.Spec) { + if this.GroupId != that1.GroupId { return false } - if this.AsyncOperationId != that1.AsyncOperationId { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } return true } -func (this *CreateApiKeyResponse) Equal(that interface{}) bool { +func (this *UpdateUserGroupRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*CreateApiKeyResponse) + that1, ok := that.(*UpdateUserGroupRequest) if !ok { - that2, ok := that.(CreateApiKeyResponse) + that2, ok := that.(UpdateUserGroupRequest) if ok { that1 = &that2 } else { @@ -6610,25 +7031,28 @@ func (this *CreateApiKeyResponse) Equal(that interface{}) bool { } else if this == nil { return false } - if this.KeyId != that1.KeyId { + if this.GroupId != that1.GroupId { return false } - if this.Token != that1.Token { + if !this.Spec.Equal(that1.Spec) { return false } - if !this.AsyncOperation.Equal(that1.AsyncOperation) { + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { return false } return true } -func (this *UpdateApiKeyRequest) Equal(that interface{}) bool { +func (this *UpdateUserGroupResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateApiKeyRequest) + that1, ok := that.(*UpdateUserGroupResponse) if !ok { - that2, ok := that.(UpdateApiKeyRequest) + that2, ok := that.(UpdateUserGroupResponse) if ok { that1 = &that2 } else { @@ -6640,10 +7064,31 @@ func (this *UpdateApiKeyRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.KeyId != that1.KeyId { + if !this.AsyncOperation.Equal(that1.AsyncOperation) { return false } - if !this.Spec.Equal(that1.Spec) { + return true +} +func (this *DeleteUserGroupRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DeleteUserGroupRequest) + if !ok { + that2, ok := that.(DeleteUserGroupRequest) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.GroupId != that1.GroupId { return false } if this.ResourceVersion != that1.ResourceVersion { @@ -6654,14 +7099,14 @@ func (this *UpdateApiKeyRequest) Equal(that interface{}) bool { } return true } -func (this *UpdateApiKeyResponse) Equal(that interface{}) bool { +func (this *DeleteUserGroupResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*UpdateApiKeyResponse) + that1, ok := that.(*DeleteUserGroupResponse) if !ok { - that2, ok := that.(UpdateApiKeyResponse) + that2, ok := that.(DeleteUserGroupResponse) if ok { that1 = &that2 } else { @@ -6678,14 +7123,14 @@ func (this *UpdateApiKeyResponse) Equal(that interface{}) bool { } return true } -func (this *DeleteApiKeyRequest) Equal(that interface{}) bool { +func (this *SetUserGroupNamespaceAccessRequest) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteApiKeyRequest) + that1, ok := that.(*SetUserGroupNamespaceAccessRequest) if !ok { - that2, ok := that.(DeleteApiKeyRequest) + that2, ok := that.(SetUserGroupNamespaceAccessRequest) if ok { that1 = &that2 } else { @@ -6697,7 +7142,13 @@ func (this *DeleteApiKeyRequest) Equal(that interface{}) bool { } else if this == nil { return false } - if this.KeyId != that1.KeyId { + if this.Namespace != that1.Namespace { + return false + } + if this.GroupId != that1.GroupId { + return false + } + if !this.Access.Equal(that1.Access) { return false } if this.ResourceVersion != that1.ResourceVersion { @@ -6708,14 +7159,14 @@ func (this *DeleteApiKeyRequest) Equal(that interface{}) bool { } return true } -func (this *DeleteApiKeyResponse) Equal(that interface{}) bool { +func (this *SetUserGroupNamespaceAccessResponse) Equal(that interface{}) bool { if that == nil { return this == nil } - that1, ok := that.(*DeleteApiKeyResponse) + that1, ok := that.(*SetUserGroupNamespaceAccessResponse) if !ok { - that2, ok := that.(DeleteApiKeyResponse) + that2, ok := that.(SetUserGroupNamespaceAccessResponse) if ok { that1 = &that2 } else { @@ -6732,2812 +7183,2338 @@ func (this *DeleteApiKeyResponse) Equal(that interface{}) bool { } return true } -func (this *GetUsersRequest) GoString() string { - if this == nil { - return "nil" +func (this *CreateServiceAccountRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.GetUsersRequest{") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") - s = append(s, "Email: "+fmt.Sprintf("%#v", this.Email)+",\n") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetUsersResponse) GoString() string { - if this == nil { - return "nil" + + that1, ok := that.(*CreateServiceAccountRequest) + if !ok { + that2, ok := that.(CreateServiceAccountRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.GetUsersResponse{") - if this.Users != nil { - s = append(s, "Users: "+fmt.Sprintf("%#v", this.Users)+",\n") + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetUserRequest) GoString() string { - if this == nil { - return "nil" + if !this.Spec.Equal(that1.Spec) { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetUserRequest{") - s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + if this.AsyncOperationId != that1.AsyncOperationId { + return false + } + return true } -func (this *GetUserResponse) GoString() string { - if this == nil { - return "nil" +func (this *CreateServiceAccountResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetUserResponse{") - if this.User != nil { - s = append(s, "User: "+fmt.Sprintf("%#v", this.User)+",\n") + + that1, ok := that.(*CreateServiceAccountResponse) + if !ok { + that2, ok := that.(CreateServiceAccountResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CreateUserRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateUserRequest{") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if this.ServiceAccountId != that1.ServiceAccountId { + return false } - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false + } + return true } -func (this *CreateUserResponse) GoString() string { - if this == nil { - return "nil" +func (this *GetServiceAccountRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateUserResponse{") - s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*GetServiceAccountRequest) + if !ok { + that2, ok := that.(GetServiceAccountRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateUserRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.UpdateUserRequest{") - s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if this.ServiceAccountId != that1.ServiceAccountId { + return false } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *UpdateUserResponse) GoString() string { - if this == nil { - return "nil" +func (this *GetServiceAccountResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.UpdateUserResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*GetServiceAccountResponse) + if !ok { + that2, ok := that.(GetServiceAccountResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteUserRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.DeleteUserRequest{") - s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteUserResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.DeleteUserResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if !this.ServiceAccount.Equal(that1.ServiceAccount) { + return false } - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *SetUserNamespaceAccessRequest) GoString() string { - if this == nil { - return "nil" +func (this *GetServiceAccountsRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 9) - s = append(s, "&cloudservice.SetUserNamespaceAccessRequest{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") - if this.Access != nil { - s = append(s, "Access: "+fmt.Sprintf("%#v", this.Access)+",\n") + + that1, ok := that.(*GetServiceAccountsRequest) + if !ok { + that2, ok := that.(GetServiceAccountsRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SetUserNamespaceAccessResponse) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.SetUserNamespaceAccessResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if this.PageSize != that1.PageSize { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetAsyncOperationRequest) GoString() string { - if this == nil { - return "nil" + if this.PageToken != that1.PageToken { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetAsyncOperationRequest{") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *GetAsyncOperationResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetAsyncOperationResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") +func (this *GetServiceAccountsResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CreateNamespaceRequest) GoString() string { - if this == nil { - return "nil" + + that1, ok := that.(*GetServiceAccountsResponse) + if !ok { + that2, ok := that.(GetServiceAccountsResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateNamespaceRequest{") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CreateNamespaceResponse) GoString() string { - if this == nil { - return "nil" + if len(this.ServiceAccount) != len(that1.ServiceAccount) { + return false } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateNamespaceResponse{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + for i := range this.ServiceAccount { + if !this.ServiceAccount[i].Equal(that1.ServiceAccount[i]) { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetNamespacesRequest) GoString() string { - if this == nil { - return "nil" + if this.NextPageToken != that1.NextPageToken { + return false } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.GetNamespacesRequest{") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *GetNamespacesResponse) GoString() string { - if this == nil { - return "nil" +func (this *UpdateServiceAccountRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.GetNamespacesResponse{") - if this.Namespaces != nil { - s = append(s, "Namespaces: "+fmt.Sprintf("%#v", this.Namespaces)+",\n") + + that1, ok := that.(*UpdateServiceAccountRequest) + if !ok { + that2, ok := that.(UpdateServiceAccountRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetNamespaceRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetNamespaceRequest{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetNamespaceResponse) GoString() string { - if this == nil { - return "nil" + if this.ServiceAccountId != that1.ServiceAccountId { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetNamespaceResponse{") - if this.Namespace != nil { - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + if !this.Spec.Equal(that1.Spec) { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateNamespaceRequest) GoString() string { - if this == nil { - return "nil" + if this.ResourceVersion != that1.ResourceVersion { + return false } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.UpdateNamespaceRequest{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if this.AsyncOperationId != that1.AsyncOperationId { + return false } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *UpdateNamespaceResponse) GoString() string { - if this == nil { - return "nil" +func (this *UpdateServiceAccountResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.UpdateNamespaceResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*UpdateServiceAccountResponse) + if !ok { + that2, ok := that.(UpdateServiceAccountResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *RenameCustomSearchAttributeRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 9) - s = append(s, "&cloudservice.RenameCustomSearchAttributeRequest{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "ExistingCustomSearchAttributeName: "+fmt.Sprintf("%#v", this.ExistingCustomSearchAttributeName)+",\n") - s = append(s, "NewCustomSearchAttributeName: "+fmt.Sprintf("%#v", this.NewCustomSearchAttributeName)+",\n") - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false + } + return true } -func (this *RenameCustomSearchAttributeResponse) GoString() string { - if this == nil { - return "nil" +func (this *DeleteServiceAccountRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.RenameCustomSearchAttributeResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*DeleteServiceAccountRequest) + if !ok { + that2, ok := that.(DeleteServiceAccountRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteNamespaceRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.DeleteNamespaceRequest{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteNamespaceResponse) GoString() string { - if this == nil { - return "nil" + if this.ServiceAccountId != that1.ServiceAccountId { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.DeleteNamespaceResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if this.ResourceVersion != that1.ResourceVersion { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *FailoverNamespaceRegionRequest) GoString() string { - if this == nil { - return "nil" + if this.AsyncOperationId != that1.AsyncOperationId { + return false } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.FailoverNamespaceRegionRequest{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *FailoverNamespaceRegionResponse) GoString() string { - if this == nil { - return "nil" +func (this *DeleteServiceAccountResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.FailoverNamespaceRegionResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*DeleteServiceAccountResponse) + if !ok { + that2, ok := that.(DeleteServiceAccountResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *AddNamespaceRegionRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.AddNamespaceRegionRequest{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false + } + return true } -func (this *AddNamespaceRegionResponse) GoString() string { - if this == nil { - return "nil" +func (this *GetApiKeysRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.AddNamespaceRegionResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*GetApiKeysRequest) + if !ok { + that2, ok := that.(GetApiKeysRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetRegionsRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 4) - s = append(s, "&cloudservice.GetRegionsRequest{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetRegionsResponse) GoString() string { - if this == nil { - return "nil" + if this.PageSize != that1.PageSize { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetRegionsResponse{") - if this.Regions != nil { - s = append(s, "Regions: "+fmt.Sprintf("%#v", this.Regions)+",\n") + if this.PageToken != that1.PageToken { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetRegionRequest) GoString() string { - if this == nil { - return "nil" + if this.OwnerId != that1.OwnerId { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetRegionRequest{") - s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetRegionResponse) GoString() string { - if this == nil { - return "nil" + if this.OwnerTypeDeprecated != that1.OwnerTypeDeprecated { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetRegionResponse{") - if this.Region != nil { - s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") + if this.OwnerType != that1.OwnerType { + return false } - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *GetNexusEndpointsRequest) GoString() string { - if this == nil { - return "nil" +func (this *GetApiKeysResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 9) - s = append(s, "&cloudservice.GetNexusEndpointsRequest{") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") - s = append(s, "TargetNamespaceId: "+fmt.Sprintf("%#v", this.TargetNamespaceId)+",\n") - s = append(s, "TargetTaskQueue: "+fmt.Sprintf("%#v", this.TargetTaskQueue)+",\n") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetNexusEndpointsResponse) GoString() string { - if this == nil { - return "nil" + + that1, ok := that.(*GetApiKeysResponse) + if !ok { + that2, ok := that.(GetApiKeysResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.GetNexusEndpointsResponse{") - if this.Endpoints != nil { - s = append(s, "Endpoints: "+fmt.Sprintf("%#v", this.Endpoints)+",\n") + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetNexusEndpointRequest) GoString() string { - if this == nil { - return "nil" + if len(this.ApiKeys) != len(that1.ApiKeys) { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetNexusEndpointRequest{") - s = append(s, "EndpointId: "+fmt.Sprintf("%#v", this.EndpointId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetNexusEndpointResponse) GoString() string { - if this == nil { - return "nil" + for i := range this.ApiKeys { + if !this.ApiKeys[i].Equal(that1.ApiKeys[i]) { + return false + } } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetNexusEndpointResponse{") - if this.Endpoint != nil { - s = append(s, "Endpoint: "+fmt.Sprintf("%#v", this.Endpoint)+",\n") + if this.NextPageToken != that1.NextPageToken { + return false } - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *CreateNexusEndpointRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateNexusEndpointRequest{") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") +func (this *GetApiKeyRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CreateNexusEndpointResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateNexusEndpointResponse{") - s = append(s, "EndpointId: "+fmt.Sprintf("%#v", this.EndpointId)+",\n") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*GetApiKeyRequest) + if !ok { + that2, ok := that.(GetApiKeyRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateNexusEndpointRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.UpdateNexusEndpointRequest{") - s = append(s, "EndpointId: "+fmt.Sprintf("%#v", this.EndpointId)+",\n") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if this.KeyId != that1.KeyId { + return false } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *UpdateNexusEndpointResponse) GoString() string { - if this == nil { - return "nil" +func (this *GetApiKeyResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.UpdateNexusEndpointResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*GetApiKeyResponse) + if !ok { + that2, ok := that.(GetApiKeyResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteNexusEndpointRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.DeleteNexusEndpointRequest{") - s = append(s, "EndpointId: "+fmt.Sprintf("%#v", this.EndpointId)+",\n") - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + if !this.ApiKey.Equal(that1.ApiKey) { + return false + } + return true } -func (this *DeleteNexusEndpointResponse) GoString() string { - if this == nil { - return "nil" +func (this *CreateApiKeyRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.DeleteNexusEndpointResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*CreateApiKeyRequest) + if !ok { + that2, ok := that.(CreateApiKeyRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetAccountRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 4) - s = append(s, "&cloudservice.GetAccountRequest{") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetAccountResponse) GoString() string { - if this == nil { - return "nil" + if !this.Spec.Equal(that1.Spec) { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetAccountResponse{") - if this.Account != nil { - s = append(s, "Account: "+fmt.Sprintf("%#v", this.Account)+",\n") + if this.AsyncOperationId != that1.AsyncOperationId { + return false } - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *UpdateAccountRequest) GoString() string { - if this == nil { - return "nil" +func (this *CreateApiKeyResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.UpdateAccountRequest{") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + + that1, ok := that.(*CreateApiKeyResponse) + if !ok { + that2, ok := that.(CreateApiKeyResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateAccountResponse) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.UpdateAccountResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if this.KeyId != that1.KeyId { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetUserGroupsRequest) GoString() string { - if this == nil { - return "nil" + if this.Token != that1.Token { + return false } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.GetUserGroupsRequest{") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "GroupName: "+fmt.Sprintf("%#v", this.GroupName)+",\n") - s = append(s, "}") - return strings.Join(s, "") + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false + } + return true } -func (this *GetUserGroupsResponse) GoString() string { - if this == nil { - return "nil" +func (this *UpdateApiKeyRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.GetUserGroupsResponse{") - if this.Groups != nil { - s = append(s, "Groups: "+fmt.Sprintf("%#v", this.Groups)+",\n") + + that1, ok := that.(*UpdateApiKeyRequest) + if !ok { + that2, ok := that.(UpdateApiKeyRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetUserGroupRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetUserGroupRequest{") - s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetUserGroupResponse) GoString() string { - if this == nil { - return "nil" + if this.KeyId != that1.KeyId { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetUserGroupResponse{") - if this.Group != nil { - s = append(s, "Group: "+fmt.Sprintf("%#v", this.Group)+",\n") + if !this.Spec.Equal(that1.Spec) { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CreateUserGroupRequest) GoString() string { - if this == nil { - return "nil" + if this.ResourceVersion != that1.ResourceVersion { + return false } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateUserGroupRequest{") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if this.AsyncOperationId != that1.AsyncOperationId { + return false } - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *CreateUserGroupResponse) GoString() string { - if this == nil { - return "nil" +func (this *UpdateApiKeyResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateUserGroupResponse{") - s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*UpdateApiKeyResponse) + if !ok { + that2, ok := that.(UpdateApiKeyResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateUserGroupRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.UpdateUserGroupRequest{") - s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *UpdateUserGroupResponse) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.UpdateUserGroupResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") +func (this *DeleteApiKeyRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteUserGroupRequest) GoString() string { - if this == nil { - return "nil" + + that1, ok := that.(*DeleteApiKeyRequest) + if !ok { + that2, ok := that.(DeleteApiKeyRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.DeleteUserGroupRequest{") - s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteUserGroupResponse) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.DeleteUserGroupResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if this.KeyId != that1.KeyId { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *SetUserGroupNamespaceAccessRequest) GoString() string { - if this == nil { - return "nil" + if this.ResourceVersion != that1.ResourceVersion { + return false } - s := make([]string, 0, 9) - s = append(s, "&cloudservice.SetUserGroupNamespaceAccessRequest{") - s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") - s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") - if this.Access != nil { - s = append(s, "Access: "+fmt.Sprintf("%#v", this.Access)+",\n") + if this.AsyncOperationId != that1.AsyncOperationId { + return false } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *SetUserGroupNamespaceAccessResponse) GoString() string { - if this == nil { - return "nil" +func (this *DeleteApiKeyResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.SetUserGroupNamespaceAccessResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*DeleteApiKeyResponse) + if !ok { + that2, ok := that.(DeleteApiKeyResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CreateServiceAccountRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateServiceAccountRequest{") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false } - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *CreateServiceAccountResponse) GoString() string { - if this == nil { - return "nil" +func (this *GetAuditLogsRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateServiceAccountResponse{") - s = append(s, "ServiceAccountId: "+fmt.Sprintf("%#v", this.ServiceAccountId)+",\n") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + + that1, ok := that.(*GetAuditLogsRequest) + if !ok { + that2, ok := that.(GetAuditLogsRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetServiceAccountRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetServiceAccountRequest{") - s = append(s, "ServiceAccountId: "+fmt.Sprintf("%#v", this.ServiceAccountId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetServiceAccountResponse) GoString() string { - if this == nil { - return "nil" + if this.PageSize != that1.PageSize { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetServiceAccountResponse{") - if this.ServiceAccount != nil { - s = append(s, "ServiceAccount: "+fmt.Sprintf("%#v", this.ServiceAccount)+",\n") + if this.PageToken != that1.PageToken { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetServiceAccountsRequest) GoString() string { - if this == nil { - return "nil" + if !this.StartTimeInclusive.Equal(that1.StartTimeInclusive) { + return false } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.GetServiceAccountsRequest{") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") + if !this.EndTimeExclusive.Equal(that1.EndTimeExclusive) { + return false + } + return true } -func (this *GetServiceAccountsResponse) GoString() string { - if this == nil { - return "nil" +func (this *GetAuditLogsResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.GetServiceAccountsResponse{") - if this.ServiceAccount != nil { - s = append(s, "ServiceAccount: "+fmt.Sprintf("%#v", this.ServiceAccount)+",\n") + + that1, ok := that.(*GetAuditLogsResponse) + if !ok { + that2, ok := that.(GetAuditLogsResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateServiceAccountRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.UpdateServiceAccountRequest{") - s = append(s, "ServiceAccountId: "+fmt.Sprintf("%#v", this.ServiceAccountId)+",\n") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if len(this.Logs) != len(that1.Logs) { + return false } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateServiceAccountResponse) GoString() string { - if this == nil { - return "nil" + for i := range this.Logs { + if !this.Logs[i].Equal(that1.Logs[i]) { + return false + } } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.UpdateServiceAccountResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if this.NextPageToken != that1.NextPageToken { + return false } - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *DeleteServiceAccountRequest) GoString() string { - if this == nil { - return "nil" +func (this *GetUsageRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.DeleteServiceAccountRequest{") - s = append(s, "ServiceAccountId: "+fmt.Sprintf("%#v", this.ServiceAccountId)+",\n") - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteServiceAccountResponse) GoString() string { - if this == nil { - return "nil" + + that1, ok := that.(*GetUsageRequest) + if !ok { + that2, ok := that.(GetUsageRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.DeleteServiceAccountResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetApiKeysRequest) GoString() string { - if this == nil { - return "nil" + if !this.StartTimeInclusive.Equal(that1.StartTimeInclusive) { + return false } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.GetApiKeysRequest{") - s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") - s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") - s = append(s, "OwnerId: "+fmt.Sprintf("%#v", this.OwnerId)+",\n") - s = append(s, "OwnerType: "+fmt.Sprintf("%#v", this.OwnerType)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetApiKeysResponse) GoString() string { - if this == nil { - return "nil" + if !this.EndTimeExclusive.Equal(that1.EndTimeExclusive) { + return false } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.GetApiKeysResponse{") - if this.ApiKeys != nil { - s = append(s, "ApiKeys: "+fmt.Sprintf("%#v", this.ApiKeys)+",\n") + if this.PageSize != that1.PageSize { + return false } - s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *GetApiKeyRequest) GoString() string { - if this == nil { - return "nil" + if this.PageToken != that1.PageToken { + return false } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetApiKeyRequest{") - s = append(s, "KeyId: "+fmt.Sprintf("%#v", this.KeyId)+",\n") - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *GetApiKeyResponse) GoString() string { - if this == nil { - return "nil" +func (this *GetUsageResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.GetApiKeyResponse{") - if this.ApiKey != nil { - s = append(s, "ApiKey: "+fmt.Sprintf("%#v", this.ApiKey)+",\n") + + that1, ok := that.(*GetUsageResponse) + if !ok { + that2, ok := that.(GetUsageResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CreateApiKeyRequest) GoString() string { - if this == nil { - return "nil" + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s := make([]string, 0, 6) - s = append(s, "&cloudservice.CreateApiKeyRequest{") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + if len(this.Summaries) != len(that1.Summaries) { + return false } - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *CreateApiKeyResponse) GoString() string { - if this == nil { - return "nil" + for i := range this.Summaries { + if !this.Summaries[i].Equal(that1.Summaries[i]) { + return false + } } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.CreateApiKeyResponse{") - s = append(s, "KeyId: "+fmt.Sprintf("%#v", this.KeyId)+",\n") - s = append(s, "Token: "+fmt.Sprintf("%#v", this.Token)+",\n") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if this.NextPageToken != that1.NextPageToken { + return false } - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *UpdateApiKeyRequest) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 8) - s = append(s, "&cloudservice.UpdateApiKeyRequest{") - s = append(s, "KeyId: "+fmt.Sprintf("%#v", this.KeyId)+",\n") - if this.Spec != nil { - s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") +func (this *GetAccountRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *UpdateApiKeyResponse) GoString() string { - if this == nil { - return "nil" + + that1, ok := that.(*GetAccountRequest) + if !ok { + that2, ok := that.(GetAccountRequest) + if ok { + that1 = &that2 + } else { + return false + } } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.UpdateApiKeyResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s = append(s, "}") - return strings.Join(s, "") + return true } -func (this *DeleteApiKeyRequest) GoString() string { - if this == nil { - return "nil" +func (this *GetAccountResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - s := make([]string, 0, 7) - s = append(s, "&cloudservice.DeleteApiKeyRequest{") - s = append(s, "KeyId: "+fmt.Sprintf("%#v", this.KeyId)+",\n") - s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") - s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteApiKeyResponse) GoString() string { - if this == nil { - return "nil" + + that1, ok := that.(*GetAccountResponse) + if !ok { + that2, ok := that.(GetAccountResponse) + if ok { + that1 = &that2 + } else { + return false + } } - s := make([]string, 0, 5) - s = append(s, "&cloudservice.DeleteApiKeyResponse{") - if this.AsyncOperation != nil { - s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + if that1 == nil { + return this == nil + } else if this == nil { + return false } - s = append(s, "}") - return strings.Join(s, "") -} -func valueToGoStringRequestResponse(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" + if !this.Account.Equal(that1.Account) { + return false } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) + return true } -func (m *GetUsersRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *CreateNamespaceExportSinkRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - return dAtA[:n], nil -} - -func (m *GetUsersRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} -func (m *GetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x22 + that1, ok := that.(*CreateNamespaceExportSinkRequest) + if !ok { + that2, ok := that.(CreateNamespaceExportSinkRequest) + if ok { + that1 = &that2 + } else { + return false + } } - if len(m.Email) > 0 { - i -= len(m.Email) - copy(dAtA[i:], m.Email) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Email))) - i-- - dAtA[i] = 0x1a + if that1 == nil { + return this == nil + } else if this == nil { + return false } - if len(m.PageToken) > 0 { - i -= len(m.PageToken) - copy(dAtA[i:], m.PageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) - i-- - dAtA[i] = 0x12 + if this.Namespace != that1.Namespace { + return false } - if m.PageSize != 0 { - i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x8 + if !this.Spec.Equal(that1.Spec) { + return false } - return len(dAtA) - i, nil -} - -func (m *GetUsersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if this.AsyncOperationId != that1.AsyncOperationId { + return false } - return dAtA[:n], nil -} - -func (m *GetUsersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return true } - -func (m *GetUsersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 +func (this *CreateNamespaceExportSinkResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - if len(m.Users) > 0 { - for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Users[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + + that1, ok := that.(*CreateNamespaceExportSinkResponse) + if !ok { + that2, ok := that.(CreateNamespaceExportSinkResponse) + if ok { + that1 = &that2 + } else { + return false } } - return len(dAtA) - i, nil -} - -func (m *GetUserRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if that1 == nil { + return this == nil + } else if this == nil { + return false } - return dAtA[:n], nil -} - -func (m *GetUserRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.UserId) > 0 { - i -= len(m.UserId) - copy(dAtA[i:], m.UserId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) - i-- - dAtA[i] = 0xa + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false } - return len(dAtA) - i, nil + return true } - -func (m *GetUserResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetNamespaceExportSinkRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - return dAtA[:n], nil -} - -func (m *GetUserResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} -func (m *GetUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.User != nil { - { - size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + that1, ok := that.(*GetNamespaceExportSinkRequest) + if !ok { + that2, ok := that.(GetNamespaceExportSinkRequest) + if ok { + that1 = &that2 + } else { + return false } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil -} - -func (m *CreateUserRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if that1 == nil { + return this == nil + } else if this == nil { + return false } - return dAtA[:n], nil -} - -func (m *CreateUserRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CreateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x12 + if this.Namespace != that1.Namespace { + return false } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if this.Name != that1.Name { + return false } - return len(dAtA) - i, nil + return true } - -func (m *CreateUserResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetNamespaceExportSinkResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil } - return dAtA[:n], nil -} - -func (m *CreateUserResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} -func (m *CreateUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + that1, ok := that.(*GetNamespaceExportSinkResponse) + if !ok { + that2, ok := that.(GetNamespaceExportSinkResponse) + if ok { + that1 = &that2 + } else { + return false } - i-- - dAtA[i] = 0x12 } - if len(m.UserId) > 0 { - i -= len(m.UserId) - copy(dAtA[i:], m.UserId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) - i-- - dAtA[i] = 0xa + if that1 == nil { + return this == nil + } else if this == nil { + return false } - return len(dAtA) - i, nil + if !this.Sink.Equal(that1.Sink) { + return false + } + return true } +func (this *GetNamespaceExportSinksRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *UpdateUserRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + that1, ok := that.(*GetNamespaceExportSinksRequest) + if !ok { + that2, ok := that.(GetNamespaceExportSinksRequest) + if ok { + that1 = &that2 + } else { + return false + } } - return dAtA[:n], nil -} - -func (m *UpdateUserRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Namespace != that1.Namespace { + return false + } + if this.PageSize != that1.PageSize { + return false + } + if this.PageToken != that1.PageToken { + return false + } + return true } +func (this *GetNamespaceExportSinksResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *UpdateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x22 + that1, ok := that.(*GetNamespaceExportSinksResponse) + if !ok { + that2, ok := that.(GetNamespaceExportSinksResponse) + if ok { + that1 = &that2 + } else { + return false + } } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x1a + if that1 == nil { + return this == nil + } else if this == nil { + return false } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + if len(this.Sinks) != len(that1.Sinks) { + return false + } + for i := range this.Sinks { + if !this.Sinks[i].Equal(that1.Sinks[i]) { + return false } - i-- - dAtA[i] = 0x12 } - if len(m.UserId) > 0 { - i -= len(m.UserId) - copy(dAtA[i:], m.UserId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) - i-- - dAtA[i] = 0xa + if this.NextPageToken != that1.NextPageToken { + return false } - return len(dAtA) - i, nil + return true } - -func (m *UpdateUserResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *UpdateNamespaceExportSinkRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil } - return dAtA[:n], nil -} - -func (m *UpdateUserResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} -func (m *UpdateUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + that1, ok := that.(*UpdateNamespaceExportSinkRequest) + if !ok { + that2, ok := that.(UpdateNamespaceExportSinkRequest) + if ok { + that1 = &that2 + } else { + return false } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil -} - -func (m *DeleteUserRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if that1 == nil { + return this == nil + } else if this == nil { + return false } - return dAtA[:n], nil -} - -func (m *DeleteUserRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x1a + if this.Namespace != that1.Namespace { + return false } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x12 + if !this.Spec.Equal(that1.Spec) { + return false } - if len(m.UserId) > 0 { - i -= len(m.UserId) - copy(dAtA[i:], m.UserId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) - i-- - dAtA[i] = 0xa + if this.ResourceVersion != that1.ResourceVersion { + return false } - return len(dAtA) - i, nil -} - -func (m *DeleteUserResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if this.AsyncOperationId != that1.AsyncOperationId { + return false } - return dAtA[:n], nil -} - -func (m *DeleteUserResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return true } +func (this *UpdateNamespaceExportSinkResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *DeleteUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + that1, ok := that.(*UpdateNamespaceExportSinkResponse) + if !ok { + that2, ok := that.(UpdateNamespaceExportSinkResponse) + if ok { + that1 = &that2 + } else { + return false } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false + } + return true } +func (this *DeleteNamespaceExportSinkRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *SetUserNamespaceAccessRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + that1, ok := that.(*DeleteNamespaceExportSinkRequest) + if !ok { + that2, ok := that.(DeleteNamespaceExportSinkRequest) + if ok { + that1 = &that2 + } else { + return false + } } - return dAtA[:n], nil + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Namespace != that1.Namespace { + return false + } + if this.Name != that1.Name { + return false + } + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.AsyncOperationId != that1.AsyncOperationId { + return false + } + return true } +func (this *DeleteNamespaceExportSinkResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *SetUserNamespaceAccessRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + that1, ok := that.(*DeleteNamespaceExportSinkResponse) + if !ok { + that2, ok := that.(DeleteNamespaceExportSinkResponse) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.AsyncOperation.Equal(that1.AsyncOperation) { + return false + } + return true } +func (this *ValidateNamespaceExportSinkRequest) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *SetUserNamespaceAccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x2a - } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x22 - } - if m.Access != nil { - { - size, err := m.Access.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + that1, ok := that.(*ValidateNamespaceExportSinkRequest) + if !ok { + that2, ok := that.(ValidateNamespaceExportSinkRequest) + if ok { + that1 = &that2 + } else { + return false } - i-- - dAtA[i] = 0x1a } - if len(m.UserId) > 0 { - i -= len(m.UserId) - copy(dAtA[i:], m.UserId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) - i-- - dAtA[i] = 0x12 + if that1 == nil { + return this == nil + } else if this == nil { + return false } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + if this.Namespace != that1.Namespace { + return false } - return len(dAtA) - i, nil -} - -func (m *SetUserNamespaceAccessResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if !this.Spec.Equal(that1.Spec) { + return false } - return dAtA[:n], nil -} - -func (m *SetUserNamespaceAccessResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return true } +func (this *ValidateNamespaceExportSinkResponse) Equal(that interface{}) bool { + if that == nil { + return this == nil + } -func (m *SetUserNamespaceAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + that1, ok := that.(*ValidateNamespaceExportSinkResponse) + if !ok { + that2, ok := that.(ValidateNamespaceExportSinkResponse) + if ok { + that1 = &that2 + } else { + return false } - i-- - dAtA[i] = 0xa } - return len(dAtA) - i, nil -} - -func (m *GetAsyncOperationRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + if that1 == nil { + return this == nil + } else if this == nil { + return false } - return dAtA[:n], nil -} - -func (m *GetAsyncOperationRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return true } - -func (m *GetAsyncOperationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0xa +func (this *GetUsersRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 8) + s = append(s, "&cloudservice.GetUsersRequest{") + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + s = append(s, "Email: "+fmt.Sprintf("%#v", this.Email)+",\n") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetAsyncOperationResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetUsersResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *GetAsyncOperationResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetAsyncOperationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetUsersResponse{") + if this.Users != nil { + s = append(s, "Users: "+fmt.Sprintf("%#v", this.Users)+",\n") } - return len(dAtA) - i, nil + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *CreateNamespaceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetUserRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *CreateNamespaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetUserRequest{") + s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *CreateNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x1a +func (this *GetUserResponse) GoString() string { + if this == nil { + return "nil" } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetUserResponse{") + if this.User != nil { + s = append(s, "User: "+fmt.Sprintf("%#v", this.User)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *CreateNamespaceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *CreateUserRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *CreateNamespaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateUserRequest{") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *CreateNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +func (this *CreateUserResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateUserResponse{") + s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespacesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *UpdateUserRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *GetNamespacesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GetNamespacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x1a + s := make([]string, 0, 8) + s = append(s, "&cloudservice.UpdateUserRequest{") + s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } - if len(m.PageToken) > 0 { - i -= len(m.PageToken) - copy(dAtA[i:], m.PageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) - i-- - dAtA[i] = 0x12 + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UpdateUserResponse) GoString() string { + if this == nil { + return "nil" } - if m.PageSize != 0 { - i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x8 + s := make([]string, 0, 5) + s = append(s, "&cloudservice.UpdateUserResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespacesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *DeleteUserRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 7) + s = append(s, "&cloudservice.DeleteUserRequest{") + s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespacesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *DeleteUserResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.DeleteUserResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 +func (this *SetUserNamespaceAccessRequest) GoString() string { + if this == nil { + return "nil" } - if len(m.Namespaces) > 0 { - for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Namespaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + s := make([]string, 0, 9) + s = append(s, "&cloudservice.SetUserNamespaceAccessRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n") + if this.Access != nil { + s = append(s, "Access: "+fmt.Sprintf("%#v", this.Access)+",\n") } - return len(dAtA) - i, nil + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespaceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *SetUserNamespaceAccessResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 5) + s = append(s, "&cloudservice.SetUserNamespaceAccessResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *GetAsyncOperationRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetAsyncOperationRequest{") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa +func (this *GetAsyncOperationResponse) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetAsyncOperationResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespaceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *CreateNamespaceRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateNamespaceRequest{") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *CreateNamespaceResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateNamespaceResponse{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Namespace != nil { - { - size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (this *GetNamespacesRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 7) + s = append(s, "&cloudservice.GetNamespacesRequest{") + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNamespaceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetNamespacesResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetNamespacesResponse{") + if this.Namespaces != nil { + s = append(s, "Namespaces: "+fmt.Sprintf("%#v", this.Namespaces)+",\n") + } + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNamespaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *GetNamespaceRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetNamespaceRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x22 +func (this *GetNamespaceResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x1a + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetNamespaceResponse{") + if this.Namespace != nil { + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UpdateNamespaceRequest) GoString() string { + if this == nil { + return "nil" } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + s := make([]string, 0, 8) + s = append(s, "&cloudservice.UpdateNamespaceRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } - return len(dAtA) - i, nil + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNamespaceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *UpdateNamespaceResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *UpdateNamespaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UpdateNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + s := make([]string, 0, 5) + s = append(s, "&cloudservice.UpdateNamespaceResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *RenameCustomSearchAttributeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *RenameCustomSearchAttributeRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *RenameCustomSearchAttributeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s := make([]string, 0, 9) + s = append(s, "&cloudservice.RenameCustomSearchAttributeRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "ExistingCustomSearchAttributeName: "+fmt.Sprintf("%#v", this.ExistingCustomSearchAttributeName)+",\n") + s = append(s, "NewCustomSearchAttributeName: "+fmt.Sprintf("%#v", this.NewCustomSearchAttributeName)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *RenameCustomSearchAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x2a +func (this *RenameCustomSearchAttributeResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x22 + s := make([]string, 0, 5) + s = append(s, "&cloudservice.RenameCustomSearchAttributeResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - if len(m.NewCustomSearchAttributeName) > 0 { - i -= len(m.NewCustomSearchAttributeName) - copy(dAtA[i:], m.NewCustomSearchAttributeName) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NewCustomSearchAttributeName))) - i-- - dAtA[i] = 0x1a + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DeleteNamespaceRequest) GoString() string { + if this == nil { + return "nil" } - if len(m.ExistingCustomSearchAttributeName) > 0 { - i -= len(m.ExistingCustomSearchAttributeName) - copy(dAtA[i:], m.ExistingCustomSearchAttributeName) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ExistingCustomSearchAttributeName))) - i-- - dAtA[i] = 0x12 + s := make([]string, 0, 7) + s = append(s, "&cloudservice.DeleteNamespaceRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DeleteNamespaceResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + s := make([]string, 0, 5) + s = append(s, "&cloudservice.DeleteNamespaceResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *RenameCustomSearchAttributeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RenameCustomSearchAttributeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RenameCustomSearchAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (this *FailoverNamespaceRegionRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 7) + s = append(s, "&cloudservice.FailoverNamespaceRegionRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *DeleteNamespaceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *FailoverNamespaceRegionResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *DeleteNamespaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s := make([]string, 0, 5) + s = append(s, "&cloudservice.FailoverNamespaceRegionResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *DeleteNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x1a +func (this *AddNamespaceRegionRequest) GoString() string { + if this == nil { + return "nil" } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x12 + s := make([]string, 0, 8) + s = append(s, "&cloudservice.AddNamespaceRegionRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *AddNamespaceRegionResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + s := make([]string, 0, 5) + s = append(s, "&cloudservice.AddNamespaceRegionResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *DeleteNamespaceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetRegionsRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *DeleteNamespaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s := make([]string, 0, 4) + s = append(s, "&cloudservice.GetRegionsRequest{") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *DeleteNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (this *GetRegionsResponse) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil -} - -func (m *FailoverNamespaceRegionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetRegionsResponse{") + if this.Regions != nil { + s = append(s, "Regions: "+fmt.Sprintf("%#v", this.Regions)+",\n") } - return dAtA[:n], nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *FailoverNamespaceRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *GetRegionRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetRegionRequest{") + s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *FailoverNamespaceRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x1a +func (this *GetRegionResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.Region) > 0 { - i -= len(m.Region) - copy(dAtA[i:], m.Region) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Region))) - i-- - dAtA[i] = 0x12 + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetRegionResponse{") + if this.Region != nil { + s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetNexusEndpointsRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 9) + s = append(s, "&cloudservice.GetNexusEndpointsRequest{") + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + s = append(s, "TargetNamespaceId: "+fmt.Sprintf("%#v", this.TargetNamespaceId)+",\n") + s = append(s, "TargetTaskQueue: "+fmt.Sprintf("%#v", this.TargetTaskQueue)+",\n") + s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *FailoverNamespaceRegionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetNexusEndpointsResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetNexusEndpointsResponse{") + if this.Endpoints != nil { + s = append(s, "Endpoints: "+fmt.Sprintf("%#v", this.Endpoints)+",\n") + } + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *FailoverNamespaceRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *GetNexusEndpointRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetNexusEndpointRequest{") + s = append(s, "EndpointId: "+fmt.Sprintf("%#v", this.EndpointId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *FailoverNamespaceRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (this *GetNexusEndpointResponse) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetNexusEndpointResponse{") + if this.Endpoint != nil { + s = append(s, "Endpoint: "+fmt.Sprintf("%#v", this.Endpoint)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *AddNamespaceRegionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *CreateNexusEndpointRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateNexusEndpointRequest{") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *AddNamespaceRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *CreateNexusEndpointResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateNexusEndpointResponse{") + s = append(s, "EndpointId: "+fmt.Sprintf("%#v", this.EndpointId)+",\n") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *AddNamespaceRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x22 +func (this *UpdateNexusEndpointRequest) GoString() string { + if this == nil { + return "nil" } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x1a + s := make([]string, 0, 8) + s = append(s, "&cloudservice.UpdateNexusEndpointRequest{") + s = append(s, "EndpointId: "+fmt.Sprintf("%#v", this.EndpointId)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } - if len(m.Region) > 0 { - i -= len(m.Region) - copy(dAtA[i:], m.Region) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Region))) - i-- - dAtA[i] = 0x12 + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UpdateNexusEndpointResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa + s := make([]string, 0, 5) + s = append(s, "&cloudservice.UpdateNexusEndpointResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *AddNamespaceRegionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *DeleteNexusEndpointRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 7) + s = append(s, "&cloudservice.DeleteNexusEndpointRequest{") + s = append(s, "EndpointId: "+fmt.Sprintf("%#v", this.EndpointId)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *AddNamespaceRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *DeleteNexusEndpointResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.DeleteNexusEndpointResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *AddNamespaceRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (this *UpdateAccountRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 7) + s = append(s, "&cloudservice.UpdateAccountRequest{") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *UpdateAccountResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 5) + s = append(s, "&cloudservice.UpdateAccountResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *GetUserGroupsRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&cloudservice.GetUserGroupsRequest{") + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "DisplayName: "+fmt.Sprintf("%#v", this.DisplayName)+",\n") + if this.GoogleGroup != nil { + s = append(s, "GoogleGroup: "+fmt.Sprintf("%#v", this.GoogleGroup)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +func (this *GetUserGroupsRequest_GoogleGroupFilter) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetUserGroupsRequest_GoogleGroupFilter{") + s = append(s, "EmailAddress: "+fmt.Sprintf("%#v", this.EmailAddress)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetUserGroupsResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetUserGroupsResponse{") + if this.Groups != nil { + s = append(s, "Groups: "+fmt.Sprintf("%#v", this.Groups)+",\n") + } + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *GetUserGroupRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetUserGroupRequest{") + s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Regions) > 0 { - for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } +func (this *GetUserGroupResponse) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil -} - -func (m *GetRegionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetUserGroupResponse{") + if this.Group != nil { + s = append(s, "Group: "+fmt.Sprintf("%#v", this.Group)+",\n") } - return dAtA[:n], nil -} - -func (m *GetRegionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Region) > 0 { - i -= len(m.Region) - copy(dAtA[i:], m.Region) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Region))) - i-- - dAtA[i] = 0xa +func (this *CreateUserGroupRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateUserGroupRequest{") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *CreateUserGroupResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateUserGroupResponse{") + s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *UpdateUserGroupRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&cloudservice.UpdateUserGroupRequest{") + s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Region != nil { - { - size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (this *UpdateUserGroupResponse) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 5) + s = append(s, "&cloudservice.UpdateUserGroupResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *DeleteUserGroupRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 7) + s = append(s, "&cloudservice.DeleteUserGroupRequest{") + s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *DeleteUserGroupResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.DeleteUserGroupResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x2a +func (this *SetUserGroupNamespaceAccessRequest) GoString() string { + if this == nil { + return "nil" } - if len(m.TargetTaskQueue) > 0 { - i -= len(m.TargetTaskQueue) - copy(dAtA[i:], m.TargetTaskQueue) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.TargetTaskQueue))) - i-- - dAtA[i] = 0x22 + s := make([]string, 0, 9) + s = append(s, "&cloudservice.SetUserGroupNamespaceAccessRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "GroupId: "+fmt.Sprintf("%#v", this.GroupId)+",\n") + if this.Access != nil { + s = append(s, "Access: "+fmt.Sprintf("%#v", this.Access)+",\n") } - if len(m.TargetNamespaceId) > 0 { - i -= len(m.TargetNamespaceId) - copy(dAtA[i:], m.TargetNamespaceId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.TargetNamespaceId))) - i-- - dAtA[i] = 0x1a + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *SetUserGroupNamespaceAccessResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.PageToken) > 0 { - i -= len(m.PageToken) - copy(dAtA[i:], m.PageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) - i-- - dAtA[i] = 0x12 + s := make([]string, 0, 5) + s = append(s, "&cloudservice.SetUserGroupNamespaceAccessResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - if m.PageSize != 0 { - i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) - i-- - dAtA[i] = 0x8 + s = append(s, "}") + return strings.Join(s, "") +} +func (this *CreateServiceAccountRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateServiceAccountRequest{") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *CreateServiceAccountResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateServiceAccountResponse{") + s = append(s, "ServiceAccountId: "+fmt.Sprintf("%#v", this.ServiceAccountId)+",\n") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *GetServiceAccountRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetServiceAccountRequest{") + s = append(s, "ServiceAccountId: "+fmt.Sprintf("%#v", this.ServiceAccountId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 +func (this *GetServiceAccountResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.Endpoints) > 0 { - for iNdEx := len(m.Endpoints) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Endpoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetServiceAccountResponse{") + if this.ServiceAccount != nil { + s = append(s, "ServiceAccount: "+fmt.Sprintf("%#v", this.ServiceAccount)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetServiceAccountsRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *GetNexusEndpointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetServiceAccountsRequest{") + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.EndpointId) > 0 { - i -= len(m.EndpointId) - copy(dAtA[i:], m.EndpointId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EndpointId))) - i-- - dAtA[i] = 0xa +func (this *GetServiceAccountsResponse) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil -} - -func (m *GetNexusEndpointResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetServiceAccountsResponse{") + if this.ServiceAccount != nil { + s = append(s, "ServiceAccount: "+fmt.Sprintf("%#v", this.ServiceAccount)+",\n") } - return dAtA[:n], nil -} - -func (m *GetNexusEndpointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetNexusEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Endpoint != nil { - { - size, err := m.Endpoint.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (this *UpdateServiceAccountRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil -} - -func (m *CreateNexusEndpointRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + s := make([]string, 0, 8) + s = append(s, "&cloudservice.UpdateServiceAccountRequest{") + s = append(s, "ServiceAccountId: "+fmt.Sprintf("%#v", this.ServiceAccountId)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } - return dAtA[:n], nil -} - -func (m *CreateNexusEndpointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *CreateNexusEndpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x12 +func (this *UpdateServiceAccountResponse) GoString() string { + if this == nil { + return "nil" } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + s := make([]string, 0, 5) + s = append(s, "&cloudservice.UpdateServiceAccountResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *CreateNexusEndpointResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *DeleteServiceAccountRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *CreateNexusEndpointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + s := make([]string, 0, 7) + s = append(s, "&cloudservice.DeleteServiceAccountRequest{") + s = append(s, "ServiceAccountId: "+fmt.Sprintf("%#v", this.ServiceAccountId)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *CreateNexusEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 +func (this *DeleteServiceAccountResponse) GoString() string { + if this == nil { + return "nil" } - if len(m.EndpointId) > 0 { - i -= len(m.EndpointId) - copy(dAtA[i:], m.EndpointId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EndpointId))) - i-- - dAtA[i] = 0xa + s := make([]string, 0, 5) + s = append(s, "&cloudservice.DeleteServiceAccountResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNexusEndpointRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetApiKeysRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 9) + s = append(s, "&cloudservice.GetApiKeysRequest{") + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + s = append(s, "OwnerId: "+fmt.Sprintf("%#v", this.OwnerId)+",\n") + s = append(s, "OwnerTypeDeprecated: "+fmt.Sprintf("%#v", this.OwnerTypeDeprecated)+",\n") + s = append(s, "OwnerType: "+fmt.Sprintf("%#v", this.OwnerType)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNexusEndpointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *GetApiKeysResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetApiKeysResponse{") + if this.ApiKeys != nil { + s = append(s, "ApiKeys: "+fmt.Sprintf("%#v", this.ApiKeys)+",\n") + } + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNexusEndpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x22 +func (this *GetApiKeyRequest) GoString() string { + if this == nil { + return "nil" } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x1a + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetApiKeyRequest{") + s = append(s, "KeyId: "+fmt.Sprintf("%#v", this.KeyId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetApiKeyResponse) GoString() string { + if this == nil { + return "nil" } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetApiKeyResponse{") + if this.ApiKey != nil { + s = append(s, "ApiKey: "+fmt.Sprintf("%#v", this.ApiKey)+",\n") } - if len(m.EndpointId) > 0 { - i -= len(m.EndpointId) - copy(dAtA[i:], m.EndpointId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EndpointId))) - i-- - dAtA[i] = 0xa + s = append(s, "}") + return strings.Join(s, "") +} +func (this *CreateApiKeyRequest) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 6) + s = append(s, "&cloudservice.CreateApiKeyRequest{") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNexusEndpointResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *CreateApiKeyResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 7) + s = append(s, "&cloudservice.CreateApiKeyResponse{") + s = append(s, "KeyId: "+fmt.Sprintf("%#v", this.KeyId)+",\n") + s = append(s, "Token: "+fmt.Sprintf("%#v", this.Token)+",\n") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNexusEndpointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *UpdateApiKeyRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&cloudservice.UpdateApiKeyRequest{") + s = append(s, "KeyId: "+fmt.Sprintf("%#v", this.KeyId)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *UpdateNexusEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa +func (this *UpdateApiKeyResponse) GoString() string { + if this == nil { + return "nil" } - return len(dAtA) - i, nil + s := make([]string, 0, 5) + s = append(s, "&cloudservice.UpdateApiKeyResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *DeleteNexusEndpointRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *DeleteApiKeyRequest) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil + s := make([]string, 0, 7) + s = append(s, "&cloudservice.DeleteApiKeyRequest{") + s = append(s, "KeyId: "+fmt.Sprintf("%#v", this.KeyId)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *DeleteNexusEndpointRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (this *DeleteApiKeyResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.DeleteApiKeyResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") } - -func (m *DeleteNexusEndpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x1a +func (this *GetAuditLogsRequest) GoString() string { + if this == nil { + return "nil" } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x12 + s := make([]string, 0, 8) + s = append(s, "&cloudservice.GetAuditLogsRequest{") + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + if this.StartTimeInclusive != nil { + s = append(s, "StartTimeInclusive: "+fmt.Sprintf("%#v", this.StartTimeInclusive)+",\n") } - if len(m.EndpointId) > 0 { - i -= len(m.EndpointId) - copy(dAtA[i:], m.EndpointId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EndpointId))) - i-- - dAtA[i] = 0xa + if this.EndTimeExclusive != nil { + s = append(s, "EndTimeExclusive: "+fmt.Sprintf("%#v", this.EndTimeExclusive)+",\n") } - return len(dAtA) - i, nil + s = append(s, "}") + return strings.Join(s, "") } - -func (m *DeleteNexusEndpointResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (this *GetAuditLogsResponse) GoString() string { + if this == nil { + return "nil" } - return dAtA[:n], nil -} - -func (m *DeleteNexusEndpointResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteNexusEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetAuditLogsResponse{") + if this.Logs != nil { + s = append(s, "Logs: "+fmt.Sprintf("%#v", this.Logs)+",\n") } - return len(dAtA) - i, nil + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") } - -func (m *GetAccountRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { +func (this *GetUsageRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&cloudservice.GetUsageRequest{") + if this.StartTimeInclusive != nil { + s = append(s, "StartTimeInclusive: "+fmt.Sprintf("%#v", this.StartTimeInclusive)+",\n") + } + if this.EndTimeExclusive != nil { + s = append(s, "EndTimeExclusive: "+fmt.Sprintf("%#v", this.EndTimeExclusive)+",\n") + } + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetUsageResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetUsageResponse{") + if this.Summaries != nil { + s = append(s, "Summaries: "+fmt.Sprintf("%#v", this.Summaries)+",\n") + } + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetAccountRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 4) + s = append(s, "&cloudservice.GetAccountRequest{") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetAccountResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetAccountResponse{") + if this.Account != nil { + s = append(s, "Account: "+fmt.Sprintf("%#v", this.Account)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *CreateNamespaceExportSinkRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&cloudservice.CreateNamespaceExportSinkRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *CreateNamespaceExportSinkResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.CreateNamespaceExportSinkResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetNamespaceExportSinkRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetNamespaceExportSinkRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetNamespaceExportSinkResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.GetNamespaceExportSinkResponse{") + if this.Sink != nil { + s = append(s, "Sink: "+fmt.Sprintf("%#v", this.Sink)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetNamespaceExportSinksRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&cloudservice.GetNamespaceExportSinksRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "PageSize: "+fmt.Sprintf("%#v", this.PageSize)+",\n") + s = append(s, "PageToken: "+fmt.Sprintf("%#v", this.PageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GetNamespaceExportSinksResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&cloudservice.GetNamespaceExportSinksResponse{") + if this.Sinks != nil { + s = append(s, "Sinks: "+fmt.Sprintf("%#v", this.Sinks)+",\n") + } + s = append(s, "NextPageToken: "+fmt.Sprintf("%#v", this.NextPageToken)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UpdateNamespaceExportSinkRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&cloudservice.UpdateNamespaceExportSinkRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *UpdateNamespaceExportSinkResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.UpdateNamespaceExportSinkResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DeleteNamespaceExportSinkRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&cloudservice.DeleteNamespaceExportSinkRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DeleteNamespaceExportSinkResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&cloudservice.DeleteNamespaceExportSinkResponse{") + if this.AsyncOperation != nil { + s = append(s, "AsyncOperation: "+fmt.Sprintf("%#v", this.AsyncOperation)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ValidateNamespaceExportSinkRequest) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&cloudservice.ValidateNamespaceExportSinkRequest{") + s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ValidateNamespaceExportSinkResponse) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 4) + s = append(s, "&cloudservice.ValidateNamespaceExportSinkResponse{") + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringRequestResponse(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func (m *GetUsersRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { return nil, err } return dAtA[:n], nil } -func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetUsersRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x22 + } + if len(m.Email) > 0 { + i -= len(m.Email) + copy(dAtA[i:], m.Email) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Email))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 + } + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } -func (m *GetAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *GetUsersResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9547,32 +9524,41 @@ func (m *GetAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetUsersResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetUsersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Account != nil { - { - size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.Users) > 0 { + for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Users[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *GetUserRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9582,46 +9568,27 @@ func (m *UpdateAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetUserRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) i-- - dAtA[i] = 0x1a - } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x12 - } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *GetUserResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9631,19 +9598,19 @@ func (m *UpdateAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetUserResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.AsyncOperation != nil { + if m.User != nil { { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.User.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -9656,7 +9623,7 @@ func (m *UpdateAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *GetUserGroupsRequest) Marshal() (dAtA []byte, err error) { +func (m *CreateUserRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9666,46 +9633,39 @@ func (m *GetUserGroupsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetUserGroupsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *CreateUserRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetUserGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CreateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.GroupName) > 0 { - i -= len(m.GroupName) - copy(dAtA[i:], m.GroupName) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupName))) - i-- - dAtA[i] = 0x22 - } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0x1a - } - if len(m.PageToken) > 0 { - i -= len(m.PageToken) - copy(dAtA[i:], m.PageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) i-- dAtA[i] = 0x12 } - if m.PageSize != 0 { - i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetUserGroupsResponse) Marshal() (dAtA []byte, err error) { +func (m *CreateUserResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9715,41 +9675,39 @@ func (m *GetUserGroupsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetUserGroupsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *CreateUserResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetUserGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CreateUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x12 } - if len(m.Groups) > 0 { - for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Groups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetUserGroupRequest) Marshal() (dAtA []byte, err error) { +func (m *UpdateUserRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9759,27 +9717,53 @@ func (m *GetUserGroupRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetUserGroupRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateUserRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.GroupId) > 0 { - i -= len(m.GroupId) - copy(dAtA[i:], m.GroupId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetUserGroupResponse) Marshal() (dAtA []byte, err error) { +func (m *UpdateUserResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9789,19 +9773,19 @@ func (m *GetUserGroupResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetUserGroupResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateUserResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Group != nil { + if m.AsyncOperation != nil { { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -9814,7 +9798,7 @@ func (m *GetUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *CreateUserGroupRequest) Marshal() (dAtA []byte, err error) { +func (m *DeleteUserRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9824,12 +9808,12 @@ func (m *CreateUserGroupRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateUserGroupRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *DeleteUserRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DeleteUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -9839,24 +9823,26 @@ func (m *CreateUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) copy(dAtA[i:], m.AsyncOperationId) i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) i-- + dAtA[i] = 0x1a + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- dAtA[i] = 0x12 } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *CreateUserGroupResponse) Marshal() (dAtA []byte, err error) { +func (m *DeleteUserResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9866,12 +9852,12 @@ func (m *CreateUserGroupResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateUserGroupResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *DeleteUserResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DeleteUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -9886,19 +9872,12 @@ func (m *CreateUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 - } - if len(m.GroupId) > 0 { - i -= len(m.GroupId) - copy(dAtA[i:], m.GroupId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) - i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateUserGroupRequest) Marshal() (dAtA []byte, err error) { +func (m *SetUserNamespaceAccessRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9908,12 +9887,12 @@ func (m *UpdateUserGroupRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateUserGroupRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *SetUserNamespaceAccessRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SetUserNamespaceAccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -9923,18 +9902,18 @@ func (m *UpdateUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) copy(dAtA[i:], m.AsyncOperationId) i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } if len(m.ResourceVersion) > 0 { i -= len(m.ResourceVersion) copy(dAtA[i:], m.ResourceVersion) i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x22 } - if m.Spec != nil { + if m.Access != nil { { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Access.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -9942,19 +9921,26 @@ func (m *UpdateUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x1a + } + if len(m.UserId) > 0 { + i -= len(m.UserId) + copy(dAtA[i:], m.UserId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.UserId))) + i-- dAtA[i] = 0x12 } - if len(m.GroupId) > 0 { - i -= len(m.GroupId) - copy(dAtA[i:], m.GroupId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateUserGroupResponse) Marshal() (dAtA []byte, err error) { +func (m *SetUserNamespaceAccessResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9964,12 +9950,12 @@ func (m *UpdateUserGroupResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateUserGroupResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *SetUserNamespaceAccessResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *SetUserNamespaceAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -9989,7 +9975,7 @@ func (m *UpdateUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *DeleteUserGroupRequest) Marshal() (dAtA []byte, err error) { +func (m *GetAsyncOperationRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9999,12 +9985,12 @@ func (m *DeleteUserGroupRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DeleteUserGroupRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetAsyncOperationRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DeleteUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetAsyncOperationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10014,26 +10000,12 @@ func (m *DeleteUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) copy(dAtA[i:], m.AsyncOperationId) i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) i-- - dAtA[i] = 0x1a - } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x12 - } - if len(m.GroupId) > 0 { - i -= len(m.GroupId) - copy(dAtA[i:], m.GroupId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) - i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *DeleteUserGroupResponse) Marshal() (dAtA []byte, err error) { +func (m *GetAsyncOperationResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10043,12 +10015,12 @@ func (m *DeleteUserGroupResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DeleteUserGroupResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetAsyncOperationResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DeleteUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetAsyncOperationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10068,7 +10040,7 @@ func (m *DeleteUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *SetUserGroupNamespaceAccessRequest) Marshal() (dAtA []byte, err error) { +func (m *CreateNamespaceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10078,12 +10050,12 @@ func (m *SetUserGroupNamespaceAccessRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *SetUserGroupNamespaceAccessRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *CreateNamespaceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SetUserGroupNamespaceAccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CreateNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10093,18 +10065,11 @@ func (m *SetUserGroupNamespaceAccessRequest) MarshalToSizedBuffer(dAtA []byte) ( copy(dAtA[i:], m.AsyncOperationId) i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) i-- - dAtA[i] = 0x2a - } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } - if m.Access != nil { + if m.Spec != nil { { - size, err := m.Access.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -10112,26 +10077,12 @@ func (m *SetUserGroupNamespaceAccessRequest) MarshalToSizedBuffer(dAtA []byte) ( i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - } - if len(m.GroupId) > 0 { - i -= len(m.GroupId) - copy(dAtA[i:], m.GroupId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) - i-- dAtA[i] = 0x12 } - if len(m.Namespace) > 0 { - i -= len(m.Namespace) - copy(dAtA[i:], m.Namespace) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *SetUserGroupNamespaceAccessResponse) Marshal() (dAtA []byte, err error) { +func (m *CreateNamespaceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10141,12 +10092,12 @@ func (m *SetUserGroupNamespaceAccessResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *SetUserGroupNamespaceAccessResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *CreateNamespaceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *SetUserGroupNamespaceAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *CreateNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10161,12 +10112,19 @@ func (m *SetUserGroupNamespaceAccessResponse) MarshalToSizedBuffer(dAtA []byte) i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x12 + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *CreateServiceAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *GetNamespacesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10176,39 +10134,39 @@ func (m *CreateServiceAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateServiceAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetNamespacesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetNamespacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) i-- dAtA[i] = 0x12 } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *CreateServiceAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *GetNamespacesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10218,39 +10176,41 @@ func (m *CreateServiceAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateServiceAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetNamespacesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetNamespacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) i-- dAtA[i] = 0x12 } - if len(m.ServiceAccountId) > 0 { - i -= len(m.ServiceAccountId) - copy(dAtA[i:], m.ServiceAccountId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ServiceAccountId))) - i-- - dAtA[i] = 0xa + if len(m.Namespaces) > 0 { + for iNdEx := len(m.Namespaces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Namespaces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *GetServiceAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *GetNamespaceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10260,27 +10220,27 @@ func (m *GetServiceAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetServiceAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetNamespaceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ServiceAccountId) > 0 { - i -= len(m.ServiceAccountId) - copy(dAtA[i:], m.ServiceAccountId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ServiceAccountId))) + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetServiceAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *GetNamespaceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10290,19 +10250,19 @@ func (m *GetServiceAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetServiceAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetNamespaceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ServiceAccount != nil { + if m.Namespace != nil { { - size, err := m.ServiceAccount.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Namespace.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -10315,7 +10275,7 @@ func (m *GetServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *GetServiceAccountsRequest) Marshal() (dAtA []byte, err error) { +func (m *UpdateNamespaceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10325,32 +10285,53 @@ func (m *GetServiceAccountsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetServiceAccountsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateNamespaceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetServiceAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.PageToken) > 0 { - i -= len(m.PageToken) - copy(dAtA[i:], m.PageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a + } + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x12 } - if m.PageSize != 0 { - i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetServiceAccountsResponse) Marshal() (dAtA []byte, err error) { +func (m *UpdateNamespaceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10360,41 +10341,32 @@ func (m *GetServiceAccountsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetServiceAccountsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *UpdateNamespaceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetServiceAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *UpdateNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.ServiceAccount) > 0 { - for iNdEx := len(m.ServiceAccount) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ServiceAccount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateServiceAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *RenameCustomSearchAttributeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10404,12 +10376,12 @@ func (m *UpdateServiceAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateServiceAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RenameCustomSearchAttributeRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RenameCustomSearchAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10419,38 +10391,40 @@ func (m *UpdateServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, er copy(dAtA[i:], m.AsyncOperationId) i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } if len(m.ResourceVersion) > 0 { i -= len(m.ResourceVersion) copy(dAtA[i:], m.ResourceVersion) i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) i-- + dAtA[i] = 0x22 + } + if len(m.NewCustomSearchAttributeName) > 0 { + i -= len(m.NewCustomSearchAttributeName) + copy(dAtA[i:], m.NewCustomSearchAttributeName) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NewCustomSearchAttributeName))) + i-- dAtA[i] = 0x1a } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } + if len(m.ExistingCustomSearchAttributeName) > 0 { + i -= len(m.ExistingCustomSearchAttributeName) + copy(dAtA[i:], m.ExistingCustomSearchAttributeName) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ExistingCustomSearchAttributeName))) i-- dAtA[i] = 0x12 } - if len(m.ServiceAccountId) > 0 { - i -= len(m.ServiceAccountId) - copy(dAtA[i:], m.ServiceAccountId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ServiceAccountId))) + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateServiceAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *RenameCustomSearchAttributeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10460,12 +10434,12 @@ func (m *UpdateServiceAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateServiceAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RenameCustomSearchAttributeResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RenameCustomSearchAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10485,7 +10459,7 @@ func (m *UpdateServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *DeleteServiceAccountRequest) Marshal() (dAtA []byte, err error) { +func (m *DeleteNamespaceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10495,12 +10469,12 @@ func (m *DeleteServiceAccountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DeleteServiceAccountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *DeleteNamespaceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DeleteServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DeleteNamespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10519,17 +10493,17 @@ func (m *DeleteServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, er i-- dAtA[i] = 0x12 } - if len(m.ServiceAccountId) > 0 { - i -= len(m.ServiceAccountId) - copy(dAtA[i:], m.ServiceAccountId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ServiceAccountId))) + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *DeleteServiceAccountResponse) Marshal() (dAtA []byte, err error) { +func (m *DeleteNamespaceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10539,12 +10513,12 @@ func (m *DeleteServiceAccountResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DeleteServiceAccountResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *DeleteNamespaceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DeleteServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *DeleteNamespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10564,7 +10538,7 @@ func (m *DeleteServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *GetApiKeysRequest) Marshal() (dAtA []byte, err error) { +func (m *FailoverNamespaceRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10574,46 +10548,41 @@ func (m *GetApiKeysRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetApiKeysRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *FailoverNamespaceRegionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetApiKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *FailoverNamespaceRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.OwnerType) > 0 { - i -= len(m.OwnerType) - copy(dAtA[i:], m.OwnerType) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.OwnerType))) - i-- - dAtA[i] = 0x22 - } - if len(m.OwnerId) > 0 { - i -= len(m.OwnerId) - copy(dAtA[i:], m.OwnerId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.OwnerId))) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) i-- dAtA[i] = 0x1a } - if len(m.PageToken) > 0 { - i -= len(m.PageToken) - copy(dAtA[i:], m.PageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + if len(m.Region) > 0 { + i -= len(m.Region) + copy(dAtA[i:], m.Region) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Region))) i-- dAtA[i] = 0x12 } - if m.PageSize != 0 { - i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetApiKeysResponse) Marshal() (dAtA []byte, err error) { +func (m *FailoverNamespaceRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10623,41 +10592,32 @@ func (m *GetApiKeysResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetApiKeysResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *FailoverNamespaceRegionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetApiKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *FailoverNamespaceRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.NextPageToken) > 0 { - i -= len(m.NextPageToken) - copy(dAtA[i:], m.NextPageToken) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) - i-- - dAtA[i] = 0x12 - } - if len(m.ApiKeys) > 0 { - for iNdEx := len(m.ApiKeys) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ApiKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetApiKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *AddNamespaceRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10667,27 +10627,48 @@ func (m *GetApiKeyRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetApiKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *AddNamespaceRegionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetApiKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AddNamespaceRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.KeyId) > 0 { - i -= len(m.KeyId) - copy(dAtA[i:], m.KeyId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.KeyId))) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a + } + if len(m.Region) > 0 { + i -= len(m.Region) + copy(dAtA[i:], m.Region) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Region))) + i-- + dAtA[i] = 0x12 + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *GetApiKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *AddNamespaceRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10697,19 +10678,19 @@ func (m *GetApiKeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *GetApiKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *AddNamespaceRegionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *AddNamespaceRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.ApiKey != nil { + if m.AsyncOperation != nil { { - size, err := m.ApiKey.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -10722,7 +10703,7 @@ func (m *GetApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *CreateApiKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *GetRegionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10732,39 +10713,20 @@ func (m *CreateApiKeyRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateApiKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetRegionsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateApiKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetRegionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x12 - } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *CreateApiKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *GetRegionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10774,46 +10736,34 @@ func (m *CreateApiKeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CreateApiKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetRegionsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetRegionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.Regions) > 0 { + for iNdEx := len(m.Regions) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Regions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0x1a - } - if len(m.Token) > 0 { - i -= len(m.Token) - copy(dAtA[i:], m.Token) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Token))) - i-- - dAtA[i] = 0x12 - } - if len(m.KeyId) > 0 { - i -= len(m.KeyId) - copy(dAtA[i:], m.KeyId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.KeyId))) - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateApiKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *GetRegionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10823,53 +10773,27 @@ func (m *UpdateApiKeyRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateApiKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetRegionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateApiKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetRegionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x22 - } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) - i-- - dAtA[i] = 0x1a - } - if m.Spec != nil { - { - size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.KeyId) > 0 { - i -= len(m.KeyId) - copy(dAtA[i:], m.KeyId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.KeyId))) + if len(m.Region) > 0 { + i -= len(m.Region) + copy(dAtA[i:], m.Region) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Region))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *UpdateApiKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *GetRegionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10879,19 +10803,19 @@ func (m *UpdateApiKeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *UpdateApiKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetRegionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetRegionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.AsyncOperation != nil { + if m.Region != nil { { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Region.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -10904,7 +10828,7 @@ func (m *UpdateApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *DeleteApiKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *GetNexusEndpointsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10914,41 +10838,53 @@ func (m *DeleteApiKeyRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DeleteApiKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *GetNexusEndpointsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DeleteApiKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetNexusEndpointsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.AsyncOperationId) > 0 { - i -= len(m.AsyncOperationId) - copy(dAtA[i:], m.AsyncOperationId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) - i-- - dAtA[i] = 0x1a - } - if len(m.ResourceVersion) > 0 { - i -= len(m.ResourceVersion) - copy(dAtA[i:], m.ResourceVersion) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x2a + } + if len(m.TargetTaskQueue) > 0 { + i -= len(m.TargetTaskQueue) + copy(dAtA[i:], m.TargetTaskQueue) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.TargetTaskQueue))) + i-- + dAtA[i] = 0x22 + } + if len(m.TargetNamespaceId) > 0 { + i -= len(m.TargetNamespaceId) + copy(dAtA[i:], m.TargetNamespaceId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.TargetNamespaceId))) + i-- + dAtA[i] = 0x1a + } + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) i-- dAtA[i] = 0x12 } - if len(m.KeyId) > 0 { - i -= len(m.KeyId) - copy(dAtA[i:], m.KeyId) - i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.KeyId))) + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *DeleteApiKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *GetNexusEndpointsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10958,2350 +10894,6617 @@ func (m *DeleteApiKeyResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *DeleteApiKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *GetNexusEndpointsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *DeleteApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *GetNexusEndpointsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.AsyncOperation != nil { - { - size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } + if len(m.Endpoints) > 0 { + for iNdEx := len(m.Endpoints) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Endpoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintRequestResponse(dAtA []byte, offset int, v uint64) int { - offset -= sovRequestResponse(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *GetNexusEndpointRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *GetUsersRequest) Size() (n int) { - if m == nil { - return 0 - } + +func (m *GetNexusEndpointRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetNexusEndpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.PageSize != 0 { - n += 1 + sovRequestResponse(uint64(m.PageSize)) - } - l = len(m.PageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.Email) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.EndpointId) > 0 { + i -= len(m.EndpointId) + copy(dAtA[i:], m.EndpointId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EndpointId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetUsersResponse) Size() (n int) { - if m == nil { - return 0 +func (m *GetNexusEndpointResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetNexusEndpointResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetNexusEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Users) > 0 { - for _, e := range m.Users { - l = e.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Endpoint != nil { + { + size, err := m.Endpoint.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n + return len(dAtA) - i, nil } -func (m *GetUserRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UserId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *CreateNexusEndpointRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetUserResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.User != nil { - l = m.User.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *CreateNexusEndpointRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateUserRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *CreateNexusEndpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *CreateUserResponse) Size() (n int) { - if m == nil { - return 0 +func (m *CreateNexusEndpointResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *CreateNexusEndpointResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateNexusEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.UserId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n -} - -func (m *UpdateUserRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UserId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.EndpointId) > 0 { + i -= len(m.EndpointId) + copy(dAtA[i:], m.EndpointId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EndpointId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *UpdateUserResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *UpdateNexusEndpointRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *DeleteUserRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateNexusEndpointRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateNexusEndpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.UserId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return n + if len(m.EndpointId) > 0 { + i -= len(m.EndpointId) + copy(dAtA[i:], m.EndpointId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EndpointId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *DeleteUserResponse) Size() (n int) { - if m == nil { - return 0 +func (m *UpdateNexusEndpointResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UpdateNexusEndpointResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateNexusEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SetUserNamespaceAccessRequest) Size() (n int) { - if m == nil { - return 0 +func (m *DeleteNexusEndpointRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *DeleteNexusEndpointRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteNexusEndpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.UserId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.Access != nil { - l = m.Access.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x1a } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.EndpointId) > 0 { + i -= len(m.EndpointId) + copy(dAtA[i:], m.EndpointId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EndpointId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SetUserNamespaceAccessResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *DeleteNexusEndpointResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetAsyncOperationRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *DeleteNexusEndpointResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetAsyncOperationResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *DeleteNexusEndpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *CreateNamespaceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *UpdateAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CreateNamespaceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *UpdateAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetNamespacesRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.PageSize != 0 { - n += 1 + sovRequestResponse(uint64(m.PageSize)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x1a } - l = len(m.PageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x12 } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetNamespacesResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Namespaces) > 0 { - for _, e := range m.Namespaces { - l = e.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *UpdateAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetNamespaceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *UpdateAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetNamespaceResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Namespace != nil { - l = m.Namespace.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *UpdateNamespaceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *GetUserGroupsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *UpdateNamespaceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *GetUserGroupsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RenameCustomSearchAttributeRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetUserGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.GoogleGroup != nil { + { + size, err := m.GoogleGroup.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a } - l = len(m.ExistingCustomSearchAttributeName) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x22 } - l = len(m.NewCustomSearchAttributeName) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0x1a } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *RenameCustomSearchAttributeResponse) Size() (n int) { - if m == nil { - return 0 +func (m *GetUserGroupsRequest_GoogleGroupFilter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetUserGroupsRequest_GoogleGroupFilter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetUserGroupsRequest_GoogleGroupFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.EmailAddress) > 0 { + i -= len(m.EmailAddress) + copy(dAtA[i:], m.EmailAddress) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.EmailAddress))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *DeleteNamespaceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *GetUserGroupsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *DeleteNamespaceResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *GetUserGroupsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *FailoverNamespaceRegionRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetUserGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.Region) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.Groups) > 0 { + for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Groups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return n + return len(dAtA) - i, nil } -func (m *FailoverNamespaceRegionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *GetUserGroupRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *AddNamespaceRegionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.Region) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *GetUserGroupRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *AddNamespaceRegionResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.GroupId) > 0 { + i -= len(m.GroupId) + copy(dAtA[i:], m.GroupId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetRegionsRequest) Size() (n int) { - if m == nil { - return 0 +func (m *GetUserGroupResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *GetRegionsResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetUserGroupResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Regions) > 0 { - for _, e := range m.Regions { - l = e.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Group != nil { + { + size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetRegionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Region) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *CreateUserGroupRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetRegionResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Region != nil { - l = m.Region.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *CreateUserGroupRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetNexusEndpointsRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *CreateUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.PageSize != 0 { - n += 1 + sovRequestResponse(uint64(m.PageSize)) - } - l = len(m.PageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.TargetNamespaceId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.TargetTaskQueue) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x12 } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetNexusEndpointsResponse) Size() (n int) { - if m == nil { - return 0 +func (m *CreateUserGroupResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *CreateUserGroupResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Endpoints) > 0 { - for _, e := range m.Endpoints { - l = e.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.GroupId) > 0 { + i -= len(m.GroupId) + copy(dAtA[i:], m.GroupId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetNexusEndpointRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EndpointId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *UpdateUserGroupRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetNexusEndpointResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Endpoint != nil { - l = m.Endpoint.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *UpdateUserGroupRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateNexusEndpointRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a + } if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.GroupId) > 0 { + i -= len(m.GroupId) + copy(dAtA[i:], m.GroupId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *CreateNexusEndpointResponse) Size() (n int) { - if m == nil { - return 0 +func (m *UpdateUserGroupResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *UpdateUserGroupResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.EndpointId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *UpdateNexusEndpointRequest) Size() (n int) { - if m == nil { - return 0 +func (m *DeleteUserGroupRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *DeleteUserGroupRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.EndpointId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x1a } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.GroupId) > 0 { + i -= len(m.GroupId) + copy(dAtA[i:], m.GroupId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *UpdateNexusEndpointResponse) Size() (n int) { - if m == nil { - return 0 +func (m *DeleteUserGroupResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *DeleteUserGroupResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *DeleteNexusEndpointRequest) Size() (n int) { - if m == nil { - return 0 +func (m *SetUserGroupNamespaceAccessRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SetUserGroupNamespaceAccessRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetUserGroupNamespaceAccessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.EndpointId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x2a } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x22 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Access != nil { + { + size, err := m.Access.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - return n + if len(m.GroupId) > 0 { + i -= len(m.GroupId) + copy(dAtA[i:], m.GroupId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.GroupId))) + i-- + dAtA[i] = 0x12 + } + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *DeleteNexusEndpointResponse) Size() (n int) { - if m == nil { - return 0 +func (m *SetUserGroupNamespaceAccessResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *SetUserGroupNamespaceAccessResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SetUserGroupNamespaceAccessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetAccountRequest) Size() (n int) { - if m == nil { - return 0 +func (m *CreateServiceAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *GetAccountResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Account != nil { - l = m.Account.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *CreateServiceAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateAccountRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *CreateServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *UpdateAccountResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *CreateServiceAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetUserGroupsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PageSize != 0 { - n += 1 + sovRequestResponse(uint64(m.PageSize)) - } - l = len(m.PageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.GroupName) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *CreateServiceAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetUserGroupsResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *CreateServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if len(m.Groups) > 0 { - for _, e := range m.Groups { - l = e.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x12 } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ServiceAccountId) > 0 { + i -= len(m.ServiceAccountId) + copy(dAtA[i:], m.ServiceAccountId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ServiceAccountId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetUserGroupRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *GetServiceAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetUserGroupResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *GetServiceAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateUserGroupRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ServiceAccountId) > 0 { + i -= len(m.ServiceAccountId) + copy(dAtA[i:], m.ServiceAccountId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ServiceAccountId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *CreateUserGroupResponse) Size() (n int) { - if m == nil { - return 0 +func (m *GetServiceAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetServiceAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if m.ServiceAccount != nil { + { + size, err := m.ServiceAccount.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *UpdateUserGroupRequest) Size() (n int) { - if m == nil { - return 0 +func (m *GetServiceAccountsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetServiceAccountsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetServiceAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 } - return n + return len(dAtA) - i, nil } -func (m *UpdateUserGroupResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *GetServiceAccountsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *DeleteUserGroupRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetServiceAccountsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetServiceAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ServiceAccount) > 0 { + for iNdEx := len(m.ServiceAccount) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ServiceAccount[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - return n + return len(dAtA) - i, nil } -func (m *DeleteUserGroupResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *UpdateServiceAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *SetUserGroupNamespaceAccessRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateServiceAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Namespace) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 } - if m.Access != nil { - l = m.Access.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ServiceAccountId) > 0 { + i -= len(m.ServiceAccountId) + copy(dAtA[i:], m.ServiceAccountId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ServiceAccountId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *SetUserGroupNamespaceAccessResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *UpdateServiceAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CreateServiceAccountRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *UpdateServiceAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *CreateServiceAccountResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *UpdateServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.ServiceAccountId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetServiceAccountRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServiceAccountId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *DeleteServiceAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *GetServiceAccountResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ServiceAccount != nil { - l = m.ServiceAccount.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *DeleteServiceAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetServiceAccountsRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *DeleteServiceAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.PageSize != 0 { - n += 1 + sovRequestResponse(uint64(m.PageSize)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x1a } - l = len(m.PageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x12 } - return n + if len(m.ServiceAccountId) > 0 { + i -= len(m.ServiceAccountId) + copy(dAtA[i:], m.ServiceAccountId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ServiceAccountId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (m *GetServiceAccountsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ServiceAccount) > 0 { - for _, e := range m.ServiceAccount { - l = e.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *DeleteServiceAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *UpdateServiceAccountRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServiceAccountId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *DeleteServiceAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateServiceAccountResponse) Size() (n int) { - if m == nil { - return 0 - } +func (m *DeleteServiceAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *DeleteServiceAccountRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServiceAccountId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *GetApiKeysRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *DeleteServiceAccountResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *GetApiKeysRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GetApiKeysRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *GetApiKeysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - if m.PageSize != 0 { - n += 1 + sovRequestResponse(uint64(m.PageSize)) + if m.OwnerType != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.OwnerType)) + i-- + dAtA[i] = 0x28 } - l = len(m.PageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.OwnerTypeDeprecated) > 0 { + i -= len(m.OwnerTypeDeprecated) + copy(dAtA[i:], m.OwnerTypeDeprecated) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.OwnerTypeDeprecated))) + i-- + dAtA[i] = 0x22 } - l = len(m.OwnerId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.OwnerId) > 0 { + i -= len(m.OwnerId) + copy(dAtA[i:], m.OwnerId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.OwnerId))) + i-- + dAtA[i] = 0x1a } - l = len(m.OwnerType) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 } - return n + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } -func (m *GetApiKeysResponse) Size() (n int) { - if m == nil { - return 0 +func (m *GetApiKeysResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetApiKeysResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetApiKeysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 + } if len(m.ApiKeys) > 0 { - for _, e := range m.ApiKeys { - l = e.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + for iNdEx := len(m.ApiKeys) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ApiKeys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } } - l = len(m.NextPageToken) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n + return len(dAtA) - i, nil } -func (m *GetApiKeyRequest) Size() (n int) { - if m == nil { - return 0 +func (m *GetApiKeyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetApiKeyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetApiKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.KeyId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.KeyId) > 0 { + i -= len(m.KeyId) + copy(dAtA[i:], m.KeyId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.KeyId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *GetApiKeyResponse) Size() (n int) { - if m == nil { - return 0 +func (m *GetApiKeyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } + return dAtA[:n], nil +} + +func (m *GetApiKeyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l if m.ApiKey != nil { - l = m.ApiKey.Size() - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.ApiKey.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *CreateApiKeyRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *CreateApiKeyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *CreateApiKeyResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.KeyId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.Token) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - return n +func (m *CreateApiKeyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *UpdateApiKeyRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *CreateApiKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.KeyId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x12 } if m.Spec != nil { - l = m.Spec.Size() - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) - } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *UpdateApiKeyResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *CreateApiKeyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func (m *DeleteApiKeyRequest) Size() (n int) { - if m == nil { - return 0 - } +func (m *CreateApiKeyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CreateApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.KeyId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - l = len(m.ResourceVersion) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.Token) > 0 { + i -= len(m.Token) + copy(dAtA[i:], m.Token) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Token))) + i-- + dAtA[i] = 0x12 } - l = len(m.AsyncOperationId) - if l > 0 { - n += 1 + l + sovRequestResponse(uint64(l)) + if len(m.KeyId) > 0 { + i -= len(m.KeyId) + copy(dAtA[i:], m.KeyId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.KeyId))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *DeleteApiKeyResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AsyncOperation != nil { - l = m.AsyncOperation.Size() - n += 1 + l + sovRequestResponse(uint64(l)) +func (m *UpdateApiKeyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - return n + return dAtA[:n], nil } -func sovRequestResponse(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozRequestResponse(x uint64) (n int) { - return sovRequestResponse(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func (m *UpdateApiKeyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *GetUsersRequest) String() string { - if this == nil { - return "nil" + +func (m *UpdateApiKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 } - s := strings.Join([]string{`&GetUsersRequest{`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, - `Email:` + fmt.Sprintf("%v", this.Email) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s -} -func (this *GetUsersResponse) String() string { - if this == nil { - return "nil" + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a } - repeatedStringForUsers := "[]*User{" - for _, f := range this.Users { - repeatedStringForUsers += strings.Replace(fmt.Sprintf("%v", f), "User", "v1.User", 1) + "," + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - repeatedStringForUsers += "}" - s := strings.Join([]string{`&GetUsersResponse{`, - `Users:` + repeatedStringForUsers + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *GetUserRequest) String() string { - if this == nil { - return "nil" + if len(m.KeyId) > 0 { + i -= len(m.KeyId) + copy(dAtA[i:], m.KeyId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.KeyId))) + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&GetUserRequest{`, - `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *GetUserResponse) String() string { - if this == nil { - return "nil" + +func (m *UpdateApiKeyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&GetUserResponse{`, - `User:` + strings.Replace(fmt.Sprintf("%v", this.User), "User", "v1.User", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *CreateUserRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateUserRequest{`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "UserSpec", "v1.UserSpec", 1) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + +func (m *UpdateApiKeyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *CreateUserResponse) String() string { - if this == nil { - return "nil" + +func (m *UpdateApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&CreateUserResponse{`, - `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *UpdateUserRequest) String() string { - if this == nil { - return "nil" + +func (m *DeleteApiKeyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&UpdateUserRequest{`, - `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "UserSpec", "v1.UserSpec", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *UpdateUserResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateUserResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + +func (m *DeleteApiKeyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *DeleteUserRequest) String() string { - if this == nil { - return "nil" + +func (m *DeleteApiKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x1a } - s := strings.Join([]string{`&DeleteUserRequest{`, - `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteUserResponse) String() string { - if this == nil { - return "nil" + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x12 } - s := strings.Join([]string{`&DeleteUserResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s -} -func (this *SetUserNamespaceAccessRequest) String() string { - if this == nil { - return "nil" + if len(m.KeyId) > 0 { + i -= len(m.KeyId) + copy(dAtA[i:], m.KeyId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.KeyId))) + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&SetUserNamespaceAccessRequest{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, - `Access:` + strings.Replace(fmt.Sprintf("%v", this.Access), "NamespaceAccess", "v1.NamespaceAccess", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *SetUserNamespaceAccessResponse) String() string { - if this == nil { - return "nil" + +func (m *DeleteApiKeyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&SetUserNamespaceAccessResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetAsyncOperationRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetAsyncOperationRequest{`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + +func (m *DeleteApiKeyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *GetAsyncOperationResponse) String() string { - if this == nil { - return "nil" + +func (m *DeleteApiKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&GetAsyncOperationResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *CreateNamespaceRequest) String() string { - if this == nil { - return "nil" + +func (m *GetAuditLogsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&CreateNamespaceRequest{`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "NamespaceSpec", "v12.NamespaceSpec", 1) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *CreateNamespaceResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateNamespaceResponse{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + +func (m *GetAuditLogsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *GetNamespacesRequest) String() string { - if this == nil { - return "nil" + +func (m *GetAuditLogsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EndTimeExclusive != nil { + { + size, err := m.EndTimeExclusive.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - s := strings.Join([]string{`&GetNamespacesRequest{`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s -} -func (this *GetNamespacesResponse) String() string { - if this == nil { - return "nil" + if m.StartTimeInclusive != nil { + { + size, err := m.StartTimeInclusive.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - repeatedStringForNamespaces := "[]*Namespace{" - for _, f := range this.Namespaces { - repeatedStringForNamespaces += strings.Replace(fmt.Sprintf("%v", f), "Namespace", "v12.Namespace", 1) + "," + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x12 } - repeatedStringForNamespaces += "}" - s := strings.Join([]string{`&GetNamespacesResponse{`, - `Namespaces:` + repeatedStringForNamespaces + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *GetNamespaceRequest) String() string { - if this == nil { - return "nil" + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x8 } - s := strings.Join([]string{`&GetNamespaceRequest{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *GetNamespaceResponse) String() string { - if this == nil { - return "nil" + +func (m *GetAuditLogsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&GetNamespaceResponse{`, - `Namespace:` + strings.Replace(fmt.Sprintf("%v", this.Namespace), "Namespace", "v12.Namespace", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *UpdateNamespaceRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateNamespaceRequest{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "NamespaceSpec", "v12.NamespaceSpec", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + +func (m *GetAuditLogsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *UpdateNamespaceResponse) String() string { - if this == nil { - return "nil" + +func (m *GetAuditLogsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 } - s := strings.Join([]string{`&UpdateNamespaceResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s -} -func (this *RenameCustomSearchAttributeRequest) String() string { - if this == nil { - return "nil" + if len(m.Logs) > 0 { + for iNdEx := len(m.Logs) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Logs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - s := strings.Join([]string{`&RenameCustomSearchAttributeRequest{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `ExistingCustomSearchAttributeName:` + fmt.Sprintf("%v", this.ExistingCustomSearchAttributeName) + `,`, - `NewCustomSearchAttributeName:` + fmt.Sprintf("%v", this.NewCustomSearchAttributeName) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *RenameCustomSearchAttributeResponse) String() string { - if this == nil { - return "nil" + +func (m *GetUsageRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&RenameCustomSearchAttributeResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *DeleteNamespaceRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteNamespaceRequest{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + +func (m *GetUsageRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *DeleteNamespaceResponse) String() string { - if this == nil { - return "nil" + +func (m *GetUsageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x22 } - s := strings.Join([]string{`&DeleteNamespaceResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s -} -func (this *FailoverNamespaceRegionRequest) String() string { - if this == nil { - return "nil" + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x18 } - s := strings.Join([]string{`&FailoverNamespaceRegionRequest{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Region:` + fmt.Sprintf("%v", this.Region) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s -} -func (this *FailoverNamespaceRegionResponse) String() string { - if this == nil { - return "nil" + if m.EndTimeExclusive != nil { + { + size, err := m.EndTimeExclusive.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - s := strings.Join([]string{`&FailoverNamespaceRegionResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s -} -func (this *AddNamespaceRegionRequest) String() string { - if this == nil { - return "nil" + if m.StartTimeInclusive != nil { + { + size, err := m.StartTimeInclusive.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&AddNamespaceRegionRequest{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `Region:` + fmt.Sprintf("%v", this.Region) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *AddNamespaceRegionResponse) String() string { - if this == nil { - return "nil" + +func (m *GetUsageResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&AddNamespaceRegionResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetRegionsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetRegionsRequest{`, - `}`, - }, "") - return s + +func (m *GetUsageResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *GetRegionsResponse) String() string { - if this == nil { - return "nil" + +func (m *GetUsageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 } - repeatedStringForRegions := "[]*Region{" - for _, f := range this.Regions { - repeatedStringForRegions += strings.Replace(fmt.Sprintf("%v", f), "Region", "v13.Region", 1) + "," + if len(m.Summaries) > 0 { + for iNdEx := len(m.Summaries) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Summaries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - repeatedStringForRegions += "}" - s := strings.Join([]string{`&GetRegionsResponse{`, - `Regions:` + repeatedStringForRegions + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *GetRegionRequest) String() string { - if this == nil { - return "nil" + +func (m *GetAccountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&GetRegionRequest{`, - `Region:` + fmt.Sprintf("%v", this.Region) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetRegionResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetRegionResponse{`, - `Region:` + strings.Replace(fmt.Sprintf("%v", this.Region), "Region", "v13.Region", 1) + `,`, - `}`, - }, "") - return s + +func (m *GetAccountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *GetNexusEndpointsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetNexusEndpointsRequest{`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, - `TargetNamespaceId:` + fmt.Sprintf("%v", this.TargetNamespaceId) + `,`, - `TargetTaskQueue:` + fmt.Sprintf("%v", this.TargetTaskQueue) + `,`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, - `}`, - }, "") - return s + +func (m *GetAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil } -func (this *GetNexusEndpointsResponse) String() string { - if this == nil { - return "nil" - } - repeatedStringForEndpoints := "[]*Endpoint{" - for _, f := range this.Endpoints { - repeatedStringForEndpoints += strings.Replace(fmt.Sprintf("%v", f), "Endpoint", "v14.Endpoint", 1) + "," + +func (m *GetAccountResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - repeatedStringForEndpoints += "}" - s := strings.Join([]string{`&GetNexusEndpointsResponse{`, - `Endpoints:` + repeatedStringForEndpoints + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetNexusEndpointRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetNexusEndpointRequest{`, - `EndpointId:` + fmt.Sprintf("%v", this.EndpointId) + `,`, - `}`, - }, "") - return s + +func (m *GetAccountResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *GetNexusEndpointResponse) String() string { - if this == nil { - return "nil" + +func (m *GetAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Account != nil { + { + size, err := m.Account.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&GetNexusEndpointResponse{`, - `Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "Endpoint", "v14.Endpoint", 1) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *CreateNexusEndpointRequest) String() string { - if this == nil { - return "nil" + +func (m *CreateNamespaceExportSinkRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&CreateNexusEndpointRequest{`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "EndpointSpec", "v14.EndpointSpec", 1) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *CreateNexusEndpointResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&CreateNexusEndpointResponse{`, - `EndpointId:` + fmt.Sprintf("%v", this.EndpointId) + `,`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + +func (m *CreateNamespaceExportSinkRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *UpdateNexusEndpointRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateNexusEndpointRequest{`, - `EndpointId:` + fmt.Sprintf("%v", this.EndpointId) + `,`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "EndpointSpec", "v14.EndpointSpec", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s -} -func (this *UpdateNexusEndpointResponse) String() string { - if this == nil { - return "nil" + +func (m *CreateNamespaceExportSinkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x1a } - s := strings.Join([]string{`&UpdateNexusEndpointResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteNexusEndpointRequest) String() string { - if this == nil { - return "nil" + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - s := strings.Join([]string{`&DeleteNexusEndpointRequest{`, - `EndpointId:` + fmt.Sprintf("%v", this.EndpointId) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteNexusEndpointResponse) String() string { - if this == nil { - return "nil" + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&DeleteNexusEndpointResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *GetAccountRequest) String() string { - if this == nil { - return "nil" + +func (m *CreateNamespaceExportSinkResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&GetAccountRequest{`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetAccountResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetAccountResponse{`, - `Account:` + strings.Replace(fmt.Sprintf("%v", this.Account), "Account", "v15.Account", 1) + `,`, - `}`, - }, "") - return s + +func (m *CreateNamespaceExportSinkResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *UpdateAccountRequest) String() string { - if this == nil { - return "nil" + +func (m *CreateNamespaceExportSinkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&UpdateAccountRequest{`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "AccountSpec", "v15.AccountSpec", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *UpdateAccountResponse) String() string { - if this == nil { - return "nil" + +func (m *GetNamespaceExportSinkRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&UpdateAccountResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetUserGroupsRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetUserGroupsRequest{`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `GroupName:` + fmt.Sprintf("%v", this.GroupName) + `,`, - `}`, - }, "") - return s + +func (m *GetNamespaceExportSinkRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *GetUserGroupsResponse) String() string { - if this == nil { - return "nil" + +func (m *GetNamespaceExportSinkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 } - repeatedStringForGroups := "[]*UserGroup{" - for _, f := range this.Groups { - repeatedStringForGroups += strings.Replace(fmt.Sprintf("%v", f), "UserGroup", "v1.UserGroup", 1) + "," + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa } - repeatedStringForGroups += "}" - s := strings.Join([]string{`&GetUserGroupsResponse{`, - `Groups:` + repeatedStringForGroups + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *GetUserGroupRequest) String() string { - if this == nil { - return "nil" + +func (m *GetNamespaceExportSinkResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&GetUserGroupRequest{`, - `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetUserGroupResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetUserGroupResponse{`, - `Group:` + strings.Replace(fmt.Sprintf("%v", this.Group), "UserGroup", "v1.UserGroup", 1) + `,`, - `}`, - }, "") - return s + +func (m *GetNamespaceExportSinkResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *CreateUserGroupRequest) String() string { - if this == nil { - return "nil" + +func (m *GetNamespaceExportSinkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Sink != nil { + { + size, err := m.Sink.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&CreateUserGroupRequest{`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "UserGroupSpec", "v1.UserGroupSpec", 1) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *CreateUserGroupResponse) String() string { - if this == nil { - return "nil" + +func (m *GetNamespaceExportSinksRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&CreateUserGroupResponse{`, - `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *UpdateUserGroupRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&UpdateUserGroupRequest{`, - `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "UserGroupSpec", "v1.UserGroupSpec", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + +func (m *GetNamespaceExportSinksRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *UpdateUserGroupResponse) String() string { - if this == nil { - return "nil" + +func (m *GetNamespaceExportSinksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.PageToken) > 0 { + i -= len(m.PageToken) + copy(dAtA[i:], m.PageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.PageToken))) + i-- + dAtA[i] = 0x1a } - s := strings.Join([]string{`&UpdateUserGroupResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteUserGroupRequest) String() string { - if this == nil { - return "nil" + if m.PageSize != 0 { + i = encodeVarintRequestResponse(dAtA, i, uint64(m.PageSize)) + i-- + dAtA[i] = 0x10 } - s := strings.Join([]string{`&DeleteUserGroupRequest{`, - `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteUserGroupResponse) String() string { - if this == nil { - return "nil" + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&DeleteUserGroupResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *SetUserGroupNamespaceAccessRequest) String() string { - if this == nil { - return "nil" + +func (m *GetNamespaceExportSinksResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&SetUserGroupNamespaceAccessRequest{`, - `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, - `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, - `Access:` + strings.Replace(fmt.Sprintf("%v", this.Access), "NamespaceAccess", "v1.NamespaceAccess", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *SetUserGroupNamespaceAccessResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&SetUserGroupNamespaceAccessResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + +func (m *GetNamespaceExportSinksResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *CreateServiceAccountRequest) String() string { - if this == nil { - return "nil" + +func (m *GetNamespaceExportSinksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NextPageToken) > 0 { + i -= len(m.NextPageToken) + copy(dAtA[i:], m.NextPageToken) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.NextPageToken))) + i-- + dAtA[i] = 0x12 } - s := strings.Join([]string{`&CreateServiceAccountRequest{`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ServiceAccountSpec", "v1.ServiceAccountSpec", 1) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s -} -func (this *CreateServiceAccountResponse) String() string { - if this == nil { - return "nil" + if len(m.Sinks) > 0 { + for iNdEx := len(m.Sinks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Sinks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } - s := strings.Join([]string{`&CreateServiceAccountResponse{`, - `ServiceAccountId:` + fmt.Sprintf("%v", this.ServiceAccountId) + `,`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *GetServiceAccountRequest) String() string { - if this == nil { - return "nil" + +func (m *UpdateNamespaceExportSinkRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&GetServiceAccountRequest{`, - `ServiceAccountId:` + fmt.Sprintf("%v", this.ServiceAccountId) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetServiceAccountResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&GetServiceAccountResponse{`, - `ServiceAccount:` + strings.Replace(fmt.Sprintf("%v", this.ServiceAccount), "ServiceAccount", "v1.ServiceAccount", 1) + `,`, - `}`, - }, "") - return s + +func (m *UpdateNamespaceExportSinkRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *GetServiceAccountsRequest) String() string { - if this == nil { - return "nil" + +func (m *UpdateNamespaceExportSinkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 } - s := strings.Join([]string{`&GetServiceAccountsRequest{`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, - `}`, - }, "") - return s -} -func (this *GetServiceAccountsResponse) String() string { - if this == nil { - return "nil" + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a } - repeatedStringForServiceAccount := "[]*ServiceAccount{" - for _, f := range this.ServiceAccount { - repeatedStringForServiceAccount += strings.Replace(fmt.Sprintf("%v", f), "ServiceAccount", "v1.ServiceAccount", 1) + "," + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - repeatedStringForServiceAccount += "}" - s := strings.Join([]string{`&GetServiceAccountsResponse{`, - `ServiceAccount:` + repeatedStringForServiceAccount + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *UpdateServiceAccountRequest) String() string { - if this == nil { - return "nil" + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&UpdateServiceAccountRequest{`, - `ServiceAccountId:` + fmt.Sprintf("%v", this.ServiceAccountId) + `,`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ServiceAccountSpec", "v1.ServiceAccountSpec", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *UpdateServiceAccountResponse) String() string { - if this == nil { - return "nil" + +func (m *UpdateNamespaceExportSinkResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&UpdateServiceAccountResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *DeleteServiceAccountRequest) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteServiceAccountRequest{`, - `ServiceAccountId:` + fmt.Sprintf("%v", this.ServiceAccountId) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + +func (m *UpdateNamespaceExportSinkResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) } -func (this *DeleteServiceAccountResponse) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteServiceAccountResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + +func (m *UpdateNamespaceExportSinkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (this *GetApiKeysRequest) String() string { - if this == nil { - return "nil" + +func (m *DeleteNamespaceExportSinkRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&GetApiKeysRequest{`, - `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, - `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, - `OwnerId:` + fmt.Sprintf("%v", this.OwnerId) + `,`, - `OwnerType:` + fmt.Sprintf("%v", this.OwnerType) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *GetApiKeysResponse) String() string { - if this == nil { - return "nil" + +func (m *DeleteNamespaceExportSinkRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteNamespaceExportSinkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AsyncOperationId) > 0 { + i -= len(m.AsyncOperationId) + copy(dAtA[i:], m.AsyncOperationId) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.AsyncOperationId))) + i-- + dAtA[i] = 0x22 } - repeatedStringForApiKeys := "[]*ApiKey{" - for _, f := range this.ApiKeys { - repeatedStringForApiKeys += strings.Replace(fmt.Sprintf("%v", f), "ApiKey", "v1.ApiKey", 1) + "," + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x1a } - repeatedStringForApiKeys += "}" - s := strings.Join([]string{`&GetApiKeysResponse{`, - `ApiKeys:` + repeatedStringForApiKeys + `,`, - `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, - `}`, - }, "") - return s -} -func (this *GetApiKeyRequest) String() string { - if this == nil { - return "nil" + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 } - s := strings.Join([]string{`&GetApiKeyRequest{`, - `KeyId:` + fmt.Sprintf("%v", this.KeyId) + `,`, - `}`, - }, "") - return s + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (this *GetApiKeyResponse) String() string { - if this == nil { - return "nil" + +func (m *DeleteNamespaceExportSinkResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&GetApiKeyResponse{`, - `ApiKey:` + strings.Replace(fmt.Sprintf("%v", this.ApiKey), "ApiKey", "v1.ApiKey", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *CreateApiKeyRequest) String() string { - if this == nil { - return "nil" + +func (m *DeleteNamespaceExportSinkResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteNamespaceExportSinkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AsyncOperation != nil { + { + size, err := m.AsyncOperation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - s := strings.Join([]string{`&CreateApiKeyRequest{`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ApiKeySpec", "v1.ApiKeySpec", 1) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + return len(dAtA) - i, nil } -func (this *CreateApiKeyResponse) String() string { - if this == nil { - return "nil" + +func (m *ValidateNamespaceExportSinkRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&CreateApiKeyResponse{`, - `KeyId:` + fmt.Sprintf("%v", this.KeyId) + `,`, - `Token:` + fmt.Sprintf("%v", this.Token) + `,`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *UpdateApiKeyRequest) String() string { - if this == nil { - return "nil" + +func (m *ValidateNamespaceExportSinkRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidateNamespaceExportSinkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintRequestResponse(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - s := strings.Join([]string{`&UpdateApiKeyRequest{`, - `KeyId:` + fmt.Sprintf("%v", this.KeyId) + `,`, - `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ApiKeySpec", "v1.ApiKeySpec", 1) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + if len(m.Namespace) > 0 { + i -= len(m.Namespace) + copy(dAtA[i:], m.Namespace) + i = encodeVarintRequestResponse(dAtA, i, uint64(len(m.Namespace))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } -func (this *UpdateApiKeyResponse) String() string { - if this == nil { - return "nil" + +func (m *ValidateNamespaceExportSinkResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - s := strings.Join([]string{`&UpdateApiKeyResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s + return dAtA[:n], nil } -func (this *DeleteApiKeyRequest) String() string { - if this == nil { - return "nil" + +func (m *ValidateNamespaceExportSinkResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValidateNamespaceExportSinkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintRequestResponse(dAtA []byte, offset int, v uint64) int { + offset -= sovRequestResponse(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - s := strings.Join([]string{`&DeleteApiKeyRequest{`, - `KeyId:` + fmt.Sprintf("%v", this.KeyId) + `,`, - `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, - `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, - `}`, - }, "") - return s + dAtA[offset] = uint8(v) + return base } -func (this *DeleteApiKeyResponse) String() string { - if this == nil { - return "nil" +func (m *GetUsersRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Email) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUsersResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Users) > 0 { + for _, e := range m.Users { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUserRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUserResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.User != nil { + l = m.User.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateUserRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateUserResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateUserRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateUserResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteUserRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.UserId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteUserResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *SetUserNamespaceAccessRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.UserId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Access != nil { + l = m.Access.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *SetUserNamespaceAccessResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetAsyncOperationRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetAsyncOperationResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateNamespaceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateNamespaceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNamespacesRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNamespacesResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Namespaces) > 0 { + for _, e := range m.Namespaces { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNamespaceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNamespaceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Namespace != nil { + l = m.Namespace.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateNamespaceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateNamespaceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *RenameCustomSearchAttributeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ExistingCustomSearchAttributeName) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.NewCustomSearchAttributeName) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *RenameCustomSearchAttributeResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteNamespaceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteNamespaceResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *FailoverNamespaceRegionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Region) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *FailoverNamespaceRegionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *AddNamespaceRegionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Region) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *AddNamespaceRegionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetRegionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GetRegionsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Regions) > 0 { + for _, e := range m.Regions { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + return n +} + +func (m *GetRegionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Region) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetRegionResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Region != nil { + l = m.Region.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNexusEndpointsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.TargetNamespaceId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.TargetTaskQueue) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNexusEndpointsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Endpoints) > 0 { + for _, e := range m.Endpoints { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNexusEndpointRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EndpointId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNexusEndpointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Endpoint != nil { + l = m.Endpoint.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateNexusEndpointRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateNexusEndpointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EndpointId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateNexusEndpointRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EndpointId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateNexusEndpointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteNexusEndpointRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EndpointId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteNexusEndpointResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUserGroupsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.DisplayName) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.GoogleGroup != nil { + l = m.GoogleGroup.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUserGroupsRequest_GoogleGroupFilter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EmailAddress) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUserGroupsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Groups) > 0 { + for _, e := range m.Groups { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUserGroupRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GroupId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUserGroupResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Group != nil { + l = m.Group.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateUserGroupRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateUserGroupResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GroupId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateUserGroupRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GroupId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateUserGroupResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteUserGroupRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GroupId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteUserGroupResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *SetUserGroupNamespaceAccessRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.GroupId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Access != nil { + l = m.Access.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *SetUserGroupNamespaceAccessResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateServiceAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateServiceAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServiceAccountId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetServiceAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServiceAccountId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetServiceAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ServiceAccount != nil { + l = m.ServiceAccount.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetServiceAccountsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetServiceAccountsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ServiceAccount) > 0 { + for _, e := range m.ServiceAccount { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateServiceAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServiceAccountId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateServiceAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteServiceAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServiceAccountId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteServiceAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetApiKeysRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.OwnerId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.OwnerTypeDeprecated) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.OwnerType != 0 { + n += 1 + sovRequestResponse(uint64(m.OwnerType)) + } + return n +} + +func (m *GetApiKeysResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ApiKeys) > 0 { + for _, e := range m.ApiKeys { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetApiKeyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.KeyId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetApiKeyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ApiKey != nil { + l = m.ApiKey.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateApiKeyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateApiKeyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.KeyId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Token) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateApiKeyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.KeyId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateApiKeyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteApiKeyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.KeyId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteApiKeyResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetAuditLogsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.StartTimeInclusive != nil { + l = m.StartTimeInclusive.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.EndTimeExclusive != nil { + l = m.EndTimeExclusive.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetAuditLogsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Logs) > 0 { + for _, e := range m.Logs { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUsageRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartTimeInclusive != nil { + l = m.StartTimeInclusive.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.EndTimeExclusive != nil { + l = m.EndTimeExclusive.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetUsageResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Summaries) > 0 { + for _, e := range m.Summaries { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetAccountRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *GetAccountResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Account != nil { + l = m.Account.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateNamespaceExportSinkRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *CreateNamespaceExportSinkResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNamespaceExportSinkRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNamespaceExportSinkResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Sink != nil { + l = m.Sink.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNamespaceExportSinksRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.PageSize != 0 { + n += 1 + sovRequestResponse(uint64(m.PageSize)) + } + l = len(m.PageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *GetNamespaceExportSinksResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Sinks) > 0 { + for _, e := range m.Sinks { + l = e.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + } + l = len(m.NextPageToken) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateNamespaceExportSinkRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *UpdateNamespaceExportSinkResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteNamespaceExportSinkRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + l = len(m.AsyncOperationId) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *DeleteNamespaceExportSinkResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.AsyncOperation != nil { + l = m.AsyncOperation.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *ValidateNamespaceExportSinkRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Namespace) + if l > 0 { + n += 1 + l + sovRequestResponse(uint64(l)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovRequestResponse(uint64(l)) + } + return n +} + +func (m *ValidateNamespaceExportSinkResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovRequestResponse(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozRequestResponse(x uint64) (n int) { + return sovRequestResponse(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *GetUsersRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetUsersRequest{`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `Email:` + fmt.Sprintf("%v", this.Email) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `}`, + }, "") + return s +} +func (this *GetUsersResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForUsers := "[]*User{" + for _, f := range this.Users { + repeatedStringForUsers += strings.Replace(fmt.Sprintf("%v", f), "User", "v1.User", 1) + "," + } + repeatedStringForUsers += "}" + s := strings.Join([]string{`&GetUsersResponse{`, + `Users:` + repeatedStringForUsers + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetUserRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetUserRequest{`, + `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, + `}`, + }, "") + return s +} +func (this *GetUserResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetUserResponse{`, + `User:` + strings.Replace(fmt.Sprintf("%v", this.User), "User", "v1.User", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CreateUserRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateUserRequest{`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "UserSpec", "v1.UserSpec", 1) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *CreateUserResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateUserResponse{`, + `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateUserRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateUserRequest{`, + `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "UserSpec", "v1.UserSpec", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateUserResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateUserResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteUserRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteUserRequest{`, + `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteUserResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteUserResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *SetUserNamespaceAccessRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SetUserNamespaceAccessRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `UserId:` + fmt.Sprintf("%v", this.UserId) + `,`, + `Access:` + strings.Replace(fmt.Sprintf("%v", this.Access), "NamespaceAccess", "v1.NamespaceAccess", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *SetUserNamespaceAccessResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SetUserNamespaceAccessResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetAsyncOperationRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetAsyncOperationRequest{`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *GetAsyncOperationResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetAsyncOperationResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CreateNamespaceRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateNamespaceRequest{`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "NamespaceSpec", "v12.NamespaceSpec", 1) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *CreateNamespaceResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateNamespaceResponse{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetNamespacesRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNamespacesRequest{`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *GetNamespacesResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForNamespaces := "[]*Namespace{" + for _, f := range this.Namespaces { + repeatedStringForNamespaces += strings.Replace(fmt.Sprintf("%v", f), "Namespace", "v12.Namespace", 1) + "," + } + repeatedStringForNamespaces += "}" + s := strings.Join([]string{`&GetNamespacesResponse{`, + `Namespaces:` + repeatedStringForNamespaces + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetNamespaceRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNamespaceRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `}`, + }, "") + return s +} +func (this *GetNamespaceResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNamespaceResponse{`, + `Namespace:` + strings.Replace(fmt.Sprintf("%v", this.Namespace), "Namespace", "v12.Namespace", 1) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateNamespaceRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateNamespaceRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "NamespaceSpec", "v12.NamespaceSpec", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateNamespaceResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateNamespaceResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *RenameCustomSearchAttributeRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RenameCustomSearchAttributeRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `ExistingCustomSearchAttributeName:` + fmt.Sprintf("%v", this.ExistingCustomSearchAttributeName) + `,`, + `NewCustomSearchAttributeName:` + fmt.Sprintf("%v", this.NewCustomSearchAttributeName) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *RenameCustomSearchAttributeResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RenameCustomSearchAttributeResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteNamespaceRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteNamespaceRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteNamespaceResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteNamespaceResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *FailoverNamespaceRegionRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FailoverNamespaceRegionRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Region:` + fmt.Sprintf("%v", this.Region) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *FailoverNamespaceRegionResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&FailoverNamespaceRegionResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *AddNamespaceRegionRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AddNamespaceRegionRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Region:` + fmt.Sprintf("%v", this.Region) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *AddNamespaceRegionResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AddNamespaceRegionResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetRegionsRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetRegionsRequest{`, + `}`, + }, "") + return s +} +func (this *GetRegionsResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForRegions := "[]*Region{" + for _, f := range this.Regions { + repeatedStringForRegions += strings.Replace(fmt.Sprintf("%v", f), "Region", "v13.Region", 1) + "," + } + repeatedStringForRegions += "}" + s := strings.Join([]string{`&GetRegionsResponse{`, + `Regions:` + repeatedStringForRegions + `,`, + `}`, + }, "") + return s +} +func (this *GetRegionRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetRegionRequest{`, + `Region:` + fmt.Sprintf("%v", this.Region) + `,`, + `}`, + }, "") + return s +} +func (this *GetRegionResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetRegionResponse{`, + `Region:` + strings.Replace(fmt.Sprintf("%v", this.Region), "Region", "v13.Region", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetNexusEndpointsRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNexusEndpointsRequest{`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `TargetNamespaceId:` + fmt.Sprintf("%v", this.TargetNamespaceId) + `,`, + `TargetTaskQueue:` + fmt.Sprintf("%v", this.TargetTaskQueue) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *GetNexusEndpointsResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForEndpoints := "[]*Endpoint{" + for _, f := range this.Endpoints { + repeatedStringForEndpoints += strings.Replace(fmt.Sprintf("%v", f), "Endpoint", "v14.Endpoint", 1) + "," + } + repeatedStringForEndpoints += "}" + s := strings.Join([]string{`&GetNexusEndpointsResponse{`, + `Endpoints:` + repeatedStringForEndpoints + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetNexusEndpointRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNexusEndpointRequest{`, + `EndpointId:` + fmt.Sprintf("%v", this.EndpointId) + `,`, + `}`, + }, "") + return s +} +func (this *GetNexusEndpointResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNexusEndpointResponse{`, + `Endpoint:` + strings.Replace(fmt.Sprintf("%v", this.Endpoint), "Endpoint", "v14.Endpoint", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CreateNexusEndpointRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateNexusEndpointRequest{`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "EndpointSpec", "v14.EndpointSpec", 1) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *CreateNexusEndpointResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateNexusEndpointResponse{`, + `EndpointId:` + fmt.Sprintf("%v", this.EndpointId) + `,`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateNexusEndpointRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateNexusEndpointRequest{`, + `EndpointId:` + fmt.Sprintf("%v", this.EndpointId) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "EndpointSpec", "v14.EndpointSpec", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateNexusEndpointResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateNexusEndpointResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteNexusEndpointRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteNexusEndpointRequest{`, + `EndpointId:` + fmt.Sprintf("%v", this.EndpointId) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteNexusEndpointResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteNexusEndpointResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateAccountRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateAccountRequest{`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "AccountSpec", "v15.AccountSpec", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateAccountResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateAccountResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetUserGroupsRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetUserGroupsRequest{`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`, + `GoogleGroup:` + strings.Replace(fmt.Sprintf("%v", this.GoogleGroup), "GetUserGroupsRequest_GoogleGroupFilter", "GetUserGroupsRequest_GoogleGroupFilter", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetUserGroupsRequest_GoogleGroupFilter) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetUserGroupsRequest_GoogleGroupFilter{`, + `EmailAddress:` + fmt.Sprintf("%v", this.EmailAddress) + `,`, + `}`, + }, "") + return s +} +func (this *GetUserGroupsResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForGroups := "[]*UserGroup{" + for _, f := range this.Groups { + repeatedStringForGroups += strings.Replace(fmt.Sprintf("%v", f), "UserGroup", "v1.UserGroup", 1) + "," + } + repeatedStringForGroups += "}" + s := strings.Join([]string{`&GetUserGroupsResponse{`, + `Groups:` + repeatedStringForGroups + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetUserGroupRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetUserGroupRequest{`, + `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, + `}`, + }, "") + return s +} +func (this *GetUserGroupResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetUserGroupResponse{`, + `Group:` + strings.Replace(fmt.Sprintf("%v", this.Group), "UserGroup", "v1.UserGroup", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CreateUserGroupRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateUserGroupRequest{`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "UserGroupSpec", "v1.UserGroupSpec", 1) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *CreateUserGroupResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateUserGroupResponse{`, + `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateUserGroupRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateUserGroupRequest{`, + `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "UserGroupSpec", "v1.UserGroupSpec", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateUserGroupResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateUserGroupResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteUserGroupRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteUserGroupRequest{`, + `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteUserGroupResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteUserGroupResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *SetUserGroupNamespaceAccessRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SetUserGroupNamespaceAccessRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `GroupId:` + fmt.Sprintf("%v", this.GroupId) + `,`, + `Access:` + strings.Replace(fmt.Sprintf("%v", this.Access), "NamespaceAccess", "v1.NamespaceAccess", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *SetUserGroupNamespaceAccessResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SetUserGroupNamespaceAccessResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CreateServiceAccountRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateServiceAccountRequest{`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ServiceAccountSpec", "v1.ServiceAccountSpec", 1) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *CreateServiceAccountResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateServiceAccountResponse{`, + `ServiceAccountId:` + fmt.Sprintf("%v", this.ServiceAccountId) + `,`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetServiceAccountRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetServiceAccountRequest{`, + `ServiceAccountId:` + fmt.Sprintf("%v", this.ServiceAccountId) + `,`, + `}`, + }, "") + return s +} +func (this *GetServiceAccountResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetServiceAccountResponse{`, + `ServiceAccount:` + strings.Replace(fmt.Sprintf("%v", this.ServiceAccount), "ServiceAccount", "v1.ServiceAccount", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetServiceAccountsRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetServiceAccountsRequest{`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetServiceAccountsResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForServiceAccount := "[]*ServiceAccount{" + for _, f := range this.ServiceAccount { + repeatedStringForServiceAccount += strings.Replace(fmt.Sprintf("%v", f), "ServiceAccount", "v1.ServiceAccount", 1) + "," + } + repeatedStringForServiceAccount += "}" + s := strings.Join([]string{`&GetServiceAccountsResponse{`, + `ServiceAccount:` + repeatedStringForServiceAccount + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateServiceAccountRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateServiceAccountRequest{`, + `ServiceAccountId:` + fmt.Sprintf("%v", this.ServiceAccountId) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ServiceAccountSpec", "v1.ServiceAccountSpec", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateServiceAccountResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateServiceAccountResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteServiceAccountRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteServiceAccountRequest{`, + `ServiceAccountId:` + fmt.Sprintf("%v", this.ServiceAccountId) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteServiceAccountResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteServiceAccountResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetApiKeysRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetApiKeysRequest{`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `OwnerId:` + fmt.Sprintf("%v", this.OwnerId) + `,`, + `OwnerTypeDeprecated:` + fmt.Sprintf("%v", this.OwnerTypeDeprecated) + `,`, + `OwnerType:` + fmt.Sprintf("%v", this.OwnerType) + `,`, + `}`, + }, "") + return s +} +func (this *GetApiKeysResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForApiKeys := "[]*ApiKey{" + for _, f := range this.ApiKeys { + repeatedStringForApiKeys += strings.Replace(fmt.Sprintf("%v", f), "ApiKey", "v1.ApiKey", 1) + "," + } + repeatedStringForApiKeys += "}" + s := strings.Join([]string{`&GetApiKeysResponse{`, + `ApiKeys:` + repeatedStringForApiKeys + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetApiKeyRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetApiKeyRequest{`, + `KeyId:` + fmt.Sprintf("%v", this.KeyId) + `,`, + `}`, + }, "") + return s +} +func (this *GetApiKeyResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetApiKeyResponse{`, + `ApiKey:` + strings.Replace(fmt.Sprintf("%v", this.ApiKey), "ApiKey", "v1.ApiKey", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CreateApiKeyRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateApiKeyRequest{`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ApiKeySpec", "v1.ApiKeySpec", 1) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *CreateApiKeyResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateApiKeyResponse{`, + `KeyId:` + fmt.Sprintf("%v", this.KeyId) + `,`, + `Token:` + fmt.Sprintf("%v", this.Token) + `,`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateApiKeyRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateApiKeyRequest{`, + `KeyId:` + fmt.Sprintf("%v", this.KeyId) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ApiKeySpec", "v1.ApiKeySpec", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateApiKeyResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateApiKeyResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteApiKeyRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteApiKeyRequest{`, + `KeyId:` + fmt.Sprintf("%v", this.KeyId) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteApiKeyResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteApiKeyResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetAuditLogsRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetAuditLogsRequest{`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `StartTimeInclusive:` + strings.Replace(fmt.Sprintf("%v", this.StartTimeInclusive), "Timestamp", "types.Timestamp", 1) + `,`, + `EndTimeExclusive:` + strings.Replace(fmt.Sprintf("%v", this.EndTimeExclusive), "Timestamp", "types.Timestamp", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetAuditLogsResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForLogs := "[]*LogRecord{" + for _, f := range this.Logs { + repeatedStringForLogs += strings.Replace(fmt.Sprintf("%v", f), "LogRecord", "v16.LogRecord", 1) + "," + } + repeatedStringForLogs += "}" + s := strings.Join([]string{`&GetAuditLogsResponse{`, + `Logs:` + repeatedStringForLogs + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetUsageRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetUsageRequest{`, + `StartTimeInclusive:` + strings.Replace(fmt.Sprintf("%v", this.StartTimeInclusive), "Timestamp", "types.Timestamp", 1) + `,`, + `EndTimeExclusive:` + strings.Replace(fmt.Sprintf("%v", this.EndTimeExclusive), "Timestamp", "types.Timestamp", 1) + `,`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetUsageResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForSummaries := "[]*Summary{" + for _, f := range this.Summaries { + repeatedStringForSummaries += strings.Replace(fmt.Sprintf("%v", f), "Summary", "v17.Summary", 1) + "," + } + repeatedStringForSummaries += "}" + s := strings.Join([]string{`&GetUsageResponse{`, + `Summaries:` + repeatedStringForSummaries + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetAccountRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetAccountRequest{`, + `}`, + }, "") + return s +} +func (this *GetAccountResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetAccountResponse{`, + `Account:` + strings.Replace(fmt.Sprintf("%v", this.Account), "Account", "v15.Account", 1) + `,`, + `}`, + }, "") + return s +} +func (this *CreateNamespaceExportSinkRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateNamespaceExportSinkRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ExportSinkSpec", "v12.ExportSinkSpec", 1) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *CreateNamespaceExportSinkResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&CreateNamespaceExportSinkResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetNamespaceExportSinkRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNamespaceExportSinkRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `}`, + }, "") + return s +} +func (this *GetNamespaceExportSinkResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNamespaceExportSinkResponse{`, + `Sink:` + strings.Replace(fmt.Sprintf("%v", this.Sink), "ExportSink", "v12.ExportSink", 1) + `,`, + `}`, + }, "") + return s +} +func (this *GetNamespaceExportSinksRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GetNamespaceExportSinksRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `PageSize:` + fmt.Sprintf("%v", this.PageSize) + `,`, + `PageToken:` + fmt.Sprintf("%v", this.PageToken) + `,`, + `}`, + }, "") + return s +} +func (this *GetNamespaceExportSinksResponse) String() string { + if this == nil { + return "nil" + } + repeatedStringForSinks := "[]*ExportSink{" + for _, f := range this.Sinks { + repeatedStringForSinks += strings.Replace(fmt.Sprintf("%v", f), "ExportSink", "v12.ExportSink", 1) + "," + } + repeatedStringForSinks += "}" + s := strings.Join([]string{`&GetNamespaceExportSinksResponse{`, + `Sinks:` + repeatedStringForSinks + `,`, + `NextPageToken:` + fmt.Sprintf("%v", this.NextPageToken) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateNamespaceExportSinkRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateNamespaceExportSinkRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ExportSinkSpec", "v12.ExportSinkSpec", 1) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *UpdateNamespaceExportSinkResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UpdateNamespaceExportSinkResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteNamespaceExportSinkRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteNamespaceExportSinkRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteNamespaceExportSinkResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteNamespaceExportSinkResponse{`, + `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ValidateNamespaceExportSinkRequest) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ValidateNamespaceExportSinkRequest{`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "ExportSinkSpec", "v12.ExportSinkSpec", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ValidateNamespaceExportSinkResponse) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ValidateNamespaceExportSinkResponse{`, + `}`, + }, "") + return s +} +func valueToStringRequestResponse(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUsersRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUsersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Email = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUsersResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUsersResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUsersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Users = append(m.Users, &v1.User{}) + if err := m.Users[len(m.Users)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.User == nil { + m.User = &v1.User{} + } + if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Spec == nil { + m.Spec = &v1.UserSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateUserResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Spec == nil { + m.Spec = &v1.UserSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UpdateUserResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UpdateUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UpdateUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteUserRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteUserRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UserId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteUserResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteUserResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - s := strings.Join([]string{`&DeleteApiKeyResponse{`, - `AsyncOperation:` + strings.Replace(fmt.Sprintf("%v", this.AsyncOperation), "AsyncOperation", "v11.AsyncOperation", 1) + `,`, - `}`, - }, "") - return s -} -func valueToStringRequestResponse(v interface{}) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { - return "nil" + + if iNdEx > l { + return io.ErrUnexpectedEOF } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("*%v", pv) + return nil } -func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { +func (m *SetUserNamespaceAccessRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13324,17 +17527,17 @@ func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetUsersRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetUserNamespaceAccessRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetUsersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetUserNamespaceAccessRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } - m.PageSize = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -13344,14 +17547,27 @@ func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PageSize |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13379,11 +17595,47 @@ func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PageToken = string(dAtA[iNdEx:postIndex]) + m.UserId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Email", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Access", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Access == nil { + m.Access = &v1.NamespaceAccess{} + } + if err := m.Access.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13411,11 +17663,11 @@ func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Email = string(dAtA[iNdEx:postIndex]) + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13443,7 +17695,7 @@ func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Namespace = string(dAtA[iNdEx:postIndex]) + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -13469,7 +17721,7 @@ func (m *GetUsersRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetUsersResponse) Unmarshal(dAtA []byte) error { +func (m *SetUserNamespaceAccessResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13492,15 +17744,15 @@ func (m *GetUsersResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetUsersResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SetUserNamespaceAccessResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetUsersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetUserNamespaceAccessResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13527,14 +17779,69 @@ func (m *GetUsersResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Users = append(m.Users, &v1.User{}) - if err := m.Users[len(m.Users)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetAsyncOperationRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetAsyncOperationRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetAsyncOperationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13562,7 +17869,7 @@ func (m *GetUsersResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NextPageToken = string(dAtA[iNdEx:postIndex]) + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -13588,7 +17895,7 @@ func (m *GetUsersResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetUserRequest) Unmarshal(dAtA []byte) error { +func (m *GetAsyncOperationResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13611,17 +17918,17 @@ func (m *GetUserRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetUserRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetAsyncOperationResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAsyncOperationResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -13631,23 +17938,27 @@ func (m *GetUserRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.UserId = string(dAtA[iNdEx:postIndex]) + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -13673,7 +17984,7 @@ func (m *GetUserRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetUserResponse) Unmarshal(dAtA []byte) error { +func (m *CreateNamespaceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13696,15 +18007,15 @@ func (m *GetUserResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetUserResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CreateNamespaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateNamespaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13731,13 +18042,45 @@ func (m *GetUserResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.User == nil { - m.User = &v1.User{} + if m.Spec == nil { + m.Spec = &v12.NamespaceSpec{} } - if err := m.User.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -13762,7 +18105,7 @@ func (m *GetUserResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateUserRequest) Unmarshal(dAtA []byte) error { +func (m *CreateNamespaceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13785,17 +18128,17 @@ func (m *CreateUserRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateUserRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CreateNamespaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateNamespaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -13805,33 +18148,29 @@ func (m *CreateUserRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v1.UserSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -13841,23 +18180,27 @@ func (m *CreateUserRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -13883,7 +18226,7 @@ func (m *CreateUserRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateUserResponse) Unmarshal(dAtA []byte) error { +func (m *GetNamespacesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -13906,15 +18249,34 @@ func (m *CreateUserResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateUserResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetNamespacesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNamespacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -13942,13 +18304,13 @@ func (m *CreateUserResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.UserId = string(dAtA[iNdEx:postIndex]) + m.PageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -13958,27 +18320,23 @@ func (m *CreateUserResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} - } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -14004,7 +18362,7 @@ func (m *CreateUserResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error { +func (m *GetNamespacesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14027,47 +18385,15 @@ func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateUserRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetNamespacesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNamespacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UserId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14094,16 +18420,14 @@ func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v1.UserSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Namespaces = append(m.Namespaces, &v12.Namespace{}) + if err := m.Namespaces[len(m.Namespaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14131,11 +18455,64 @@ func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + m.NextPageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetNamespaceRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetNamespaceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetNamespaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14163,7 +18540,7 @@ func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -14189,7 +18566,7 @@ func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateUserResponse) Unmarshal(dAtA []byte) error { +func (m *GetNamespaceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14212,15 +18589,15 @@ func (m *UpdateUserResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateUserResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetNamespaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNamespaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -14247,10 +18624,10 @@ func (m *UpdateUserResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} + if m.Namespace == nil { + m.Namespace = &v12.Namespace{} } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Namespace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -14278,7 +18655,7 @@ func (m *UpdateUserResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteUserRequest) Unmarshal(dAtA []byte) error { +func (m *UpdateNamespaceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14301,15 +18678,15 @@ func (m *DeleteUserRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteUserRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateNamespaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteUserRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateNamespaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14321,25 +18698,61 @@ func (m *DeleteUserRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.UserId = string(dAtA[iNdEx:postIndex]) + if m.Spec == nil { + m.Spec = &v12.NamespaceSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } @@ -14371,7 +18784,7 @@ func (m *DeleteUserRequest) Unmarshal(dAtA []byte) error { } m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -14427,7 +18840,7 @@ func (m *DeleteUserRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteUserResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateNamespaceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14450,10 +18863,10 @@ func (m *DeleteUserResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteUserResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateNamespaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteUserResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateNamespaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -14516,7 +18929,7 @@ func (m *DeleteUserResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *SetUserNamespaceAccessRequest) Unmarshal(dAtA []byte) error { +func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14539,10 +18952,10 @@ func (m *SetUserNamespaceAccessRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetUserNamespaceAccessRequest: wiretype end group for non-group") + return fmt.Errorf("proto: RenameCustomSearchAttributeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetUserNamespaceAccessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RenameCustomSearchAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -14579,7 +18992,7 @@ func (m *SetUserNamespaceAccessRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ExistingCustomSearchAttributeName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -14607,13 +19020,13 @@ func (m *SetUserNamespaceAccessRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.UserId = string(dAtA[iNdEx:postIndex]) + m.ExistingCustomSearchAttributeName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Access", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NewCustomSearchAttributeName", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -14623,27 +19036,23 @@ func (m *SetUserNamespaceAccessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Access == nil { - m.Access = &v1.NamespaceAccess{} - } - if err := m.Access.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.NewCustomSearchAttributeName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { @@ -14733,7 +19142,7 @@ func (m *SetUserNamespaceAccessRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *SetUserNamespaceAccessResponse) Unmarshal(dAtA []byte) error { +func (m *RenameCustomSearchAttributeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14756,10 +19165,10 @@ func (m *SetUserNamespaceAccessResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetUserNamespaceAccessResponse: wiretype end group for non-group") + return fmt.Errorf("proto: RenameCustomSearchAttributeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetUserNamespaceAccessResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: RenameCustomSearchAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -14822,7 +19231,7 @@ func (m *SetUserNamespaceAccessResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAsyncOperationRequest) Unmarshal(dAtA []byte) error { +func (m *DeleteNamespaceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14845,13 +19254,77 @@ func (m *GetAsyncOperationRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAsyncOperationRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteNamespaceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAsyncOperationRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteNamespaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -14907,7 +19380,7 @@ func (m *GetAsyncOperationRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAsyncOperationResponse) Unmarshal(dAtA []byte) error { +func (m *DeleteNamespaceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -14930,10 +19403,10 @@ func (m *GetAsyncOperationResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAsyncOperationResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteNamespaceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAsyncOperationResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteNamespaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -14996,7 +19469,7 @@ func (m *GetAsyncOperationResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateNamespaceRequest) Unmarshal(dAtA []byte) error { +func (m *FailoverNamespaceRegionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15019,17 +19492,17 @@ func (m *CreateNamespaceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateNamespaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: FailoverNamespaceRegionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateNamespaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FailoverNamespaceRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 2: + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -15039,27 +19512,55 @@ func (m *CreateNamespaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v12.NamespaceSpec{} + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Region = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -15117,7 +19618,7 @@ func (m *CreateNamespaceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateNamespaceResponse) Unmarshal(dAtA []byte) error { +func (m *FailoverNamespaceRegionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15140,45 +19641,13 @@ func (m *CreateNamespaceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateNamespaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: FailoverNamespaceRegionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateNamespaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: FailoverNamespaceRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } @@ -15238,7 +19707,7 @@ func (m *CreateNamespaceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetNamespacesRequest) Unmarshal(dAtA []byte) error { +func (m *AddNamespaceRegionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15261,17 +19730,49 @@ func (m *GetNamespacesRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetNamespacesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: AddNamespaceRegionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetNamespacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AddNamespaceRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse } - m.PageSize = 0 + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + } + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -15281,14 +19782,27 @@ func (m *GetNamespacesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.PageSize |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 2: + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Region = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15316,11 +19830,11 @@ func (m *GetNamespacesRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PageToken = string(dAtA[iNdEx:postIndex]) + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15348,7 +19862,7 @@ func (m *GetNamespacesRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -15374,7 +19888,7 @@ func (m *GetNamespacesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetNamespacesResponse) Unmarshal(dAtA []byte) error { +func (m *AddNamespaceRegionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15397,15 +19911,15 @@ func (m *GetNamespacesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetNamespacesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: AddNamespaceRegionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetNamespacesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: AddNamespaceRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15432,42 +19946,12 @@ func (m *GetNamespacesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Namespaces = append(m.Namespaces, &v12.Namespace{}) - if err := m.Namespaces[len(m.Namespaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.NextPageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -15493,7 +19977,7 @@ func (m *GetNamespacesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetNamespaceRequest) Unmarshal(dAtA []byte) error { +func (m *GetRegionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15516,44 +20000,12 @@ func (m *GetNamespaceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetNamespaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetRegionsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetNamespaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRegionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -15578,7 +20030,7 @@ func (m *GetNamespaceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetNamespaceResponse) Unmarshal(dAtA []byte) error { +func (m *GetRegionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15601,15 +20053,15 @@ func (m *GetNamespaceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetNamespaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetRegionsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetNamespaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRegionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Regions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15636,10 +20088,8 @@ func (m *GetNamespaceResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Namespace == nil { - m.Namespace = &v12.Namespace{} - } - if err := m.Namespace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Regions = append(m.Regions, &v13.Region{}) + if err := m.Regions[len(m.Regions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15667,7 +20117,7 @@ func (m *GetNamespaceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateNamespaceRequest) Unmarshal(dAtA []byte) error { +func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15690,115 +20140,15 @@ func (m *UpdateNamespaceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateNamespaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetRegionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateNamespaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &v12.NamespaceSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -15826,7 +20176,7 @@ func (m *UpdateNamespaceRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + m.Region = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -15852,7 +20202,7 @@ func (m *UpdateNamespaceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateNamespaceResponse) Unmarshal(dAtA []byte) error { +func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15875,15 +20225,15 @@ func (m *UpdateNamespaceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateNamespaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetRegionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateNamespaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15910,10 +20260,10 @@ func (m *UpdateNamespaceResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} + if m.Region == nil { + m.Region = &v13.Region{} } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15941,7 +20291,7 @@ func (m *UpdateNamespaceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { +func (m *GetNexusEndpointsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -15964,17 +20314,17 @@ func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RenameCustomSearchAttributeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetNexusEndpointsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RenameCustomSearchAttributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNexusEndpointsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) } - var stringLen uint64 + m.PageSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -15984,27 +20334,14 @@ func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.PageSize |= int32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Namespace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExistingCustomSearchAttributeName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16032,11 +20369,11 @@ func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ExistingCustomSearchAttributeName = string(dAtA[iNdEx:postIndex]) + m.PageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewCustomSearchAttributeName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetNamespaceId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16064,11 +20401,11 @@ func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NewCustomSearchAttributeName = string(dAtA[iNdEx:postIndex]) + m.TargetNamespaceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TargetTaskQueue", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16096,11 +20433,11 @@ func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + m.TargetTaskQueue = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16128,7 +20465,7 @@ func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -16154,7 +20491,7 @@ func (m *RenameCustomSearchAttributeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RenameCustomSearchAttributeResponse) Unmarshal(dAtA []byte) error { +func (m *GetNexusEndpointsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16177,15 +20514,15 @@ func (m *RenameCustomSearchAttributeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RenameCustomSearchAttributeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetNexusEndpointsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RenameCustomSearchAttributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNexusEndpointsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Endpoints", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16212,13 +20549,43 @@ func (m *RenameCustomSearchAttributeResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} - } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Endpoints = append(m.Endpoints, &v14.Endpoint{}) + if err := m.Endpoints[len(m.Endpoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -16243,7 +20610,7 @@ func (m *RenameCustomSearchAttributeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteNamespaceRequest) Unmarshal(dAtA []byte) error { +func (m *GetNexusEndpointRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16266,15 +20633,15 @@ func (m *DeleteNamespaceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteNamespaceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetNexusEndpointRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteNamespaceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNexusEndpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EndpointId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16302,13 +20669,66 @@ func (m *DeleteNamespaceRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Namespace = string(dAtA[iNdEx:postIndex]) + m.EndpointId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetNexusEndpointResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetNexusEndpointResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetNexusEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -16318,25 +20738,118 @@ func (m *DeleteNamespaceRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Endpoint == nil { + m.Endpoint = &v14.Endpoint{} + } + if err := m.Endpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateNexusEndpointRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateNexusEndpointRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateNexusEndpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + if m.Spec == nil { + m.Spec = &v14.EndpointSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -16392,7 +20905,7 @@ func (m *DeleteNamespaceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteNamespaceResponse) Unmarshal(dAtA []byte) error { +func (m *CreateNexusEndpointResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16415,13 +20928,45 @@ func (m *DeleteNamespaceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteNamespaceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CreateNexusEndpointResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteNamespaceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateNexusEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndpointId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EndpointId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } @@ -16481,7 +21026,7 @@ func (m *DeleteNamespaceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *FailoverNamespaceRegionRequest) Unmarshal(dAtA []byte) error { +func (m *UpdateNexusEndpointRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16504,15 +21049,15 @@ func (m *FailoverNamespaceRegionRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FailoverNamespaceRegionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateNexusEndpointRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FailoverNamespaceRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateNexusEndpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EndpointId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16540,11 +21085,47 @@ func (m *FailoverNamespaceRegionRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Namespace = string(dAtA[iNdEx:postIndex]) + m.EndpointId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Spec == nil { + m.Spec = &v14.EndpointSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16572,9 +21153,9 @@ func (m *FailoverNamespaceRegionRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Region = string(dAtA[iNdEx:postIndex]) + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -16630,7 +21211,7 @@ func (m *FailoverNamespaceRegionRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *FailoverNamespaceRegionResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateNexusEndpointResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16653,10 +21234,10 @@ func (m *FailoverNamespaceRegionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FailoverNamespaceRegionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateNexusEndpointResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FailoverNamespaceRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateNexusEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -16719,7 +21300,7 @@ func (m *FailoverNamespaceRegionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *AddNamespaceRegionRequest) Unmarshal(dAtA []byte) error { +func (m *DeleteNexusEndpointRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16742,15 +21323,15 @@ func (m *AddNamespaceRegionRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AddNamespaceRegionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteNexusEndpointRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AddNamespaceRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteNexusEndpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EndpointId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16778,41 +21359,9 @@ func (m *AddNamespaceRegionRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Namespace = string(dAtA[iNdEx:postIndex]) + m.EndpointId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Region = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } @@ -16844,7 +21393,7 @@ func (m *AddNamespaceRegionRequest) Unmarshal(dAtA []byte) error { } m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -16900,7 +21449,7 @@ func (m *AddNamespaceRegionRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *AddNamespaceRegionResponse) Unmarshal(dAtA []byte) error { +func (m *DeleteNexusEndpointResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16923,10 +21472,10 @@ func (m *AddNamespaceRegionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: AddNamespaceRegionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteNexusEndpointResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: AddNamespaceRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteNexusEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -16989,7 +21538,7 @@ func (m *AddNamespaceRegionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetRegionsRequest) Unmarshal(dAtA []byte) error { +func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17012,12 +21561,112 @@ func (m *GetRegionsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRegionsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Spec == nil { + m.Spec = &v15.AccountSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -17042,7 +21691,7 @@ func (m *GetRegionsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetRegionsResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17065,15 +21714,15 @@ func (m *GetRegionsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRegionsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Regions", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17100,8 +21749,10 @@ func (m *GetRegionsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Regions = append(m.Regions, &v13.Region{}) - if err := m.Regions[len(m.Regions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17129,7 +21780,7 @@ func (m *GetRegionsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { +func (m *GetUserGroupsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17152,15 +21803,34 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRegionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetUserGroupsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetUserGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17188,7 +21858,107 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Region = string(dAtA[iNdEx:postIndex]) + m.PageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GoogleGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GoogleGroup == nil { + m.GoogleGroup = &GetUserGroupsRequest_GoogleGroupFilter{} + } + if err := m.GoogleGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -17214,7 +21984,7 @@ func (m *GetRegionRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { +func (m *GetUserGroupsRequest_GoogleGroupFilter) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17237,17 +22007,17 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetRegionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GoogleGroupFilter: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetRegionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GoogleGroupFilter: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EmailAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -17257,27 +22027,23 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Region == nil { - m.Region = &v13.Region{} - } - if err := m.Region.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.EmailAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -17303,7 +22069,7 @@ func (m *GetRegionResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetNexusEndpointsRequest) Unmarshal(dAtA []byte) error { +func (m *GetUserGroupsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17326,36 +22092,17 @@ func (m *GetNexusEndpointsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetNexusEndpointsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetUserGroupsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetNexusEndpointsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetUserGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -17365,27 +22112,29 @@ func (m *GetNexusEndpointsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.PageToken = string(dAtA[iNdEx:postIndex]) + m.Groups = append(m.Groups, &v1.UserGroup{}) + if err := m.Groups[len(m.Groups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetNamespaceId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17413,11 +22162,64 @@ func (m *GetNexusEndpointsRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetNamespaceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserGroupRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserGroupRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetTaskQueue", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17445,13 +22247,66 @@ func (m *GetNexusEndpointsRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TargetTaskQueue = string(dAtA[iNdEx:postIndex]) + m.GroupId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUserGroupResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUserGroupResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUserGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -17461,23 +22316,27 @@ func (m *GetNexusEndpointsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + if m.Group == nil { + m.Group = &v1.UserGroup{} + } + if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -17503,7 +22362,7 @@ func (m *GetNexusEndpointsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetNexusEndpointsResponse) Unmarshal(dAtA []byte) error { +func (m *CreateUserGroupRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17526,15 +22385,15 @@ func (m *GetNexusEndpointsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetNexusEndpointsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CreateUserGroupRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetNexusEndpointsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateUserGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Endpoints", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17561,14 +22420,16 @@ func (m *GetNexusEndpointsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Endpoints = append(m.Endpoints, &v14.Endpoint{}) - if err := m.Endpoints[len(m.Endpoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Spec == nil { + m.Spec = &v1.UserGroupSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17596,7 +22457,7 @@ func (m *GetNexusEndpointsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NextPageToken = string(dAtA[iNdEx:postIndex]) + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -17622,7 +22483,7 @@ func (m *GetNexusEndpointsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetNexusEndpointRequest) Unmarshal(dAtA []byte) error { +func (m *CreateUserGroupResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17645,15 +22506,15 @@ func (m *GetNexusEndpointRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetNexusEndpointRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CreateUserGroupResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetNexusEndpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateUserGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17681,64 +22542,11 @@ func (m *GetNexusEndpointRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndpointId = string(dAtA[iNdEx:postIndex]) + m.GroupId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRequestResponse(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthRequestResponse - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthRequestResponse - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetNexusEndpointResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetNexusEndpointResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetNexusEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -17765,10 +22573,10 @@ func (m *GetNexusEndpointResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Endpoint == nil { - m.Endpoint = &v14.Endpoint{} + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} } - if err := m.Endpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17796,7 +22604,7 @@ func (m *GetNexusEndpointResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateNexusEndpointRequest) Unmarshal(dAtA []byte) error { +func (m *UpdateUserGroupRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17819,13 +22627,45 @@ func (m *CreateNexusEndpointRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateNexusEndpointRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateUserGroupRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateNexusEndpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateUserGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GroupId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } @@ -17839,29 +22679,61 @@ func (m *CreateNexusEndpointRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Spec == nil { + m.Spec = &v1.UserGroupSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v14.EndpointSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -17917,7 +22789,7 @@ func (m *CreateNexusEndpointRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateNexusEndpointResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateUserGroupResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17940,45 +22812,13 @@ func (m *CreateNexusEndpointResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateNexusEndpointResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateUserGroupResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateNexusEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateUserGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EndpointId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } @@ -18038,7 +22878,7 @@ func (m *CreateNexusEndpointResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateNexusEndpointRequest) Unmarshal(dAtA []byte) error { +func (m *DeleteUserGroupRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18061,15 +22901,15 @@ func (m *UpdateNexusEndpointRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateNexusEndpointRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteUserGroupRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateNexusEndpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteUserGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18097,45 +22937,9 @@ func (m *UpdateNexusEndpointRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndpointId = string(dAtA[iNdEx:postIndex]) + m.GroupId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Spec == nil { - m.Spec = &v14.EndpointSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } @@ -18167,7 +22971,7 @@ func (m *UpdateNexusEndpointRequest) Unmarshal(dAtA []byte) error { } m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -18223,7 +23027,7 @@ func (m *UpdateNexusEndpointRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateNexusEndpointResponse) Unmarshal(dAtA []byte) error { +func (m *DeleteUserGroupResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18246,10 +23050,10 @@ func (m *UpdateNexusEndpointResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateNexusEndpointResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteUserGroupResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateNexusEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteUserGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -18312,7 +23116,7 @@ func (m *UpdateNexusEndpointResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteNexusEndpointRequest) Unmarshal(dAtA []byte) error { +func (m *SetUserGroupNamespaceAccessRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18335,15 +23139,15 @@ func (m *DeleteNexusEndpointRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteNexusEndpointRequest: wiretype end group for non-group") + return fmt.Errorf("proto: SetUserGroupNamespaceAccessRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteNexusEndpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetUserGroupNamespaceAccessRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndpointId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18371,9 +23175,77 @@ func (m *DeleteNexusEndpointRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.EndpointId = string(dAtA[iNdEx:postIndex]) + m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GroupId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Access", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Access == nil { + m.Access = &v1.NamespaceAccess{} + } + if err := m.Access.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } @@ -18405,7 +23277,7 @@ func (m *DeleteNexusEndpointRequest) Unmarshal(dAtA []byte) error { } m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -18461,7 +23333,7 @@ func (m *DeleteNexusEndpointRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteNexusEndpointResponse) Unmarshal(dAtA []byte) error { +func (m *SetUserGroupNamespaceAccessResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18484,10 +23356,10 @@ func (m *DeleteNexusEndpointResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteNexusEndpointResponse: wiretype end group for non-group") + return fmt.Errorf("proto: SetUserGroupNamespaceAccessResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteNexusEndpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetUserGroupNamespaceAccessResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -18517,68 +23389,15 @@ func (m *DeleteNexusEndpointResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthRequestResponse } if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} - } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRequestResponse(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthRequestResponse - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthRequestResponse - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetAccountRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetAccountRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { + return io.ErrUnexpectedEOF + } + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -18603,7 +23422,7 @@ func (m *GetAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetAccountResponse) Unmarshal(dAtA []byte) error { +func (m *CreateServiceAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18626,15 +23445,15 @@ func (m *GetAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CreateServiceAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateServiceAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -18661,13 +23480,45 @@ func (m *GetAccountResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Account == nil { - m.Account = &v15.Account{} + if m.Spec == nil { + m.Spec = &v1.ServiceAccountSpec{} } - if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -18692,7 +23543,7 @@ func (m *GetAccountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error { +func (m *CreateServiceAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18715,17 +23566,17 @@ func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateAccountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CreateServiceAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateServiceAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -18735,33 +23586,29 @@ func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v15.AccountSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ServiceAccountId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -18771,27 +23618,84 @@ func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} + } + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetServiceAccountRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetServiceAccountRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetServiceAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -18819,7 +23723,7 @@ func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + m.ServiceAccountId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -18845,7 +23749,7 @@ func (m *UpdateAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateAccountResponse) Unmarshal(dAtA []byte) error { +func (m *GetServiceAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18868,15 +23772,15 @@ func (m *UpdateAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetServiceAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetServiceAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -18903,10 +23807,10 @@ func (m *UpdateAccountResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} + if m.ServiceAccount == nil { + m.ServiceAccount = &v1.ServiceAccount{} } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -18934,7 +23838,7 @@ func (m *UpdateAccountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetUserGroupsRequest) Unmarshal(dAtA []byte) error { +func (m *GetServiceAccountsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18957,10 +23861,10 @@ func (m *GetUserGroupsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetUserGroupsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetServiceAccountsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetUserGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetServiceAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -19014,11 +23918,64 @@ func (m *GetUserGroupsRequest) Unmarshal(dAtA []byte) error { } m.PageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetServiceAccountsResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetServiceAccountsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetServiceAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -19028,27 +23985,29 @@ func (m *GetUserGroupsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.Namespace = string(dAtA[iNdEx:postIndex]) + m.ServiceAccount = append(m.ServiceAccount, &v1.ServiceAccount{}) + if err := m.ServiceAccount[len(m.ServiceAccount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupName", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19076,7 +24035,7 @@ func (m *GetUserGroupsRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GroupName = string(dAtA[iNdEx:postIndex]) + m.NextPageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -19102,7 +24061,7 @@ func (m *GetUserGroupsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetUserGroupsResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateServiceAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19125,15 +24084,47 @@ func (m *GetUserGroupsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetUserGroupsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateServiceAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetUserGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateServiceAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServiceAccountId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19160,14 +24151,16 @@ func (m *GetUserGroupsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Groups = append(m.Groups, &v1.UserGroup{}) - if err := m.Groups[len(m.Groups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Spec == nil { + m.Spec = &v1.ServiceAccountSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19195,64 +24188,11 @@ func (m *GetUserGroupsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.NextPageToken = string(dAtA[iNdEx:postIndex]) + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRequestResponse(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthRequestResponse - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthRequestResponse - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GetUserGroupRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GetUserGroupRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetUserGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19280,7 +24220,7 @@ func (m *GetUserGroupRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GroupId = string(dAtA[iNdEx:postIndex]) + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -19306,7 +24246,7 @@ func (m *GetUserGroupRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetUserGroupResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateServiceAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19329,15 +24269,15 @@ func (m *GetUserGroupResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetUserGroupResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateServiceAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetUserGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateServiceAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19364,10 +24304,10 @@ func (m *GetUserGroupResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Group == nil { - m.Group = &v1.UserGroup{} + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -19395,7 +24335,7 @@ func (m *GetUserGroupResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateUserGroupRequest) Unmarshal(dAtA []byte) error { +func (m *DeleteServiceAccountRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19418,17 +24358,17 @@ func (m *CreateUserGroupRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateUserGroupRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteServiceAccountRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateUserGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteServiceAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -19438,29 +24378,57 @@ func (m *CreateUserGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v1.UserGroupSpec{} + m.ServiceAccountId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -19516,7 +24484,7 @@ func (m *CreateUserGroupRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateUserGroupResponse) Unmarshal(dAtA []byte) error { +func (m *DeleteServiceAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19539,45 +24507,13 @@ func (m *CreateUserGroupResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateUserGroupResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteServiceAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateUserGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteServiceAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } @@ -19637,7 +24573,7 @@ func (m *CreateUserGroupResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateUserGroupRequest) Unmarshal(dAtA []byte) error { +func (m *GetApiKeysRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19660,17 +24596,17 @@ func (m *UpdateUserGroupRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateUserGroupRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetApiKeysRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateUserGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetApiKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) } - var stringLen uint64 + m.PageSize = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -19680,29 +24616,16 @@ func (m *UpdateUserGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.PageSize |= int32(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -19712,31 +24635,27 @@ func (m *UpdateUserGroupRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v1.UserGroupSpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.PageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19764,11 +24683,11 @@ func (m *UpdateUserGroupRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + m.OwnerId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerTypeDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19796,8 +24715,27 @@ func (m *UpdateUserGroupRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + m.OwnerTypeDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerType", wireType) + } + m.OwnerType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerType |= v1.OwnerType(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -19822,7 +24760,7 @@ func (m *UpdateUserGroupRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateUserGroupResponse) Unmarshal(dAtA []byte) error { +func (m *GetApiKeysResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19845,15 +24783,15 @@ func (m *UpdateUserGroupResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateUserGroupResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetApiKeysResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateUserGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetApiKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApiKeys", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19880,13 +24818,43 @@ func (m *UpdateUserGroupResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} - } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.ApiKeys = append(m.ApiKeys, &v1.ApiKey{}) + if err := m.ApiKeys[len(m.ApiKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -19911,7 +24879,7 @@ func (m *UpdateUserGroupResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteUserGroupRequest) Unmarshal(dAtA []byte) error { +func (m *GetApiKeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19934,79 +24902,15 @@ func (m *DeleteUserGroupRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteUserGroupRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetApiKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteUserGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetApiKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20034,7 +24938,7 @@ func (m *DeleteUserGroupRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + m.KeyId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -20060,7 +24964,7 @@ func (m *DeleteUserGroupRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteUserGroupResponse) Unmarshal(dAtA []byte) error { +func (m *GetApiKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20083,15 +24987,15 @@ func (m *DeleteUserGroupResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteUserGroupResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetApiKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteUserGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetApiKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ApiKey", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20118,10 +25022,10 @@ func (m *DeleteUserGroupResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} + if m.ApiKey == nil { + m.ApiKey = &v1.ApiKey{} } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ApiKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -20149,7 +25053,7 @@ func (m *DeleteUserGroupResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *SetUserGroupNamespaceAccessRequest) Unmarshal(dAtA []byte) error { +func (m *CreateApiKeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20172,17 +25076,17 @@ func (m *SetUserGroupNamespaceAccessRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetUserGroupNamespaceAccessRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CreateApiKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetUserGroupNamespaceAccessRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateApiKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -20192,27 +25096,31 @@ func (m *SetUserGroupNamespaceAccessRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.Namespace = string(dAtA[iNdEx:postIndex]) + if m.Spec == nil { + m.Spec = &v1.ApiKeySpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20240,47 +25148,64 @@ func (m *SetUserGroupNamespaceAccessRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.GroupId = string(dAtA[iNdEx:postIndex]) + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Access", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if skippy < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen - if postIndex < 0 { + if (iNdEx + skippy) < 0 { return ErrInvalidLengthRequestResponse } - if postIndex > l { + if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } - if m.Access == nil { - m.Access = &v1.NamespaceAccess{} + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CreateApiKeyResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse } - if err := m.Access.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if iNdEx >= l { + return io.ErrUnexpectedEOF } - iNdEx = postIndex - case 4: + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: CreateApiKeyResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateApiKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20308,11 +25233,11 @@ func (m *SetUserGroupNamespaceAccessRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + m.KeyId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20340,62 +25265,9 @@ func (m *SetUserGroupNamespaceAccessRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) + m.Token = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRequestResponse(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthRequestResponse - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthRequestResponse - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetUserGroupNamespaceAccessResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SetUserGroupNamespaceAccessResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetUserGroupNamespaceAccessResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } @@ -20455,7 +25327,7 @@ func (m *SetUserGroupNamespaceAccessResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateServiceAccountRequest) Unmarshal(dAtA []byte) error { +func (m *UpdateApiKeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20478,13 +25350,45 @@ func (m *CreateServiceAccountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateServiceAccountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateApiKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateServiceAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateApiKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } @@ -20514,13 +25418,45 @@ func (m *CreateServiceAccountRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Spec == nil { - m.Spec = &v1.ServiceAccountSpec{} + m.Spec = &v1.ApiKeySpec{} } if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -20576,7 +25512,7 @@ func (m *CreateServiceAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateServiceAccountResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateApiKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20599,45 +25535,13 @@ func (m *CreateServiceAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateServiceAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateApiKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateServiceAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateApiKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceAccountId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } @@ -20697,7 +25601,7 @@ func (m *CreateServiceAccountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetServiceAccountRequest) Unmarshal(dAtA []byte) error { +func (m *DeleteApiKeyRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20720,15 +25624,15 @@ func (m *GetServiceAccountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetServiceAccountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteApiKeyRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetServiceAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteApiKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20756,7 +25660,71 @@ func (m *GetServiceAccountRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ServiceAccountId = string(dAtA[iNdEx:postIndex]) + m.KeyId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -20782,7 +25750,7 @@ func (m *GetServiceAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetServiceAccountResponse) Unmarshal(dAtA []byte) error { +func (m *DeleteApiKeyResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20805,15 +25773,15 @@ func (m *GetServiceAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetServiceAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteApiKeyResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetServiceAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteApiKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -20840,10 +25808,10 @@ func (m *GetServiceAccountResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ServiceAccount == nil { - m.ServiceAccount = &v1.ServiceAccount{} + if m.AsyncOperation == nil { + m.AsyncOperation = &v11.AsyncOperation{} } - if err := m.ServiceAccount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -20871,7 +25839,7 @@ func (m *GetServiceAccountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetServiceAccountsRequest) Unmarshal(dAtA []byte) error { +func (m *GetAuditLogsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20894,10 +25862,10 @@ func (m *GetServiceAccountsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetServiceAccountsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetAuditLogsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetServiceAccountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAuditLogsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -20951,6 +25919,78 @@ func (m *GetServiceAccountsRequest) Unmarshal(dAtA []byte) error { } m.PageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTimeInclusive", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StartTimeInclusive == nil { + m.StartTimeInclusive = &types.Timestamp{} + } + if err := m.StartTimeInclusive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndTimeExclusive", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EndTimeExclusive == nil { + m.EndTimeExclusive = &types.Timestamp{} + } + if err := m.EndTimeExclusive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -20975,7 +26015,7 @@ func (m *GetServiceAccountsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetServiceAccountsResponse) Unmarshal(dAtA []byte) error { +func (m *GetAuditLogsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20998,15 +26038,15 @@ func (m *GetServiceAccountsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetServiceAccountsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetAuditLogsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetServiceAccountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAuditLogsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Logs", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21033,8 +26073,8 @@ func (m *GetServiceAccountsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ServiceAccount = append(m.ServiceAccount, &v1.ServiceAccount{}) - if err := m.ServiceAccount[len(m.ServiceAccount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Logs = append(m.Logs, &v16.LogRecord{}) + if err := m.Logs[len(m.Logs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -21094,7 +26134,7 @@ func (m *GetServiceAccountsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateServiceAccountRequest) Unmarshal(dAtA []byte) error { +func (m *GetUsageRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21117,17 +26157,17 @@ func (m *UpdateServiceAccountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateServiceAccountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetUsageRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetUsageRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StartTimeInclusive", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -21137,27 +26177,31 @@ func (m *UpdateServiceAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.ServiceAccountId = string(dAtA[iNdEx:postIndex]) + if m.StartTimeInclusive == nil { + m.StartTimeInclusive = &types.Timestamp{} + } + if err := m.StartTimeInclusive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field EndTimeExclusive", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21184,16 +26228,35 @@ func (m *UpdateServiceAccountRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v1.ServiceAccountSpec{} + if m.EndTimeExclusive == nil { + m.EndTimeExclusive = &types.Timestamp{} } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.EndTimeExclusive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21221,11 +26284,98 @@ func (m *UpdateServiceAccountRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + m.PageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetUsageResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetUsageResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetUsageResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Summaries", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Summaries = append(m.Summaries, &v17.Summary{}) + if err := m.Summaries[len(m.Summaries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21253,8 +26403,61 @@ func (m *UpdateServiceAccountRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRequestResponse(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthRequestResponse + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GetAccountRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GetAccountRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -21279,7 +26482,7 @@ func (m *UpdateServiceAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateServiceAccountResponse) Unmarshal(dAtA []byte) error { +func (m *GetAccountResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21302,15 +26505,15 @@ func (m *UpdateServiceAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateServiceAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetAccountResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateServiceAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Account", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21337,10 +26540,10 @@ func (m *UpdateServiceAccountResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} + if m.Account == nil { + m.Account = &v15.Account{} } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Account.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -21368,7 +26571,7 @@ func (m *UpdateServiceAccountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteServiceAccountRequest) Unmarshal(dAtA []byte) error { +func (m *CreateNamespaceExportSinkRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21391,15 +26594,15 @@ func (m *DeleteServiceAccountRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteServiceAccountRequest: wiretype end group for non-group") + return fmt.Errorf("proto: CreateNamespaceExportSinkRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteServiceAccountRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateNamespaceExportSinkRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21427,13 +26630,13 @@ func (m *DeleteServiceAccountRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ServiceAccountId = string(dAtA[iNdEx:postIndex]) + m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -21443,23 +26646,27 @@ func (m *DeleteServiceAccountRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + if m.Spec == nil { + m.Spec = &v12.ExportSinkSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex case 3: if wireType != 2 { @@ -21517,7 +26724,7 @@ func (m *DeleteServiceAccountRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteServiceAccountResponse) Unmarshal(dAtA []byte) error { +func (m *CreateNamespaceExportSinkResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21540,10 +26747,10 @@ func (m *DeleteServiceAccountResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteServiceAccountResponse: wiretype end group for non-group") + return fmt.Errorf("proto: CreateNamespaceExportSinkResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteServiceAccountResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateNamespaceExportSinkResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21606,7 +26813,7 @@ func (m *DeleteServiceAccountResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetApiKeysRequest) Unmarshal(dAtA []byte) error { +func (m *GetNamespaceExportSinkRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21629,66 +26836,15 @@ func (m *GetApiKeysRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetApiKeysRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetNamespaceExportSinkRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetApiKeysRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNamespaceExportSinkRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) - } - m.PageSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PageSize |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PageToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21716,11 +26872,11 @@ func (m *GetApiKeysRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OwnerId = string(dAtA[iNdEx:postIndex]) + m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21748,7 +26904,7 @@ func (m *GetApiKeysRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OwnerType = string(dAtA[iNdEx:postIndex]) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -21774,7 +26930,7 @@ func (m *GetApiKeysRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetApiKeysResponse) Unmarshal(dAtA []byte) error { +func (m *GetNamespaceExportSinkResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21797,15 +26953,15 @@ func (m *GetApiKeysResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetApiKeysResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetNamespaceExportSinkResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetApiKeysResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNamespaceExportSinkResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApiKeys", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sink", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21832,42 +26988,12 @@ func (m *GetApiKeysResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ApiKeys = append(m.ApiKeys, &v1.ApiKey{}) - if err := m.ApiKeys[len(m.ApiKeys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse + if m.Sink == nil { + m.Sink = &v12.ExportSink{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Sink.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.NextPageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -21893,7 +27019,7 @@ func (m *GetApiKeysResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetApiKeyRequest) Unmarshal(dAtA []byte) error { +func (m *GetNamespaceExportSinksRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21916,15 +27042,15 @@ func (m *GetApiKeyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetApiKeyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: GetNamespaceExportSinksRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetApiKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNamespaceExportSinksRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21952,7 +27078,58 @@ func (m *GetApiKeyRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyId = string(dAtA[iNdEx:postIndex]) + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType) + } + m.PageSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PageSize |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PageToken = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -21978,7 +27155,7 @@ func (m *GetApiKeyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *GetApiKeyResponse) Unmarshal(dAtA []byte) error { +func (m *GetNamespaceExportSinksResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22001,15 +27178,15 @@ func (m *GetApiKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GetApiKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: GetNamespaceExportSinksResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GetApiKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetNamespaceExportSinksResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApiKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Sinks", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -22036,13 +27213,43 @@ func (m *GetApiKeyResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ApiKey == nil { - m.ApiKey = &v1.ApiKey{} - } - if err := m.ApiKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Sinks = append(m.Sinks, &v12.ExportSink{}) + if err := m.Sinks[len(m.Sinks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NextPageToken", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NextPageToken = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) @@ -22067,7 +27274,7 @@ func (m *GetApiKeyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateApiKeyRequest) Unmarshal(dAtA []byte) error { +func (m *UpdateNamespaceExportSinkRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22090,13 +27297,45 @@ func (m *CreateApiKeyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateApiKeyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateNamespaceExportSinkRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateApiKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateNamespaceExportSinkRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } @@ -22126,13 +27365,45 @@ func (m *CreateApiKeyRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Spec == nil { - m.Spec = &v1.ApiKeySpec{} + m.Spec = &v12.ExportSinkSpec{} } if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 2: + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRequestResponse + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthRequestResponse + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthRequestResponse + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) } @@ -22188,7 +27459,7 @@ func (m *CreateApiKeyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *CreateApiKeyResponse) Unmarshal(dAtA []byte) error { +func (m *UpdateNamespaceExportSinkResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22211,77 +27482,13 @@ func (m *CreateApiKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CreateApiKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: UpdateNamespaceExportSinkResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CreateApiKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: UpdateNamespaceExportSinkResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeyId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Token = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) } @@ -22341,7 +27548,7 @@ func (m *CreateApiKeyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateApiKeyRequest) Unmarshal(dAtA []byte) error { +func (m *DeleteNamespaceExportSinkRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22364,15 +27571,15 @@ func (m *UpdateApiKeyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateApiKeyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteNamespaceExportSinkRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateApiKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteNamespaceExportSinkRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22400,13 +27607,13 @@ func (m *UpdateApiKeyRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyId = string(dAtA[iNdEx:postIndex]) + m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -22416,27 +27623,23 @@ func (m *UpdateApiKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Spec == nil { - m.Spec = &v1.ApiKeySpec{} - } - if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -22526,7 +27729,7 @@ func (m *UpdateApiKeyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *UpdateApiKeyResponse) Unmarshal(dAtA []byte) error { +func (m *DeleteNamespaceExportSinkResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22549,10 +27752,10 @@ func (m *UpdateApiKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UpdateApiKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: DeleteNamespaceExportSinkResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateApiKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: DeleteNamespaceExportSinkResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22615,7 +27818,7 @@ func (m *UpdateApiKeyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteApiKeyRequest) Unmarshal(dAtA []byte) error { +func (m *ValidateNamespaceExportSinkRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22638,15 +27841,15 @@ func (m *DeleteApiKeyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteApiKeyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateNamespaceExportSinkRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteApiKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateNamespaceExportSinkRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -22674,13 +27877,13 @@ func (m *DeleteApiKeyRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.KeyId = string(dAtA[iNdEx:postIndex]) + m.Namespace = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowRequestResponse @@ -22690,55 +27893,27 @@ func (m *DeleteApiKeyRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthRequestResponse } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthRequestResponse } if postIndex > l { return io.ErrUnexpectedEOF } - m.ResourceVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperationId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse + if m.Spec == nil { + m.Spec = &v12.ExportSinkSpec{} } - if postIndex > l { - return io.ErrUnexpectedEOF + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } - m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -22764,7 +27939,7 @@ func (m *DeleteApiKeyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *DeleteApiKeyResponse) Unmarshal(dAtA []byte) error { +func (m *ValidateNamespaceExportSinkResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22787,48 +27962,12 @@ func (m *DeleteApiKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: DeleteApiKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: ValidateNamespaceExportSinkResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteApiKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ValidateNamespaceExportSinkResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AsyncOperation", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRequestResponse - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRequestResponse - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRequestResponse - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AsyncOperation == nil { - m.AsyncOperation = &v11.AsyncOperation{} - } - if err := m.AsyncOperation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipRequestResponse(dAtA[iNdEx:]) diff --git a/protogen/api/cloud/cloudservice/v1/service.pb.go b/protogen/api/cloud/cloudservice/v1/service.pb.go index 9f4efa02..6039d213 100644 --- a/protogen/api/cloud/cloudservice/v1/service.pb.go +++ b/protogen/api/cloud/cloudservice/v1/service.pb.go @@ -30,98 +30,116 @@ func init() { } var fileDescriptor_9201a2f120d8d47c = []byte{ - // 1450 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x99, 0x4d, 0x6c, 0xdc, 0x44, - 0x14, 0xc7, 0x77, 0x38, 0xf0, 0x31, 0x4a, 0x15, 0x3a, 0x49, 0x9b, 0x90, 0x34, 0x4e, 0xeb, 0x02, - 0x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0x2d, 0x7d, 0x93, 0x8b, 0x92, - 0xce, 0xe2, 0x85, 0x00, 0x7b, 0x41, 0xc0, 0x8e, 0xea, 0x5d, 0xf6, 0xd1, 0xaf, 0xdd, 0xef, 0x08, - 0xed, 0x83, 0x71, 0x13, 0x81, 0x19, 0x56, 0xa0, 0x30, 0xa3, 0x42, 0xc0, 0xcc, 0x0b, 0xcc, 0x17, - 0xf5, 0x5e, 0x7b, 0xea, 0xf3, 0xde, 0x27, 0xb4, 0x4f, 0x16, 0x3c, 0x86, 0x37, 0xac, 0x40, 0xf1, - 0x46, 0x85, 0xd1, 0x1a, 0xc8, 0xf7, 0xe2, 0x5d, 0xde, 0x3a, 0x38, 0xd4, 0x72, 0x8f, 0x0e, 0xb5, - 0xdc, 0xe3, 0x43, 0x8d, 0x7c, 0xd0, 0xd2, 0xc8, 0x37, 0x2d, 0x8d, 0xfc, 0xde, 0xd2, 0xc8, 0x41, - 0x4b, 0x23, 0x7f, 0xb7, 0x34, 0xf2, 0x6f, 0x4b, 0xcb, 0x3d, 0x6e, 0x69, 0xe4, 0xe3, 0x23, 0x2d, - 0x77, 0x70, 0xa4, 0xe5, 0x1e, 0x1d, 0x69, 0xb9, 0xb7, 0x67, 0x36, 0xad, 0x36, 0x5a, 0xcd, 0xea, - 0xfe, 0xb7, 0xd4, 0x85, 0xf0, 0xff, 0xef, 0x3c, 0x2d, 0xfe, 0x54, 0x3a, 0xf5, 0x24, 0x00, 0x00, - 0xff, 0xff, 0x80, 0x0c, 0x35, 0xd9, 0xdb, 0x1d, 0x00, 0x00, + // 1738 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x9a, 0x4d, 0x6c, 0xdc, 0x44, + 0x1b, 0xc7, 0x33, 0x3d, 0xbc, 0x1f, 0xa3, 0xbc, 0x4d, 0x3b, 0x89, 0x92, 0x26, 0x69, 0xdd, 0x17, + 0xd3, 0x56, 0x61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 0xad, 0x70, 0xc3, 0xa9, 0xbc, 0x50, 0xf6, 0x3c, 0xc7, 0xbc, + 0xda, 0xf0, 0x38, 0x5b, 0xca, 0x82, 0xd1, 0x25, 0x40, 0x60, 0x67, 0x79, 0xd7, 0x71, 0xc0, 0xda, + 0xb2, 0xb0, 0x56, 0x56, 0x4f, 0x75, 0x5f, 0x63, 0x1c, 0x11, 0xaa, 0x58, 0x11, 0xb1, 0x8a, 0xae, + 0x08, 0x56, 0x34, 0x82, 0x68, 0xbe, 0xf3, 0x4f, 0x08, 0xed, 0x93, 0xab, 0x30, 0x32, 0x61, 0x31, + 0x11, 0x2a, 0x61, 0x1d, 0xda, 0x68, 0x91, 0x15, 0x76, 0x28, 0xb2, 0x9f, 0x08, 0x1d, 0x5a, 0x32, + 0xcc, 0x75, 0x6b, 0x23, 0xb4, 0x08, 0x5f, 0xe2, 0x35, 0x7f, 0x95, 0xcc, 0xb4, 0x80, 0xa7, 0x88, + 0x03, 0x0f, 0x0b, 0xbb, 0x8a, 0x01, 0x5e, 0x66, 0x84, 0x97, 0x09, 0xb5, 0xd8, 0x3d, 0x43, 0xcf, + 0x43, 0x98, 0xa2, 0x23, 0xe4, 0x7e, 0x4a, 0xee, 0x12, 0xca, 0xca, 0xd5, 0x6a, 0xdc, 0x59, 0xa6, + 0x15, 0xbc, 0x53, 0x17, 0x98, 0x3a, 0x93, 0x57, 0x0e, 0x7e, 0x26, 0x85, 0x9f, 0xa2, 0x3a, 0xd6, + 0xdd, 0x8f, 0x51, 0xad, 0x86, 0xac, 0xdc, 0x24, 0x94, 0x2e, 0x73, 0x4f, 0x86, 0x72, 0xb3, 0xb5, + 0x12, 0xed, 0xf1, 0xa8, 0x56, 0x22, 0x2c, 0x03, 0xe4, 0x41, 0x81, 0xbc, 0x8f, 0xed, 0x05, 0x64, + 0x07, 0x30, 0x5e, 0x27, 0xf4, 0xbf, 0xad, 0xe1, 0x6c, 0x0a, 0x15, 0x3d, 0x60, 0x9a, 0x46, 0xa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 0xcf, 0x91, + 0x67, 0x41, 0x64, 0x5a, 0x5a, 0xd9, 0x36, 0x35, 0xf1, 0x13, 0x1c, 0x2d, 0xfc, 0x43, 0x1c, 0xed, + 0xca, 0xf8, 0x6f, 0x7b, 0xc6, 0xda, 0xc3, 0x4a, 0xa5, 0xb2, 0x6d, 0x96, 0x4a, 0x62, 0x08, 0xbc, + 0xc0, 0xc8, 0x52, 0xe9, 0xca, 0xf8, 0xd5, 0x7f, 0x89, 0x9f, 0xf3, 0x4c, 0xfe, 0x13, 0x00, 0x00, + 0xff, 0xff, 0xa7, 0xaf, 0x9e, 0x62, 0x7f, 0x24, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -180,10 +198,6 @@ type CloudServiceClient interface { UpdateNexusEndpoint(ctx context.Context, in *UpdateNexusEndpointRequest, opts ...grpc.CallOption) (*UpdateNexusEndpointResponse, error) // Delete a nexus endpoint DeleteNexusEndpoint(ctx context.Context, in *DeleteNexusEndpointRequest, opts ...grpc.CallOption) (*DeleteNexusEndpointResponse, error) - // Get account information - GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) - // Update account information - UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error) // Get all user groups GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) // Get a user group @@ -216,6 +230,27 @@ type CloudServiceClient interface { UpdateApiKey(ctx context.Context, in *UpdateApiKeyRequest, opts ...grpc.CallOption) (*UpdateApiKeyResponse, error) // Delete an API key DeleteApiKey(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*DeleteApiKeyResponse, error) + // Get audit logs + GetAuditLogs(ctx context.Context, in *GetAuditLogsRequest, opts ...grpc.CallOption) (*GetAuditLogsResponse, error) + // Get usage + GetUsage(ctx context.Context, in *GetUsageRequest, opts ...grpc.CallOption) (*GetUsageResponse, error) + // Get account information + GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) + // Update account information + UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error) + // Create an export sink + CreateNamespaceExportSink(ctx context.Context, in *CreateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*CreateNamespaceExportSinkResponse, error) + // Get an export sink + GetNamespaceExportSink(ctx context.Context, in *GetNamespaceExportSinkRequest, opts ...grpc.CallOption) (*GetNamespaceExportSinkResponse, error) + // Get export sinks + GetNamespaceExportSinks(ctx context.Context, in *GetNamespaceExportSinksRequest, opts ...grpc.CallOption) (*GetNamespaceExportSinksResponse, error) + // Update an export sink + UpdateNamespaceExportSink(ctx context.Context, in *UpdateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*UpdateNamespaceExportSinkResponse, error) + // Delete an export sink + DeleteNamespaceExportSink(ctx context.Context, in *DeleteNamespaceExportSinkRequest, opts ...grpc.CallOption) (*DeleteNamespaceExportSinkResponse, error) + // Validates an export sink configuration by delivering an empty test file to the specified sink. + // This operation verifies that the sink is correctly configured, accessible, and ready for data export. + ValidateNamespaceExportSink(ctx context.Context, in *ValidateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*ValidateNamespaceExportSinkResponse, error) } type cloudServiceClient struct { @@ -424,24 +459,6 @@ func (c *cloudServiceClient) DeleteNexusEndpoint(ctx context.Context, in *Delete return out, nil } -func (c *cloudServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { - out := new(GetAccountResponse) - err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/GetAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *cloudServiceClient) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error) { - out := new(UpdateAccountResponse) - err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateAccount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *cloudServiceClient) GetUserGroups(ctx context.Context, in *GetUserGroupsRequest, opts ...grpc.CallOption) (*GetUserGroupsResponse, error) { out := new(GetUserGroupsResponse) err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUserGroups", in, out, opts...) @@ -586,6 +603,96 @@ func (c *cloudServiceClient) DeleteApiKey(ctx context.Context, in *DeleteApiKeyR return out, nil } +func (c *cloudServiceClient) GetAuditLogs(ctx context.Context, in *GetAuditLogsRequest, opts ...grpc.CallOption) (*GetAuditLogsResponse, error) { + out := new(GetAuditLogsResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/GetAuditLogs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) GetUsage(ctx context.Context, in *GetUsageRequest, opts ...grpc.CallOption) (*GetUsageResponse, error) { + out := new(GetUsageResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/GetUsage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { + out := new(GetAccountResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/GetAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*UpdateAccountResponse, error) { + out := new(UpdateAccountResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) CreateNamespaceExportSink(ctx context.Context, in *CreateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*CreateNamespaceExportSinkResponse, error) { + out := new(CreateNamespaceExportSinkResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNamespaceExportSink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) GetNamespaceExportSink(ctx context.Context, in *GetNamespaceExportSinkRequest, opts ...grpc.CallOption) (*GetNamespaceExportSinkResponse, error) { + out := new(GetNamespaceExportSinkResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) GetNamespaceExportSinks(ctx context.Context, in *GetNamespaceExportSinksRequest, opts ...grpc.CallOption) (*GetNamespaceExportSinksResponse, error) { + out := new(GetNamespaceExportSinksResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSinks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) UpdateNamespaceExportSink(ctx context.Context, in *UpdateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*UpdateNamespaceExportSinkResponse, error) { + out := new(UpdateNamespaceExportSinkResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNamespaceExportSink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) DeleteNamespaceExportSink(ctx context.Context, in *DeleteNamespaceExportSinkRequest, opts ...grpc.CallOption) (*DeleteNamespaceExportSinkResponse, error) { + out := new(DeleteNamespaceExportSinkResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNamespaceExportSink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *cloudServiceClient) ValidateNamespaceExportSink(ctx context.Context, in *ValidateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*ValidateNamespaceExportSinkResponse, error) { + out := new(ValidateNamespaceExportSinkResponse) + err := c.cc.Invoke(ctx, "/temporal.api.cloud.cloudservice.v1.CloudService/ValidateNamespaceExportSink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // CloudServiceServer is the server API for CloudService service. type CloudServiceServer interface { // Gets all known users @@ -632,10 +739,6 @@ type CloudServiceServer interface { UpdateNexusEndpoint(context.Context, *UpdateNexusEndpointRequest) (*UpdateNexusEndpointResponse, error) // Delete a nexus endpoint DeleteNexusEndpoint(context.Context, *DeleteNexusEndpointRequest) (*DeleteNexusEndpointResponse, error) - // Get account information - GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) - // Update account information - UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error) // Get all user groups GetUserGroups(context.Context, *GetUserGroupsRequest) (*GetUserGroupsResponse, error) // Get a user group @@ -668,6 +771,27 @@ type CloudServiceServer interface { UpdateApiKey(context.Context, *UpdateApiKeyRequest) (*UpdateApiKeyResponse, error) // Delete an API key DeleteApiKey(context.Context, *DeleteApiKeyRequest) (*DeleteApiKeyResponse, error) + // Get audit logs + GetAuditLogs(context.Context, *GetAuditLogsRequest) (*GetAuditLogsResponse, error) + // Get usage + GetUsage(context.Context, *GetUsageRequest) (*GetUsageResponse, error) + // Get account information + GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) + // Update account information + UpdateAccount(context.Context, *UpdateAccountRequest) (*UpdateAccountResponse, error) + // Create an export sink + CreateNamespaceExportSink(context.Context, *CreateNamespaceExportSinkRequest) (*CreateNamespaceExportSinkResponse, error) + // Get an export sink + GetNamespaceExportSink(context.Context, *GetNamespaceExportSinkRequest) (*GetNamespaceExportSinkResponse, error) + // Get export sinks + GetNamespaceExportSinks(context.Context, *GetNamespaceExportSinksRequest) (*GetNamespaceExportSinksResponse, error) + // Update an export sink + UpdateNamespaceExportSink(context.Context, *UpdateNamespaceExportSinkRequest) (*UpdateNamespaceExportSinkResponse, error) + // Delete an export sink + DeleteNamespaceExportSink(context.Context, *DeleteNamespaceExportSinkRequest) (*DeleteNamespaceExportSinkResponse, error) + // Validates an export sink configuration by delivering an empty test file to the specified sink. + // This operation verifies that the sink is correctly configured, accessible, and ready for data export. + ValidateNamespaceExportSink(context.Context, *ValidateNamespaceExportSinkRequest) (*ValidateNamespaceExportSinkResponse, error) } // UnimplementedCloudServiceServer can be embedded to have forward compatible implementations. @@ -740,12 +864,6 @@ func (*UnimplementedCloudServiceServer) UpdateNexusEndpoint(ctx context.Context, func (*UnimplementedCloudServiceServer) DeleteNexusEndpoint(ctx context.Context, req *DeleteNexusEndpointRequest) (*DeleteNexusEndpointResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNexusEndpoint not implemented") } -func (*UnimplementedCloudServiceServer) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented") -} -func (*UnimplementedCloudServiceServer) UpdateAccount(ctx context.Context, req *UpdateAccountRequest) (*UpdateAccountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateAccount not implemented") -} func (*UnimplementedCloudServiceServer) GetUserGroups(ctx context.Context, req *GetUserGroupsRequest) (*GetUserGroupsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserGroups not implemented") } @@ -794,6 +912,36 @@ func (*UnimplementedCloudServiceServer) UpdateApiKey(ctx context.Context, req *U func (*UnimplementedCloudServiceServer) DeleteApiKey(ctx context.Context, req *DeleteApiKeyRequest) (*DeleteApiKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteApiKey not implemented") } +func (*UnimplementedCloudServiceServer) GetAuditLogs(ctx context.Context, req *GetAuditLogsRequest) (*GetAuditLogsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAuditLogs not implemented") +} +func (*UnimplementedCloudServiceServer) GetUsage(ctx context.Context, req *GetUsageRequest) (*GetUsageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetUsage not implemented") +} +func (*UnimplementedCloudServiceServer) GetAccount(ctx context.Context, req *GetAccountRequest) (*GetAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented") +} +func (*UnimplementedCloudServiceServer) UpdateAccount(ctx context.Context, req *UpdateAccountRequest) (*UpdateAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateAccount not implemented") +} +func (*UnimplementedCloudServiceServer) CreateNamespaceExportSink(ctx context.Context, req *CreateNamespaceExportSinkRequest) (*CreateNamespaceExportSinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNamespaceExportSink not implemented") +} +func (*UnimplementedCloudServiceServer) GetNamespaceExportSink(ctx context.Context, req *GetNamespaceExportSinkRequest) (*GetNamespaceExportSinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNamespaceExportSink not implemented") +} +func (*UnimplementedCloudServiceServer) GetNamespaceExportSinks(ctx context.Context, req *GetNamespaceExportSinksRequest) (*GetNamespaceExportSinksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNamespaceExportSinks not implemented") +} +func (*UnimplementedCloudServiceServer) UpdateNamespaceExportSink(ctx context.Context, req *UpdateNamespaceExportSinkRequest) (*UpdateNamespaceExportSinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNamespaceExportSink not implemented") +} +func (*UnimplementedCloudServiceServer) DeleteNamespaceExportSink(ctx context.Context, req *DeleteNamespaceExportSinkRequest) (*DeleteNamespaceExportSinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNamespaceExportSink not implemented") +} +func (*UnimplementedCloudServiceServer) ValidateNamespaceExportSink(ctx context.Context, req *ValidateNamespaceExportSinkRequest) (*ValidateNamespaceExportSinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidateNamespaceExportSink not implemented") +} func RegisterCloudServiceServer(s *grpc.Server, srv CloudServiceServer) { s.RegisterService(&_CloudService_serviceDesc, srv) @@ -1195,42 +1343,6 @@ func _CloudService_DeleteNexusEndpoint_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } -func _CloudService_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).GetAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/GetAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).GetAccount(ctx, req.(*GetAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _CloudService_UpdateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateAccountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(CloudServiceServer).UpdateAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateAccount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(CloudServiceServer).UpdateAccount(ctx, req.(*UpdateAccountRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _CloudService_GetUserGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUserGroupsRequest) if err := dec(in); err != nil { @@ -1519,6 +1631,186 @@ func _CloudService_DeleteApiKey_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _CloudService_GetAuditLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAuditLogsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).GetAuditLogs(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/GetAuditLogs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).GetAuditLogs(ctx, req.(*GetAuditLogsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_GetUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetUsageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).GetUsage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/GetUsage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).GetUsage(ctx, req.(*GetUsageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).GetAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/GetAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).GetAccount(ctx, req.(*GetAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_UpdateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).UpdateAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).UpdateAccount(ctx, req.(*UpdateAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_CreateNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNamespaceExportSinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).CreateNamespaceExportSink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/CreateNamespaceExportSink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).CreateNamespaceExportSink(ctx, req.(*CreateNamespaceExportSinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_GetNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetNamespaceExportSinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).GetNamespaceExportSink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).GetNamespaceExportSink(ctx, req.(*GetNamespaceExportSinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_GetNamespaceExportSinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetNamespaceExportSinksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).GetNamespaceExportSinks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/GetNamespaceExportSinks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).GetNamespaceExportSinks(ctx, req.(*GetNamespaceExportSinksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_UpdateNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateNamespaceExportSinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).UpdateNamespaceExportSink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/UpdateNamespaceExportSink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).UpdateNamespaceExportSink(ctx, req.(*UpdateNamespaceExportSinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_DeleteNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNamespaceExportSinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).DeleteNamespaceExportSink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/DeleteNamespaceExportSink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).DeleteNamespaceExportSink(ctx, req.(*DeleteNamespaceExportSinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _CloudService_ValidateNamespaceExportSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateNamespaceExportSinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(CloudServiceServer).ValidateNamespaceExportSink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/temporal.api.cloud.cloudservice.v1.CloudService/ValidateNamespaceExportSink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(CloudServiceServer).ValidateNamespaceExportSink(ctx, req.(*ValidateNamespaceExportSinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _CloudService_serviceDesc = grpc.ServiceDesc{ ServiceName: "temporal.api.cloud.cloudservice.v1.CloudService", HandlerType: (*CloudServiceServer)(nil), @@ -1611,14 +1903,6 @@ var _CloudService_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteNexusEndpoint", Handler: _CloudService_DeleteNexusEndpoint_Handler, }, - { - MethodName: "GetAccount", - Handler: _CloudService_GetAccount_Handler, - }, - { - MethodName: "UpdateAccount", - Handler: _CloudService_UpdateAccount_Handler, - }, { MethodName: "GetUserGroups", Handler: _CloudService_GetUserGroups_Handler, @@ -1683,7 +1967,47 @@ var _CloudService_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteApiKey", Handler: _CloudService_DeleteApiKey_Handler, }, + { + MethodName: "GetAuditLogs", + Handler: _CloudService_GetAuditLogs_Handler, + }, + { + MethodName: "GetUsage", + Handler: _CloudService_GetUsage_Handler, + }, + { + MethodName: "GetAccount", + Handler: _CloudService_GetAccount_Handler, + }, + { + MethodName: "UpdateAccount", + Handler: _CloudService_UpdateAccount_Handler, + }, + { + MethodName: "CreateNamespaceExportSink", + Handler: _CloudService_CreateNamespaceExportSink_Handler, + }, + { + MethodName: "GetNamespaceExportSink", + Handler: _CloudService_GetNamespaceExportSink_Handler, + }, + { + MethodName: "GetNamespaceExportSinks", + Handler: _CloudService_GetNamespaceExportSinks_Handler, + }, + { + MethodName: "UpdateNamespaceExportSink", + Handler: _CloudService_UpdateNamespaceExportSink_Handler, + }, + { + MethodName: "DeleteNamespaceExportSink", + Handler: _CloudService_DeleteNamespaceExportSink_Handler, + }, + { + MethodName: "ValidateNamespaceExportSink", + Handler: _CloudService_ValidateNamespaceExportSink_Handler, + }, }, Streams: []grpc.StreamDesc{}, - Metadata: "temporal/api/cloud/cloudservice/v1/service.proto", + Metadata: "api/cloud/cloudservice/v1/service.proto", } diff --git a/protogen/api/cloud/identity/v1/message.pb.go b/protogen/api/cloud/identity/v1/message.pb.go index bfef0565..7afaf84b 100644 --- a/protogen/api/cloud/identity/v1/message.pb.go +++ b/protogen/api/cloud/identity/v1/message.pb.go @@ -8,10 +8,12 @@ import ( proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" types "github.com/gogo/protobuf/types" + v1 "github.com/temporalio/tcld/protogen/api/cloud/resource/v1" io "io" math "math" math_bits "math/bits" reflect "reflect" + strconv "strconv" strings "strings" ) @@ -26,12 +28,102 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type OwnerType int32 + +const ( + OWNER_TYPE_UNSPECIFIED OwnerType = 0 + OWNER_TYPE_USER OwnerType = 1 + OWNER_TYPE_SERVICE_ACCOUNT OwnerType = 2 +) + +var OwnerType_name = map[int32]string{ + 0: "Unspecified", + 1: "User", + 2: "ServiceAccount", +} + +var OwnerType_value = map[string]int32{ + "Unspecified": 0, + "User": 1, + "ServiceAccount": 2, +} + +func (OwnerType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0ccf9360c6d9abd3, []int{0} +} + +type AccountAccess_Role int32 + +const ( + ROLE_UNSPECIFIED AccountAccess_Role = 0 + ROLE_OWNER AccountAccess_Role = 1 + ROLE_ADMIN AccountAccess_Role = 2 + ROLE_DEVELOPER AccountAccess_Role = 3 + ROLE_FINANCE_ADMIN AccountAccess_Role = 4 + ROLE_READ AccountAccess_Role = 5 +) + +var AccountAccess_Role_name = map[int32]string{ + 0: "RoleUnspecified", + 1: "RoleOwner", + 2: "RoleAdmin", + 3: "RoleDeveloper", + 4: "RoleFinanceAdmin", + 5: "RoleRead", +} + +var AccountAccess_Role_value = map[string]int32{ + "RoleUnspecified": 0, + "RoleOwner": 1, + "RoleAdmin": 2, + "RoleDeveloper": 3, + "RoleFinanceAdmin": 4, + "RoleRead": 5, +} + +func (AccountAccess_Role) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0ccf9360c6d9abd3, []int{0, 0} +} + +type NamespaceAccess_Permission int32 + +const ( + PERMISSION_UNSPECIFIED NamespaceAccess_Permission = 0 + PERMISSION_ADMIN NamespaceAccess_Permission = 1 + PERMISSION_WRITE NamespaceAccess_Permission = 2 + PERMISSION_READ NamespaceAccess_Permission = 3 +) + +var NamespaceAccess_Permission_name = map[int32]string{ + 0: "PermissionUnspecified", + 1: "PermissionAdmin", + 2: "PermissionWrite", + 3: "PermissionRead", +} + +var NamespaceAccess_Permission_value = map[string]int32{ + "PermissionUnspecified": 0, + "PermissionAdmin": 1, + "PermissionWrite": 2, + "PermissionRead": 3, +} + +func (NamespaceAccess_Permission) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_0ccf9360c6d9abd3, []int{1, 0} +} + type AccountAccess struct { - // The role on the account, should be one of [admin, developer, read] + // The role on the account, should be one of [owner, admin, developer, financeadmin, read] + // owner - gives full access to the account, including users, namespaces, and billing // admin - gives full access the account, including users and namespaces // developer - gives access to create namespaces on the account + // financeadmin - gives read only access and write access for billing // read - gives read only access to the account - Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` + // Deprecated: Use role field instead. + RoleDeprecated string `protobuf:"bytes,1,opt,name=role_deprecated,json=roleDeprecated,proto3" json:"role_deprecated,omitempty"` // Deprecated: Do not use. + // The role on the account. + // temporal:enums:replaces=role_deprecated + Role AccountAccess_Role `protobuf:"varint,2,opt,name=role,proto3,enum=temporal.api.cloud.identity.v1.AccountAccess_Role" json:"role,omitempty"` } func (m *AccountAccess) Reset() { *m = AccountAccess{} } @@ -66,19 +158,31 @@ func (m *AccountAccess) XXX_DiscardUnknown() { var xxx_messageInfo_AccountAccess proto.InternalMessageInfo -func (m *AccountAccess) GetRole() string { +// Deprecated: Do not use. +func (m *AccountAccess) GetRoleDeprecated() string { if m != nil { - return m.Role + return m.RoleDeprecated } return "" } +func (m *AccountAccess) GetRole() AccountAccess_Role { + if m != nil { + return m.Role + } + return ROLE_UNSPECIFIED +} + type NamespaceAccess struct { // The permission to the namespace, should be one of [admin, write, read] // admin - gives full access to the namespace, including assigning namespace access to other users // write - gives write access to the namespace configuration and workflows within the namespace // read - gives read only access to the namespace configuration and workflows within the namespace - Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` + // Deprecated: Use permission field instead. + PermissionDeprecated string `protobuf:"bytes,1,opt,name=permission_deprecated,json=permissionDeprecated,proto3" json:"permission_deprecated,omitempty"` // Deprecated: Do not use. + // The permission to the namespace. + // temporal:enums:replaces=permission_deprecated + Permission NamespaceAccess_Permission `protobuf:"varint,2,opt,name=permission,proto3,enum=temporal.api.cloud.identity.v1.NamespaceAccess_Permission" json:"permission,omitempty"` } func (m *NamespaceAccess) Reset() { *m = NamespaceAccess{} } @@ -113,13 +217,21 @@ func (m *NamespaceAccess) XXX_DiscardUnknown() { var xxx_messageInfo_NamespaceAccess proto.InternalMessageInfo -func (m *NamespaceAccess) GetPermission() string { +// Deprecated: Do not use. +func (m *NamespaceAccess) GetPermissionDeprecated() string { if m != nil { - return m.Permission + return m.PermissionDeprecated } return "" } +func (m *NamespaceAccess) GetPermission() NamespaceAccess_Permission { + if m != nil { + return m.Permission + } + return PERMISSION_UNSPECIFIED +} + type Access struct { // The account access AccountAccess *AccountAccess `protobuf:"bytes,1,opt,name=account_access,json=accountAccess,proto3" json:"account_access,omitempty"` @@ -289,9 +401,12 @@ type User struct { // The user specification Spec *UserSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` // The current state of the user - // Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. + // Deprecated: Use state field instead. + StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` // Deprecated: Do not use. + // The current state of the user. // For any failed state, reach out to Temporal Cloud support for remediation. - State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` + // temporal:enums:replaces=state_deprecated + State v1.ResourceState `protobuf:"varint,9,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` // The id of the async operation that is creating/updating/deleting the user, if any AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` // The details of the open invitation sent to the user, if any @@ -356,13 +471,21 @@ func (m *User) GetSpec() *UserSpec { return nil } -func (m *User) GetState() string { +// Deprecated: Do not use. +func (m *User) GetStateDeprecated() string { if m != nil { - return m.State + return m.StateDeprecated } return "" } +func (m *User) GetState() v1.ResourceState { + if m != nil { + return m.State + } + return v1.RESOURCE_STATE_UNSPECIFIED +} + func (m *User) GetAsyncOperationId() string { if m != nil { return m.AsyncOperationId @@ -391,18 +514,65 @@ func (m *User) GetLastModifiedTime() *types.Timestamp { return nil } +type GoogleGroupSpec struct { + // The email address of the Google group. + // The email address is immutable. Once set during creation, it cannot be changed. + EmailAddress string `protobuf:"bytes,1,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"` +} + +func (m *GoogleGroupSpec) Reset() { *m = GoogleGroupSpec{} } +func (*GoogleGroupSpec) ProtoMessage() {} +func (*GoogleGroupSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_0ccf9360c6d9abd3, []int{6} +} +func (m *GoogleGroupSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GoogleGroupSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GoogleGroupSpec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GoogleGroupSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_GoogleGroupSpec.Merge(m, src) +} +func (m *GoogleGroupSpec) XXX_Size() int { + return m.Size() +} +func (m *GoogleGroupSpec) XXX_DiscardUnknown() { + xxx_messageInfo_GoogleGroupSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_GoogleGroupSpec proto.InternalMessageInfo + +func (m *GoogleGroupSpec) GetEmailAddress() string { + if m != nil { + return m.EmailAddress + } + return "" +} + type UserGroupSpec struct { - // The name of the group as defined in the customer's IdP (e.g. Google group name in Google Workspace) - // The name is immutable. Once set, it cannot be changed - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The access assigned to the group + // The display name of the group. + DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + // The access assigned to the group. Access *Access `protobuf:"bytes,2,opt,name=access,proto3" json:"access,omitempty"` + // The specification of the google group that this group is associated with. + // For now only google groups are supported, and this field is required. + GoogleGroup *GoogleGroupSpec `protobuf:"bytes,3,opt,name=google_group,json=googleGroup,proto3" json:"google_group,omitempty"` } func (m *UserGroupSpec) Reset() { *m = UserGroupSpec{} } func (*UserGroupSpec) ProtoMessage() {} func (*UserGroupSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_0ccf9360c6d9abd3, []int{6} + return fileDescriptor_0ccf9360c6d9abd3, []int{7} } func (m *UserGroupSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -431,9 +601,9 @@ func (m *UserGroupSpec) XXX_DiscardUnknown() { var xxx_messageInfo_UserGroupSpec proto.InternalMessageInfo -func (m *UserGroupSpec) GetName() string { +func (m *UserGroupSpec) GetDisplayName() string { if m != nil { - return m.Name + return m.DisplayName } return "" } @@ -445,6 +615,13 @@ func (m *UserGroupSpec) GetAccess() *Access { return nil } +func (m *UserGroupSpec) GetGoogleGroup() *GoogleGroupSpec { + if m != nil { + return m.GoogleGroup + } + return nil +} + type UserGroup struct { // The id of the group Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` @@ -453,8 +630,13 @@ type UserGroup struct { ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` // The group specification Spec *UserGroupSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - // The current state of the group - State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` + // The current state of the group. + // Deprecated: Use state field instead. + StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` // Deprecated: Do not use. + // The current state of the group. + // For any failed state, reach out to Temporal Cloud support for remediation. + // temporal:enums:replaces=state_deprecated + State v1.ResourceState `protobuf:"varint,8,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` // The id of the async operation that is creating/updating/deleting the group, if any AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` // The date and time when the group was created @@ -467,7 +649,7 @@ type UserGroup struct { func (m *UserGroup) Reset() { *m = UserGroup{} } func (*UserGroup) ProtoMessage() {} func (*UserGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_0ccf9360c6d9abd3, []int{7} + return fileDescriptor_0ccf9360c6d9abd3, []int{8} } func (m *UserGroup) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -517,13 +699,21 @@ func (m *UserGroup) GetSpec() *UserGroupSpec { return nil } -func (m *UserGroup) GetState() string { +// Deprecated: Do not use. +func (m *UserGroup) GetStateDeprecated() string { if m != nil { - return m.State + return m.StateDeprecated } return "" } +func (m *UserGroup) GetState() v1.ResourceState { + if m != nil { + return m.State + } + return v1.RESOURCE_STATE_UNSPECIFIED +} + func (m *UserGroup) GetAsyncOperationId() string { if m != nil { return m.AsyncOperationId @@ -556,7 +746,12 @@ type ServiceAccount struct { // The current state of the service account. // Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. // For any failed state, reach out to Temporal Cloud support for remediation. - State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` + // Deprecated: Use state field instead. + StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` // Deprecated: Do not use. + // The current state of the service account. + // For any failed state, reach out to Temporal Cloud support for remediation. + // temporal:enums:replaces=state_deprecated + State v1.ResourceState `protobuf:"varint,8,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` // The id of the async operation that is creating/updating/deleting the service account, if any. AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` // The date and time when the service account was created. @@ -569,7 +764,7 @@ type ServiceAccount struct { func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } func (*ServiceAccount) ProtoMessage() {} func (*ServiceAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_0ccf9360c6d9abd3, []int{8} + return fileDescriptor_0ccf9360c6d9abd3, []int{9} } func (m *ServiceAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -619,13 +814,21 @@ func (m *ServiceAccount) GetSpec() *ServiceAccountSpec { return nil } -func (m *ServiceAccount) GetState() string { +// Deprecated: Do not use. +func (m *ServiceAccount) GetStateDeprecated() string { if m != nil { - return m.State + return m.StateDeprecated } return "" } +func (m *ServiceAccount) GetState() v1.ResourceState { + if m != nil { + return m.State + } + return v1.RESOURCE_STATE_UNSPECIFIED +} + func (m *ServiceAccount) GetAsyncOperationId() string { if m != nil { return m.AsyncOperationId @@ -662,7 +865,7 @@ type ServiceAccountSpec struct { func (m *ServiceAccountSpec) Reset() { *m = ServiceAccountSpec{} } func (*ServiceAccountSpec) ProtoMessage() {} func (*ServiceAccountSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_0ccf9360c6d9abd3, []int{9} + return fileDescriptor_0ccf9360c6d9abd3, []int{10} } func (m *ServiceAccountSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -713,22 +916,26 @@ func (m *ServiceAccountSpec) GetDescription() string { } type ApiKey struct { - // The id of the API Key + // The id of the API Key. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The current version of the API key specification - // The next update operation will have to include this version + // The current version of the API key specification. + // The next update operation will have to include this version. ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` - // The API key specification + // The API key specification. Spec *ApiKeySpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` - // The current state of the API key + // The current state of the API key. // Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. // For any failed state, reach out to Temporal Cloud support for remediation. - State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` - // The id of the async operation that is creating/updating/deleting the API key, if any + // Deprecated: Use state field instead. + StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` // Deprecated: Do not use. + // The current state of the API key. + // temporal:enums:replaces=state_deprecated + State v1.ResourceState `protobuf:"varint,8,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` + // The id of the async operation that is creating/updating/deleting the API key, if any. AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` - // The date and time when the API key was created + // The date and time when the API key was created. CreatedTime *types.Timestamp `protobuf:"bytes,6,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"` - // The date and time when the API key was last modified + // The date and time when the API key was last modified. // Will not be set if the API key has never been modified. LastModifiedTime *types.Timestamp `protobuf:"bytes,7,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"` } @@ -736,7 +943,7 @@ type ApiKey struct { func (m *ApiKey) Reset() { *m = ApiKey{} } func (*ApiKey) ProtoMessage() {} func (*ApiKey) Descriptor() ([]byte, []int) { - return fileDescriptor_0ccf9360c6d9abd3, []int{10} + return fileDescriptor_0ccf9360c6d9abd3, []int{11} } func (m *ApiKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -786,13 +993,21 @@ func (m *ApiKey) GetSpec() *ApiKeySpec { return nil } -func (m *ApiKey) GetState() string { +// Deprecated: Do not use. +func (m *ApiKey) GetStateDeprecated() string { if m != nil { - return m.State + return m.StateDeprecated } return "" } +func (m *ApiKey) GetState() v1.ResourceState { + if m != nil { + return m.State + } + return v1.RESOURCE_STATE_UNSPECIFIED +} + func (m *ApiKey) GetAsyncOperationId() string { if m != nil { return m.AsyncOperationId @@ -815,25 +1030,33 @@ func (m *ApiKey) GetLastModifiedTime() *types.Timestamp { } type ApiKeySpec struct { - // The id of the owner to create the API key for + // The id of the owner to create the API key for. + // The owner id is immutable. Once set during creation, it cannot be changed. + // The owner id is the id of the user when the owner type is user. + // The owner id is the id of the service account when the owner type is service account. OwnerId string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - // The type of the owner to create the API key for - // Possible values: user, service-account - OwnerType string `protobuf:"bytes,2,opt,name=owner_type,json=ownerType,proto3" json:"owner_type,omitempty"` - // The display name of the API key + // The type of the owner to create the API key for. + // The owner type is immutable. Once set during creation, it cannot be changed. + // Possible values: user, service-account. + // Deprecated: Use owner_type field instead. + OwnerTypeDeprecated string `protobuf:"bytes,2,opt,name=owner_type_deprecated,json=ownerTypeDeprecated,proto3" json:"owner_type_deprecated,omitempty"` // Deprecated: Do not use. + // The type of the owner to create the API key for. + // temporal:enums:replaces=owner_type_deprecated + OwnerType OwnerType `protobuf:"varint,7,opt,name=owner_type,json=ownerType,proto3,enum=temporal.api.cloud.identity.v1.OwnerType" json:"owner_type,omitempty"` + // The display name of the API key. DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - // The description of the API key + // The description of the API key. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - // The expiry time of the API key + // The expiry time of the API key. ExpiryTime *types.Timestamp `protobuf:"bytes,5,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"` - // True if the API key is disabled + // True if the API key is disabled. Disabled bool `protobuf:"varint,6,opt,name=disabled,proto3" json:"disabled,omitempty"` } func (m *ApiKeySpec) Reset() { *m = ApiKeySpec{} } func (*ApiKeySpec) ProtoMessage() {} func (*ApiKeySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_0ccf9360c6d9abd3, []int{11} + return fileDescriptor_0ccf9360c6d9abd3, []int{12} } func (m *ApiKeySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -869,13 +1092,21 @@ func (m *ApiKeySpec) GetOwnerId() string { return "" } -func (m *ApiKeySpec) GetOwnerType() string { +// Deprecated: Do not use. +func (m *ApiKeySpec) GetOwnerTypeDeprecated() string { if m != nil { - return m.OwnerType + return m.OwnerTypeDeprecated } return "" } +func (m *ApiKeySpec) GetOwnerType() OwnerType { + if m != nil { + return m.OwnerType + } + return OWNER_TYPE_UNSPECIFIED +} + func (m *ApiKeySpec) GetDisplayName() string { if m != nil { return m.DisplayName @@ -905,6 +1136,9 @@ func (m *ApiKeySpec) GetDisabled() bool { } func init() { + proto.RegisterEnum("temporal.api.cloud.identity.v1.OwnerType", OwnerType_name, OwnerType_value) + proto.RegisterEnum("temporal.api.cloud.identity.v1.AccountAccess_Role", AccountAccess_Role_name, AccountAccess_Role_value) + proto.RegisterEnum("temporal.api.cloud.identity.v1.NamespaceAccess_Permission", NamespaceAccess_Permission_name, NamespaceAccess_Permission_value) proto.RegisterType((*AccountAccess)(nil), "temporal.api.cloud.identity.v1.AccountAccess") proto.RegisterType((*NamespaceAccess)(nil), "temporal.api.cloud.identity.v1.NamespaceAccess") proto.RegisterType((*Access)(nil), "temporal.api.cloud.identity.v1.Access") @@ -912,6 +1146,7 @@ func init() { proto.RegisterType((*UserSpec)(nil), "temporal.api.cloud.identity.v1.UserSpec") proto.RegisterType((*Invitation)(nil), "temporal.api.cloud.identity.v1.Invitation") proto.RegisterType((*User)(nil), "temporal.api.cloud.identity.v1.User") + proto.RegisterType((*GoogleGroupSpec)(nil), "temporal.api.cloud.identity.v1.GoogleGroupSpec") proto.RegisterType((*UserGroupSpec)(nil), "temporal.api.cloud.identity.v1.UserGroupSpec") proto.RegisterType((*UserGroup)(nil), "temporal.api.cloud.identity.v1.UserGroup") proto.RegisterType((*ServiceAccount)(nil), "temporal.api.cloud.identity.v1.ServiceAccount") @@ -925,61 +1160,107 @@ func init() { } var fileDescriptor_0ccf9360c6d9abd3 = []byte{ - // 819 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0x4d, 0x6f, 0xeb, 0x44, - 0x14, 0x8d, 0x9d, 0x8f, 0xa6, 0x37, 0xaf, 0x7d, 0x61, 0x84, 0x50, 0x88, 0x84, 0x29, 0x41, 0x42, - 0x05, 0xbd, 0xda, 0x6a, 0xd9, 0x20, 0x1e, 0xaf, 0x52, 0x91, 0x0a, 0x14, 0x04, 0x48, 0x6e, 0x61, - 0xc1, 0xc6, 0x4c, 0xed, 0xdb, 0x68, 0x84, 0xed, 0x19, 0xcd, 0x38, 0x01, 0xef, 0x58, 0x77, 0xc5, - 0x92, 0x9f, 0xc0, 0xff, 0x60, 0xc3, 0x32, 0x2b, 0xd4, 0x65, 0x9b, 0xb2, 0x60, 0xd9, 0x9f, 0x80, - 0x3c, 0xb6, 0xd3, 0x26, 0xad, 0x70, 0x21, 0x7d, 0x9b, 0xee, 0x66, 0xee, 0x9c, 0x3b, 0xf7, 0xde, - 0x73, 0x4e, 0x26, 0x86, 0x67, 0x09, 0x46, 0x82, 0x4b, 0x1a, 0x3a, 0x54, 0x30, 0xc7, 0x0f, 0xf9, - 0x28, 0x70, 0x58, 0x80, 0x71, 0xc2, 0x92, 0xd4, 0x19, 0x6f, 0x3b, 0x11, 0x2a, 0x45, 0x87, 0x68, - 0x0b, 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, 0x57, 0xd5, - 0xc7, 0xb5, 0x06, 0xee, 0x8d, 0xec, 0x5b, 0x7a, 0xac, 0xfc, 0x37, 0x3d, 0x3e, 0x03, 0x12, 0x52, - 0x95, 0x78, 0x11, 0x0f, 0xd8, 0x09, 0x2b, 0x2f, 0x69, 0x57, 0x5e, 0xd2, 0xcd, 0xb2, 0xbe, 0x2c, - 0x92, 0xb4, 0x34, 0x3e, 0xac, 0x65, 0x54, 0x7d, 0x2a, 0xf9, 0x48, 0x68, 0x3b, 0x12, 0x68, 0x64, - 0x3f, 0x93, 0xf2, 0x9d, 0xc8, 0xd6, 0x4b, 0x9b, 0xf1, 0x4f, 0x13, 0x56, 0x67, 0x55, 0x96, 0x31, - 0xc1, 0xde, 0x9c, 0x09, 0xb6, 0xee, 0x63, 0x82, 0xd9, 0x64, 0x0f, 0xe8, 0x84, 0x45, 0xf5, 0x5a, - 0x0f, 0xa1, 0xde, 0xca, 0xff, 0x50, 0xef, 0xdc, 0x84, 0xf5, 0x43, 0x94, 0x63, 0xa6, 0x1f, 0x99, - 0xec, 0x15, 0x5d, 0x86, 0xdd, 0x4f, 0xe6, 0xd8, 0xdd, 0xa9, 0x62, 0x77, 0xbe, 0xf0, 0x63, 0xa5, - 0xf8, 0xd4, 0x00, 0x72, 0x7b, 0xd2, 0x97, 0xf1, 0x33, 0x21, 0x1b, 0xd0, 0x09, 0x50, 0xf9, 0x92, - 0x09, 0xfd, 0xc2, 0xd4, 0xf5, 0xd5, 0x37, 0x43, 0x83, 0x49, 0xf6, 0xef, 0x2b, 0xd8, 0x17, 0x98, - 0x2e, 0xa3, 0xf3, 0xee, 0x9c, 0xce, 0x95, 0x4f, 0x58, 0x5e, 0xf0, 0xb1, 0xea, 0xfb, 0x97, 0x01, - 0x70, 0x3d, 0x21, 0x79, 0x1d, 0xda, 0xfc, 0xc7, 0x18, 0xa5, 0x37, 0x23, 0x77, 0x45, 0xef, 0x0f, - 0x02, 0xf2, 0x06, 0x40, 0x7e, 0x94, 0xa4, 0x02, 0x0b, 0x6e, 0x57, 0x75, 0xe4, 0x28, 0x15, 0x48, - 0xde, 0x82, 0x27, 0x01, 0x53, 0x22, 0xa4, 0xa9, 0xa7, 0x9d, 0x51, 0xca, 0x97, 0xc7, 0xb2, 0x8f, - 0x81, 0x45, 0x81, 0x1b, 0xb7, 0x04, 0x26, 0xcf, 0x21, 0xff, 0xe3, 0x4c, 0xf3, 0x81, 0x9a, 0x95, - 0x03, 0x41, 0x0e, 0xd7, 0xa4, 0xf4, 0xa1, 0x1d, 0x30, 0x45, 0x8f, 0x43, 0x0c, 0x34, 0x9f, 0x6d, - 0x77, 0xb6, 0xff, 0xd8, 0x9f, 0x5c, 0x58, 0xb5, 0xb3, 0x0b, 0xab, 0x76, 0x75, 0x61, 0x19, 0x3f, - 0x4f, 0x2d, 0xe3, 0xb7, 0xa9, 0x65, 0xfc, 0x31, 0xb5, 0x8c, 0xc9, 0xd4, 0x32, 0xce, 0xa7, 0x96, - 0xf1, 0xf7, 0xd4, 0xaa, 0x5d, 0x4d, 0x2d, 0xe3, 0x97, 0x4b, 0xab, 0x36, 0xb9, 0xb4, 0x6a, 0x67, - 0x97, 0x56, 0xed, 0xbb, 0xad, 0x21, 0xbf, 0x76, 0x07, 0xe3, 0x77, 0x7f, 0xba, 0x3e, 0x2f, 0xd7, - 0xc7, 0x2d, 0xdd, 0xe0, 0xfb, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x53, 0xd7, 0xa6, 0x9f, 0xec, - 0x0a, 0x00, 0x00, + // 1232 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcf, 0x8f, 0xdb, 0x44, + 0x14, 0x8e, 0x9d, 0xec, 0x36, 0x79, 0xd9, 0x4d, 0xcc, 0x74, 0x5b, 0x85, 0x1c, 0xcc, 0x36, 0x20, + 0xb4, 0x2d, 0x5d, 0x47, 0x1b, 0xa4,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0x5d, 0x7b, + 0xe8, 0x70, 0xb9, 0xbf, 0x0b, 0xdb, 0x5c, 0xe1, 0xba, 0x61, 0x59, 0x6e, 0x34, 0x34, 0x32, 0x78, + 0x8b, 0x83, 0xb5, 0x00, 0x2b, 0xfd, 0x2a, 0xc0, 0x36, 0xab, 0xe0, 0xd4, 0xed, 0x02, 0x6c, 0x59, + 0xd4, 0x73, 0x7a, 0xc6, 0x58, 0x67, 0x5d, 0x1c, 0x7a, 0x65, 0x43, 0x8c, 0xb5, 0xda, 0xba, 0x2d, + 0x83, 0x30, 0x6c, 0x05, 0xb9, 0xe9, 0x5d, 0x16, 0x36, 0x54, 0xda, 0xca, 0x36, 0x5f, 0x48, 0x10, + 0x67, 0xbb, 0x53, 0xa0, 0xf4, 0x53, 0x12, 0x32, 0x71, 0x22, 0xeb, 0xc8, 0xbf, 0x36, 0x27, 0xff, + 0xfd, 0x97, 0x91, 0xff, 0xf4, 0x95, 0xd6, 0xeb, 0x81, 0xf4, 0xff, 0xd6, 0x03, 0x8b, 0xba, 0xdd, + 0xfc, 0x2f, 0x74, 0x7b, 0xe6, 0x35, 0x74, 0xfb, 0x73, 0x12, 0x72, 0x6d, 0xe2, 0x8e, 0x28, 0x1f, + 0xde, 0xec, 0xeb, 0xb4, 0x4e, 0xed, 0x8e, 0xe6, 0x6a, 0xb7, 0xf2, 0x47, 0x68, 0x3e, 0xf0, 0x9b, + 0x02, 0xbe, 0x4e, 0x01, 0x1f, 0x09, 0x80, 0x96, 0x79, 0x44, 0x08, 0x52, 0x33, 0xd3, 0x83, 0x3f, + 0xaf, 0x3d, 0x36, 0x76, 0x21, 0x6b, 0x11, 0xcf, 0x74, 0xa9, 0xc3, 0x27, 0x77, 0x32, 0x1c, 0x4c, + 0x53, 0xa8, 0xf4, 0x63, 0x12, 0x36, 0x6b, 0x0e, 0xfd, 0x8c, 0x8c, 0xd7, 0x51, 0xd1, 0xf5, 0x39, + 0x15, 0xad, 0xfc, 0x34, 0x04, 0x01, 0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, 0x63, 0x22, 0x27, 0x5e, 0x4c, 0x64, + 0xe1, 0xdb, 0xe7, 0x72, 0xe2, 0xf1, 0x73, 0x39, 0xf1, 0xe4, 0xb9, 0x9c, 0x80, 0x0b, 0xd4, 0x5e, + 0x41, 0xf5, 0x8d, 0xad, 0xe3, 0xe0, 0xaa, 0xdc, 0x62, 0xa9, 0xb7, 0x84, 0x7b, 0xfb, 0xdd, 0x19, + 0x17, 0x6a, 0x9f, 0x7e, 0x5b, 0xbf, 0x1a, 0x3d, 0xff, 0x20, 0xee, 0x76, 0x42, 0x63, 0x6a, 0xb3, + 0x4e, 0x54, 0xea, 0x3c, 0x82, 0x16, 0x45, 0x38, 0x39, 0xf8, 0x53, 0x7c, 0x6f, 0x6a, 0x52, 0xad, + 0xd6, 0x1c, 0x5a, 0xad, 0x72, 0xa3, 0x6a, 0x35, 0xb2, 0xaa, 0x56, 0x4f, 0x0e, 0xee, 0x6f, 0x72, + 0xf2, 0x3f, 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x33, 0x67, 0xb2, 0x29, 0x10, 0x00, 0x00, +} + +func (x OwnerType) String() string { + s, ok := OwnerType_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (x AccountAccess_Role) String() string { + s, ok := AccountAccess_Role_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (x NamespaceAccess_Permission) String() string { + s, ok := NamespaceAccess_Permission_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) } - func (this *AccountAccess) Equal(that interface{}) bool { if that == nil { return this == nil @@ -999,6 +1280,9 @@ func (this *AccountAccess) Equal(that interface{}) bool { } else if this == nil { return false } + if this.RoleDeprecated != that1.RoleDeprecated { + return false + } if this.Role != that1.Role { return false } @@ -1023,6 +1307,9 @@ func (this *NamespaceAccess) Equal(that interface{}) bool { } else if this == nil { return false } + if this.PermissionDeprecated != that1.PermissionDeprecated { + return false + } if this.Permission != that1.Permission { return false } @@ -1142,6 +1429,9 @@ func (this *User) Equal(that interface{}) bool { if !this.Spec.Equal(that1.Spec) { return false } + if this.StateDeprecated != that1.StateDeprecated { + return false + } if this.State != that1.State { return false } @@ -1159,6 +1449,30 @@ func (this *User) Equal(that interface{}) bool { } return true } +func (this *GoogleGroupSpec) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*GoogleGroupSpec) + if !ok { + that2, ok := that.(GoogleGroupSpec) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.EmailAddress != that1.EmailAddress { + return false + } + return true +} func (this *UserGroupSpec) Equal(that interface{}) bool { if that == nil { return this == nil @@ -1178,12 +1492,15 @@ func (this *UserGroupSpec) Equal(that interface{}) bool { } else if this == nil { return false } - if this.Name != that1.Name { + if this.DisplayName != that1.DisplayName { return false } if !this.Access.Equal(that1.Access) { return false } + if !this.GoogleGroup.Equal(that1.GoogleGroup) { + return false + } return true } func (this *UserGroup) Equal(that interface{}) bool { @@ -1214,6 +1531,9 @@ func (this *UserGroup) Equal(that interface{}) bool { if !this.Spec.Equal(that1.Spec) { return false } + if this.StateDeprecated != that1.StateDeprecated { + return false + } if this.State != that1.State { return false } @@ -1256,6 +1576,9 @@ func (this *ServiceAccount) Equal(that interface{}) bool { if !this.Spec.Equal(that1.Spec) { return false } + if this.StateDeprecated != that1.StateDeprecated { + return false + } if this.State != that1.State { return false } @@ -1328,6 +1651,9 @@ func (this *ApiKey) Equal(that interface{}) bool { if !this.Spec.Equal(that1.Spec) { return false } + if this.StateDeprecated != that1.StateDeprecated { + return false + } if this.State != that1.State { return false } @@ -1364,6 +1690,9 @@ func (this *ApiKeySpec) Equal(that interface{}) bool { if this.OwnerId != that1.OwnerId { return false } + if this.OwnerTypeDeprecated != that1.OwnerTypeDeprecated { + return false + } if this.OwnerType != that1.OwnerType { return false } @@ -1385,8 +1714,9 @@ func (this *AccountAccess) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 5) + s := make([]string, 0, 6) s = append(s, "&identity.AccountAccess{") + s = append(s, "RoleDeprecated: "+fmt.Sprintf("%#v", this.RoleDeprecated)+",\n") s = append(s, "Role: "+fmt.Sprintf("%#v", this.Role)+",\n") s = append(s, "}") return strings.Join(s, "") @@ -1395,8 +1725,9 @@ func (this *NamespaceAccess) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 5) + s := make([]string, 0, 6) s = append(s, "&identity.NamespaceAccess{") + s = append(s, "PermissionDeprecated: "+fmt.Sprintf("%#v", this.PermissionDeprecated)+",\n") s = append(s, "Permission: "+fmt.Sprintf("%#v", this.Permission)+",\n") s = append(s, "}") return strings.Join(s, "") @@ -1458,13 +1789,14 @@ func (this *User) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 12) + s := make([]string, 0, 13) s = append(s, "&identity.User{") s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") if this.Spec != nil { s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } + s = append(s, "StateDeprecated: "+fmt.Sprintf("%#v", this.StateDeprecated)+",\n") s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") if this.Invitation != nil { @@ -1479,16 +1811,29 @@ func (this *User) GoString() string { s = append(s, "}") return strings.Join(s, "") } +func (this *GoogleGroupSpec) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&identity.GoogleGroupSpec{") + s = append(s, "EmailAddress: "+fmt.Sprintf("%#v", this.EmailAddress)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} func (this *UserGroupSpec) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 6) + s := make([]string, 0, 7) s = append(s, "&identity.UserGroupSpec{") - s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + s = append(s, "DisplayName: "+fmt.Sprintf("%#v", this.DisplayName)+",\n") if this.Access != nil { s = append(s, "Access: "+fmt.Sprintf("%#v", this.Access)+",\n") } + if this.GoogleGroup != nil { + s = append(s, "GoogleGroup: "+fmt.Sprintf("%#v", this.GoogleGroup)+",\n") + } s = append(s, "}") return strings.Join(s, "") } @@ -1496,13 +1841,14 @@ func (this *UserGroup) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 11) + s := make([]string, 0, 12) s = append(s, "&identity.UserGroup{") s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") if this.Spec != nil { s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } + s = append(s, "StateDeprecated: "+fmt.Sprintf("%#v", this.StateDeprecated)+",\n") s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") if this.CreatedTime != nil { @@ -1518,13 +1864,14 @@ func (this *ServiceAccount) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 11) + s := make([]string, 0, 12) s = append(s, "&identity.ServiceAccount{") s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") if this.Spec != nil { s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } + s = append(s, "StateDeprecated: "+fmt.Sprintf("%#v", this.StateDeprecated)+",\n") s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") if this.CreatedTime != nil { @@ -1554,13 +1901,14 @@ func (this *ApiKey) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 11) + s := make([]string, 0, 12) s = append(s, "&identity.ApiKey{") s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") if this.Spec != nil { s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } + s = append(s, "StateDeprecated: "+fmt.Sprintf("%#v", this.StateDeprecated)+",\n") s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") if this.CreatedTime != nil { @@ -1576,9 +1924,10 @@ func (this *ApiKeySpec) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 10) + s := make([]string, 0, 11) s = append(s, "&identity.ApiKeySpec{") s = append(s, "OwnerId: "+fmt.Sprintf("%#v", this.OwnerId)+",\n") + s = append(s, "OwnerTypeDeprecated: "+fmt.Sprintf("%#v", this.OwnerTypeDeprecated)+",\n") s = append(s, "OwnerType: "+fmt.Sprintf("%#v", this.OwnerType)+",\n") s = append(s, "DisplayName: "+fmt.Sprintf("%#v", this.DisplayName)+",\n") s = append(s, "Description: "+fmt.Sprintf("%#v", this.Description)+",\n") @@ -1617,10 +1966,15 @@ func (m *AccountAccess) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Role) > 0 { - i -= len(m.Role) - copy(dAtA[i:], m.Role) - i = encodeVarintMessage(dAtA, i, uint64(len(m.Role))) + if m.Role != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Role)) + i-- + dAtA[i] = 0x10 + } + if len(m.RoleDeprecated) > 0 { + i -= len(m.RoleDeprecated) + copy(dAtA[i:], m.RoleDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.RoleDeprecated))) i-- dAtA[i] = 0xa } @@ -1647,10 +2001,15 @@ func (m *NamespaceAccess) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Permission) > 0 { - i -= len(m.Permission) - copy(dAtA[i:], m.Permission) - i = encodeVarintMessage(dAtA, i, uint64(len(m.Permission))) + if m.Permission != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Permission)) + i-- + dAtA[i] = 0x10 + } + if len(m.PermissionDeprecated) > 0 { + i -= len(m.PermissionDeprecated) + copy(dAtA[i:], m.PermissionDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.PermissionDeprecated))) i-- dAtA[i] = 0xa } @@ -1827,6 +2186,11 @@ func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x48 + } if m.LastModifiedTime != nil { { size, err := m.LastModifiedTime.MarshalToSizedBuffer(dAtA[:i]) @@ -1870,10 +2234,10 @@ func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintMessage(dAtA, i, uint64(len(m.State))) + if len(m.StateDeprecated) > 0 { + i -= len(m.StateDeprecated) + copy(dAtA[i:], m.StateDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.StateDeprecated))) i-- dAtA[i] = 0x22 } @@ -1906,6 +2270,36 @@ func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *GoogleGroupSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GoogleGroupSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GoogleGroupSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.EmailAddress) > 0 { + i -= len(m.EmailAddress) + copy(dAtA[i:], m.EmailAddress) + i = encodeVarintMessage(dAtA, i, uint64(len(m.EmailAddress))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *UserGroupSpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1926,6 +2320,18 @@ func (m *UserGroupSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.GoogleGroup != nil { + { + size, err := m.GoogleGroup.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } if m.Access != nil { { size, err := m.Access.MarshalToSizedBuffer(dAtA[:i]) @@ -1938,10 +2344,10 @@ func (m *UserGroupSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintMessage(dAtA, i, uint64(len(m.Name))) + if len(m.DisplayName) > 0 { + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = encodeVarintMessage(dAtA, i, uint64(len(m.DisplayName))) i-- dAtA[i] = 0xa } @@ -1968,6 +2374,11 @@ func (m *UserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x40 + } if m.LastModifiedTime != nil { { size, err := m.LastModifiedTime.MarshalToSizedBuffer(dAtA[:i]) @@ -1999,10 +2410,10 @@ func (m *UserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintMessage(dAtA, i, uint64(len(m.State))) + if len(m.StateDeprecated) > 0 { + i -= len(m.StateDeprecated) + copy(dAtA[i:], m.StateDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.StateDeprecated))) i-- dAtA[i] = 0x22 } @@ -2055,6 +2466,11 @@ func (m *ServiceAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x40 + } if m.LastModifiedTime != nil { { size, err := m.LastModifiedTime.MarshalToSizedBuffer(dAtA[:i]) @@ -2086,10 +2502,10 @@ func (m *ServiceAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintMessage(dAtA, i, uint64(len(m.State))) + if len(m.StateDeprecated) > 0 { + i -= len(m.StateDeprecated) + copy(dAtA[i:], m.StateDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.StateDeprecated))) i-- dAtA[i] = 0x22 } @@ -2191,6 +2607,11 @@ func (m *ApiKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x40 + } if m.LastModifiedTime != nil { { size, err := m.LastModifiedTime.MarshalToSizedBuffer(dAtA[:i]) @@ -2222,10 +2643,10 @@ func (m *ApiKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintMessage(dAtA, i, uint64(len(m.State))) + if len(m.StateDeprecated) > 0 { + i -= len(m.StateDeprecated) + copy(dAtA[i:], m.StateDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.StateDeprecated))) i-- dAtA[i] = 0x22 } @@ -2278,6 +2699,11 @@ func (m *ApiKeySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.OwnerType != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.OwnerType)) + i-- + dAtA[i] = 0x38 + } if m.Disabled { i-- if m.Disabled { @@ -2314,10 +2740,10 @@ func (m *ApiKeySpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.OwnerType) > 0 { - i -= len(m.OwnerType) - copy(dAtA[i:], m.OwnerType) - i = encodeVarintMessage(dAtA, i, uint64(len(m.OwnerType))) + if len(m.OwnerTypeDeprecated) > 0 { + i -= len(m.OwnerTypeDeprecated) + copy(dAtA[i:], m.OwnerTypeDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.OwnerTypeDeprecated))) i-- dAtA[i] = 0x12 } @@ -2348,10 +2774,13 @@ func (m *AccountAccess) Size() (n int) { } var l int _ = l - l = len(m.Role) + l = len(m.RoleDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } + if m.Role != 0 { + n += 1 + sovMessage(uint64(m.Role)) + } return n } @@ -2361,10 +2790,13 @@ func (m *NamespaceAccess) Size() (n int) { } var l int _ = l - l = len(m.Permission) + l = len(m.PermissionDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } + if m.Permission != 0 { + n += 1 + sovMessage(uint64(m.Permission)) + } return n } @@ -2446,7 +2878,7 @@ func (m *User) Size() (n int) { l = m.Spec.Size() n += 1 + l + sovMessage(uint64(l)) } - l = len(m.State) + l = len(m.StateDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2466,6 +2898,22 @@ func (m *User) Size() (n int) { l = m.LastModifiedTime.Size() n += 1 + l + sovMessage(uint64(l)) } + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) + } + return n +} + +func (m *GoogleGroupSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.EmailAddress) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } return n } @@ -2475,7 +2923,7 @@ func (m *UserGroupSpec) Size() (n int) { } var l int _ = l - l = len(m.Name) + l = len(m.DisplayName) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2483,6 +2931,10 @@ func (m *UserGroupSpec) Size() (n int) { l = m.Access.Size() n += 1 + l + sovMessage(uint64(l)) } + if m.GoogleGroup != nil { + l = m.GoogleGroup.Size() + n += 1 + l + sovMessage(uint64(l)) + } return n } @@ -2504,7 +2956,7 @@ func (m *UserGroup) Size() (n int) { l = m.Spec.Size() n += 1 + l + sovMessage(uint64(l)) } - l = len(m.State) + l = len(m.StateDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2520,6 +2972,9 @@ func (m *UserGroup) Size() (n int) { l = m.LastModifiedTime.Size() n += 1 + l + sovMessage(uint64(l)) } + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) + } return n } @@ -2541,7 +2996,7 @@ func (m *ServiceAccount) Size() (n int) { l = m.Spec.Size() n += 1 + l + sovMessage(uint64(l)) } - l = len(m.State) + l = len(m.StateDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2557,6 +3012,9 @@ func (m *ServiceAccount) Size() (n int) { l = m.LastModifiedTime.Size() n += 1 + l + sovMessage(uint64(l)) } + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) + } return n } @@ -2599,7 +3057,7 @@ func (m *ApiKey) Size() (n int) { l = m.Spec.Size() n += 1 + l + sovMessage(uint64(l)) } - l = len(m.State) + l = len(m.StateDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2615,6 +3073,9 @@ func (m *ApiKey) Size() (n int) { l = m.LastModifiedTime.Size() n += 1 + l + sovMessage(uint64(l)) } + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) + } return n } @@ -2628,7 +3089,7 @@ func (m *ApiKeySpec) Size() (n int) { if l > 0 { n += 1 + l + sovMessage(uint64(l)) } - l = len(m.OwnerType) + l = len(m.OwnerTypeDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2647,6 +3108,9 @@ func (m *ApiKeySpec) Size() (n int) { if m.Disabled { n += 2 } + if m.OwnerType != 0 { + n += 1 + sovMessage(uint64(m.OwnerType)) + } return n } @@ -2661,6 +3125,7 @@ func (this *AccountAccess) String() string { return "nil" } s := strings.Join([]string{`&AccountAccess{`, + `RoleDeprecated:` + fmt.Sprintf("%v", this.RoleDeprecated) + `,`, `Role:` + fmt.Sprintf("%v", this.Role) + `,`, `}`, }, "") @@ -2671,6 +3136,7 @@ func (this *NamespaceAccess) String() string { return "nil" } s := strings.Join([]string{`&NamespaceAccess{`, + `PermissionDeprecated:` + fmt.Sprintf("%v", this.PermissionDeprecated) + `,`, `Permission:` + fmt.Sprintf("%v", this.Permission) + `,`, `}`, }, "") @@ -2727,11 +3193,22 @@ func (this *User) String() string { `Id:` + fmt.Sprintf("%v", this.Id) + `,`, `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, `Spec:` + strings.Replace(this.Spec.String(), "UserSpec", "UserSpec", 1) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, + `StateDeprecated:` + fmt.Sprintf("%v", this.StateDeprecated) + `,`, `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, `Invitation:` + strings.Replace(this.Invitation.String(), "Invitation", "Invitation", 1) + `,`, `CreatedTime:` + strings.Replace(fmt.Sprintf("%v", this.CreatedTime), "Timestamp", "types.Timestamp", 1) + `,`, `LastModifiedTime:` + strings.Replace(fmt.Sprintf("%v", this.LastModifiedTime), "Timestamp", "types.Timestamp", 1) + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, + `}`, + }, "") + return s +} +func (this *GoogleGroupSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GoogleGroupSpec{`, + `EmailAddress:` + fmt.Sprintf("%v", this.EmailAddress) + `,`, `}`, }, "") return s @@ -2741,8 +3218,9 @@ func (this *UserGroupSpec) String() string { return "nil" } s := strings.Join([]string{`&UserGroupSpec{`, - `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`, `Access:` + strings.Replace(this.Access.String(), "Access", "Access", 1) + `,`, + `GoogleGroup:` + strings.Replace(this.GoogleGroup.String(), "GoogleGroupSpec", "GoogleGroupSpec", 1) + `,`, `}`, }, "") return s @@ -2755,10 +3233,11 @@ func (this *UserGroup) String() string { `Id:` + fmt.Sprintf("%v", this.Id) + `,`, `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, `Spec:` + strings.Replace(this.Spec.String(), "UserGroupSpec", "UserGroupSpec", 1) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, + `StateDeprecated:` + fmt.Sprintf("%v", this.StateDeprecated) + `,`, `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, `CreatedTime:` + strings.Replace(fmt.Sprintf("%v", this.CreatedTime), "Timestamp", "types.Timestamp", 1) + `,`, `LastModifiedTime:` + strings.Replace(fmt.Sprintf("%v", this.LastModifiedTime), "Timestamp", "types.Timestamp", 1) + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, `}`, }, "") return s @@ -2771,10 +3250,11 @@ func (this *ServiceAccount) String() string { `Id:` + fmt.Sprintf("%v", this.Id) + `,`, `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, `Spec:` + strings.Replace(this.Spec.String(), "ServiceAccountSpec", "ServiceAccountSpec", 1) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, + `StateDeprecated:` + fmt.Sprintf("%v", this.StateDeprecated) + `,`, `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, `CreatedTime:` + strings.Replace(fmt.Sprintf("%v", this.CreatedTime), "Timestamp", "types.Timestamp", 1) + `,`, `LastModifiedTime:` + strings.Replace(fmt.Sprintf("%v", this.LastModifiedTime), "Timestamp", "types.Timestamp", 1) + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, `}`, }, "") return s @@ -2799,10 +3279,11 @@ func (this *ApiKey) String() string { `Id:` + fmt.Sprintf("%v", this.Id) + `,`, `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, `Spec:` + strings.Replace(this.Spec.String(), "ApiKeySpec", "ApiKeySpec", 1) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, + `StateDeprecated:` + fmt.Sprintf("%v", this.StateDeprecated) + `,`, `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, `CreatedTime:` + strings.Replace(fmt.Sprintf("%v", this.CreatedTime), "Timestamp", "types.Timestamp", 1) + `,`, `LastModifiedTime:` + strings.Replace(fmt.Sprintf("%v", this.LastModifiedTime), "Timestamp", "types.Timestamp", 1) + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, `}`, }, "") return s @@ -2813,11 +3294,12 @@ func (this *ApiKeySpec) String() string { } s := strings.Join([]string{`&ApiKeySpec{`, `OwnerId:` + fmt.Sprintf("%v", this.OwnerId) + `,`, - `OwnerType:` + fmt.Sprintf("%v", this.OwnerType) + `,`, + `OwnerTypeDeprecated:` + fmt.Sprintf("%v", this.OwnerTypeDeprecated) + `,`, `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`, `Description:` + fmt.Sprintf("%v", this.Description) + `,`, `ExpiryTime:` + strings.Replace(fmt.Sprintf("%v", this.ExpiryTime), "Timestamp", "types.Timestamp", 1) + `,`, `Disabled:` + fmt.Sprintf("%v", this.Disabled) + `,`, + `OwnerType:` + fmt.Sprintf("%v", this.OwnerType) + `,`, `}`, }, "") return s @@ -2861,7 +3343,7 @@ func (m *AccountAccess) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RoleDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2889,8 +3371,27 @@ func (m *AccountAccess) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Role = string(dAtA[iNdEx:postIndex]) + m.RoleDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) + } + m.Role = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Role |= AccountAccess_Role(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -2946,7 +3447,7 @@ func (m *NamespaceAccess) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PermissionDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2974,8 +3475,27 @@ func (m *NamespaceAccess) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Permission = string(dAtA[iNdEx:postIndex]) + m.PermissionDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType) + } + m.Permission = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Permission |= NamespaceAccess_Permission(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -3595,7 +4115,7 @@ func (m *User) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StateDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3623,7 +4143,7 @@ func (m *User) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.StateDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -3765,6 +4285,110 @@ func (m *User) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= v1.ResourceState(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GoogleGroupSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GoogleGroupSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GoogleGroupSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EmailAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.EmailAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -3820,7 +4444,7 @@ func (m *UserGroupSpec) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3848,7 +4472,7 @@ func (m *UserGroupSpec) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.DisplayName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -3886,6 +4510,42 @@ func (m *UserGroupSpec) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GoogleGroup", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.GoogleGroup == nil { + m.GoogleGroup = &GoogleGroupSpec{} + } + if err := m.GoogleGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4041,7 +4701,7 @@ func (m *UserGroup) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StateDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4069,7 +4729,7 @@ func (m *UserGroup) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.StateDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -4175,6 +4835,25 @@ func (m *UserGroup) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= v1.ResourceState(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4330,7 +5009,7 @@ func (m *ServiceAccount) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StateDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4358,7 +5037,7 @@ func (m *ServiceAccount) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.StateDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -4464,6 +5143,25 @@ func (m *ServiceAccount) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= v1.ResourceState(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4772,7 +5470,7 @@ func (m *ApiKey) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StateDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4800,7 +5498,7 @@ func (m *ApiKey) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.StateDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -4906,6 +5604,25 @@ func (m *ApiKey) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= v1.ResourceState(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4993,7 +5710,7 @@ func (m *ApiKeySpec) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnerType", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field OwnerTypeDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -5021,7 +5738,7 @@ func (m *ApiKeySpec) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OwnerType = string(dAtA[iNdEx:postIndex]) + m.OwnerTypeDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -5143,6 +5860,25 @@ func (m *ApiKeySpec) Unmarshal(dAtA []byte) error { } } m.Disabled = bool(v != 0) + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field OwnerType", wireType) + } + m.OwnerType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.OwnerType |= OwnerType(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) diff --git a/protogen/api/cloud/namespace/v1/message.pb.go b/protogen/api/cloud/namespace/v1/message.pb.go index 000b1d75..22890cc5 100644 --- a/protogen/api/cloud/namespace/v1/message.pb.go +++ b/protogen/api/cloud/namespace/v1/message.pb.go @@ -4,14 +4,18 @@ package namespace import ( + bytes "bytes" fmt "fmt" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" types "github.com/gogo/protobuf/types" + v1 "github.com/temporalio/tcld/protogen/api/cloud/resource/v1" + v11 "github.com/temporalio/tcld/protogen/api/cloud/sink/v1" io "io" math "math" math_bits "math/bits" reflect "reflect" + strconv "strconv" strings "strings" ) @@ -26,6 +30,105 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type NamespaceSpec_SearchAttributeType int32 + +const ( + SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED NamespaceSpec_SearchAttributeType = 0 + SEARCH_ATTRIBUTE_TYPE_TEXT NamespaceSpec_SearchAttributeType = 1 + SEARCH_ATTRIBUTE_TYPE_KEYWORD NamespaceSpec_SearchAttributeType = 2 + SEARCH_ATTRIBUTE_TYPE_INT NamespaceSpec_SearchAttributeType = 3 + SEARCH_ATTRIBUTE_TYPE_DOUBLE NamespaceSpec_SearchAttributeType = 4 + SEARCH_ATTRIBUTE_TYPE_BOOL NamespaceSpec_SearchAttributeType = 5 + SEARCH_ATTRIBUTE_TYPE_DATETIME NamespaceSpec_SearchAttributeType = 6 + SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST NamespaceSpec_SearchAttributeType = 7 +) + +var NamespaceSpec_SearchAttributeType_name = map[int32]string{ + 0: "SearchAttributeTypeUnspecified", + 1: "SearchAttributeTypeText", + 2: "SearchAttributeTypeKeyword", + 3: "SearchAttributeTypeInt", + 4: "SearchAttributeTypeDouble", + 5: "SearchAttributeTypeBool", + 6: "SearchAttributeTypeDatetime", + 7: "SearchAttributeTypeKeywordList", +} + +var NamespaceSpec_SearchAttributeType_value = map[string]int32{ + "SearchAttributeTypeUnspecified": 0, + "SearchAttributeTypeText": 1, + "SearchAttributeTypeKeyword": 2, + "SearchAttributeTypeInt": 3, + "SearchAttributeTypeDouble": 4, + "SearchAttributeTypeBool": 5, + "SearchAttributeTypeDatetime": 6, + "SearchAttributeTypeKeywordList": 7, +} + +func (NamespaceSpec_SearchAttributeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4ea8dce281a9b52e, []int{4, 0} +} + +type NamespaceRegionStatus_State int32 + +const ( + STATE_UNSPECIFIED NamespaceRegionStatus_State = 0 + STATE_ADDING NamespaceRegionStatus_State = 1 + STATE_ACTIVE NamespaceRegionStatus_State = 2 + STATE_PASSIVE NamespaceRegionStatus_State = 3 + STATE_REMOVING NamespaceRegionStatus_State = 4 + STATE_FAILED NamespaceRegionStatus_State = 5 +) + +var NamespaceRegionStatus_State_name = map[int32]string{ + 0: "StateUnspecified", + 1: "StateAdding", + 2: "StateActive", + 3: "StatePassive", + 4: "StateRemoving", + 5: "StateFailed", +} + +var NamespaceRegionStatus_State_value = map[string]int32{ + "StateUnspecified": 0, + "StateAdding": 1, + "StateActive": 2, + "StatePassive": 3, + "StateRemoving": 4, + "StateFailed": 5, +} + +func (NamespaceRegionStatus_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4ea8dce281a9b52e, []int{10, 0} +} + +type ExportSink_Health int32 + +const ( + HEALTH_UNSPECIFIED ExportSink_Health = 0 + HEALTH_OK ExportSink_Health = 1 + HEALTH_ERROR_INTERNAL ExportSink_Health = 2 + HEALTH_ERROR_USER_CONFIGURATION ExportSink_Health = 3 +) + +var ExportSink_Health_name = map[int32]string{ + 0: "HealthUnspecified", + 1: "HealthOk", + 2: "HealthErrorInternal", + 3: "HealthErrorUserConfiguration", +} + +var ExportSink_Health_value = map[string]int32{ + "HealthUnspecified": 0, + "HealthOk": 1, + "HealthErrorInternal": 2, + "HealthErrorUserConfiguration": 3, +} + +func (ExportSink_Health) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_4ea8dce281a9b52e, []int{12, 0} +} + type CertificateFilterSpec struct { // The common_name in the certificate. // Optional, default is empty. @@ -104,7 +207,13 @@ func (m *CertificateFilterSpec) GetSubjectAlternativeName() string { type MtlsAuthSpec struct { // The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization. // This must only be one value, but the CA can have a chain. - AcceptedClientCa string `protobuf:"bytes,1,opt,name=accepted_client_ca,json=acceptedClientCa,proto3" json:"accepted_client_ca,omitempty"` + // + // (-- api-linter: core::0140::base64=disabled --) + // Deprecated: Use accepted_client_ca instead. Will be ignored when accepted_client_ca is set. + AcceptedClientCaDeprecated string `protobuf:"bytes,1,opt,name=accepted_client_ca_deprecated,json=acceptedClientCaDeprecated,proto3" json:"accepted_client_ca_deprecated,omitempty"` + // The ca cert(s) in PEM format that the clients can use for authentication and authorization. + // This must only be one value, but the CA can have a chain. + AcceptedClientCa []byte `protobuf:"bytes,4,opt,name=accepted_client_ca,json=acceptedClientCa,proto3" json:"accepted_client_ca,omitempty"` // Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters. // This allows limiting access to specific end-entity certificates. // Optional, default is empty. @@ -147,13 +256,20 @@ func (m *MtlsAuthSpec) XXX_DiscardUnknown() { var xxx_messageInfo_MtlsAuthSpec proto.InternalMessageInfo -func (m *MtlsAuthSpec) GetAcceptedClientCa() string { +func (m *MtlsAuthSpec) GetAcceptedClientCaDeprecated() string { if m != nil { - return m.AcceptedClientCa + return m.AcceptedClientCaDeprecated } return "" } +func (m *MtlsAuthSpec) GetAcceptedClientCa() []byte { + if m != nil { + return m.AcceptedClientCa + } + return nil +} + func (m *MtlsAuthSpec) GetCertificateFilters() []*CertificateFilterSpec { if m != nil { return m.CertificateFilters @@ -281,11 +397,13 @@ type NamespaceSpec struct { // The name is immutable. Once set, it cannot be changed. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The ids of the regions where the namespace should be available. + // The GetRegions API can be used to get the list of valid region ids. // Specifying more than one region makes the namespace "global", which is currently a preview only feature with restricted access. // Please reach out to Temporal support for more information on global namespaces. // When provisioned the global namespace will be active on the first region in the list and passive on the rest. // Number of supported regions is 2. // The regions is immutable. Once set, it cannot be changed. + // Example: ["aws-us-west-2"]. Regions []string `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"` // The number of days the workflows data will be retained for. // Changes to the retention period may impact your storage costs. @@ -303,7 +421,14 @@ type NamespaceSpec struct { // Supported attribute types: text, keyword, int, double, bool, datetime, keyword_list. // NOTE: currently deleting a search attribute is not supported. // Optional, default is empty. - CustomSearchAttributes map[string]string `protobuf:"bytes,5,rep,name=custom_search_attributes,json=customSearchAttributes,proto3" json:"custom_search_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Deprecated: Use search_attributes instead. + CustomSearchAttributes map[string]string `protobuf:"bytes,5,rep,name=custom_search_attributes,json=customSearchAttributes,proto3" json:"custom_search_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Deprecated: Do not use. + // The custom search attributes to use for the namespace. + // The name of the attribute is the key and the type is the value. + // Note: currently deleting a search attribute is not supported. + // Optional, default is empty. + // temporal:enums:replaces=custom_search_attributes + SearchAttributes map[string]NamespaceSpec_SearchAttributeType `protobuf:"bytes,8,rep,name=search_attributes,json=searchAttributes,proto3" json:"search_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=temporal.api.cloud.namespace.v1.NamespaceSpec_SearchAttributeType"` // Codec server spec used by UI to decode payloads for all users interacting with this namespace. // Optional, default is unset. CodecServer *CodecServerSpec `protobuf:"bytes,6,opt,name=codec_server,json=codecServer,proto3" json:"codec_server,omitempty"` @@ -376,6 +501,7 @@ func (m *NamespaceSpec) GetApiKeyAuth() *ApiKeyAuthSpec { return nil } +// Deprecated: Do not use. func (m *NamespaceSpec) GetCustomSearchAttributes() map[string]string { if m != nil { return m.CustomSearchAttributes @@ -383,6 +509,13 @@ func (m *NamespaceSpec) GetCustomSearchAttributes() map[string]string { return nil } +func (m *NamespaceSpec) GetSearchAttributes() map[string]NamespaceSpec_SearchAttributeType { + if m != nil { + return m.SearchAttributes + } + return nil +} + func (m *NamespaceSpec) GetCodecServer() *CodecServerSpec { if m != nil { return m.CodecServer @@ -613,9 +746,12 @@ type Namespace struct { // The namespace specification. Spec *NamespaceSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` // The current state of the namespace. - // Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. + // Deprecated: Use state instead. + StateDeprecated string `protobuf:"bytes,4,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` // Deprecated: Do not use. + // The current state of the namespace. // For any failed state, reach out to Temporal Cloud support for remediation. - State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` + // temporal:enums:replaces=state_deprecated + State v1.ResourceState `protobuf:"varint,13,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` // The id of the async operation that is creating/updating/deleting the namespace, if any. AsyncOperationId string `protobuf:"bytes,5,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` // The endpoints for the namespace. @@ -689,13 +825,21 @@ func (m *Namespace) GetSpec() *NamespaceSpec { return nil } -func (m *Namespace) GetState() string { +// Deprecated: Do not use. +func (m *Namespace) GetStateDeprecated() string { if m != nil { - return m.State + return m.StateDeprecated } return "" } +func (m *Namespace) GetState() v1.ResourceState { + if m != nil { + return m.State + } + return v1.RESOURCE_STATE_UNSPECIFIED +} + func (m *Namespace) GetAsyncOperationId() string { if m != nil { return m.AsyncOperationId @@ -756,7 +900,11 @@ type NamespaceRegionStatus struct { // The current state of the namespace region. // Possible values: adding, active, passive, removing, failed. // For any failed state, reach out to Temporal Cloud support for remediation. - State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` + // Deprecated: Use state instead. + StateDeprecated string `protobuf:"bytes,1,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` // Deprecated: Do not use. + // The current state of the namespace region. + // temporal:enums:replaces=state_deprecated + State NamespaceRegionStatus_State `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.cloud.namespace.v1.NamespaceRegionStatus_State" json:"state,omitempty"` // The id of the async operation that is making changes to where the namespace is available, if any. AsyncOperationId string `protobuf:"bytes,2,opt,name=async_operation_id,json=asyncOperationId,proto3" json:"async_operation_id,omitempty"` } @@ -793,13 +941,21 @@ func (m *NamespaceRegionStatus) XXX_DiscardUnknown() { var xxx_messageInfo_NamespaceRegionStatus proto.InternalMessageInfo -func (m *NamespaceRegionStatus) GetState() string { +// Deprecated: Do not use. +func (m *NamespaceRegionStatus) GetStateDeprecated() string { if m != nil { - return m.State + return m.StateDeprecated } return "" } +func (m *NamespaceRegionStatus) GetState() NamespaceRegionStatus_State { + if m != nil { + return m.State + } + return STATE_UNSPECIFIED +} + func (m *NamespaceRegionStatus) GetAsyncOperationId() string { if m != nil { return m.AsyncOperationId @@ -807,13 +963,196 @@ func (m *NamespaceRegionStatus) GetAsyncOperationId() string { return "" } +type ExportSinkSpec struct { + // The unique name of the export sink. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // A flag indicating whether the export sink is enabled or not. + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + // The S3 configuration details when destination_type is S3. + S3 *v11.S3Spec `protobuf:"bytes,3,opt,name=s3,proto3" json:"s3,omitempty"` + // This is a feature under development. We will allow GCS sink support for GCP Namespaces. + // The GCS configuration details when destination_type is GCS. + Gcs *v11.GCSSpec `protobuf:"bytes,4,opt,name=gcs,proto3" json:"gcs,omitempty"` +} + +func (m *ExportSinkSpec) Reset() { *m = ExportSinkSpec{} } +func (*ExportSinkSpec) ProtoMessage() {} +func (*ExportSinkSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_4ea8dce281a9b52e, []int{11} +} +func (m *ExportSinkSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExportSinkSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExportSinkSpec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExportSinkSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportSinkSpec.Merge(m, src) +} +func (m *ExportSinkSpec) XXX_Size() int { + return m.Size() +} +func (m *ExportSinkSpec) XXX_DiscardUnknown() { + xxx_messageInfo_ExportSinkSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_ExportSinkSpec proto.InternalMessageInfo + +func (m *ExportSinkSpec) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ExportSinkSpec) GetEnabled() bool { + if m != nil { + return m.Enabled + } + return false +} + +func (m *ExportSinkSpec) GetS3() *v11.S3Spec { + if m != nil { + return m.S3 + } + return nil +} + +func (m *ExportSinkSpec) GetGcs() *v11.GCSSpec { + if m != nil { + return m.Gcs + } + return nil +} + +type ExportSink struct { + // The unique name of the export sink, once set it can't be changed + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The version of the export sink resource. + ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"` + // The current state of the export sink. + State v1.ResourceState `protobuf:"varint,3,opt,name=state,proto3,enum=temporal.api.cloud.resource.v1.ResourceState" json:"state,omitempty"` + // The specification details of the export sink. + Spec *ExportSinkSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` + // The health status of the export sink. + Health ExportSink_Health `protobuf:"varint,5,opt,name=health,proto3,enum=temporal.api.cloud.namespace.v1.ExportSink_Health" json:"health,omitempty"` + // An error message describing any issues with the export sink, if applicable. + ErrorMessage string `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + // The timestamp of the latest successful data export. + LatestDataExportTime *types.Timestamp `protobuf:"bytes,7,opt,name=latest_data_export_time,json=latestDataExportTime,proto3" json:"latest_data_export_time,omitempty"` + // The timestamp of the last health check performed on the export sink. + LastHealthCheckTime *types.Timestamp `protobuf:"bytes,8,opt,name=last_health_check_time,json=lastHealthCheckTime,proto3" json:"last_health_check_time,omitempty"` +} + +func (m *ExportSink) Reset() { *m = ExportSink{} } +func (*ExportSink) ProtoMessage() {} +func (*ExportSink) Descriptor() ([]byte, []int) { + return fileDescriptor_4ea8dce281a9b52e, []int{12} +} +func (m *ExportSink) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExportSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ExportSink.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ExportSink) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExportSink.Merge(m, src) +} +func (m *ExportSink) XXX_Size() int { + return m.Size() +} +func (m *ExportSink) XXX_DiscardUnknown() { + xxx_messageInfo_ExportSink.DiscardUnknown(m) +} + +var xxx_messageInfo_ExportSink proto.InternalMessageInfo + +func (m *ExportSink) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ExportSink) GetResourceVersion() string { + if m != nil { + return m.ResourceVersion + } + return "" +} + +func (m *ExportSink) GetState() v1.ResourceState { + if m != nil { + return m.State + } + return v1.RESOURCE_STATE_UNSPECIFIED +} + +func (m *ExportSink) GetSpec() *ExportSinkSpec { + if m != nil { + return m.Spec + } + return nil +} + +func (m *ExportSink) GetHealth() ExportSink_Health { + if m != nil { + return m.Health + } + return HEALTH_UNSPECIFIED +} + +func (m *ExportSink) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage + } + return "" +} + +func (m *ExportSink) GetLatestDataExportTime() *types.Timestamp { + if m != nil { + return m.LatestDataExportTime + } + return nil +} + +func (m *ExportSink) GetLastHealthCheckTime() *types.Timestamp { + if m != nil { + return m.LastHealthCheckTime + } + return nil +} + func init() { + proto.RegisterEnum("temporal.api.cloud.namespace.v1.NamespaceSpec_SearchAttributeType", NamespaceSpec_SearchAttributeType_name, NamespaceSpec_SearchAttributeType_value) + proto.RegisterEnum("temporal.api.cloud.namespace.v1.NamespaceRegionStatus_State", NamespaceRegionStatus_State_name, NamespaceRegionStatus_State_value) + proto.RegisterEnum("temporal.api.cloud.namespace.v1.ExportSink_Health", ExportSink_Health_name, ExportSink_Health_value) proto.RegisterType((*CertificateFilterSpec)(nil), "temporal.api.cloud.namespace.v1.CertificateFilterSpec") proto.RegisterType((*MtlsAuthSpec)(nil), "temporal.api.cloud.namespace.v1.MtlsAuthSpec") proto.RegisterType((*ApiKeyAuthSpec)(nil), "temporal.api.cloud.namespace.v1.ApiKeyAuthSpec") proto.RegisterType((*CodecServerSpec)(nil), "temporal.api.cloud.namespace.v1.CodecServerSpec") proto.RegisterType((*NamespaceSpec)(nil), "temporal.api.cloud.namespace.v1.NamespaceSpec") proto.RegisterMapType((map[string]string)(nil), "temporal.api.cloud.namespace.v1.NamespaceSpec.CustomSearchAttributesEntry") + proto.RegisterMapType((map[string]NamespaceSpec_SearchAttributeType)(nil), "temporal.api.cloud.namespace.v1.NamespaceSpec.SearchAttributesEntry") proto.RegisterType((*Endpoints)(nil), "temporal.api.cloud.namespace.v1.Endpoints") proto.RegisterType((*Limits)(nil), "temporal.api.cloud.namespace.v1.Limits") proto.RegisterType((*AWSPrivateLinkInfo)(nil), "temporal.api.cloud.namespace.v1.AWSPrivateLinkInfo") @@ -821,6 +1160,8 @@ func init() { proto.RegisterType((*Namespace)(nil), "temporal.api.cloud.namespace.v1.Namespace") proto.RegisterMapType((map[string]*NamespaceRegionStatus)(nil), "temporal.api.cloud.namespace.v1.Namespace.RegionStatusEntry") proto.RegisterType((*NamespaceRegionStatus)(nil), "temporal.api.cloud.namespace.v1.NamespaceRegionStatus") + proto.RegisterType((*ExportSinkSpec)(nil), "temporal.api.cloud.namespace.v1.ExportSinkSpec") + proto.RegisterType((*ExportSink)(nil), "temporal.api.cloud.namespace.v1.ExportSink") } func init() { @@ -828,86 +1169,148 @@ func init() { } var fileDescriptor_4ea8dce281a9b52e = []byte{ - // 1224 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x4b, 0x6f, 0x1c, 0xc5, - 0x13, 0xf7, 0x38, 0xb6, 0xe3, 0xad, 0x5d, 0xc7, 0x4e, 0x27, 0xf6, 0x7f, 0xe4, 0x3f, 0x6c, 0xc2, - 0x22, 0x44, 0x88, 0xc8, 0x2e, 0x71, 0x22, 0x88, 0x08, 0x08, 0x6d, 0x96, 0x90, 0x07, 0x79, 0x31, - 0x1b, 0x40, 0x02, 0xa1, 0x56, 0xbb, 0xa7, 0xbc, 0x69, 0x3c, 0xd3, 0x3d, 0xea, 0xee, 0x5d, 0x6b, - 0xe1, 0xc2, 0x01, 0x89, 0x0b, 0x07, 0x3e, 0x03, 0x27, 0xc4, 0x97, 0xe0, 0x08, 0xc7, 0x1c, 0x73, - 0x42, 0x64, 0x73, 0xe1, 0x98, 0x8f, 0x80, 0xba, 0x67, 0x66, 0x1f, 0xc4, 0xb0, 0xe1, 0x36, 0x55, - 0xf5, 0xab, 0x9a, 0x7a, 0xfc, 0xba, 0xba, 0xe1, 0x9c, 0xc5, 0x34, 0x53, 0x9a, 0x25, 0x2d, 0x96, - 0x89, 0x16, 0x4f, 0x54, 0x3f, 0x6e, 0x49, 0x96, 0xa2, 0xc9, 0x18, 0xc7, 0xd6, 0xe0, 0x7c, 0x2b, - 0x45, 0x63, 0x58, 0x0f, 0x9b, 0x99, 0x56, 0x56, 0x91, 0x53, 0x25, 0xbc, 0xc9, 0x32, 0xd1, 0xf4, - 0xf0, 0xe6, 0x18, 0xde, 0x1c, 0x9c, 0xdf, 0x3e, 0xd5, 0x53, 0xaa, 0x97, 0x60, 0xcb, 0xc3, 0x77, - 0xfb, 0x7b, 0x2d, 0x2b, 0x52, 0x34, 0x96, 0xa5, 0x59, 0x1e, 0xa1, 0xf1, 0x6b, 0x00, 0x9b, 0x1d, - 0xd4, 0x56, 0xec, 0x09, 0xce, 0x2c, 0x7e, 0x20, 0x12, 0x8b, 0xba, 0x9b, 0x21, 0x27, 0xa7, 0xa0, - 0xca, 0x55, 0x9a, 0x2a, 0x49, 0x5d, 0xc4, 0x30, 0x38, 0x1d, 0x9c, 0xa9, 0x44, 0x90, 0xab, 0xee, - 0xb0, 0x14, 0x49, 0x03, 0x6a, 0x4a, 0xf7, 0x98, 0x14, 0x5f, 0x31, 0x2b, 0x94, 0x0c, 0x17, 0x3d, - 0x62, 0x46, 0x47, 0x5a, 0x70, 0x62, 0x5a, 0x66, 0x09, 0xed, 0x4b, 0x61, 0xc3, 0x23, 0x1e, 0x4a, - 0x66, 0x4d, 0x1f, 0x4b, 0x61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xf8, 0xfa, 0x99, 0x09, 0x9e, 0xef, 0xc1, 0xf2, 0x98, 0xfc, 0x6f, - 0x90, 0xf1, 0xb2, 0x63, 0xdd, 0xdc, 0xee, 0x59, 0xd2, 0xf8, 0x3e, 0x80, 0x13, 0x45, 0x1a, 0x1d, - 0x25, 0x25, 0x72, 0x2b, 0x06, 0xc2, 0x0e, 0xc9, 0x16, 0xac, 0xe4, 0x27, 0xab, 0xe8, 0x67, 0x21, - 0x91, 0x2f, 0x60, 0x83, 0x1d, 0x18, 0x97, 0x9e, 0x73, 0xa1, 0x89, 0x90, 0xfb, 0xbe, 0x95, 0xd5, - 0x9d, 0x0b, 0xf3, 0x79, 0xff, 0x4c, 0xc5, 0xd1, 0x31, 0x76, 0x60, 0xa6, 0x74, 0x8d, 0xdf, 0x57, - 0xa0, 0x32, 0xa6, 0x2f, 0x79, 0x01, 0x2a, 0xe3, 0x00, 0x45, 0x1e, 0x13, 0x05, 0x79, 0x0d, 0x36, - 0x34, 0x1a, 0xd5, 0xd7, 0x1c, 0xe9, 0x00, 0xb5, 0x99, 0xdc, 0x2b, 0xeb, 0xa5, 0xfe, 0x93, 0x5c, - 0x4d, 0xae, 0xc0, 0x92, 0xc9, 0x90, 0xfb, 0x69, 0x56, 0x77, 0x9a, 0xff, 0xed, 0x04, 0x45, 0xde, - 0xd7, 0xb1, 0xd1, 0x58, 0x66, 0xcb, 0xab, 0x25, 0x17, 0xfc, 0xc5, 0x61, 0x86, 0x92, 0x53, 0x95, - 0xa1, 0xf6, 0x97, 0x13, 0x15, 0x71, 0xb8, 0x5c, 0x5c, 0x1c, 0xce, 0x72, 0xb7, 0x34, 0xdc, 0x88, - 0xc9, 0x75, 0xa8, 0x94, 0x63, 0x32, 0xc5, 0xa1, 0x3a, 0x3b, 0x37, 0x99, 0x31, 0xd3, 0xa3, 0x89, - 0x33, 0x79, 0x19, 0xd6, 0x1c, 0xb5, 0x06, 0x48, 0x8b, 0x31, 0x1d, 0xcd, 0x6f, 0xd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0x3d, 0xf8, 0x66, 0x54, 0x0f, 0x7e, 0x1a, 0xd5, 0x83, 0xdf, 0x46, 0xf5, 0xe0, 0xe1, 0xa8, 0x1e, - 0xfc, 0x31, 0xaa, 0x07, 0x7f, 0x8e, 0xea, 0x0b, 0x4f, 0x47, 0xf5, 0xe0, 0x87, 0x27, 0xf5, 0x85, - 0x87, 0x4f, 0xea, 0x0b, 0x8f, 0x9e, 0xd4, 0x17, 0x3e, 0x6b, 0xf5, 0xd4, 0xa4, 0x2e, 0xa1, 0xfe, - 0xe1, 0x35, 0x7b, 0x79, 0x2c, 0xec, 0xae, 0xf8, 0x29, 0x5e, 0xf8, 0x2b, 0x00, 0x00, 0xff, 0xff, - 0x3d, 0xd6, 0x0f, 0x4c, 0x01, 0x0b, 0x00, 0x00, + // 1873 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x4f, 0x73, 0x1b, 0x49, + 0x15, 0xf7, 0xc8, 0x7f, 0xf5, 0x2c, 0xdb, 0xe3, 0x76, 0xec, 0xd5, 0x8a, 0x8d, 0x92, 0x28, 0x15, + 0x08, 0xa9, 0x8d, 0x44, 0xec, 0x05, 0xb6, 0xbc, 0x4b, 0x51, 0x63, 0x69, 0x62, 0x2b, 0xb1, 0x2d, + 0xef, 0x68, 0xec, 0xdd, 0xa5, 0x8a, 0xea, 0x6a, 0x8f, 0xda, 0x72, 0xe3, 0xd1, 0xcc, 0x30, 0xdd, + 0x92, 0x31, 0x7b, 0xa1, 0xb8, 0x2c, 0x07, 0x0e, 0x7c, 0x06, 0x4e, 0x40, 0xf1, 0x11, 0xb8, 0x52, + 0x70, 0xcc, 0x71, 0x0b, 0x2e, 0xc4, 0x29, 0xaa, 0x28, 0x4e, 0xfb, 0x11, 0xa8, 0xee, 0x99, 0xd1, + 0x1f, 0x7b, 0x12, 0x39, 0xcb, 0x4d, 0xfd, 0xde, 0xef, 0xb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, 0xea, 0xb2, 0xa8, 0xfd, 0xe1, 0xb2, 0xa8, 0xfd, 0xfd, 0xb2, 0xa8, 0xbd, + 0xb8, 0x2c, 0x6a, 0xff, 0xba, 0x2c, 0x6a, 0xff, 0xb9, 0x2c, 0x4e, 0x7c, 0x7d, 0x59, 0xd4, 0x7e, + 0xf7, 0xaa, 0x38, 0xf1, 0xe2, 0x55, 0x71, 0xe2, 0xab, 0x57, 0xc5, 0x09, 0x28, 0x31, 0x7f, 0xdc, + 0x75, 0x6d, 0xe5, 0xe2, 0xc4, 0x1f, 0xc8, 0xb3, 0x1f, 0x68, 0x3f, 0xa9, 0xb4, 0x87, 0x6c, 0x98, + 0xff, 0x9a, 0x3f, 0x88, 0x3e, 0xea, 0x2f, 0xfe, 0x94, 0xb9, 0x67, 0xc7, 0x70, 0xe6, 0xcb, 0x8f, + 0xc0, 0x72, 0x55, 0x6d, 0x32, 0xe0, 0xe9, 0xa3, 0x27, 0xff, 0xcd, 0x3c, 0x18, 0x60, 0x36, 0x37, + 0x8d, 0x80, 0x6d, 0x6e, 0x2a, 0xd4, 0xe6, 0x66, 0x1f, 0xb6, 0xb9, 0x79, 0xf4, 0xe4, 0x78, 0x46, + 0xdd, 0xc0, 0xc6, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x74, 0xb8, 0xa4, 0x12, 0xa0, 0x12, 0x00, + 0x00, +} + +func (x NamespaceSpec_SearchAttributeType) String() string { + s, ok := NamespaceSpec_SearchAttributeType_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (x NamespaceRegionStatus_State) String() string { + s, ok := NamespaceRegionStatus_State_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (x ExportSink_Health) String() string { + s, ok := ExportSink_Health_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) } - func (this *CertificateFilterSpec) Equal(that interface{}) bool { if that == nil { return this == nil @@ -960,7 +1363,10 @@ func (this *MtlsAuthSpec) Equal(that interface{}) bool { } else if this == nil { return false } - if this.AcceptedClientCa != that1.AcceptedClientCa { + if this.AcceptedClientCaDeprecated != that1.AcceptedClientCaDeprecated { + return false + } + if !bytes.Equal(this.AcceptedClientCa, that1.AcceptedClientCa) { return false } if len(this.CertificateFilters) != len(that1.CertificateFilters) { @@ -1077,6 +1483,14 @@ func (this *NamespaceSpec) Equal(that interface{}) bool { return false } } + if len(this.SearchAttributes) != len(that1.SearchAttributes) { + return false + } + for i := range this.SearchAttributes { + if this.SearchAttributes[i] != that1.SearchAttributes[i] { + return false + } + } if !this.CodecServer.Equal(that1.CodecServer) { return false } @@ -1228,6 +1642,9 @@ func (this *Namespace) Equal(that interface{}) bool { if !this.Spec.Equal(that1.Spec) { return false } + if this.StateDeprecated != that1.StateDeprecated { + return false + } if this.State != that1.State { return false } @@ -1286,6 +1703,9 @@ func (this *NamespaceRegionStatus) Equal(that interface{}) bool { } else if this == nil { return false } + if this.StateDeprecated != that1.StateDeprecated { + return false + } if this.State != that1.State { return false } @@ -1294,6 +1714,84 @@ func (this *NamespaceRegionStatus) Equal(that interface{}) bool { } return true } +func (this *ExportSinkSpec) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ExportSinkSpec) + if !ok { + that2, ok := that.(ExportSinkSpec) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Name != that1.Name { + return false + } + if this.Enabled != that1.Enabled { + return false + } + if !this.S3.Equal(that1.S3) { + return false + } + if !this.Gcs.Equal(that1.Gcs) { + return false + } + return true +} +func (this *ExportSink) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ExportSink) + if !ok { + that2, ok := that.(ExportSink) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Name != that1.Name { + return false + } + if this.ResourceVersion != that1.ResourceVersion { + return false + } + if this.State != that1.State { + return false + } + if !this.Spec.Equal(that1.Spec) { + return false + } + if this.Health != that1.Health { + return false + } + if this.ErrorMessage != that1.ErrorMessage { + return false + } + if !this.LatestDataExportTime.Equal(that1.LatestDataExportTime) { + return false + } + if !this.LastHealthCheckTime.Equal(that1.LastHealthCheckTime) { + return false + } + return true +} func (this *CertificateFilterSpec) GoString() string { if this == nil { return "nil" @@ -1311,8 +1809,9 @@ func (this *MtlsAuthSpec) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 7) + s := make([]string, 0, 8) s = append(s, "&namespace.MtlsAuthSpec{") + s = append(s, "AcceptedClientCaDeprecated: "+fmt.Sprintf("%#v", this.AcceptedClientCaDeprecated)+",\n") s = append(s, "AcceptedClientCa: "+fmt.Sprintf("%#v", this.AcceptedClientCa)+",\n") if this.CertificateFilters != nil { s = append(s, "CertificateFilters: "+fmt.Sprintf("%#v", this.CertificateFilters)+",\n") @@ -1347,7 +1846,7 @@ func (this *NamespaceSpec) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 11) + s := make([]string, 0, 12) s = append(s, "&namespace.NamespaceSpec{") s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") s = append(s, "Regions: "+fmt.Sprintf("%#v", this.Regions)+",\n") @@ -1371,6 +1870,19 @@ func (this *NamespaceSpec) GoString() string { if this.CustomSearchAttributes != nil { s = append(s, "CustomSearchAttributes: "+mapStringForCustomSearchAttributes+",\n") } + keysForSearchAttributes := make([]string, 0, len(this.SearchAttributes)) + for k, _ := range this.SearchAttributes { + keysForSearchAttributes = append(keysForSearchAttributes, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForSearchAttributes) + mapStringForSearchAttributes := "map[string]NamespaceSpec_SearchAttributeType{" + for _, k := range keysForSearchAttributes { + mapStringForSearchAttributes += fmt.Sprintf("%#v: %#v,", k, this.SearchAttributes[k]) + } + mapStringForSearchAttributes += "}" + if this.SearchAttributes != nil { + s = append(s, "SearchAttributes: "+mapStringForSearchAttributes+",\n") + } if this.CodecServer != nil { s = append(s, "CodecServer: "+fmt.Sprintf("%#v", this.CodecServer)+",\n") } @@ -1427,13 +1939,14 @@ func (this *Namespace) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 16) + s := make([]string, 0, 17) s = append(s, "&namespace.Namespace{") s = append(s, "Namespace: "+fmt.Sprintf("%#v", this.Namespace)+",\n") s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") if this.Spec != nil { s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") } + s = append(s, "StateDeprecated: "+fmt.Sprintf("%#v", this.StateDeprecated)+",\n") s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") if this.Endpoints != nil { @@ -1472,27 +1985,68 @@ func (this *NamespaceRegionStatus) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 6) + s := make([]string, 0, 7) s = append(s, "&namespace.NamespaceRegionStatus{") + s = append(s, "StateDeprecated: "+fmt.Sprintf("%#v", this.StateDeprecated)+",\n") s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") s = append(s, "AsyncOperationId: "+fmt.Sprintf("%#v", this.AsyncOperationId)+",\n") s = append(s, "}") return strings.Join(s, "") } -func valueToGoStringMessage(v interface{}, typ string) string { - rv := reflect.ValueOf(v) - if rv.IsNil() { +func (this *ExportSinkSpec) GoString() string { + if this == nil { return "nil" } - pv := reflect.Indirect(rv).Interface() - return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) -} -func (m *CertificateFilterSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + s := make([]string, 0, 8) + s = append(s, "&namespace.ExportSinkSpec{") + s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + s = append(s, "Enabled: "+fmt.Sprintf("%#v", this.Enabled)+",\n") + if this.S3 != nil { + s = append(s, "S3: "+fmt.Sprintf("%#v", this.S3)+",\n") + } + if this.Gcs != nil { + s = append(s, "Gcs: "+fmt.Sprintf("%#v", this.Gcs)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *ExportSink) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 12) + s = append(s, "&namespace.ExportSink{") + s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") + s = append(s, "ResourceVersion: "+fmt.Sprintf("%#v", this.ResourceVersion)+",\n") + s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") + if this.Spec != nil { + s = append(s, "Spec: "+fmt.Sprintf("%#v", this.Spec)+",\n") + } + s = append(s, "Health: "+fmt.Sprintf("%#v", this.Health)+",\n") + s = append(s, "ErrorMessage: "+fmt.Sprintf("%#v", this.ErrorMessage)+",\n") + if this.LatestDataExportTime != nil { + s = append(s, "LatestDataExportTime: "+fmt.Sprintf("%#v", this.LatestDataExportTime)+",\n") + } + if this.LastHealthCheckTime != nil { + s = append(s, "LastHealthCheckTime: "+fmt.Sprintf("%#v", this.LastHealthCheckTime)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringMessage(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func (m *CertificateFilterSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } return dAtA[:n], nil } @@ -1558,6 +2112,13 @@ func (m *MtlsAuthSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.AcceptedClientCa) > 0 { + i -= len(m.AcceptedClientCa) + copy(dAtA[i:], m.AcceptedClientCa) + i = encodeVarintMessage(dAtA, i, uint64(len(m.AcceptedClientCa))) + i-- + dAtA[i] = 0x22 + } if m.Enabled { i-- if m.Enabled { @@ -1582,10 +2143,10 @@ func (m *MtlsAuthSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x12 } } - if len(m.AcceptedClientCa) > 0 { - i -= len(m.AcceptedClientCa) - copy(dAtA[i:], m.AcceptedClientCa) - i = encodeVarintMessage(dAtA, i, uint64(len(m.AcceptedClientCa))) + if len(m.AcceptedClientCaDeprecated) > 0 { + i -= len(m.AcceptedClientCaDeprecated) + copy(dAtA[i:], m.AcceptedClientCaDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.AcceptedClientCaDeprecated))) i-- dAtA[i] = 0xa } @@ -1695,6 +2256,23 @@ func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.SearchAttributes) > 0 { + for k := range m.SearchAttributes { + v := m.SearchAttributes[k] + baseI := i + i = encodeVarintMessage(dAtA, i, uint64(v)) + i-- + dAtA[i] = 0x10 + i -= len(k) + copy(dAtA[i:], k) + i = encodeVarintMessage(dAtA, i, uint64(len(k))) + i-- + dAtA[i] = 0xa + i = encodeVarintMessage(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x42 + } + } if m.ApiKeyAuth != nil { { size, err := m.ApiKeyAuth.MarshalToSizedBuffer(dAtA[:i]) @@ -1949,6 +2527,11 @@ func (m *Namespace) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x68 + } if len(m.RegionStatus) > 0 { for k := range m.RegionStatus { v := m.RegionStatus[k] @@ -2051,10 +2634,10 @@ func (m *Namespace) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintMessage(dAtA, i, uint64(len(m.State))) + if len(m.StateDeprecated) > 0 { + i -= len(m.StateDeprecated) + copy(dAtA[i:], m.StateDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.StateDeprecated))) i-- dAtA[i] = 0x22 } @@ -2107,6 +2690,11 @@ func (m *NamespaceRegionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x18 + } if len(m.AsyncOperationId) > 0 { i -= len(m.AsyncOperationId) copy(dAtA[i:], m.AsyncOperationId) @@ -2114,10 +2702,164 @@ func (m *NamespaceRegionStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintMessage(dAtA, i, uint64(len(m.State))) + if len(m.StateDeprecated) > 0 { + i -= len(m.StateDeprecated) + copy(dAtA[i:], m.StateDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.StateDeprecated))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ExportSinkSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExportSinkSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExportSinkSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Gcs != nil { + { + size, err := m.Gcs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.S3 != nil { + { + size, err := m.S3.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Enabled { + i-- + if m.Enabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ExportSink) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExportSink) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExportSink) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LastHealthCheckTime != nil { + { + size, err := m.LastHealthCheckTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.LatestDataExportTime != nil { + { + size, err := m.LatestDataExportTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if len(m.ErrorMessage) > 0 { + i -= len(m.ErrorMessage) + copy(dAtA[i:], m.ErrorMessage) + i = encodeVarintMessage(dAtA, i, uint64(len(m.ErrorMessage))) + i-- + dAtA[i] = 0x32 + } + if m.Health != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Health)) + i-- + dAtA[i] = 0x28 + } + if m.Spec != nil { + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x18 + } + if len(m.ResourceVersion) > 0 { + i -= len(m.ResourceVersion) + copy(dAtA[i:], m.ResourceVersion) + i = encodeVarintMessage(dAtA, i, uint64(len(m.ResourceVersion))) + i-- + dAtA[i] = 0x12 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } @@ -2166,7 +2908,7 @@ func (m *MtlsAuthSpec) Size() (n int) { } var l int _ = l - l = len(m.AcceptedClientCa) + l = len(m.AcceptedClientCaDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2179,6 +2921,10 @@ func (m *MtlsAuthSpec) Size() (n int) { if m.Enabled { n += 2 } + l = len(m.AcceptedClientCa) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } return n } @@ -2252,6 +2998,14 @@ func (m *NamespaceSpec) Size() (n int) { l = m.ApiKeyAuth.Size() n += 1 + l + sovMessage(uint64(l)) } + if len(m.SearchAttributes) > 0 { + for k, v := range m.SearchAttributes { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovMessage(uint64(len(k))) + 1 + sovMessage(uint64(v)) + n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize)) + } + } return n } @@ -2344,7 +3098,7 @@ func (m *Namespace) Size() (n int) { l = m.Spec.Size() n += 1 + l + sovMessage(uint64(l)) } - l = len(m.State) + l = len(m.StateDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2391,6 +3145,9 @@ func (m *Namespace) Size() (n int) { n += mapEntrySize + 1 + sovMessage(uint64(mapEntrySize)) } } + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) + } return n } @@ -2400,7 +3157,7 @@ func (m *NamespaceRegionStatus) Size() (n int) { } var l int _ = l - l = len(m.State) + l = len(m.StateDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -2408,6 +3165,72 @@ func (m *NamespaceRegionStatus) Size() (n int) { if l > 0 { n += 1 + l + sovMessage(uint64(l)) } + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) + } + return n +} + +func (m *ExportSinkSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + if m.Enabled { + n += 2 + } + if m.S3 != nil { + l = m.S3.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if m.Gcs != nil { + l = m.Gcs.Size() + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *ExportSink) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.ResourceVersion) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) + } + if m.Spec != nil { + l = m.Spec.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if m.Health != 0 { + n += 1 + sovMessage(uint64(m.Health)) + } + l = len(m.ErrorMessage) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + if m.LatestDataExportTime != nil { + l = m.LatestDataExportTime.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if m.LastHealthCheckTime != nil { + l = m.LastHealthCheckTime.Size() + n += 1 + l + sovMessage(uint64(l)) + } return n } @@ -2440,9 +3263,10 @@ func (this *MtlsAuthSpec) String() string { } repeatedStringForCertificateFilters += "}" s := strings.Join([]string{`&MtlsAuthSpec{`, - `AcceptedClientCa:` + fmt.Sprintf("%v", this.AcceptedClientCa) + `,`, + `AcceptedClientCaDeprecated:` + fmt.Sprintf("%v", this.AcceptedClientCaDeprecated) + `,`, `CertificateFilters:` + repeatedStringForCertificateFilters + `,`, `Enabled:` + fmt.Sprintf("%v", this.Enabled) + `,`, + `AcceptedClientCa:` + fmt.Sprintf("%v", this.AcceptedClientCa) + `,`, `}`, }, "") return s @@ -2483,6 +3307,16 @@ func (this *NamespaceSpec) String() string { mapStringForCustomSearchAttributes += fmt.Sprintf("%v: %v,", k, this.CustomSearchAttributes[k]) } mapStringForCustomSearchAttributes += "}" + keysForSearchAttributes := make([]string, 0, len(this.SearchAttributes)) + for k, _ := range this.SearchAttributes { + keysForSearchAttributes = append(keysForSearchAttributes, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForSearchAttributes) + mapStringForSearchAttributes := "map[string]NamespaceSpec_SearchAttributeType{" + for _, k := range keysForSearchAttributes { + mapStringForSearchAttributes += fmt.Sprintf("%v: %v,", k, this.SearchAttributes[k]) + } + mapStringForSearchAttributes += "}" s := strings.Join([]string{`&NamespaceSpec{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Regions:` + fmt.Sprintf("%v", this.Regions) + `,`, @@ -2491,6 +3325,7 @@ func (this *NamespaceSpec) String() string { `CustomSearchAttributes:` + mapStringForCustomSearchAttributes + `,`, `CodecServer:` + strings.Replace(this.CodecServer.String(), "CodecServerSpec", "CodecServerSpec", 1) + `,`, `ApiKeyAuth:` + strings.Replace(this.ApiKeyAuth.String(), "ApiKeyAuthSpec", "ApiKeyAuthSpec", 1) + `,`, + `SearchAttributes:` + mapStringForSearchAttributes + `,`, `}`, }, "") return s @@ -2562,7 +3397,7 @@ func (this *Namespace) String() string { `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, `Spec:` + strings.Replace(this.Spec.String(), "NamespaceSpec", "NamespaceSpec", 1) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, + `StateDeprecated:` + fmt.Sprintf("%v", this.StateDeprecated) + `,`, `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, `Endpoints:` + strings.Replace(this.Endpoints.String(), "Endpoints", "Endpoints", 1) + `,`, `ActiveRegion:` + fmt.Sprintf("%v", this.ActiveRegion) + `,`, @@ -2571,6 +3406,7 @@ func (this *Namespace) String() string { `CreatedTime:` + strings.Replace(fmt.Sprintf("%v", this.CreatedTime), "Timestamp", "types.Timestamp", 1) + `,`, `LastModifiedTime:` + strings.Replace(fmt.Sprintf("%v", this.LastModifiedTime), "Timestamp", "types.Timestamp", 1) + `,`, `RegionStatus:` + mapStringForRegionStatus + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, `}`, }, "") return s @@ -2580,8 +3416,39 @@ func (this *NamespaceRegionStatus) String() string { return "nil" } s := strings.Join([]string{`&NamespaceRegionStatus{`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, + `StateDeprecated:` + fmt.Sprintf("%v", this.StateDeprecated) + `,`, `AsyncOperationId:` + fmt.Sprintf("%v", this.AsyncOperationId) + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, + `}`, + }, "") + return s +} +func (this *ExportSinkSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExportSinkSpec{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Enabled:` + fmt.Sprintf("%v", this.Enabled) + `,`, + `S3:` + strings.Replace(fmt.Sprintf("%v", this.S3), "S3Spec", "v11.S3Spec", 1) + `,`, + `Gcs:` + strings.Replace(fmt.Sprintf("%v", this.Gcs), "GCSSpec", "v11.GCSSpec", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ExportSink) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExportSink{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, + `Spec:` + strings.Replace(this.Spec.String(), "ExportSinkSpec", "ExportSinkSpec", 1) + `,`, + `Health:` + fmt.Sprintf("%v", this.Health) + `,`, + `ErrorMessage:` + fmt.Sprintf("%v", this.ErrorMessage) + `,`, + `LatestDataExportTime:` + strings.Replace(fmt.Sprintf("%v", this.LatestDataExportTime), "Timestamp", "types.Timestamp", 1) + `,`, + `LastHealthCheckTime:` + strings.Replace(fmt.Sprintf("%v", this.LastHealthCheckTime), "Timestamp", "types.Timestamp", 1) + `,`, `}`, }, "") return s @@ -2806,7 +3673,7 @@ func (m *MtlsAuthSpec) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AcceptedClientCa", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AcceptedClientCaDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2834,7 +3701,7 @@ func (m *MtlsAuthSpec) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.AcceptedClientCa = string(dAtA[iNdEx:postIndex]) + m.AcceptedClientCaDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -2890,6 +3757,40 @@ func (m *MtlsAuthSpec) Unmarshal(dAtA []byte) error { } } m.Enabled = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AcceptedClientCa", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AcceptedClientCa = append(m.AcceptedClientCa[:0], dAtA[iNdEx:postIndex]...) + if m.AcceptedClientCa == nil { + m.AcceptedClientCa = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -3459,6 +4360,119 @@ func (m *NamespaceSpec) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SearchAttributes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SearchAttributes == nil { + m.SearchAttributes = make(map[string]NamespaceSpec_SearchAttributeType) + } + var mapkey string + var mapvalue NamespaceSpec_SearchAttributeType + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthMessage + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthMessage + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= NamespaceSpec_SearchAttributeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + } else { + iNdEx = entryPreIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.SearchAttributes[mapkey] = mapvalue + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4073,7 +5087,7 @@ func (m *Namespace) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StateDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4101,7 +5115,7 @@ func (m *Namespace) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.StateDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 5: if wireType != 2 { @@ -4474,6 +5488,25 @@ func (m *Namespace) Unmarshal(dAtA []byte) error { } m.RegionStatus[mapkey] = mapvalue iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= v1.ResourceState(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4529,7 +5562,7 @@ func (m *NamespaceRegionStatus) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StateDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -4557,7 +5590,7 @@ func (m *NamespaceRegionStatus) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.StateDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -4591,6 +5624,497 @@ func (m *NamespaceRegionStatus) Unmarshal(dAtA []byte) error { } m.AsyncOperationId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= NamespaceRegionStatus_State(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExportSinkSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExportSinkSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExportSinkSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Enabled = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field S3", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.S3 == nil { + m.S3 = &v11.S3Spec{} + } + if err := m.S3.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Gcs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Gcs == nil { + m.Gcs = &v11.GCSSpec{} + } + if err := m.Gcs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExportSink) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExportSink: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExportSink: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ResourceVersion = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= v1.ResourceState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Spec == nil { + m.Spec = &ExportSinkSpec{} + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Health", wireType) + } + m.Health = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Health |= ExportSink_Health(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ErrorMessage", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ErrorMessage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestDataExportTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LatestDataExportTime == nil { + m.LatestDataExportTime = &types.Timestamp{} + } + if err := m.LatestDataExportTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LastHealthCheckTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.LastHealthCheckTime == nil { + m.LastHealthCheckTime = &types.Timestamp{} + } + if err := m.LastHealthCheckTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) diff --git a/protogen/api/cloud/namespace/v1/message_utils.pb.go b/protogen/api/cloud/namespace/v1/message_utils.pb.go deleted file mode 100644 index 3efb70b6..00000000 --- a/protogen/api/cloud/namespace/v1/message_utils.pb.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by protoc-gen-go-versioning. DO NOT EDIT. - -package namespace - -import ( - proto "github.com/gogo/protobuf/proto" - versioning "github.com/temporalio/tcld/utils" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// MergeMtlsAuthSpec merges versioned fields of MtlsAuthSpec -// Meant for incoming request messages. -func (m *MtlsAuthSpec) Merge(requestVersion string, getStored func() (*MtlsAuthSpec, error)) error { - var stored *MtlsAuthSpec - var fetchedStored bool - - // merge field 'Enabled' - // honor min_version='2024-05-13-00' - if requestVersion < "2024-05-13-00" { - if !versioning.IsZero(m.Enabled) { - return status.Errorf(codes.InvalidArgument, "field 'Enabled' is not supported in version %s", requestVersion) - } - if !fetchedStored { - var err error - stored, err = getStored() - if err != nil { - return err - } - fetchedStored = true - } - if stored != nil { - m.Enabled = stored.Enabled - } - - } - - return nil -} - -// SanitizeMtlsAuthSpec sanitizes versioned fields of MtlsAuthSpec -// Meant for outgoing response messages. -func (m *MtlsAuthSpec) Sanitize(requestVersion string) { - - // sanitize field 'Enabled' - // honor min_version='2024-05-13-00' - if requestVersion < "2024-05-13-00" { - if !versioning.IsZero(m.Enabled) { - m.Enabled = false - } - - } - -} - -// MergeNamespaceSpec merges versioned fields of NamespaceSpec -// Meant for incoming request messages. -func (m *NamespaceSpec) Merge(requestVersion string, getStored func() (*NamespaceSpec, error)) error { - var stored *NamespaceSpec - var fetchedStored bool - - // merge field 'MtlsAuth' - if m.MtlsAuth == nil { - m.MtlsAuth = new(MtlsAuthSpec) - } - if err := m.MtlsAuth.Merge(requestVersion, func() (*MtlsAuthSpec, error) { - if !fetchedStored { - var err error - stored, err = getStored() - if err != nil { - return nil, err - } - fetchedStored = true - } - return stored.MtlsAuth, nil - }); err != nil { - return err - } - - // merge field 'ApiKeyAuth' - // honor min_version='2024-05-13-00' - if requestVersion < "2024-05-13-00" { - if !versioning.IsZero(m.ApiKeyAuth) { - return status.Errorf(codes.InvalidArgument, "field 'ApiKeyAuth' is not supported in version %s", requestVersion) - } - if stored == nil { - var err error - stored, err = getStored() - if err != nil { - return err - } - } - if stored != nil { - m.ApiKeyAuth = proto.Clone(stored.ApiKeyAuth).(*ApiKeyAuthSpec) - } - - } - - return nil -} - -// SanitizeNamespaceSpec sanitizes versioned fields of NamespaceSpec -// Meant for outgoing response messages. -func (m *NamespaceSpec) Sanitize(requestVersion string) { - - // sanitize field 'MtlsAuth' - if m.MtlsAuth != nil { - m.MtlsAuth.Sanitize(requestVersion) - } - - // sanitize field 'ApiKeyAuth' - // honor min_version='2024-05-13-00' - if requestVersion < "2024-05-13-00" { - if !versioning.IsZero(m.ApiKeyAuth) { - m.ApiKeyAuth = nil - } - - } - -} diff --git a/protogen/api/cloud/operation/v1/message.pb.go b/protogen/api/cloud/operation/v1/message.pb.go index 39af4ebe..f6236eab 100644 --- a/protogen/api/cloud/operation/v1/message.pb.go +++ b/protogen/api/cloud/operation/v1/message.pb.go @@ -11,6 +11,7 @@ import ( math "math" math_bits "math/bits" reflect "reflect" + strconv "strconv" strings "strings" ) @@ -25,17 +26,56 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +type AsyncOperation_State int32 + +const ( + STATE_UNSPECIFIED AsyncOperation_State = 0 + STATE_PENDING AsyncOperation_State = 1 + STATE_IN_PROGRESS AsyncOperation_State = 2 + STATE_FAILED AsyncOperation_State = 3 + STATE_CANCELLED AsyncOperation_State = 4 + STATE_FULFILLED AsyncOperation_State = 5 +) + +var AsyncOperation_State_name = map[int32]string{ + 0: "StateUnspecified", + 1: "StatePending", + 2: "StateInProgress", + 3: "StateFailed", + 4: "StateCancelled", + 5: "StateFulfilled", +} + +var AsyncOperation_State_value = map[string]int32{ + "StateUnspecified": 0, + "StatePending": 1, + "StateInProgress": 2, + "StateFailed": 3, + "StateCancelled": 4, + "StateFulfilled": 5, +} + +func (AsyncOperation_State) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_e895f88c45383e9d, []int{0, 0} +} + type AsyncOperation struct { // The operation id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The current state of this operation // Possible values are: pending, in_progress, failed, cancelled, fulfilled - State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` + // Deprecated: Use the state field instead. + StateDeprecated string `protobuf:"bytes,2,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` // Deprecated: Do not use. + // The current state of this operation. + // temporal:enums:replaces=state_deprecated + State AsyncOperation_State `protobuf:"varint,9,opt,name=state,proto3,enum=temporal.api.cloud.operation.v1.AsyncOperation_State" json:"state,omitempty"` // The recommended duration to check back for an update in the operation's state CheckDuration *types.Duration `protobuf:"bytes,3,opt,name=check_duration,json=checkDuration,proto3" json:"check_duration,omitempty"` // The type of operation being performed OperationType string `protobuf:"bytes,4,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"` // The input to the operation being performed + // + // (-- api-linter: core::0146::any=disabled --) OperationInput *types.Any `protobuf:"bytes,5,opt,name=operation_input,json=operationInput,proto3" json:"operation_input,omitempty"` // If the operation failed, the reason for the failure FailureReason string `protobuf:"bytes,6,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"` @@ -84,13 +124,21 @@ func (m *AsyncOperation) GetId() string { return "" } -func (m *AsyncOperation) GetState() string { +// Deprecated: Do not use. +func (m *AsyncOperation) GetStateDeprecated() string { if m != nil { - return m.State + return m.StateDeprecated } return "" } +func (m *AsyncOperation) GetState() AsyncOperation_State { + if m != nil { + return m.State + } + return STATE_UNSPECIFIED +} + func (m *AsyncOperation) GetCheckDuration() *types.Duration { if m != nil { return m.CheckDuration @@ -134,6 +182,7 @@ func (m *AsyncOperation) GetFinishedTime() *types.Timestamp { } func init() { + proto.RegisterEnum("temporal.api.cloud.operation.v1.AsyncOperation_State", AsyncOperation_State_name, AsyncOperation_State_value) proto.RegisterType((*AsyncOperation)(nil), "temporal.api.cloud.operation.v1.AsyncOperation") } @@ -142,34 +191,53 @@ func init() { } var fileDescriptor_e895f88c45383e9d = []byte{ - // 399 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x31, 0x8f, 0xd3, 0x30, - 0x18, 0x86, 0xe3, 0x1e, 0x77, 0x80, 0xef, 0x1a, 0x24, 0xeb, 0x86, 0x5c, 0x07, 0xdf, 0x09, 0x09, - 0xe9, 0x16, 0x6c, 0x1d, 0x8c, 0xe8, 0x04, 0x87, 0x58, 0x98, 0x90, 0xa2, 0x4e, 0x2c, 0x91, 0x9b, - 0xb8, 0xa9, 0x45, 0x12, 0x5b, 0xb1, 0x53, 0x29, 0x1b, 0x0b, 0x3b, 0x3f, 0x83, 0x9f, 0xc2, 0xd8, - 0xb1, 0x23, 0x4d, 0x17, 0xc6, 0xfe, 0x04, 0x14, 0x27, 0x4e, 0xa5, 0x56, 0xe8, 0xc6, 0xef, 0xfd, - 0x9e, 0x37, 0x8f, 0x63, 0x19, 0xbe, 0x36, 0x3c, 0x57, 0xb2, 0x64, 0x19, 0x65, 0x4a, 0x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0xc1, 0x59, 0x67, 0xe9, 0xd3, 0xd0, 0x86, 0xe8, 0x1e, 0x5e, 0x68, - 0xc3, 0x4a, 0xc3, 0x93, 0xa8, 0xbd, 0xbd, 0xe0, 0xa9, 0x55, 0x4c, 0x8e, 0x14, 0x53, 0x77, 0xb5, - 0xe1, 0x79, 0xcf, 0xb7, 0x09, 0x7a, 0x0f, 0xc7, 0x73, 0x51, 0x08, 0xbd, 0x70, 0xfd, 0x67, 0x8f, - 0xf6, 0x2f, 0x5c, 0xa1, 0x8d, 0x3e, 0xf2, 0xd5, 0x06, 0x7b, 0xeb, 0x0d, 0xf6, 0x76, 0x1b, 0x0c, - 0xbe, 0x37, 0x18, 0xfc, 0x6a, 0x30, 0xf8, 0xdd, 0x60, 0xb0, 0x6a, 0x30, 0xf8, 0xd3, 0x60, 0xf0, - 0xb7, 0xc1, 0xde, 0xae, 0xc1, 0xe0, 0xe7, 0x16, 0x7b, 0xab, 0x2d, 0xf6, 0xd6, 0x5b, 0xec, 0x7d, - 0xa5, 0xa9, 0x24, 0xc3, 0xeb, 0x11, 0xf2, 0x3f, 0xef, 0xed, 0xdd, 0x30, 0xcc, 0xce, 0xec, 0x41, - 0xde, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x89, 0x4d, 0x07, 0xb4, 0xa3, 0x02, 0x00, 0x00, + // 589 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x4f, 0x4f, 0xdb, 0x30, + 0x18, 0x87, 0xe3, 0x40, 0xd9, 0x30, 0x6d, 0x29, 0xde, 0x26, 0x05, 0x0e, 0x86, 0x21, 0x21, 0x71, + 0xc1, 0x51, 0x99, 0x76, 0xc9, 0x84, 0xb6, 0xd0, 0xa6, 0x28, 0x1a, 0x2b, 0x55, 0x5a, 0x38, 0xec, + 0x12, 0x85, 0xc6, 0x14, 0x6b, 0x6d, 0x62, 0x25, 0x2e,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xb7, 0xdd, 0x8e, 0x73, 0x74, 0xe0, 0x58, 0xdd, 0x6e, 0x4d, 0x45, + 0x35, 0x58, 0xce, 0x70, 0xcb, 0xb4, 0x0f, 0xad, 0x66, 0x6d, 0x0e, 0x3d, 0x81, 0xcb, 0x19, 0x69, + 0x98, 0xed, 0x86, 0x75, 0x98, 0xc2, 0xf9, 0x02, 0xb6, 0x8e, 0x0f, 0x5b, 0xb6, 0x84, 0xa5, 0xfd, + 0x1f, 0xe0, 0xf2, 0x1a, 0x2b, 0x57, 0xd7, 0x58, 0xb9, 0xbd, 0xc6, 0xe0, 0x63, 0x82, 0xc1, 0x97, + 0x04, 0x83, 0x6f, 0x09, 0x06, 0x97, 0x09, 0x06, 0xdf, 0x13, 0x0c, 0x7e, 0x26, 0x58, 0xb9, 0x4d, + 0x30, 0xf8, 0x7c, 0x83, 0x95, 0xcb, 0x1b, 0xac, 0x5c, 0xdd, 0x60, 0x05, 0x6e, 0xb2, 0xf0, 0xa1, + 0xc7, 0xb4, 0x5f, 0x7e, 0x97, 0xfd, 0xad, 0x4e, 0x7a, 0x14, 0x1d, 0xf0, 0x5e, 0x1f, 0xfc, 0xd5, + 0xc3, 0xc2, 0xff, 0xfc, 0xc8, 0x57, 0xb3, 0xc5, 0x57, 0xf5, 0x79, 0x6f, 0xaa, 0xb3, 0x90, 0x98, + 0x9c, 0x91, 0x86, 0x0c, 0x29, 0xde, 0xe7, 0x49, 0xfd, 0x97, 0xba, 0x55, 0x38, 0x86, 0x61, 0x72, + 0x66, 0x18, 0xd2, 0x32, 0x8c, 0x99, 0x66, 0x18, 0x27, 0xf5, 0xd3, 0x05, 0x79, 0x21, 0x2f, 0xfe, + 0x04, 0x00, 0x00, 0xff, 0xff, 0x10, 0x48, 0xbd, 0xcb, 0x11, 0x04, 0x00, 0x00, } +func (x AsyncOperation_State) String() string { + s, ok := AsyncOperation_State_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} func (this *AsyncOperation) Equal(that interface{}) bool { if that == nil { return this == nil @@ -192,6 +260,9 @@ func (this *AsyncOperation) Equal(that interface{}) bool { if this.Id != that1.Id { return false } + if this.StateDeprecated != that1.StateDeprecated { + return false + } if this.State != that1.State { return false } @@ -219,9 +290,10 @@ func (this *AsyncOperation) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 12) + s := make([]string, 0, 13) s = append(s, "&operation.AsyncOperation{") s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") + s = append(s, "StateDeprecated: "+fmt.Sprintf("%#v", this.StateDeprecated)+",\n") s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") if this.CheckDuration != nil { s = append(s, "CheckDuration: "+fmt.Sprintf("%#v", this.CheckDuration)+",\n") @@ -268,6 +340,11 @@ func (m *AsyncOperation) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.State != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x48 + } if m.FinishedTime != nil { { size, err := m.FinishedTime.MarshalToSizedBuffer(dAtA[:i]) @@ -330,10 +407,10 @@ func (m *AsyncOperation) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintMessage(dAtA, i, uint64(len(m.State))) + if len(m.StateDeprecated) > 0 { + i -= len(m.StateDeprecated) + copy(dAtA[i:], m.StateDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.StateDeprecated))) i-- dAtA[i] = 0x12 } @@ -368,7 +445,7 @@ func (m *AsyncOperation) Size() (n int) { if l > 0 { n += 1 + l + sovMessage(uint64(l)) } - l = len(m.State) + l = len(m.StateDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -396,6 +473,9 @@ func (m *AsyncOperation) Size() (n int) { l = m.FinishedTime.Size() n += 1 + l + sovMessage(uint64(l)) } + if m.State != 0 { + n += 1 + sovMessage(uint64(m.State)) + } return n } @@ -411,13 +491,14 @@ func (this *AsyncOperation) String() string { } s := strings.Join([]string{`&AsyncOperation{`, `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `State:` + fmt.Sprintf("%v", this.State) + `,`, + `StateDeprecated:` + fmt.Sprintf("%v", this.StateDeprecated) + `,`, `CheckDuration:` + strings.Replace(fmt.Sprintf("%v", this.CheckDuration), "Duration", "types.Duration", 1) + `,`, `OperationType:` + fmt.Sprintf("%v", this.OperationType) + `,`, `OperationInput:` + strings.Replace(fmt.Sprintf("%v", this.OperationInput), "Any", "types.Any", 1) + `,`, `FailureReason:` + fmt.Sprintf("%v", this.FailureReason) + `,`, `StartedTime:` + strings.Replace(fmt.Sprintf("%v", this.StartedTime), "Timestamp", "types.Timestamp", 1) + `,`, `FinishedTime:` + strings.Replace(fmt.Sprintf("%v", this.FinishedTime), "Timestamp", "types.Timestamp", 1) + `,`, + `State:` + fmt.Sprintf("%v", this.State) + `,`, `}`, }, "") return s @@ -493,7 +574,7 @@ func (m *AsyncOperation) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StateDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -521,7 +602,7 @@ func (m *AsyncOperation) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.State = string(dAtA[iNdEx:postIndex]) + m.StateDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -731,6 +812,25 @@ func (m *AsyncOperation) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= AsyncOperation_State(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) diff --git a/protogen/api/cloud/region/v1/message.pb.go b/protogen/api/cloud/region/v1/message.pb.go index ed5f3704..9a3794bc 100644 --- a/protogen/api/cloud/region/v1/message.pb.go +++ b/protogen/api/cloud/region/v1/message.pb.go @@ -10,6 +10,7 @@ import ( math "math" math_bits "math/bits" reflect "reflect" + strconv "strconv" strings "strings" ) @@ -24,12 +25,41 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +// The cloud provider that's hosting the region. +type Region_CloudProvider int32 + +const ( + CLOUD_PROVIDER_UNSPECIFIED Region_CloudProvider = 0 + CLOUD_PROVIDER_AWS Region_CloudProvider = 1 + CLOUD_PROVIDER_GCP Region_CloudProvider = 2 +) + +var Region_CloudProvider_name = map[int32]string{ + 0: "CloudProviderUnspecified", + 1: "CloudProviderAws", + 2: "CloudProviderGcp", +} + +var Region_CloudProvider_value = map[string]int32{ + "CloudProviderUnspecified": 0, + "CloudProviderAws": 1, + "CloudProviderGcp": 2, +} + +func (Region_CloudProvider) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_ec4b65943296208a, []int{0, 0} +} + type Region struct { // The id of the temporal cloud region. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The name of the cloud provider that's hosting the region. // Currently only "aws" is supported. - CloudProvider string `protobuf:"bytes,2,opt,name=cloud_provider,json=cloudProvider,proto3" json:"cloud_provider,omitempty"` + // Deprecated: Use cloud_provider instead. + CloudProviderDeprecated string `protobuf:"bytes,2,opt,name=cloud_provider_deprecated,json=cloudProviderDeprecated,proto3" json:"cloud_provider_deprecated,omitempty"` // Deprecated: Do not use. + // The cloud provider that's hosting the region. + // temporal:enums:replaces=cloud_provider_deprecated + CloudProvider Region_CloudProvider `protobuf:"varint,5,opt,name=cloud_provider,json=cloudProvider,proto3,enum=temporal.api.cloud.region.v1.Region_CloudProvider" json:"cloud_provider,omitempty"` // The region identifier as defined by the cloud provider. CloudProviderRegion string `protobuf:"bytes,3,opt,name=cloud_provider_region,json=cloudProviderRegion,proto3" json:"cloud_provider_region,omitempty"` // The human readable location of the region. @@ -75,13 +105,21 @@ func (m *Region) GetId() string { return "" } -func (m *Region) GetCloudProvider() string { +// Deprecated: Do not use. +func (m *Region) GetCloudProviderDeprecated() string { if m != nil { - return m.CloudProvider + return m.CloudProviderDeprecated } return "" } +func (m *Region) GetCloudProvider() Region_CloudProvider { + if m != nil { + return m.CloudProvider + } + return CLOUD_PROVIDER_UNSPECIFIED +} + func (m *Region) GetCloudProviderRegion() string { if m != nil { return m.CloudProviderRegion @@ -97,6 +135,7 @@ func (m *Region) GetLocation() string { } func init() { + proto.RegisterEnum("temporal.api.cloud.region.v1.Region_CloudProvider", Region_CloudProvider_name, Region_CloudProvider_value) proto.RegisterType((*Region)(nil), "temporal.api.cloud.region.v1.Region") } @@ -105,25 +144,42 @@ func init() { } var fileDescriptor_ec4b65943296208a = []byte{ - // 244 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x2a, 0x49, 0xcd, 0x2d, - 0xc8, 0x2f, 0x4a, 0xcc, 0xd1, 0x4f, 0x2c, 0xc8, 0xd4, 0x4f, 0xce, 0xc9, 0x2f, 0x4d, 0xd1, 0x2f, - 0x4a, 0x4d, 0xcf, 0xcc, 0xcf, 0xd3, 0x2f, 0x33, 0xd4, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, - 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x81, 0xa9, 0xd5, 0x4b, 0x2c, 0xc8, 0xd4, 0x03, - 0xab, 0xd5, 0x83, 0xa8, 0xd5, 0x2b, 0x33, 0x54, 0xea, 0x67, 0xe4, 0x62, 0x0b, 0x02, 0xf3, 0x84, - 0xf8, 0xb8, 0x98, 0x32, 0x53, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x98, 0x32, 0x53, 0x84, - 0x54, 0xb9, 0xf8, 0xc0, 0xaa, 0xe3, 0x0b, 0x8a, 0xf2, 0xcb, 0x32, 0x53, 0x52, 0x8b, 0x24, 0x98, - 0xc0, 0x72, 0xbc, 0x60, 0xd1, 0x00, 0xa8, 0xa0, 0x90, 0x11, 0x97, 0x28, 0xaa, 0xb2, 0x78, 0x88, - 0xe9, 0x12, 0xcc, 0x60, 0xd5, 0xc2, 0x28, 0xaa, 0xa1, 0x56, 0x49, 0x71, 0x71, 0xe4, 0xe4, 0x27, - 0x27, 0x96, 0x80, 0x94, 0xb1, 0x80, 0x95, 0xc1, 0xf9, 0x4e, 0xf1, 0x17, 0x1e, 0xca, 0x31, 0xdc, - 0x78, 0x28, 0xc7, 0xf0, 0xe1, 0xa1, 0x1c, 0x63, 0xc3, 0x23, 0x39, 0xc6, 0x15, 0x8f, 0xe4, 0x18, - 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x17, 0x8f, 0xe4, - 0x18, 0x3e, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39, 0x86, 0x1b, 0x8f, - 0xe5, 0x18, 0xa2, 0x34, 0xd3, 0xf3, 0xf5, 0xe0, 0x1e, 0xcd, 0xcc, 0xc7, 0x16, 0x2e, 0xd6, 0x10, - 0x56, 0x12, 0x1b, 0x38, 0x5c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbd, 0xac, 0x1a, 0xad, - 0x45, 0x01, 0x00, 0x00, + // 402 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0xd2, 0x41, 0xc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, 0x96, 0x19, 0xc6, 0x06, 0xf6, 0xf7, + 0x82, 0x1e, 0xb2, 0xd7, 0x37, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1b, 0x02, 0x42, 0xcf, 0x92, 0x02, + 0x00, 0x00, } +func (x Region_CloudProvider) String() string { + s, ok := Region_CloudProvider_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} func (this *Region) Equal(that interface{}) bool { if that == nil { return this == nil @@ -146,6 +202,9 @@ func (this *Region) Equal(that interface{}) bool { if this.Id != that1.Id { return false } + if this.CloudProviderDeprecated != that1.CloudProviderDeprecated { + return false + } if this.CloudProvider != that1.CloudProvider { return false } @@ -161,9 +220,10 @@ func (this *Region) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 8) + s := make([]string, 0, 9) s = append(s, "®ion.Region{") s = append(s, "Id: "+fmt.Sprintf("%#v", this.Id)+",\n") + s = append(s, "CloudProviderDeprecated: "+fmt.Sprintf("%#v", this.CloudProviderDeprecated)+",\n") s = append(s, "CloudProvider: "+fmt.Sprintf("%#v", this.CloudProvider)+",\n") s = append(s, "CloudProviderRegion: "+fmt.Sprintf("%#v", this.CloudProviderRegion)+",\n") s = append(s, "Location: "+fmt.Sprintf("%#v", this.Location)+",\n") @@ -198,6 +258,11 @@ func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.CloudProvider != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.CloudProvider)) + i-- + dAtA[i] = 0x28 + } if len(m.Location) > 0 { i -= len(m.Location) copy(dAtA[i:], m.Location) @@ -212,10 +277,10 @@ func (m *Region) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.CloudProvider) > 0 { - i -= len(m.CloudProvider) - copy(dAtA[i:], m.CloudProvider) - i = encodeVarintMessage(dAtA, i, uint64(len(m.CloudProvider))) + if len(m.CloudProviderDeprecated) > 0 { + i -= len(m.CloudProviderDeprecated) + copy(dAtA[i:], m.CloudProviderDeprecated) + i = encodeVarintMessage(dAtA, i, uint64(len(m.CloudProviderDeprecated))) i-- dAtA[i] = 0x12 } @@ -250,7 +315,7 @@ func (m *Region) Size() (n int) { if l > 0 { n += 1 + l + sovMessage(uint64(l)) } - l = len(m.CloudProvider) + l = len(m.CloudProviderDeprecated) if l > 0 { n += 1 + l + sovMessage(uint64(l)) } @@ -262,6 +327,9 @@ func (m *Region) Size() (n int) { if l > 0 { n += 1 + l + sovMessage(uint64(l)) } + if m.CloudProvider != 0 { + n += 1 + sovMessage(uint64(m.CloudProvider)) + } return n } @@ -277,9 +345,10 @@ func (this *Region) String() string { } s := strings.Join([]string{`&Region{`, `Id:` + fmt.Sprintf("%v", this.Id) + `,`, - `CloudProvider:` + fmt.Sprintf("%v", this.CloudProvider) + `,`, + `CloudProviderDeprecated:` + fmt.Sprintf("%v", this.CloudProviderDeprecated) + `,`, `CloudProviderRegion:` + fmt.Sprintf("%v", this.CloudProviderRegion) + `,`, `Location:` + fmt.Sprintf("%v", this.Location) + `,`, + `CloudProvider:` + fmt.Sprintf("%v", this.CloudProvider) + `,`, `}`, }, "") return s @@ -355,7 +424,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CloudProvider", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CloudProviderDeprecated", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -383,7 +452,7 @@ func (m *Region) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.CloudProvider = string(dAtA[iNdEx:postIndex]) + m.CloudProviderDeprecated = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -449,6 +518,25 @@ func (m *Region) Unmarshal(dAtA []byte) error { } m.Location = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CloudProvider", wireType) + } + m.CloudProvider = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CloudProvider |= Region_CloudProvider(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) diff --git a/protogen/api/cloud/resource/v1/message.pb.go b/protogen/api/cloud/resource/v1/message.pb.go index 7d09596c..5077ae74 100644 --- a/protogen/api/cloud/resource/v1/message.pb.go +++ b/protogen/api/cloud/resource/v1/message.pb.go @@ -74,7 +74,7 @@ func init() { } func init() { - proto.RegisterFile("temporal/api/cloud/resource/v1/message.proto", fileDescriptor_1f9ad71e764361c3) + proto.RegisterFile("temporal/temporal/api/cloud/resource/v1/message.proto", fileDescriptor_1f9ad71e764361c3) } var fileDescriptor_1f9ad71e764361c3 = []byte{ diff --git a/protogen/api/cloud/sink/v1/message.pb.go b/protogen/api/cloud/sink/v1/message.pb.go new file mode 100644 index 00000000..23f7bf9f --- /dev/null +++ b/protogen/api/cloud/sink/v1/message.pb.go @@ -0,0 +1,955 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: temporal/api/cloud/sink/v1/message.proto + +package sink + +import ( + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" + reflect "reflect" + strings "strings" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type S3Spec struct { + // The IAM role that Temporal Cloud assumes for writing records to the customer's S3 bucket. + RoleName string `protobuf:"bytes,1,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` + // The name of the destination S3 bucket where Temporal will send data. + BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` + // The region where the S3 bucket is located. + Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` + // The AWS Key Management Service (KMS) ARN used for encryption. + KmsArn string `protobuf:"bytes,4,opt,name=kms_arn,json=kmsArn,proto3" json:"kms_arn,omitempty"` + // The AWS account ID associated with the S3 bucket and the assumed role. + AwsAccountId string `protobuf:"bytes,5,opt,name=aws_account_id,json=awsAccountId,proto3" json:"aws_account_id,omitempty"` +} + +func (m *S3Spec) Reset() { *m = S3Spec{} } +func (*S3Spec) ProtoMessage() {} +func (*S3Spec) Descriptor() ([]byte, []int) { + return fileDescriptor_b248175bea0f2dac, []int{0} +} +func (m *S3Spec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *S3Spec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_S3Spec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *S3Spec) XXX_Merge(src proto.Message) { + xxx_messageInfo_S3Spec.Merge(m, src) +} +func (m *S3Spec) XXX_Size() int { + return m.Size() +} +func (m *S3Spec) XXX_DiscardUnknown() { + xxx_messageInfo_S3Spec.DiscardUnknown(m) +} + +var xxx_messageInfo_S3Spec proto.InternalMessageInfo + +func (m *S3Spec) GetRoleName() string { + if m != nil { + return m.RoleName + } + return "" +} + +func (m *S3Spec) GetBucketName() string { + if m != nil { + return m.BucketName + } + return "" +} + +func (m *S3Spec) GetRegion() string { + if m != nil { + return m.Region + } + return "" +} + +func (m *S3Spec) GetKmsArn() string { + if m != nil { + return m.KmsArn + } + return "" +} + +func (m *S3Spec) GetAwsAccountId() string { + if m != nil { + return m.AwsAccountId + } + return "" +} + +type GCSSpec struct { + // The customer service account ID that Temporal Cloud impersonates for writing records to the customer's GCS bucket. + SaId string `protobuf:"bytes,1,opt,name=sa_id,json=saId,proto3" json:"sa_id,omitempty"` + // The name of the destination GCS bucket where Temporal will send data. + BucketName string `protobuf:"bytes,2,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` + // The GCP project ID associated with the GCS bucket and service account. + GcpProjectId string `protobuf:"bytes,3,opt,name=gcp_project_id,json=gcpProjectId,proto3" json:"gcp_project_id,omitempty"` +} + +func (m *GCSSpec) Reset() { *m = GCSSpec{} } +func (*GCSSpec) ProtoMessage() {} +func (*GCSSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_b248175bea0f2dac, []int{1} +} +func (m *GCSSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GCSSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GCSSpec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GCSSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_GCSSpec.Merge(m, src) +} +func (m *GCSSpec) XXX_Size() int { + return m.Size() +} +func (m *GCSSpec) XXX_DiscardUnknown() { + xxx_messageInfo_GCSSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_GCSSpec proto.InternalMessageInfo + +func (m *GCSSpec) GetSaId() string { + if m != nil { + return m.SaId + } + return "" +} + +func (m *GCSSpec) GetBucketName() string { + if m != nil { + return m.BucketName + } + return "" +} + +func (m *GCSSpec) GetGcpProjectId() string { + if m != nil { + return m.GcpProjectId + } + return "" +} + +func init() { + proto.RegisterType((*S3Spec)(nil), "temporal.api.cloud.sink.v1.S3Spec") + proto.RegisterType((*GCSSpec)(nil), "temporal.api.cloud.sink.v1.GCSSpec") +} + +func init() { + proto.RegisterFile("temporal/api/cloud/sink/v1/message.proto", fileDescriptor_b248175bea0f2dac) +} + +var fileDescriptor_b248175bea0f2dac = []byte{ + // 386 bytes of a gz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 0x90, 0xc6, 0x20, 0x64, 0x15, 0xac, + 0x3b, 0x66, 0xf8, 0xe9, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6b, 0xba, 0x47, 0xb3, 0x24, 0x02, + 0x00, 0x00, +} + +func (this *S3Spec) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*S3Spec) + if !ok { + that2, ok := that.(S3Spec) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.RoleName != that1.RoleName { + return false + } + if this.BucketName != that1.BucketName { + return false + } + if this.Region != that1.Region { + return false + } + if this.KmsArn != that1.KmsArn { + return false + } + if this.AwsAccountId != that1.AwsAccountId { + return false + } + return true +} +func (this *GCSSpec) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*GCSSpec) + if !ok { + that2, ok := that.(GCSSpec) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.SaId != that1.SaId { + return false + } + if this.BucketName != that1.BucketName { + return false + } + if this.GcpProjectId != that1.GcpProjectId { + return false + } + return true +} +func (this *S3Spec) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 9) + s = append(s, "&sink.S3Spec{") + s = append(s, "RoleName: "+fmt.Sprintf("%#v", this.RoleName)+",\n") + s = append(s, "BucketName: "+fmt.Sprintf("%#v", this.BucketName)+",\n") + s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") + s = append(s, "KmsArn: "+fmt.Sprintf("%#v", this.KmsArn)+",\n") + s = append(s, "AwsAccountId: "+fmt.Sprintf("%#v", this.AwsAccountId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GCSSpec) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&sink.GCSSpec{") + s = append(s, "SaId: "+fmt.Sprintf("%#v", this.SaId)+",\n") + s = append(s, "BucketName: "+fmt.Sprintf("%#v", this.BucketName)+",\n") + s = append(s, "GcpProjectId: "+fmt.Sprintf("%#v", this.GcpProjectId)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringMessage(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func (m *S3Spec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *S3Spec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *S3Spec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AwsAccountId) > 0 { + i -= len(m.AwsAccountId) + copy(dAtA[i:], m.AwsAccountId) + i = encodeVarintMessage(dAtA, i, uint64(len(m.AwsAccountId))) + i-- + dAtA[i] = 0x2a + } + if len(m.KmsArn) > 0 { + i -= len(m.KmsArn) + copy(dAtA[i:], m.KmsArn) + i = encodeVarintMessage(dAtA, i, uint64(len(m.KmsArn))) + i-- + dAtA[i] = 0x22 + } + if len(m.Region) > 0 { + i -= len(m.Region) + copy(dAtA[i:], m.Region) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Region))) + i-- + dAtA[i] = 0x1a + } + if len(m.BucketName) > 0 { + i -= len(m.BucketName) + copy(dAtA[i:], m.BucketName) + i = encodeVarintMessage(dAtA, i, uint64(len(m.BucketName))) + i-- + dAtA[i] = 0x12 + } + if len(m.RoleName) > 0 { + i -= len(m.RoleName) + copy(dAtA[i:], m.RoleName) + i = encodeVarintMessage(dAtA, i, uint64(len(m.RoleName))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *GCSSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GCSSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GCSSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.GcpProjectId) > 0 { + i -= len(m.GcpProjectId) + copy(dAtA[i:], m.GcpProjectId) + i = encodeVarintMessage(dAtA, i, uint64(len(m.GcpProjectId))) + i-- + dAtA[i] = 0x1a + } + if len(m.BucketName) > 0 { + i -= len(m.BucketName) + copy(dAtA[i:], m.BucketName) + i = encodeVarintMessage(dAtA, i, uint64(len(m.BucketName))) + i-- + dAtA[i] = 0x12 + } + if len(m.SaId) > 0 { + i -= len(m.SaId) + copy(dAtA[i:], m.SaId) + i = encodeVarintMessage(dAtA, i, uint64(len(m.SaId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintMessage(dAtA []byte, offset int, v uint64) int { + offset -= sovMessage(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *S3Spec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.RoleName) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.BucketName) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.Region) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.KmsArn) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.AwsAccountId) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *GCSSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SaId) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.BucketName) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + l = len(m.GcpProjectId) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func sovMessage(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMessage(x uint64) (n int) { + return sovMessage(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *S3Spec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&S3Spec{`, + `RoleName:` + fmt.Sprintf("%v", this.RoleName) + `,`, + `BucketName:` + fmt.Sprintf("%v", this.BucketName) + `,`, + `Region:` + fmt.Sprintf("%v", this.Region) + `,`, + `KmsArn:` + fmt.Sprintf("%v", this.KmsArn) + `,`, + `AwsAccountId:` + fmt.Sprintf("%v", this.AwsAccountId) + `,`, + `}`, + }, "") + return s +} +func (this *GCSSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GCSSpec{`, + `SaId:` + fmt.Sprintf("%v", this.SaId) + `,`, + `BucketName:` + fmt.Sprintf("%v", this.BucketName) + `,`, + `GcpProjectId:` + fmt.Sprintf("%v", this.GcpProjectId) + `,`, + `}`, + }, "") + return s +} +func valueToStringMessage(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *S3Spec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: S3Spec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: S3Spec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoleName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RoleName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BucketName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BucketName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Region = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KmsArn", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KmsArn = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AwsAccountId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AwsAccountId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GCSSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GCSSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GCSSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SaId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SaId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BucketName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BucketName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GcpProjectId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GcpProjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMessage(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMessage + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMessage + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMessage + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") +) diff --git a/protogen/api/cloud/usage/v1/message.pb.go b/protogen/api/cloud/usage/v1/message.pb.go new file mode 100644 index 00000000..7c7757cd --- /dev/null +++ b/protogen/api/cloud/usage/v1/message.pb.go @@ -0,0 +1,1566 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: temporal/api/cloud/usage/v1/message.proto + +package usage + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + types "github.com/gogo/protobuf/types" + io "io" + math "math" + math_bits "math/bits" + reflect "reflect" + strconv "strconv" + strings "strings" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type RecordType int32 + +const ( + RECORD_TYPE_UNSPECIFIED RecordType = 0 + RECORD_TYPE_ACTIONS RecordType = 1 + RECORD_TYPE_ACTIVE_STORAGE RecordType = 2 + RECORD_TYPE_RETAINED_STORAGE RecordType = 3 +) + +var RecordType_name = map[int32]string{ + 0: "Unspecified", + 1: "Actions", + 2: "ActiveStorage", + 3: "RetainedStorage", +} + +var RecordType_value = map[string]int32{ + "Unspecified": 0, + "Actions": 1, + "ActiveStorage": 2, + "RetainedStorage": 3, +} + +func (RecordType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_9315f0953a0b0c9b, []int{0} +} + +type RecordUnit int32 + +const ( + RECORD_UNIT_UNSPECIFIED RecordUnit = 0 + RECORD_UNIT_NUMBER RecordUnit = 1 + RECORD_UNIT_BYTE_SECONDS RecordUnit = 2 +) + +var RecordUnit_name = map[int32]string{ + 0: "Unspecified", + 1: "Number", + 2: "ByteSeconds", +} + +var RecordUnit_value = map[string]int32{ + "Unspecified": 0, + "Number": 1, + "ByteSeconds": 2, +} + +func (RecordUnit) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_9315f0953a0b0c9b, []int{1} +} + +type GroupByKey int32 + +const ( + GROUP_BY_KEY_UNSPECIFIED GroupByKey = 0 + GROUP_BY_KEY_NAMESPACE GroupByKey = 1 +) + +var GroupByKey_name = map[int32]string{ + 0: "Unspecified", + 1: "Namespace", +} + +var GroupByKey_value = map[string]int32{ + "Unspecified": 0, + "Namespace": 1, +} + +func (GroupByKey) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_9315f0953a0b0c9b, []int{2} +} + +type Summary struct { + // Start of UTC day for now (inclusive) + StartTime *types.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // End of UTC day for now (exclusive) + EndTime *types.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Records grouped by namespace + RecordGroups []*RecordGroup `protobuf:"bytes,3,rep,name=record_groups,json=recordGroups,proto3" json:"record_groups,omitempty"` + // True if data for given time window is not fully available yet (e.g. delays) + // When true, records could be added in the future (until false) + Incomplete bool `protobuf:"varint,4,opt,name=incomplete,proto3" json:"incomplete,omitempty"` +} + +func (m *Summary) Reset() { *m = Summary{} } +func (*Summary) ProtoMessage() {} +func (*Summary) Descriptor() ([]byte, []int) { + return fileDescriptor_9315f0953a0b0c9b, []int{0} +} +func (m *Summary) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Summary.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Summary) XXX_Merge(src proto.Message) { + xxx_messageInfo_Summary.Merge(m, src) +} +func (m *Summary) XXX_Size() int { + return m.Size() +} +func (m *Summary) XXX_DiscardUnknown() { + xxx_messageInfo_Summary.DiscardUnknown(m) +} + +var xxx_messageInfo_Summary proto.InternalMessageInfo + +func (m *Summary) GetStartTime() *types.Timestamp { + if m != nil { + return m.StartTime + } + return nil +} + +func (m *Summary) GetEndTime() *types.Timestamp { + if m != nil { + return m.EndTime + } + return nil +} + +func (m *Summary) GetRecordGroups() []*RecordGroup { + if m != nil { + return m.RecordGroups + } + return nil +} + +func (m *Summary) GetIncomplete() bool { + if m != nil { + return m.Incomplete + } + return false +} + +type RecordGroup struct { + // GroupBy keys and their values for this record group. Multiple fields are combined with logical AND. + GroupBys []*GroupBy `protobuf:"bytes,1,rep,name=group_bys,json=groupBys,proto3" json:"group_bys,omitempty"` + Records []*Record `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` +} + +func (m *RecordGroup) Reset() { *m = RecordGroup{} } +func (*RecordGroup) ProtoMessage() {} +func (*RecordGroup) Descriptor() ([]byte, []int) { + return fileDescriptor_9315f0953a0b0c9b, []int{1} +} +func (m *RecordGroup) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RecordGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RecordGroup.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RecordGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_RecordGroup.Merge(m, src) +} +func (m *RecordGroup) XXX_Size() int { + return m.Size() +} +func (m *RecordGroup) XXX_DiscardUnknown() { + xxx_messageInfo_RecordGroup.DiscardUnknown(m) +} + +var xxx_messageInfo_RecordGroup proto.InternalMessageInfo + +func (m *RecordGroup) GetGroupBys() []*GroupBy { + if m != nil { + return m.GroupBys + } + return nil +} + +func (m *RecordGroup) GetRecords() []*Record { + if m != nil { + return m.Records + } + return nil +} + +type GroupBy struct { + Key GroupByKey `protobuf:"varint,1,opt,name=key,proto3,enum=temporal.api.cloud.usage.v1.GroupByKey" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *GroupBy) Reset() { *m = GroupBy{} } +func (*GroupBy) ProtoMessage() {} +func (*GroupBy) Descriptor() ([]byte, []int) { + return fileDescriptor_9315f0953a0b0c9b, []int{2} +} +func (m *GroupBy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GroupBy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GroupBy.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *GroupBy) XXX_Merge(src proto.Message) { + xxx_messageInfo_GroupBy.Merge(m, src) +} +func (m *GroupBy) XXX_Size() int { + return m.Size() +} +func (m *GroupBy) XXX_DiscardUnknown() { + xxx_messageInfo_GroupBy.DiscardUnknown(m) +} + +var xxx_messageInfo_GroupBy proto.InternalMessageInfo + +func (m *GroupBy) GetKey() GroupByKey { + if m != nil { + return m.Key + } + return GROUP_BY_KEY_UNSPECIFIED +} + +func (m *GroupBy) GetValue() string { + if m != nil { + return m.Value + } + return "" +} + +type Record struct { + Type RecordType `protobuf:"varint,1,opt,name=type,proto3,enum=temporal.api.cloud.usage.v1.RecordType" json:"type,omitempty"` + Unit RecordUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=temporal.api.cloud.usage.v1.RecordUnit" json:"unit,omitempty"` + Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *Record) Reset() { *m = Record{} } +func (*Record) ProtoMessage() {} +func (*Record) Descriptor() ([]byte, []int) { + return fileDescriptor_9315f0953a0b0c9b, []int{3} +} +func (m *Record) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Record.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Record) XXX_Merge(src proto.Message) { + xxx_messageInfo_Record.Merge(m, src) +} +func (m *Record) XXX_Size() int { + return m.Size() +} +func (m *Record) XXX_DiscardUnknown() { + xxx_messageInfo_Record.DiscardUnknown(m) +} + +var xxx_messageInfo_Record proto.InternalMessageInfo + +func (m *Record) GetType() RecordType { + if m != nil { + return m.Type + } + return RECORD_TYPE_UNSPECIFIED +} + +func (m *Record) GetUnit() RecordUnit { + if m != nil { + return m.Unit + } + return RECORD_UNIT_UNSPECIFIED +} + +func (m *Record) GetValue() float64 { + if m != nil { + return m.Value + } + return 0 +} + +func init() { + proto.RegisterEnum("temporal.api.cloud.usage.v1.RecordType", RecordType_name, RecordType_value) + proto.RegisterEnum("temporal.api.cloud.usage.v1.RecordUnit", RecordUnit_name, RecordUnit_value) + proto.RegisterEnum("temporal.api.cloud.usage.v1.GroupByKey", GroupByKey_name, GroupByKey_value) + proto.RegisterType((*Summary)(nil), "temporal.api.cloud.usage.v1.Summary") + proto.RegisterType((*RecordGroup)(nil), "temporal.api.cloud.usage.v1.RecordGroup") + proto.RegisterType((*GroupBy)(nil), "temporal.api.cloud.usage.v1.GroupBy") + proto.RegisterType((*Record)(nil), "temporal.api.cloud.usage.v1.Record") +} + +func init() { + proto.RegisterFile("temporal/api/cloud/usage/v1/message.proto", fileDescriptor_9315f0953a0b0c9b) +} + +var fileDescriptor_9315f0953a0b0c9b = []byte{ + // 655 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x4f, 0x13, 0x41, + 0x18, 0xc6, 0x3b, 0x2d, 0x52, 0x78, 0x41, 0xd3, 0x8c, 0x06, 0x9a, 0x82, 0x63, 0xad, 0x26, 0x54, + 0x0e, 0xdb, 0x14, 0xe3, 0x81, 0x25, 0x1e, 0xb6, 0xed, 0x40, 0x1a, 0xd2, 0x3f, 0x99, 0x6e, 0x49, + 0xca, 0x65, 0xb3, 0xd0, 0xb1, 0xd9, 0xd8, 0xed, 0x6e, 0xf6, 0x0f, 0xc9, 0xde, 0x3c, 0x78, 0xd7, + 0xa3, 0x1f, 0xc1, 0xf8, 0x49, 0x3c, 0xe2, 0x8d, 0xa3, 0x2c, 0x17, 0xc3, 0x89, 0x8f, 0x60, 0x76, + 0x96, 0xda, 0x95, 0x18, 0xec, 0x6d, 0x66, 0xde, 0xe7, 0xf7, 0xbc, 0xcf, 0xce, 0x64, 0x5f, 0x78, + 0xe5, 0x71, 0xd3, 0xb6, 0x1c, 0x7d, 0x5c, 0xd1, 0x6d, 0xa3, 0x72, 0x3a, 0xb6, 0xfc, 0x61, 0xc5, + 0x77, 0xf5, 0x11, 0xaf, 0x9c, 0x55, 0x2b, 0x26, 0x77, 0xa3, 0xa5, 0x64, 0x3b, 0x96, 0x67, 0xe1, + 0x8d, 0xa9, 0x54, 0xd2, 0x6d, 0x43, 0x12, 0x52, 0x49, 0x48, 0xa5, 0xb3, 0x6a, 0xe1, 0xd9, 0xc8, + 0xb2, 0x46, 0x63, 0x5e, 0x11, 0xd2, 0x13, 0xff, 0x5d, 0xc5, 0x33, 0x4c, 0xee, 0x7a, 0xba, 0x69, + 0xc7, 0x74, 0xe9, 0x1a, 0x41, 0xb6, 0xe7, 0x9b, 0xa6, 0xee, 0x04, 0x78, 0x17, 0xc0, 0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0x6e, 0x2e, 0x09, 0xfa, 0x10, 0x12, 0xf4, + 0x35, 0x24, 0xe8, 0x7b, 0x48, 0xd0, 0x79, 0x48, 0xd0, 0xcf, 0x90, 0xa0, 0x5f, 0x21, 0x49, 0xdd, + 0x84, 0x04, 0x7d, 0xbe, 0x22, 0xa9, 0xf3, 0x2b, 0x92, 0xba, 0xb8, 0x22, 0x29, 0x20, 0x86, 0x75, + 0xdf, 0x6b, 0xd5, 0x56, 0x5b, 0xf1, 0x24, 0xe9, 0x46, 0xbf, 0x68, 0x17, 0x1d, 0x6f, 0x8d, 0x12, + 0x7a, 0xc3, 0xfa, 0xc7, 0xec, 0xd9, 0x13, 0x8b, 0x6f, 0xe9, 0xa7, 0xea, 0xad, 0xcc, 0xb0, 0x24, + 0xc5, 0x36, 0xa4, 0xba, 0x30, 0xee, 0x0b, 0xe3, 0xa3, 0xea, 0x75, 0xfa, 0xf9, 0xac, 0x2e, 0xcb, + 0x8a, 0x6d, 0xc8, 0xb2, 0x50, 0xc8, 0xb2, 0x90, 0xc8, 0xf2, 0x51, 0xf5, 0x64, 0x51, 0x0c, 0x86, + 0xd7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x77, 0x04, 0xc7, 0xa1, 0xeb, 0x04, 0x00, 0x00, +} + +func (x RecordType) String() string { + s, ok := RecordType_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (x RecordUnit) String() string { + s, ok := RecordUnit_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (x GroupByKey) String() string { + s, ok := GroupByKey_name[int32(x)] + if ok { + return s + } + return strconv.Itoa(int(x)) +} +func (this *Summary) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Summary) + if !ok { + that2, ok := that.(Summary) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.StartTime.Equal(that1.StartTime) { + return false + } + if !this.EndTime.Equal(that1.EndTime) { + return false + } + if len(this.RecordGroups) != len(that1.RecordGroups) { + return false + } + for i := range this.RecordGroups { + if !this.RecordGroups[i].Equal(that1.RecordGroups[i]) { + return false + } + } + if this.Incomplete != that1.Incomplete { + return false + } + return true +} +func (this *RecordGroup) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*RecordGroup) + if !ok { + that2, ok := that.(RecordGroup) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.GroupBys) != len(that1.GroupBys) { + return false + } + for i := range this.GroupBys { + if !this.GroupBys[i].Equal(that1.GroupBys[i]) { + return false + } + } + if len(this.Records) != len(that1.Records) { + return false + } + for i := range this.Records { + if !this.Records[i].Equal(that1.Records[i]) { + return false + } + } + return true +} +func (this *GroupBy) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*GroupBy) + if !ok { + that2, ok := that.(GroupBy) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Key != that1.Key { + return false + } + if this.Value != that1.Value { + return false + } + return true +} +func (this *Record) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Record) + if !ok { + that2, ok := that.(Record) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Type != that1.Type { + return false + } + if this.Unit != that1.Unit { + return false + } + if this.Value != that1.Value { + return false + } + return true +} +func (this *Summary) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 8) + s = append(s, "&usage.Summary{") + if this.StartTime != nil { + s = append(s, "StartTime: "+fmt.Sprintf("%#v", this.StartTime)+",\n") + } + if this.EndTime != nil { + s = append(s, "EndTime: "+fmt.Sprintf("%#v", this.EndTime)+",\n") + } + if this.RecordGroups != nil { + s = append(s, "RecordGroups: "+fmt.Sprintf("%#v", this.RecordGroups)+",\n") + } + s = append(s, "Incomplete: "+fmt.Sprintf("%#v", this.Incomplete)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *RecordGroup) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&usage.RecordGroup{") + if this.GroupBys != nil { + s = append(s, "GroupBys: "+fmt.Sprintf("%#v", this.GroupBys)+",\n") + } + if this.Records != nil { + s = append(s, "Records: "+fmt.Sprintf("%#v", this.Records)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *GroupBy) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 6) + s = append(s, "&usage.GroupBy{") + s = append(s, "Key: "+fmt.Sprintf("%#v", this.Key)+",\n") + s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func (this *Record) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 7) + s = append(s, "&usage.Record{") + s = append(s, "Type: "+fmt.Sprintf("%#v", this.Type)+",\n") + s = append(s, "Unit: "+fmt.Sprintf("%#v", this.Unit)+",\n") + s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") + s = append(s, "}") + return strings.Join(s, "") +} +func valueToGoStringMessage(v interface{}, typ string) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) +} +func (m *Summary) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Summary) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Summary) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Incomplete { + i-- + if m.Incomplete { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.RecordGroups) > 0 { + for iNdEx := len(m.RecordGroups) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.RecordGroups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if m.EndTime != nil { + { + size, err := m.EndTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.StartTime != nil { + { + size, err := m.StartTime.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RecordGroup) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RecordGroup) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RecordGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Records) > 0 { + for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Records[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.GroupBys) > 0 { + for iNdEx := len(m.GroupBys) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.GroupBys[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *GroupBy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GroupBy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GroupBy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + i -= len(m.Value) + copy(dAtA[i:], m.Value) + i = encodeVarintMessage(dAtA, i, uint64(len(m.Value))) + i-- + dAtA[i] = 0x12 + } + if m.Key != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Key)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Record) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Record) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value)))) + i-- + dAtA[i] = 0x19 + } + if m.Unit != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Unit)) + i-- + dAtA[i] = 0x10 + } + if m.Type != 0 { + i = encodeVarintMessage(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintMessage(dAtA []byte, offset int, v uint64) int { + offset -= sovMessage(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Summary) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.StartTime != nil { + l = m.StartTime.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if m.EndTime != nil { + l = m.EndTime.Size() + n += 1 + l + sovMessage(uint64(l)) + } + if len(m.RecordGroups) > 0 { + for _, e := range m.RecordGroups { + l = e.Size() + n += 1 + l + sovMessage(uint64(l)) + } + } + if m.Incomplete { + n += 2 + } + return n +} + +func (m *RecordGroup) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.GroupBys) > 0 { + for _, e := range m.GroupBys { + l = e.Size() + n += 1 + l + sovMessage(uint64(l)) + } + } + if len(m.Records) > 0 { + for _, e := range m.Records { + l = e.Size() + n += 1 + l + sovMessage(uint64(l)) + } + } + return n +} + +func (m *GroupBy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Key != 0 { + n += 1 + sovMessage(uint64(m.Key)) + } + l = len(m.Value) + if l > 0 { + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *Record) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Type != 0 { + n += 1 + sovMessage(uint64(m.Type)) + } + if m.Unit != 0 { + n += 1 + sovMessage(uint64(m.Unit)) + } + if m.Value != 0 { + n += 9 + } + return n +} + +func sovMessage(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozMessage(x uint64) (n int) { + return sovMessage(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *Summary) String() string { + if this == nil { + return "nil" + } + repeatedStringForRecordGroups := "[]*RecordGroup{" + for _, f := range this.RecordGroups { + repeatedStringForRecordGroups += strings.Replace(f.String(), "RecordGroup", "RecordGroup", 1) + "," + } + repeatedStringForRecordGroups += "}" + s := strings.Join([]string{`&Summary{`, + `StartTime:` + strings.Replace(fmt.Sprintf("%v", this.StartTime), "Timestamp", "types.Timestamp", 1) + `,`, + `EndTime:` + strings.Replace(fmt.Sprintf("%v", this.EndTime), "Timestamp", "types.Timestamp", 1) + `,`, + `RecordGroups:` + repeatedStringForRecordGroups + `,`, + `Incomplete:` + fmt.Sprintf("%v", this.Incomplete) + `,`, + `}`, + }, "") + return s +} +func (this *RecordGroup) String() string { + if this == nil { + return "nil" + } + repeatedStringForGroupBys := "[]*GroupBy{" + for _, f := range this.GroupBys { + repeatedStringForGroupBys += strings.Replace(f.String(), "GroupBy", "GroupBy", 1) + "," + } + repeatedStringForGroupBys += "}" + repeatedStringForRecords := "[]*Record{" + for _, f := range this.Records { + repeatedStringForRecords += strings.Replace(f.String(), "Record", "Record", 1) + "," + } + repeatedStringForRecords += "}" + s := strings.Join([]string{`&RecordGroup{`, + `GroupBys:` + repeatedStringForGroupBys + `,`, + `Records:` + repeatedStringForRecords + `,`, + `}`, + }, "") + return s +} +func (this *GroupBy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GroupBy{`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func (this *Record) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Record{`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `Unit:` + fmt.Sprintf("%v", this.Unit) + `,`, + `Value:` + fmt.Sprintf("%v", this.Value) + `,`, + `}`, + }, "") + return s +} +func valueToStringMessage(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *Summary) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Summary: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Summary: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StartTime == nil { + m.StartTime = &types.Timestamp{} + } + if err := m.StartTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.EndTime == nil { + m.EndTime = &types.Timestamp{} + } + if err := m.EndTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordGroups", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RecordGroups = append(m.RecordGroups, &RecordGroup{}) + if err := m.RecordGroups[len(m.RecordGroups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Incomplete", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Incomplete = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RecordGroup) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RecordGroup: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RecordGroup: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupBys", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GroupBys = append(m.GroupBys, &GroupBy{}) + if err := m.GroupBys[len(m.GroupBys)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Records = append(m.Records, &Record{}) + if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GroupBy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GroupBy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GroupBy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + m.Key = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Key |= GroupByKey(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Record) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Record: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Record: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= RecordType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Unit", wireType) + } + m.Unit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Unit |= RecordUnit(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Value = float64(math.Float64frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipMessage(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowMessage + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthMessage + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupMessage + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthMessage + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") +) diff --git a/protogen/apimock/cloudservice/v1/service.pb.mock.go b/protogen/apimock/cloudservice/v1/service.pb.mock.go index 4e08198c..3ff16d44 100644 --- a/protogen/apimock/cloudservice/v1/service.pb.mock.go +++ b/protogen/apimock/cloudservice/v1/service.pb.mock.go @@ -96,6 +96,26 @@ func (mr *MockCloudServiceClientMockRecorder) CreateNamespace(ctx, in interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespace", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateNamespace), varargs...) } +// CreateNamespaceExportSink mocks base method. +func (m *MockCloudServiceClient) CreateNamespaceExportSink(ctx context.Context, in *cloudservice.CreateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.CreateNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateNamespaceExportSink", varargs...) + ret0, _ := ret[0].(*cloudservice.CreateNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNamespaceExportSink indicates an expected call of CreateNamespaceExportSink. +func (mr *MockCloudServiceClientMockRecorder) CreateNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).CreateNamespaceExportSink), varargs...) +} + // CreateNexusEndpoint mocks base method. func (m *MockCloudServiceClient) CreateNexusEndpoint(ctx context.Context, in *cloudservice.CreateNexusEndpointRequest, opts ...grpc.CallOption) (*cloudservice.CreateNexusEndpointResponse, error) { m.ctrl.T.Helper() @@ -216,6 +236,26 @@ func (mr *MockCloudServiceClientMockRecorder) DeleteNamespace(ctx, in interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteNamespace), varargs...) } +// DeleteNamespaceExportSink mocks base method. +func (m *MockCloudServiceClient) DeleteNamespaceExportSink(ctx context.Context, in *cloudservice.DeleteNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.DeleteNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteNamespaceExportSink", varargs...) + ret0, _ := ret[0].(*cloudservice.DeleteNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNamespaceExportSink indicates an expected call of DeleteNamespaceExportSink. +func (mr *MockCloudServiceClientMockRecorder) DeleteNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).DeleteNamespaceExportSink), varargs...) +} + // DeleteNexusEndpoint mocks base method. func (m *MockCloudServiceClient) DeleteNexusEndpoint(ctx context.Context, in *cloudservice.DeleteNexusEndpointRequest, opts ...grpc.CallOption) (*cloudservice.DeleteNexusEndpointResponse, error) { m.ctrl.T.Helper() @@ -396,6 +436,26 @@ func (mr *MockCloudServiceClientMockRecorder) GetAsyncOperation(ctx, in interfac return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAsyncOperation", reflect.TypeOf((*MockCloudServiceClient)(nil).GetAsyncOperation), varargs...) } +// GetAuditLogs mocks base method. +func (m *MockCloudServiceClient) GetAuditLogs(ctx context.Context, in *cloudservice.GetAuditLogsRequest, opts ...grpc.CallOption) (*cloudservice.GetAuditLogsResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetAuditLogs", varargs...) + ret0, _ := ret[0].(*cloudservice.GetAuditLogsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAuditLogs indicates an expected call of GetAuditLogs. +func (mr *MockCloudServiceClientMockRecorder) GetAuditLogs(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuditLogs", reflect.TypeOf((*MockCloudServiceClient)(nil).GetAuditLogs), varargs...) +} + // GetNamespace mocks base method. func (m *MockCloudServiceClient) GetNamespace(ctx context.Context, in *cloudservice.GetNamespaceRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceResponse, error) { m.ctrl.T.Helper() @@ -416,6 +476,46 @@ func (mr *MockCloudServiceClientMockRecorder) GetNamespace(ctx, in interface{}, return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNamespace), varargs...) } +// GetNamespaceExportSink mocks base method. +func (m *MockCloudServiceClient) GetNamespaceExportSink(ctx context.Context, in *cloudservice.GetNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetNamespaceExportSink", varargs...) + ret0, _ := ret[0].(*cloudservice.GetNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetNamespaceExportSink indicates an expected call of GetNamespaceExportSink. +func (mr *MockCloudServiceClientMockRecorder) GetNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNamespaceExportSink), varargs...) +} + +// GetNamespaceExportSinks mocks base method. +func (m *MockCloudServiceClient) GetNamespaceExportSinks(ctx context.Context, in *cloudservice.GetNamespaceExportSinksRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespaceExportSinksResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetNamespaceExportSinks", varargs...) + ret0, _ := ret[0].(*cloudservice.GetNamespaceExportSinksResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetNamespaceExportSinks indicates an expected call of GetNamespaceExportSinks. +func (mr *MockCloudServiceClientMockRecorder) GetNamespaceExportSinks(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceExportSinks", reflect.TypeOf((*MockCloudServiceClient)(nil).GetNamespaceExportSinks), varargs...) +} + // GetNamespaces mocks base method. func (m *MockCloudServiceClient) GetNamespaces(ctx context.Context, in *cloudservice.GetNamespacesRequest, opts ...grpc.CallOption) (*cloudservice.GetNamespacesResponse, error) { m.ctrl.T.Helper() @@ -556,6 +656,26 @@ func (mr *MockCloudServiceClientMockRecorder) GetServiceAccounts(ctx, in interfa return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAccounts", reflect.TypeOf((*MockCloudServiceClient)(nil).GetServiceAccounts), varargs...) } +// GetUsage mocks base method. +func (m *MockCloudServiceClient) GetUsage(ctx context.Context, in *cloudservice.GetUsageRequest, opts ...grpc.CallOption) (*cloudservice.GetUsageResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetUsage", varargs...) + ret0, _ := ret[0].(*cloudservice.GetUsageResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUsage indicates an expected call of GetUsage. +func (mr *MockCloudServiceClientMockRecorder) GetUsage(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsage", reflect.TypeOf((*MockCloudServiceClient)(nil).GetUsage), varargs...) +} + // GetUser mocks base method. func (m *MockCloudServiceClient) GetUser(ctx context.Context, in *cloudservice.GetUserRequest, opts ...grpc.CallOption) (*cloudservice.GetUserResponse, error) { m.ctrl.T.Helper() @@ -756,6 +876,26 @@ func (mr *MockCloudServiceClientMockRecorder) UpdateNamespace(ctx, in interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespace", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateNamespace), varargs...) } +// UpdateNamespaceExportSink mocks base method. +func (m *MockCloudServiceClient) UpdateNamespaceExportSink(ctx context.Context, in *cloudservice.UpdateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateNamespaceExportSink", varargs...) + ret0, _ := ret[0].(*cloudservice.UpdateNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateNamespaceExportSink indicates an expected call of UpdateNamespaceExportSink. +func (mr *MockCloudServiceClientMockRecorder) UpdateNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateNamespaceExportSink), varargs...) +} + // UpdateNexusEndpoint mocks base method. func (m *MockCloudServiceClient) UpdateNexusEndpoint(ctx context.Context, in *cloudservice.UpdateNexusEndpointRequest, opts ...grpc.CallOption) (*cloudservice.UpdateNexusEndpointResponse, error) { m.ctrl.T.Helper() @@ -836,6 +976,26 @@ func (mr *MockCloudServiceClientMockRecorder) UpdateUserGroup(ctx, in interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserGroup", reflect.TypeOf((*MockCloudServiceClient)(nil).UpdateUserGroup), varargs...) } +// ValidateNamespaceExportSink mocks base method. +func (m *MockCloudServiceClient) ValidateNamespaceExportSink(ctx context.Context, in *cloudservice.ValidateNamespaceExportSinkRequest, opts ...grpc.CallOption) (*cloudservice.ValidateNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + varargs := []interface{}{ctx, in} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ValidateNamespaceExportSink", varargs...) + ret0, _ := ret[0].(*cloudservice.ValidateNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ValidateNamespaceExportSink indicates an expected call of ValidateNamespaceExportSink. +func (mr *MockCloudServiceClientMockRecorder) ValidateNamespaceExportSink(ctx, in interface{}, opts ...interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]interface{}{ctx, in}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceClient)(nil).ValidateNamespaceExportSink), varargs...) +} + // MockCloudServiceServer is a mock of CloudServiceServer interface. type MockCloudServiceServer struct { ctrl *gomock.Controller @@ -904,6 +1064,21 @@ func (mr *MockCloudServiceServerMockRecorder) CreateNamespace(arg0, arg1 interfa return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespace", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateNamespace), arg0, arg1) } +// CreateNamespaceExportSink mocks base method. +func (m *MockCloudServiceServer) CreateNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.CreateNamespaceExportSinkRequest) (*cloudservice.CreateNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CreateNamespaceExportSink", arg0, arg1) + ret0, _ := ret[0].(*cloudservice.CreateNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateNamespaceExportSink indicates an expected call of CreateNamespaceExportSink. +func (mr *MockCloudServiceServerMockRecorder) CreateNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).CreateNamespaceExportSink), arg0, arg1) +} + // CreateNexusEndpoint mocks base method. func (m *MockCloudServiceServer) CreateNexusEndpoint(arg0 context.Context, arg1 *cloudservice.CreateNexusEndpointRequest) (*cloudservice.CreateNexusEndpointResponse, error) { m.ctrl.T.Helper() @@ -994,6 +1169,21 @@ func (mr *MockCloudServiceServerMockRecorder) DeleteNamespace(arg0, arg1 interfa return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespace", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteNamespace), arg0, arg1) } +// DeleteNamespaceExportSink mocks base method. +func (m *MockCloudServiceServer) DeleteNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.DeleteNamespaceExportSinkRequest) (*cloudservice.DeleteNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "DeleteNamespaceExportSink", arg0, arg1) + ret0, _ := ret[0].(*cloudservice.DeleteNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteNamespaceExportSink indicates an expected call of DeleteNamespaceExportSink. +func (mr *MockCloudServiceServerMockRecorder) DeleteNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).DeleteNamespaceExportSink), arg0, arg1) +} + // DeleteNexusEndpoint mocks base method. func (m *MockCloudServiceServer) DeleteNexusEndpoint(arg0 context.Context, arg1 *cloudservice.DeleteNexusEndpointRequest) (*cloudservice.DeleteNexusEndpointResponse, error) { m.ctrl.T.Helper() @@ -1129,6 +1319,21 @@ func (mr *MockCloudServiceServerMockRecorder) GetAsyncOperation(arg0, arg1 inter return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAsyncOperation", reflect.TypeOf((*MockCloudServiceServer)(nil).GetAsyncOperation), arg0, arg1) } +// GetAuditLogs mocks base method. +func (m *MockCloudServiceServer) GetAuditLogs(arg0 context.Context, arg1 *cloudservice.GetAuditLogsRequest) (*cloudservice.GetAuditLogsResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetAuditLogs", arg0, arg1) + ret0, _ := ret[0].(*cloudservice.GetAuditLogsResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetAuditLogs indicates an expected call of GetAuditLogs. +func (mr *MockCloudServiceServerMockRecorder) GetAuditLogs(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuditLogs", reflect.TypeOf((*MockCloudServiceServer)(nil).GetAuditLogs), arg0, arg1) +} + // GetNamespace mocks base method. func (m *MockCloudServiceServer) GetNamespace(arg0 context.Context, arg1 *cloudservice.GetNamespaceRequest) (*cloudservice.GetNamespaceResponse, error) { m.ctrl.T.Helper() @@ -1144,6 +1349,36 @@ func (mr *MockCloudServiceServerMockRecorder) GetNamespace(arg0, arg1 interface{ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNamespace), arg0, arg1) } +// GetNamespaceExportSink mocks base method. +func (m *MockCloudServiceServer) GetNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.GetNamespaceExportSinkRequest) (*cloudservice.GetNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetNamespaceExportSink", arg0, arg1) + ret0, _ := ret[0].(*cloudservice.GetNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetNamespaceExportSink indicates an expected call of GetNamespaceExportSink. +func (mr *MockCloudServiceServerMockRecorder) GetNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNamespaceExportSink), arg0, arg1) +} + +// GetNamespaceExportSinks mocks base method. +func (m *MockCloudServiceServer) GetNamespaceExportSinks(arg0 context.Context, arg1 *cloudservice.GetNamespaceExportSinksRequest) (*cloudservice.GetNamespaceExportSinksResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetNamespaceExportSinks", arg0, arg1) + ret0, _ := ret[0].(*cloudservice.GetNamespaceExportSinksResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetNamespaceExportSinks indicates an expected call of GetNamespaceExportSinks. +func (mr *MockCloudServiceServerMockRecorder) GetNamespaceExportSinks(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceExportSinks", reflect.TypeOf((*MockCloudServiceServer)(nil).GetNamespaceExportSinks), arg0, arg1) +} + // GetNamespaces mocks base method. func (m *MockCloudServiceServer) GetNamespaces(arg0 context.Context, arg1 *cloudservice.GetNamespacesRequest) (*cloudservice.GetNamespacesResponse, error) { m.ctrl.T.Helper() @@ -1249,6 +1484,21 @@ func (mr *MockCloudServiceServerMockRecorder) GetServiceAccounts(arg0, arg1 inte return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceAccounts", reflect.TypeOf((*MockCloudServiceServer)(nil).GetServiceAccounts), arg0, arg1) } +// GetUsage mocks base method. +func (m *MockCloudServiceServer) GetUsage(arg0 context.Context, arg1 *cloudservice.GetUsageRequest) (*cloudservice.GetUsageResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetUsage", arg0, arg1) + ret0, _ := ret[0].(*cloudservice.GetUsageResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetUsage indicates an expected call of GetUsage. +func (mr *MockCloudServiceServerMockRecorder) GetUsage(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsage", reflect.TypeOf((*MockCloudServiceServer)(nil).GetUsage), arg0, arg1) +} + // GetUser mocks base method. func (m *MockCloudServiceServer) GetUser(arg0 context.Context, arg1 *cloudservice.GetUserRequest) (*cloudservice.GetUserResponse, error) { m.ctrl.T.Helper() @@ -1399,6 +1649,21 @@ func (mr *MockCloudServiceServerMockRecorder) UpdateNamespace(arg0, arg1 interfa return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespace", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateNamespace), arg0, arg1) } +// UpdateNamespaceExportSink mocks base method. +func (m *MockCloudServiceServer) UpdateNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.UpdateNamespaceExportSinkRequest) (*cloudservice.UpdateNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "UpdateNamespaceExportSink", arg0, arg1) + ret0, _ := ret[0].(*cloudservice.UpdateNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateNamespaceExportSink indicates an expected call of UpdateNamespaceExportSink. +func (mr *MockCloudServiceServerMockRecorder) UpdateNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateNamespaceExportSink), arg0, arg1) +} + // UpdateNexusEndpoint mocks base method. func (m *MockCloudServiceServer) UpdateNexusEndpoint(arg0 context.Context, arg1 *cloudservice.UpdateNexusEndpointRequest) (*cloudservice.UpdateNexusEndpointResponse, error) { m.ctrl.T.Helper() @@ -1458,3 +1723,18 @@ func (mr *MockCloudServiceServerMockRecorder) UpdateUserGroup(arg0, arg1 interfa mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserGroup", reflect.TypeOf((*MockCloudServiceServer)(nil).UpdateUserGroup), arg0, arg1) } + +// ValidateNamespaceExportSink mocks base method. +func (m *MockCloudServiceServer) ValidateNamespaceExportSink(arg0 context.Context, arg1 *cloudservice.ValidateNamespaceExportSinkRequest) (*cloudservice.ValidateNamespaceExportSinkResponse, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ValidateNamespaceExportSink", arg0, arg1) + ret0, _ := ret[0].(*cloudservice.ValidateNamespaceExportSinkResponse) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ValidateNamespaceExportSink indicates an expected call of ValidateNamespaceExportSink. +func (mr *MockCloudServiceServerMockRecorder) ValidateNamespaceExportSink(arg0, arg1 interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateNamespaceExportSink", reflect.TypeOf((*MockCloudServiceServer)(nil).ValidateNamespaceExportSink), arg0, arg1) +}