diff --git a/internal/rpcapi/convert.go b/internal/rpcapi/convert.go index 6bd618ac1e..9b9866c76c 100644 --- a/internal/rpcapi/convert.go +++ b/internal/rpcapi/convert.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform/internal/lang/marks" "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" "github.com/hashicorp/terraform/internal/stacks/stackruntime" "github.com/hashicorp/terraform/internal/tfdiags" @@ -92,7 +93,7 @@ func sourcePosFromProto(protoPos *terraform1.SourcePos) tfdiags.SourcePos { } } -func dynamicTypedValueFromProto(protoVal *terraform1.DynamicValue) (cty.Value, error) { +func dynamicTypedValueFromProto(protoVal *stacks.DynamicValue) (cty.Value, error) { if len(protoVal.Msgpack) == 0 { return cty.DynamicVal, fmt.Errorf("uses unsupported serialization format (only MessagePack is supported)") } @@ -110,7 +111,7 @@ func dynamicTypedValueFromProto(protoVal *terraform1.DynamicValue) (cty.Value, e return v, nil } -func externalInputValuesFromProto(protoVals map[string]*terraform1.DynamicValueWithSource) (map[stackaddrs.InputVariable]stackruntime.ExternalInputValue, error) { +func externalInputValuesFromProto(protoVals map[string]*stacks.DynamicValueWithSource) (map[stackaddrs.InputVariable]stackruntime.ExternalInputValue, error) { if len(protoVals) == 0 { return nil, nil } @@ -126,7 +127,7 @@ func externalInputValuesFromProto(protoVals map[string]*terraform1.DynamicValueW return ret, err } -func externalInputValueFromProto(protoVal *terraform1.DynamicValueWithSource) (stackruntime.ExternalInputValue, error) { +func externalInputValueFromProto(protoVal *stacks.DynamicValueWithSource) (stackruntime.ExternalInputValue, error) { v, err := dynamicTypedValueFromProto(protoVal.Value) if err != nil { return stackruntime.ExternalInputValue{}, nil diff --git a/internal/rpcapi/dependencies.go b/internal/rpcapi/dependencies.go index a9828f5501..f0f7b25034 100644 --- a/internal/rpcapi/dependencies.go +++ b/internal/rpcapi/dependencies.go @@ -30,12 +30,13 @@ import ( "github.com/hashicorp/terraform/internal/providercache" "github.com/hashicorp/terraform/internal/providers" "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies" "github.com/hashicorp/terraform/internal/tfdiags" "github.com/hashicorp/terraform/version" ) type dependenciesServer struct { - terraform1.UnimplementedDependenciesServer + dependencies.UnimplementedDependenciesServer handles *handleTable services *disco.Disco @@ -48,28 +49,28 @@ func newDependenciesServer(handles *handleTable, services *disco.Disco) *depende } } -func (s *dependenciesServer) OpenSourceBundle(ctx context.Context, req *terraform1.OpenSourceBundle_Request) (*terraform1.OpenSourceBundle_Response, error) { +func (s *dependenciesServer) OpenSourceBundle(ctx context.Context, req *dependencies.OpenSourceBundle_Request) (*dependencies.OpenSourceBundle_Response, error) { localDir := filepath.Clean(req.LocalPath) sources, err := sourcebundle.OpenDir(localDir) if err != nil { return nil, status.Error(codes.Unknown, err.Error()) } hnd := s.handles.NewSourceBundle(sources) - return &terraform1.OpenSourceBundle_Response{ + return &dependencies.OpenSourceBundle_Response{ SourceBundleHandle: hnd.ForProtobuf(), }, err } -func (s *dependenciesServer) CloseSourceBundle(ctx context.Context, req *terraform1.CloseSourceBundle_Request) (*terraform1.CloseSourceBundle_Response, error) { +func (s *dependenciesServer) CloseSourceBundle(ctx context.Context, req *dependencies.CloseSourceBundle_Request) (*dependencies.CloseSourceBundle_Response, error) { hnd := handle[*sourcebundle.Bundle](req.SourceBundleHandle) err := s.handles.CloseSourceBundle(hnd) if err != nil { return nil, status.Error(codes.InvalidArgument, err.Error()) } - return &terraform1.CloseSourceBundle_Response{}, nil + return &dependencies.CloseSourceBundle_Response{}, nil } -func (s *dependenciesServer) OpenDependencyLockFile(ctx context.Context, req *terraform1.OpenDependencyLockFile_Request) (*terraform1.OpenDependencyLockFile_Response, error) { +func (s *dependenciesServer) OpenDependencyLockFile(ctx context.Context, req *dependencies.OpenDependencyLockFile_Request) (*dependencies.OpenDependencyLockFile_Response, error) { sourcesHnd := handle[*sourcebundle.Bundle](req.SourceBundleHandle) sources := s.handles.SourceBundle(sourcesHnd) if sources == nil { @@ -88,19 +89,19 @@ func (s *dependenciesServer) OpenDependencyLockFile(ctx context.Context, req *te locks, diags := depsfile.LoadLocksFromFile(lockFilePath) if diags.HasErrors() { - return &terraform1.OpenDependencyLockFile_Response{ + return &dependencies.OpenDependencyLockFile_Response{ Diagnostics: diagnosticsToProto(diags), }, nil } locksHnd := s.handles.NewDependencyLocks(locks) - return &terraform1.OpenDependencyLockFile_Response{ + return &dependencies.OpenDependencyLockFile_Response{ DependencyLocksHandle: locksHnd.ForProtobuf(), Diagnostics: diagnosticsToProto(diags), }, nil } -func (s *dependenciesServer) CreateDependencyLocks(ctx context.Context, req *terraform1.CreateDependencyLocks_Request) (*terraform1.CreateDependencyLocks_Response, error) { +func (s *dependenciesServer) CreateDependencyLocks(ctx context.Context, req *dependencies.CreateDependencyLocks_Request) (*dependencies.CreateDependencyLocks_Response, error) { locks := depsfile.NewLocks() for _, provider := range req.ProviderSelections { addr, diags := addrs.ParseProviderSourceString(provider.SourceAddr) @@ -138,21 +139,21 @@ func (s *dependenciesServer) CreateDependencyLocks(ctx context.Context, req *ter } locksHnd := s.handles.NewDependencyLocks(locks) - return &terraform1.CreateDependencyLocks_Response{ + return &dependencies.CreateDependencyLocks_Response{ DependencyLocksHandle: locksHnd.ForProtobuf(), }, nil } -func (s *dependenciesServer) CloseDependencyLocks(ctx context.Context, req *terraform1.CloseDependencyLocks_Request) (*terraform1.CloseDependencyLocks_Response, error) { +func (s *dependenciesServer) CloseDependencyLocks(ctx context.Context, req *dependencies.CloseDependencyLocks_Request) (*dependencies.CloseDependencyLocks_Response, error) { hnd := handle[*depsfile.Locks](req.DependencyLocksHandle) err := s.handles.CloseDependencyLocks(hnd) if err != nil { return nil, status.Error(codes.InvalidArgument, "invalid dependency locks handle") } - return &terraform1.CloseDependencyLocks_Response{}, nil + return &dependencies.CloseDependencyLocks_Response{}, nil } -func (s *dependenciesServer) GetLockedProviderDependencies(ctx context.Context, req *terraform1.GetLockedProviderDependencies_Request) (*terraform1.GetLockedProviderDependencies_Response, error) { +func (s *dependenciesServer) GetLockedProviderDependencies(ctx context.Context, req *dependencies.GetLockedProviderDependencies_Request) (*dependencies.GetLockedProviderDependencies_Response, error) { hnd := handle[*depsfile.Locks](req.DependencyLocksHandle) locks := s.handles.DependencyLocks(hnd) if locks == nil { @@ -183,12 +184,12 @@ func (s *dependenciesServer) GetLockedProviderDependencies(ctx context.Context, return protoProviders[i].SourceAddr < protoProviders[j].SourceAddr }) - return &terraform1.GetLockedProviderDependencies_Response{ + return &dependencies.GetLockedProviderDependencies_Response{ SelectedProviders: protoProviders, }, nil } -func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProviderPluginCache_Request, evts terraform1.Dependencies_BuildProviderPluginCacheServer) error { +func (s *dependenciesServer) BuildProviderPluginCache(req *dependencies.BuildProviderPluginCache_Request, evts dependencies.Dependencies_BuildProviderPluginCacheServer) error { ctx := evts.Context() hnd := handle[*depsfile.Locks](req.DependencyLocksHandle) @@ -201,11 +202,11 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi for _, protoMethod := range req.InstallationMethods { var source getproviders.Source switch arg := protoMethod.Source.(type) { - case *terraform1.BuildProviderPluginCache_Request_InstallMethod_Direct: + case *dependencies.BuildProviderPluginCache_Request_InstallMethod_Direct: source = getproviders.NewRegistrySource(s.services) - case *terraform1.BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir: + case *dependencies.BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir: source = getproviders.NewFilesystemMirrorSource(arg.LocalMirrorDir) - case *terraform1.BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl: + case *dependencies.BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl: u, err := url.Parse(arg.NetworkMirrorUrl) if err != nil { return status.Errorf(codes.InvalidArgument, "invalid network mirror URL %q", arg.NetworkMirrorUrl) @@ -263,25 +264,25 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi // which could potentially help drive a percentage-based progress // bar or similar in the UI by correlating with the "FetchSuccess" // events. - protoConstraints := make([]*terraform1.BuildProviderPluginCache_Event_ProviderConstraints, 0, len(reqs)) + protoConstraints := make([]*dependencies.BuildProviderPluginCache_Event_ProviderConstraints, 0, len(reqs)) for addr, constraints := range reqs { - protoConstraints = append(protoConstraints, &terraform1.BuildProviderPluginCache_Event_ProviderConstraints{ + protoConstraints = append(protoConstraints, &dependencies.BuildProviderPluginCache_Event_ProviderConstraints{ SourceAddr: addr.ForDisplay(), Versions: getproviders.VersionConstraintsString(constraints), }) } - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_Pending_{ - Pending: &terraform1.BuildProviderPluginCache_Event_Pending{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_Pending_{ + Pending: &dependencies.BuildProviderPluginCache_Event_Pending{ Expected: protoConstraints, }, }, }) }, ProviderAlreadyInstalled: func(provider addrs.Provider, selectedVersion getproviders.Version) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_AlreadyInstalled{ - AlreadyInstalled: &terraform1.BuildProviderPluginCache_Event_ProviderVersion{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_AlreadyInstalled{ + AlreadyInstalled: &dependencies.BuildProviderPluginCache_Event_ProviderVersion{ SourceAddr: provider.ForDisplay(), Version: selectedVersion.String(), }, @@ -289,17 +290,17 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi }) }, BuiltInProviderAvailable: func(provider addrs.Provider) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_BuiltIn{ - BuiltIn: &terraform1.BuildProviderPluginCache_Event_ProviderVersion{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_BuiltIn{ + BuiltIn: &dependencies.BuildProviderPluginCache_Event_ProviderVersion{ SourceAddr: provider.ForDisplay(), }, }, }) }, BuiltInProviderFailure: func(provider addrs.Provider, err error) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_Diagnostic{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_Diagnostic{ Diagnostic: diagnosticToProto(tfdiags.Sourceless( tfdiags.Error, "Built-in provider unavailable", @@ -313,9 +314,9 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi sentErrorDiags = true }, QueryPackagesBegin: func(provider addrs.Provider, versionConstraints getproviders.VersionConstraints, locked bool) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_QueryBegin{ - QueryBegin: &terraform1.BuildProviderPluginCache_Event_ProviderConstraints{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_QueryBegin{ + QueryBegin: &dependencies.BuildProviderPluginCache_Event_ProviderConstraints{ SourceAddr: provider.ForDisplay(), Versions: getproviders.VersionConstraintsString(versionConstraints), }, @@ -323,9 +324,9 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi }) }, QueryPackagesSuccess: func(provider addrs.Provider, selectedVersion getproviders.Version) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_QuerySuccess{ - QuerySuccess: &terraform1.BuildProviderPluginCache_Event_ProviderVersion{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_QuerySuccess{ + QuerySuccess: &dependencies.BuildProviderPluginCache_Event_ProviderVersion{ SourceAddr: provider.ForDisplay(), Version: selectedVersion.String(), }, @@ -333,9 +334,9 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi }) }, QueryPackagesWarning: func(provider addrs.Provider, warn []string) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_QueryWarnings{ - QueryWarnings: &terraform1.BuildProviderPluginCache_Event_ProviderWarnings{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_QueryWarnings{ + QueryWarnings: &dependencies.BuildProviderPluginCache_Event_ProviderWarnings{ SourceAddr: provider.ForDisplay(), Warnings: warn, }, @@ -343,8 +344,8 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi }) }, QueryPackagesFailure: func(provider addrs.Provider, err error) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_Diagnostic{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_Diagnostic{ Diagnostic: diagnosticToProto(tfdiags.Sourceless( tfdiags.Error, "Provider is unavailable", @@ -359,10 +360,10 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi sentErrorDiags = true }, FetchPackageBegin: func(provider addrs.Provider, version getproviders.Version, location getproviders.PackageLocation) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_FetchBegin_{ - FetchBegin: &terraform1.BuildProviderPluginCache_Event_FetchBegin{ - ProviderVersion: &terraform1.BuildProviderPluginCache_Event_ProviderVersion{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_FetchBegin_{ + FetchBegin: &dependencies.BuildProviderPluginCache_Event_FetchBegin{ + ProviderVersion: &dependencies.BuildProviderPluginCache_Event_ProviderVersion{ SourceAddr: provider.ForDisplay(), Version: version.String(), }, @@ -372,13 +373,13 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi }) }, FetchPackageSuccess: func(provider addrs.Provider, version getproviders.Version, localDir string, authResult *getproviders.PackageAuthenticationResult) { - var protoAuthResult terraform1.BuildProviderPluginCache_Event_FetchComplete_AuthResult + var protoAuthResult dependencies.BuildProviderPluginCache_Event_FetchComplete_AuthResult var keyID string if authResult != nil { keyID = authResult.KeyID switch { case authResult.SignedByHashiCorp(): - protoAuthResult = terraform1.BuildProviderPluginCache_Event_FetchComplete_OFFICIAL_SIGNED + protoAuthResult = dependencies.BuildProviderPluginCache_Event_FetchComplete_OFFICIAL_SIGNED default: // TODO: The getproviders.PackageAuthenticationResult type // only exposes the full detail of the signing outcome as @@ -386,13 +387,13 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi // means we can't populate this in full detail. For now // we'll treat anything signed by a non-HashiCorp key as // "unknown" and then rationalize this later. - protoAuthResult = terraform1.BuildProviderPluginCache_Event_FetchComplete_UNKNOWN + protoAuthResult = dependencies.BuildProviderPluginCache_Event_FetchComplete_UNKNOWN } } - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_FetchComplete_{ - FetchComplete: &terraform1.BuildProviderPluginCache_Event_FetchComplete{ - ProviderVersion: &terraform1.BuildProviderPluginCache_Event_ProviderVersion{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_FetchComplete_{ + FetchComplete: &dependencies.BuildProviderPluginCache_Event_FetchComplete{ + ProviderVersion: &dependencies.BuildProviderPluginCache_Event_ProviderVersion{ SourceAddr: provider.ForDisplay(), Version: version.String(), }, @@ -403,8 +404,8 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi }) }, FetchPackageFailure: func(provider addrs.Provider, version getproviders.Version, err error) { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_Diagnostic{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_Diagnostic{ Diagnostic: diagnosticToProto(tfdiags.Sourceless( tfdiags.Error, "Failed to fetch provider package", @@ -427,8 +428,8 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi // err will typically just duplicate them, so we'll skip emitting // another diagnostic in that case. if !sentErrorDiags { - evts.Send(&terraform1.BuildProviderPluginCache_Event{ - Event: &terraform1.BuildProviderPluginCache_Event_Diagnostic{ + evts.Send(&dependencies.BuildProviderPluginCache_Event{ + Event: &dependencies.BuildProviderPluginCache_Event_Diagnostic{ Diagnostic: diagnosticToProto(tfdiags.Sourceless( tfdiags.Error, "Failed to install providers", @@ -450,7 +451,7 @@ func (s *dependenciesServer) BuildProviderPluginCache(req *terraform1.BuildProvi return nil } -func (s *dependenciesServer) OpenProviderPluginCache(ctx context.Context, req *terraform1.OpenProviderPluginCache_Request) (*terraform1.OpenProviderPluginCache_Response, error) { +func (s *dependenciesServer) OpenProviderPluginCache(ctx context.Context, req *dependencies.OpenProviderPluginCache_Request) (*dependencies.OpenProviderPluginCache_Response, error) { var cacheDir *providercache.Dir if req.OverridePlatform == "" { cacheDir = providercache.NewDir(req.CacheDir) @@ -463,21 +464,21 @@ func (s *dependenciesServer) OpenProviderPluginCache(ctx context.Context, req *t } hnd := s.handles.NewProviderPluginCache(cacheDir) - return &terraform1.OpenProviderPluginCache_Response{ + return &dependencies.OpenProviderPluginCache_Response{ ProviderCacheHandle: hnd.ForProtobuf(), }, nil } -func (s *dependenciesServer) CloseProviderPluginCache(ctx context.Context, req *terraform1.CloseProviderPluginCache_Request) (*terraform1.CloseProviderPluginCache_Response, error) { +func (s *dependenciesServer) CloseProviderPluginCache(ctx context.Context, req *dependencies.CloseProviderPluginCache_Request) (*dependencies.CloseProviderPluginCache_Response, error) { hnd := handle[*providercache.Dir](req.ProviderCacheHandle) err := s.handles.CloseProviderPluginCache(hnd) if err != nil { return nil, status.Error(codes.InvalidArgument, "invalid provider plugin cache handle") } - return &terraform1.CloseProviderPluginCache_Response{}, nil + return &dependencies.CloseProviderPluginCache_Response{}, nil } -func (s *dependenciesServer) GetCachedProviders(ctx context.Context, req *terraform1.GetCachedProviders_Request) (*terraform1.GetCachedProviders_Response, error) { +func (s *dependenciesServer) GetCachedProviders(ctx context.Context, req *dependencies.GetCachedProviders_Request) (*dependencies.GetCachedProviders_Response, error) { hnd := handle[*providercache.Dir](req.ProviderCacheHandle) cacheDir := s.handles.ProviderPluginCache(hnd) if cacheDir == nil { @@ -507,12 +508,12 @@ func (s *dependenciesServer) GetCachedProviders(ctx context.Context, req *terraf } } - return &terraform1.GetCachedProviders_Response{ + return &dependencies.GetCachedProviders_Response{ AvailableProviders: ret, }, nil } -func (s *dependenciesServer) GetBuiltInProviders(ctx context.Context, req *terraform1.GetBuiltInProviders_Request) (*terraform1.GetBuiltInProviders_Response, error) { +func (s *dependenciesServer) GetBuiltInProviders(ctx context.Context, req *dependencies.GetBuiltInProviders_Request) (*dependencies.GetBuiltInProviders_Response, error) { ret := make([]*terraform1.ProviderPackage, 0, len(builtinProviders)) for typeName := range builtinProviders { ret = append(ret, &terraform1.ProviderPackage{ @@ -522,12 +523,12 @@ func (s *dependenciesServer) GetBuiltInProviders(ctx context.Context, req *terra sort.Slice(ret, func(i, j int) bool { return ret[i].SourceAddr < ret[j].SourceAddr }) - return &terraform1.GetBuiltInProviders_Response{ + return &dependencies.GetBuiltInProviders_Response{ AvailableProviders: ret, }, nil } -func (s *dependenciesServer) GetProviderSchema(ctx context.Context, req *terraform1.GetProviderSchema_Request) (*terraform1.GetProviderSchema_Response, error) { +func (s *dependenciesServer) GetProviderSchema(ctx context.Context, req *dependencies.GetProviderSchema_Request) (*dependencies.GetProviderSchema_Response, error) { var cacheHnd handle[*providercache.Dir] var cacheDir *providercache.Dir if req.GetProviderCacheHandle() != 0 { @@ -568,7 +569,7 @@ func (s *dependenciesServer) GetProviderSchema(ctx context.Context, req *terrafo return nil, status.Errorf(codes.Internal, err.Error()) } - return &terraform1.GetProviderSchema_Response{ + return &dependencies.GetProviderSchema_Response{ Schema: providerSchemaToProto(schemaResp), }, nil } diff --git a/internal/rpcapi/dependencies_provider_schema.go b/internal/rpcapi/dependencies_provider_schema.go index 54314a13af..1a8334252f 100644 --- a/internal/rpcapi/dependencies_provider_schema.go +++ b/internal/rpcapi/dependencies_provider_schema.go @@ -10,6 +10,7 @@ import ( "github.com/apparentlymart/go-versions/versions" "github.com/hashicorp/go-plugin" + "github.com/hashicorp/terraform/internal/addrs" "github.com/hashicorp/terraform/internal/configs/configschema" "github.com/hashicorp/terraform/internal/getproviders" @@ -18,7 +19,7 @@ import ( tfplugin6 "github.com/hashicorp/terraform/internal/plugin6" "github.com/hashicorp/terraform/internal/providercache" "github.com/hashicorp/terraform/internal/providers" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies" ) // This file contains helper functions and supporting logic for @@ -120,7 +121,7 @@ func unconfiguredBuiltinProviderInstance(addr addrs.Provider) (providers.Interfa return factory(), nil } -func providerSchemaToProto(schemaResp providers.GetProviderSchemaResponse) *terraform1.ProviderSchema { +func providerSchemaToProto(schemaResp providers.GetProviderSchemaResponse) *dependencies.ProviderSchema { // Due to some historical poor design planning, the provider protocol uses // different terminology than the user-facing terminology for Terraform // Core and the Terraform language, and so part of our job here is to @@ -138,8 +139,8 @@ func providerSchemaToProto(schemaResp providers.GetProviderSchemaResponse) *terr // probably not want to make a new rpcapi protocol major version each time // a new provider protocol version is added or removed. - mrtSchemas := make(map[string]*terraform1.Schema, len(schemaResp.ResourceTypes)) - drtSchemas := make(map[string]*terraform1.Schema, len(schemaResp.DataSources)) + mrtSchemas := make(map[string]*dependencies.Schema, len(schemaResp.ResourceTypes)) + drtSchemas := make(map[string]*dependencies.Schema, len(schemaResp.DataSources)) for name, elem := range schemaResp.ResourceTypes { mrtSchemas[name] = schemaElementToProto(elem) @@ -148,38 +149,38 @@ func providerSchemaToProto(schemaResp providers.GetProviderSchemaResponse) *terr drtSchemas[name] = schemaElementToProto(elem) } - return &terraform1.ProviderSchema{ + return &dependencies.ProviderSchema{ ProviderConfig: schemaElementToProto(schemaResp.Provider), ManagedResourceTypes: mrtSchemas, DataResourceTypes: drtSchemas, } } -func schemaElementToProto(elem providers.Schema) *terraform1.Schema { - return &terraform1.Schema{ +func schemaElementToProto(elem providers.Schema) *dependencies.Schema { + return &dependencies.Schema{ Block: schemaBlockToProto(elem.Block), } } -func schemaBlockToProto(block *configschema.Block) *terraform1.Schema_Block { +func schemaBlockToProto(block *configschema.Block) *dependencies.Schema_Block { if block == nil { - return &terraform1.Schema_Block{} + return &dependencies.Schema_Block{} } - attributes := make([]*terraform1.Schema_Attribute, 0, len(block.Attributes)) + attributes := make([]*dependencies.Schema_Attribute, 0, len(block.Attributes)) for name, attr := range block.Attributes { attributes = append(attributes, schemaAttributeToProto(name, attr)) } sort.Slice(attributes, func(i, j int) bool { return attributes[i].Name < attributes[j].Name }) - blockTypes := make([]*terraform1.Schema_NestedBlock, 0, len(block.BlockTypes)) + blockTypes := make([]*dependencies.Schema_NestedBlock, 0, len(block.BlockTypes)) for typeName, blockType := range block.BlockTypes { blockTypes = append(blockTypes, schemaNestedBlockToProto(typeName, blockType)) } sort.Slice(blockTypes, func(i, j int) bool { return blockTypes[i].TypeName < blockTypes[j].TypeName }) - return &terraform1.Schema_Block{ + return &dependencies.Schema_Block{ Deprecated: block.Deprecated, Description: schemaDocstringToProto(block.Description, block.DescriptionKind), Attributes: attributes, @@ -187,10 +188,10 @@ func schemaBlockToProto(block *configschema.Block) *terraform1.Schema_Block { } } -func schemaAttributeToProto(name string, attr *configschema.Attribute) *terraform1.Schema_Attribute { +func schemaAttributeToProto(name string, attr *configschema.Attribute) *dependencies.Schema_Attribute { var err error var typeBytes []byte - var objectType *terraform1.Schema_Object + var objectType *dependencies.Schema_Object if attr.NestedType != nil { objectType = schemaNestedObjectTypeToProto(attr.NestedType) } else { @@ -203,7 +204,7 @@ func schemaAttributeToProto(name string, attr *configschema.Attribute) *terrafor } } - return &terraform1.Schema_Attribute{ + return &dependencies.Schema_Attribute{ Name: name, Type: typeBytes, NestedType: objectType, @@ -216,48 +217,48 @@ func schemaAttributeToProto(name string, attr *configschema.Attribute) *terrafor } } -func schemaNestedBlockToProto(typeName string, blockType *configschema.NestedBlock) *terraform1.Schema_NestedBlock { - var protoNesting terraform1.Schema_NestedBlock_NestingMode +func schemaNestedBlockToProto(typeName string, blockType *configschema.NestedBlock) *dependencies.Schema_NestedBlock { + var protoNesting dependencies.Schema_NestedBlock_NestingMode switch blockType.Nesting { case configschema.NestingSingle: - protoNesting = terraform1.Schema_NestedBlock_SINGLE + protoNesting = dependencies.Schema_NestedBlock_SINGLE case configschema.NestingGroup: - protoNesting = terraform1.Schema_NestedBlock_GROUP + protoNesting = dependencies.Schema_NestedBlock_GROUP case configschema.NestingList: - protoNesting = terraform1.Schema_NestedBlock_LIST + protoNesting = dependencies.Schema_NestedBlock_LIST case configschema.NestingSet: - protoNesting = terraform1.Schema_NestedBlock_SET + protoNesting = dependencies.Schema_NestedBlock_SET case configschema.NestingMap: - protoNesting = terraform1.Schema_NestedBlock_MAP + protoNesting = dependencies.Schema_NestedBlock_MAP default: // The above should be exhaustive for all configschema.NestingMode variants panic(fmt.Sprintf("invalid structural attribute nesting mode %s", blockType.Nesting)) } - return &terraform1.Schema_NestedBlock{ + return &dependencies.Schema_NestedBlock{ TypeName: typeName, Block: schemaBlockToProto(&blockType.Block), Nesting: protoNesting, } } -func schemaNestedObjectTypeToProto(objType *configschema.Object) *terraform1.Schema_Object { - var protoNesting terraform1.Schema_Object_NestingMode +func schemaNestedObjectTypeToProto(objType *configschema.Object) *dependencies.Schema_Object { + var protoNesting dependencies.Schema_Object_NestingMode switch objType.Nesting { case configschema.NestingSingle: - protoNesting = terraform1.Schema_Object_SINGLE + protoNesting = dependencies.Schema_Object_SINGLE case configschema.NestingList: - protoNesting = terraform1.Schema_Object_LIST + protoNesting = dependencies.Schema_Object_LIST case configschema.NestingSet: - protoNesting = terraform1.Schema_Object_SET + protoNesting = dependencies.Schema_Object_SET case configschema.NestingMap: - protoNesting = terraform1.Schema_Object_MAP + protoNesting = dependencies.Schema_Object_MAP default: // The above should be exhaustive for all configschema.NestingMode variants panic(fmt.Sprintf("invalid structural attribute nesting mode %s", objType.Nesting)) } - attributes := make([]*terraform1.Schema_Attribute, 0, len(objType.Attributes)) + attributes := make([]*dependencies.Schema_Attribute, 0, len(objType.Attributes)) for name, attr := range objType.Attributes { attributes = append(attributes, schemaAttributeToProto(name, attr)) } @@ -265,28 +266,28 @@ func schemaNestedObjectTypeToProto(objType *configschema.Object) *terraform1.Sch return attributes[i].Name < attributes[j].Name }) - return &terraform1.Schema_Object{ + return &dependencies.Schema_Object{ Nesting: protoNesting, Attributes: attributes, } } -func schemaDocstringToProto(doc string, format configschema.StringKind) *terraform1.Schema_DocString { +func schemaDocstringToProto(doc string, format configschema.StringKind) *dependencies.Schema_DocString { if doc == "" { return nil } - var protoFormat terraform1.Schema_DocString_Format + var protoFormat dependencies.Schema_DocString_Format switch format { case configschema.StringPlain: - protoFormat = terraform1.Schema_DocString_PLAIN + protoFormat = dependencies.Schema_DocString_PLAIN case configschema.StringMarkdown: - protoFormat = terraform1.Schema_DocString_MARKDOWN + protoFormat = dependencies.Schema_DocString_MARKDOWN default: // We'll ignore strings in unsupported formats, although we should // try to keep the above exhaustive if we add new formats in future. return nil } - return &terraform1.Schema_DocString{ + return &dependencies.Schema_DocString{ Description: doc, Format: protoFormat, } diff --git a/internal/rpcapi/dependencies_test.go b/internal/rpcapi/dependencies_test.go index 5b209be4fd..5e08fd3697 100644 --- a/internal/rpcapi/dependencies_test.go +++ b/internal/rpcapi/dependencies_test.go @@ -13,10 +13,13 @@ import ( "github.com/hashicorp/go-slug/sourceaddrs" "github.com/hashicorp/go-slug/sourcebundle" "github.com/hashicorp/terraform-svchost/disco" + "github.com/hashicorp/terraform/internal/addrs" "github.com/hashicorp/terraform/internal/depsfile" "github.com/hashicorp/terraform/internal/getproviders" "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies" + "google.golang.org/grpc" "google.golang.org/protobuf/testing/protocmp" @@ -29,7 +32,7 @@ func TestDependenciesOpenCloseSourceBundle(t *testing.T) { handles := newHandleTable() depsServer := newDependenciesServer(handles, disco.New()) - openResp, err := depsServer.OpenSourceBundle(ctx, &terraform1.OpenSourceBundle_Request{ + openResp, err := depsServer.OpenSourceBundle(ctx, &dependencies.OpenSourceBundle_Request{ LocalPath: "testdata/sourcebundle", }) if err != nil { @@ -58,7 +61,7 @@ func TestDependenciesOpenCloseSourceBundle(t *testing.T) { } } - _, err = depsServer.CloseSourceBundle(ctx, &terraform1.CloseSourceBundle_Request{ + _, err = depsServer.CloseSourceBundle(ctx, &dependencies.CloseSourceBundle_Request{ SourceBundleHandle: openResp.SourceBundleHandle, }) if err != nil { @@ -72,19 +75,19 @@ func TestDependencyLocks(t *testing.T) { handles := newHandleTable() depsServer := newDependenciesServer(handles, disco.New()) - openSourcesResp, err := depsServer.OpenSourceBundle(ctx, &terraform1.OpenSourceBundle_Request{ + openSourcesResp, err := depsServer.OpenSourceBundle(ctx, &dependencies.OpenSourceBundle_Request{ LocalPath: "testdata/sourcebundle", }) if err != nil { t.Fatal(err) } defer func() { - depsServer.CloseSourceBundle(ctx, &terraform1.CloseSourceBundle_Request{ + depsServer.CloseSourceBundle(ctx, &dependencies.CloseSourceBundle_Request{ SourceBundleHandle: openSourcesResp.SourceBundleHandle, }) }() - openLocksResp, err := depsServer.OpenDependencyLockFile(ctx, &terraform1.OpenDependencyLockFile_Request{ + openLocksResp, err := depsServer.OpenDependencyLockFile(ctx, &dependencies.OpenDependencyLockFile_Request{ SourceBundleHandle: openSourcesResp.SourceBundleHandle, SourceAddress: &terraform1.SourceAddress{ Source: "git::https://example.com/foo.git//.terraform.lock.hcl", @@ -125,7 +128,7 @@ func TestDependencyLocks(t *testing.T) { } } - getProvidersResp, err := depsServer.GetLockedProviderDependencies(ctx, &terraform1.GetLockedProviderDependencies_Request{ + getProvidersResp, err := depsServer.GetLockedProviderDependencies(ctx, &dependencies.GetLockedProviderDependencies_Request{ DependencyLocksHandle: openLocksResp.DependencyLocksHandle, }) if err != nil { @@ -144,7 +147,7 @@ func TestDependencyLocks(t *testing.T) { t.Errorf("wrong GetLockedProviderDependencies result\n%s", diff) } - _, err = depsServer.CloseDependencyLocks(ctx, &terraform1.CloseDependencyLocks_Request{ + _, err = depsServer.CloseDependencyLocks(ctx, &dependencies.CloseDependencyLocks_Request{ DependencyLocksHandle: openLocksResp.DependencyLocksHandle, }) if err != nil { @@ -154,14 +157,14 @@ func TestDependencyLocks(t *testing.T) { // We should now be able to create a new locks handle referring to the // same providers as the one we just closed. This simulates a caller // propagating its provider locks between separate instances of rpcapi. - newLocksResp, err := depsServer.CreateDependencyLocks(ctx, &terraform1.CreateDependencyLocks_Request{ + newLocksResp, err := depsServer.CreateDependencyLocks(ctx, &dependencies.CreateDependencyLocks_Request{ ProviderSelections: getProvidersResp.SelectedProviders, }) if err != nil { t.Fatal(err) } - getProvidersResp, err = depsServer.GetLockedProviderDependencies(ctx, &terraform1.GetLockedProviderDependencies_Request{ + getProvidersResp, err = depsServer.GetLockedProviderDependencies(ctx, &dependencies.GetLockedProviderDependencies_Request{ DependencyLocksHandle: newLocksResp.DependencyLocksHandle, }) if err != nil { @@ -182,19 +185,19 @@ func TestDependenciesProviderCache(t *testing.T) { // a real in-memory gRPC connection to exercise it concisely so that // we can work with the client API rather than the server API. grpcClient, close := grpcClientForTesting(ctx, t, func(srv *grpc.Server) { - terraform1.RegisterDependenciesServer(srv, depsServer) + dependencies.RegisterDependenciesServer(srv, depsServer) }) defer close() - depsClient := terraform1.NewDependenciesClient(grpcClient) + depsClient := dependencies.NewDependenciesClient(grpcClient) - openSourcesResp, err := depsClient.OpenSourceBundle(ctx, &terraform1.OpenSourceBundle_Request{ + openSourcesResp, err := depsClient.OpenSourceBundle(ctx, &dependencies.OpenSourceBundle_Request{ LocalPath: "testdata/sourcebundle", }) if err != nil { t.Fatal(err) } defer func() { - _, err := depsClient.CloseSourceBundle(ctx, &terraform1.CloseSourceBundle_Request{ + _, err := depsClient.CloseSourceBundle(ctx, &dependencies.CloseSourceBundle_Request{ SourceBundleHandle: openSourcesResp.SourceBundleHandle, }) if err != nil { @@ -202,7 +205,7 @@ func TestDependenciesProviderCache(t *testing.T) { } }() - openLocksResp, err := depsClient.OpenDependencyLockFile(ctx, &terraform1.OpenDependencyLockFile_Request{ + openLocksResp, err := depsClient.OpenDependencyLockFile(ctx, &dependencies.OpenDependencyLockFile_Request{ SourceBundleHandle: openSourcesResp.SourceBundleHandle, SourceAddress: &terraform1.SourceAddress{ Source: "git::https://example.com/foo.git//.terraform.lock.hcl", @@ -218,7 +221,7 @@ func TestDependenciesProviderCache(t *testing.T) { tmpDir := t.TempDir() cacheDir := filepath.Join(tmpDir, "pc") - evts, err := depsClient.BuildProviderPluginCache(ctx, &terraform1.BuildProviderPluginCache_Request{ + evts, err := depsClient.BuildProviderPluginCache(ctx, &dependencies.BuildProviderPluginCache_Request{ DependencyLocksHandle: openLocksResp.DependencyLocksHandle, CacheDir: cacheDir, @@ -229,9 +232,9 @@ func TestDependenciesProviderCache(t *testing.T) { // (A real client of this API would typically just specify the "direct" // installation method, which retrieves packages from their origin // registries.) - InstallationMethods: []*terraform1.BuildProviderPluginCache_Request_InstallMethod{ + InstallationMethods: []*dependencies.BuildProviderPluginCache_Request_InstallMethod{ { - Source: &terraform1.BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir{ + Source: &dependencies.BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir{ LocalMirrorDir: "testdata/provider-fs-mirror", }, }, @@ -258,9 +261,9 @@ func TestDependenciesProviderCache(t *testing.T) { // for UI purposes we ought to add more coverage here for the other // event types. switch evt := msg.Event.(type) { - case *terraform1.BuildProviderPluginCache_Event_Diagnostic: + case *dependencies.BuildProviderPluginCache_Event_Diagnostic: t.Errorf("unexpected diagnostic:\n\n%s\n\n%s", evt.Diagnostic.Summary, evt.Diagnostic.Detail) - case *terraform1.BuildProviderPluginCache_Event_FetchComplete_: + case *dependencies.BuildProviderPluginCache_Event_FetchComplete_: if evt.FetchComplete.ProviderVersion.SourceAddr == "example.com/foo/bar" { seenFakeProvider = true if got, want := evt.FetchComplete.ProviderVersion.Version, "1.2.3"; got != want { @@ -275,7 +278,7 @@ func TestDependenciesProviderCache(t *testing.T) { t.Error("no 'fetch complete' event for example.com/foo/bar") } - openCacheResp, err := depsClient.OpenProviderPluginCache(ctx, &terraform1.OpenProviderPluginCache_Request{ + openCacheResp, err := depsClient.OpenProviderPluginCache(ctx, &dependencies.OpenProviderPluginCache_Request{ CacheDir: cacheDir, OverridePlatform: "os_arch", }) @@ -283,14 +286,14 @@ func TestDependenciesProviderCache(t *testing.T) { t.Fatal(err) } defer func() { - _, err := depsClient.CloseProviderPluginCache(ctx, &terraform1.CloseProviderPluginCache_Request{ + _, err := depsClient.CloseProviderPluginCache(ctx, &dependencies.CloseProviderPluginCache_Request{ ProviderCacheHandle: openCacheResp.ProviderCacheHandle, }) if err != nil { t.Error(err) } }() - pkgsResp, err := depsClient.GetCachedProviders(ctx, &terraform1.GetCachedProviders_Request{ + pkgsResp, err := depsClient.GetCachedProviders(ctx, &dependencies.GetCachedProviders_Request{ ProviderCacheHandle: openCacheResp.ProviderCacheHandle, }) if err != nil { @@ -320,7 +323,7 @@ func TestDependenciesProviderSchema(t *testing.T) { handles := newHandleTable() depsServer := newDependenciesServer(handles, disco.New()) - providersResp, err := depsServer.GetBuiltInProviders(ctx, &terraform1.GetBuiltInProviders_Request{}) + providersResp, err := depsServer.GetBuiltInProviders(ctx, &dependencies.GetBuiltInProviders_Request{}) if err != nil { t.Fatal(err) } @@ -336,7 +339,7 @@ func TestDependenciesProviderSchema(t *testing.T) { } } - schemaResp, err := depsServer.GetProviderSchema(ctx, &terraform1.GetProviderSchema_Request{ + schemaResp, err := depsServer.GetProviderSchema(ctx, &dependencies.GetProviderSchema_Request{ ProviderAddr: "terraform.io/builtin/terraform", }) if err != nil { @@ -344,69 +347,69 @@ func TestDependenciesProviderSchema(t *testing.T) { } { got := schemaResp.Schema - want := &terraform1.ProviderSchema{ - ProviderConfig: &terraform1.Schema{ - Block: &terraform1.Schema_Block{ + want := &dependencies.ProviderSchema{ + ProviderConfig: &dependencies.Schema{ + Block: &dependencies.Schema_Block{ // This provider has no configuration arguments }, }, - DataResourceTypes: map[string]*terraform1.Schema{ - "terraform_remote_state": &terraform1.Schema{ - Block: &terraform1.Schema_Block{ - Attributes: []*terraform1.Schema_Attribute{ + DataResourceTypes: map[string]*dependencies.Schema{ + "terraform_remote_state": &dependencies.Schema{ + Block: &dependencies.Schema_Block{ + Attributes: []*dependencies.Schema_Attribute{ { Name: "backend", Type: []byte(`"string"`), Required: true, - Description: &terraform1.Schema_DocString{ + Description: &dependencies.Schema_DocString{ Description: "The remote backend to use, e.g. `remote` or `http`.", - Format: terraform1.Schema_DocString_MARKDOWN, + Format: dependencies.Schema_DocString_MARKDOWN, }, }, { Name: "config", Type: []byte(`"dynamic"`), Optional: true, - Description: &terraform1.Schema_DocString{ + Description: &dependencies.Schema_DocString{ Description: "The configuration of the remote backend. Although this is optional, most backends require some configuration.\n\nThe object can use any arguments that would be valid in the equivalent `terraform { backend \"\" { ... } }` block.", - Format: terraform1.Schema_DocString_MARKDOWN, + Format: dependencies.Schema_DocString_MARKDOWN, }, }, { Name: "defaults", Type: []byte(`"dynamic"`), Optional: true, - Description: &terraform1.Schema_DocString{ + Description: &dependencies.Schema_DocString{ Description: "Default values for outputs, in case the state file is empty or lacks a required output.", - Format: terraform1.Schema_DocString_MARKDOWN, + Format: dependencies.Schema_DocString_MARKDOWN, }, }, { Name: "outputs", Type: []byte(`"dynamic"`), Computed: true, - Description: &terraform1.Schema_DocString{ + Description: &dependencies.Schema_DocString{ Description: "An object containing every root-level output in the remote state.", - Format: terraform1.Schema_DocString_MARKDOWN, + Format: dependencies.Schema_DocString_MARKDOWN, }, }, { Name: "workspace", Type: []byte(`"string"`), Optional: true, - Description: &terraform1.Schema_DocString{ + Description: &dependencies.Schema_DocString{ Description: "The Terraform workspace to use, if the backend supports workspaces.", - Format: terraform1.Schema_DocString_MARKDOWN, + Format: dependencies.Schema_DocString_MARKDOWN, }, }, }, }, }, }, - ManagedResourceTypes: map[string]*terraform1.Schema{ - "terraform_data": &terraform1.Schema{ - Block: &terraform1.Schema_Block{ - Attributes: []*terraform1.Schema_Attribute{ + ManagedResourceTypes: map[string]*dependencies.Schema{ + "terraform_data": &dependencies.Schema{ + Block: &dependencies.Schema_Block{ + Attributes: []*dependencies.Schema_Attribute{ { Name: "id", Type: []byte(`"string"`), diff --git a/internal/rpcapi/dynrpcserver/dependencies.go b/internal/rpcapi/dynrpcserver/dependencies.go index 9dfec23087..0ccdb5490a 100644 --- a/internal/rpcapi/dynrpcserver/dependencies.go +++ b/internal/rpcapi/dynrpcserver/dependencies.go @@ -8,21 +8,21 @@ import ( "context" "sync" - tf1 "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + dependencies "github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies" ) type Dependencies struct { - impl tf1.DependenciesServer + impl dependencies.DependenciesServer mu sync.RWMutex } -var _ tf1.DependenciesServer = (*Dependencies)(nil) +var _ dependencies.DependenciesServer = (*Dependencies)(nil) func NewDependenciesStub() *Dependencies { return &Dependencies{} } -func (s *Dependencies) BuildProviderPluginCache(a0 *tf1.BuildProviderPluginCache_Request, a1 tf1.Dependencies_BuildProviderPluginCacheServer) error { +func (s *Dependencies) BuildProviderPluginCache(a0 *dependencies.BuildProviderPluginCache_Request, a1 dependencies.Dependencies_BuildProviderPluginCacheServer) error { impl, err := s.realRPCServer() if err != nil { return err @@ -30,7 +30,7 @@ func (s *Dependencies) BuildProviderPluginCache(a0 *tf1.BuildProviderPluginCache return impl.BuildProviderPluginCache(a0, a1) } -func (s *Dependencies) CloseDependencyLocks(a0 context.Context, a1 *tf1.CloseDependencyLocks_Request) (*tf1.CloseDependencyLocks_Response, error) { +func (s *Dependencies) CloseDependencyLocks(a0 context.Context, a1 *dependencies.CloseDependencyLocks_Request) (*dependencies.CloseDependencyLocks_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -38,7 +38,7 @@ func (s *Dependencies) CloseDependencyLocks(a0 context.Context, a1 *tf1.CloseDep return impl.CloseDependencyLocks(a0, a1) } -func (s *Dependencies) CloseProviderPluginCache(a0 context.Context, a1 *tf1.CloseProviderPluginCache_Request) (*tf1.CloseProviderPluginCache_Response, error) { +func (s *Dependencies) CloseProviderPluginCache(a0 context.Context, a1 *dependencies.CloseProviderPluginCache_Request) (*dependencies.CloseProviderPluginCache_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -46,7 +46,7 @@ func (s *Dependencies) CloseProviderPluginCache(a0 context.Context, a1 *tf1.Clos return impl.CloseProviderPluginCache(a0, a1) } -func (s *Dependencies) CloseSourceBundle(a0 context.Context, a1 *tf1.CloseSourceBundle_Request) (*tf1.CloseSourceBundle_Response, error) { +func (s *Dependencies) CloseSourceBundle(a0 context.Context, a1 *dependencies.CloseSourceBundle_Request) (*dependencies.CloseSourceBundle_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -54,7 +54,7 @@ func (s *Dependencies) CloseSourceBundle(a0 context.Context, a1 *tf1.CloseSource return impl.CloseSourceBundle(a0, a1) } -func (s *Dependencies) CreateDependencyLocks(a0 context.Context, a1 *tf1.CreateDependencyLocks_Request) (*tf1.CreateDependencyLocks_Response, error) { +func (s *Dependencies) CreateDependencyLocks(a0 context.Context, a1 *dependencies.CreateDependencyLocks_Request) (*dependencies.CreateDependencyLocks_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -62,7 +62,7 @@ func (s *Dependencies) CreateDependencyLocks(a0 context.Context, a1 *tf1.CreateD return impl.CreateDependencyLocks(a0, a1) } -func (s *Dependencies) GetBuiltInProviders(a0 context.Context, a1 *tf1.GetBuiltInProviders_Request) (*tf1.GetBuiltInProviders_Response, error) { +func (s *Dependencies) GetBuiltInProviders(a0 context.Context, a1 *dependencies.GetBuiltInProviders_Request) (*dependencies.GetBuiltInProviders_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -70,7 +70,7 @@ func (s *Dependencies) GetBuiltInProviders(a0 context.Context, a1 *tf1.GetBuiltI return impl.GetBuiltInProviders(a0, a1) } -func (s *Dependencies) GetCachedProviders(a0 context.Context, a1 *tf1.GetCachedProviders_Request) (*tf1.GetCachedProviders_Response, error) { +func (s *Dependencies) GetCachedProviders(a0 context.Context, a1 *dependencies.GetCachedProviders_Request) (*dependencies.GetCachedProviders_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -78,7 +78,7 @@ func (s *Dependencies) GetCachedProviders(a0 context.Context, a1 *tf1.GetCachedP return impl.GetCachedProviders(a0, a1) } -func (s *Dependencies) GetLockedProviderDependencies(a0 context.Context, a1 *tf1.GetLockedProviderDependencies_Request) (*tf1.GetLockedProviderDependencies_Response, error) { +func (s *Dependencies) GetLockedProviderDependencies(a0 context.Context, a1 *dependencies.GetLockedProviderDependencies_Request) (*dependencies.GetLockedProviderDependencies_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -86,7 +86,7 @@ func (s *Dependencies) GetLockedProviderDependencies(a0 context.Context, a1 *tf1 return impl.GetLockedProviderDependencies(a0, a1) } -func (s *Dependencies) GetProviderSchema(a0 context.Context, a1 *tf1.GetProviderSchema_Request) (*tf1.GetProviderSchema_Response, error) { +func (s *Dependencies) GetProviderSchema(a0 context.Context, a1 *dependencies.GetProviderSchema_Request) (*dependencies.GetProviderSchema_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -94,7 +94,7 @@ func (s *Dependencies) GetProviderSchema(a0 context.Context, a1 *tf1.GetProvider return impl.GetProviderSchema(a0, a1) } -func (s *Dependencies) OpenDependencyLockFile(a0 context.Context, a1 *tf1.OpenDependencyLockFile_Request) (*tf1.OpenDependencyLockFile_Response, error) { +func (s *Dependencies) OpenDependencyLockFile(a0 context.Context, a1 *dependencies.OpenDependencyLockFile_Request) (*dependencies.OpenDependencyLockFile_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -102,7 +102,7 @@ func (s *Dependencies) OpenDependencyLockFile(a0 context.Context, a1 *tf1.OpenDe return impl.OpenDependencyLockFile(a0, a1) } -func (s *Dependencies) OpenProviderPluginCache(a0 context.Context, a1 *tf1.OpenProviderPluginCache_Request) (*tf1.OpenProviderPluginCache_Response, error) { +func (s *Dependencies) OpenProviderPluginCache(a0 context.Context, a1 *dependencies.OpenProviderPluginCache_Request) (*dependencies.OpenProviderPluginCache_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -110,7 +110,7 @@ func (s *Dependencies) OpenProviderPluginCache(a0 context.Context, a1 *tf1.OpenP return impl.OpenProviderPluginCache(a0, a1) } -func (s *Dependencies) OpenSourceBundle(a0 context.Context, a1 *tf1.OpenSourceBundle_Request) (*tf1.OpenSourceBundle_Response, error) { +func (s *Dependencies) OpenSourceBundle(a0 context.Context, a1 *dependencies.OpenSourceBundle_Request) (*dependencies.OpenSourceBundle_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -118,13 +118,13 @@ func (s *Dependencies) OpenSourceBundle(a0 context.Context, a1 *tf1.OpenSourceBu return impl.OpenSourceBundle(a0, a1) } -func (s *Dependencies) ActivateRPCServer(impl tf1.DependenciesServer) { +func (s *Dependencies) ActivateRPCServer(impl dependencies.DependenciesServer) { s.mu.Lock() s.impl = impl s.mu.Unlock() } -func (s *Dependencies) realRPCServer() (tf1.DependenciesServer, error) { +func (s *Dependencies) realRPCServer() (dependencies.DependenciesServer, error) { s.mu.RLock() impl := s.impl s.mu.RUnlock() diff --git a/internal/rpcapi/dynrpcserver/generator/main.go b/internal/rpcapi/dynrpcserver/generator/main.go index 5854a8a85e..9f1631a52e 100644 --- a/internal/rpcapi/dynrpcserver/generator/main.go +++ b/internal/rpcapi/dynrpcserver/generator/main.go @@ -23,172 +23,177 @@ import ( "golang.org/x/tools/go/packages" ) -const protobufPkg = "github.com/hashicorp/terraform/internal/rpcapi/terraform1" +var protobufPkgs = map[string]string{ + "dependencies": "github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies", + "stacks": "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks", + "packages": "github.com/hashicorp/terraform/internal/rpcapi/terraform1/packages", +} func main() { - cfg := &packages.Config{ - Mode: packages.NeedTypes | packages.NeedTypesInfo | packages.NeedFiles, - } - pkgs, err := packages.Load(cfg, protobufPkg) - if err != nil { - log.Fatalf("can't load the protobuf/gRPC proxy package: %s", err) - } - if len(pkgs) != 1 { - log.Fatalf("wrong number of packages found") - } - pkg := pkgs[0] - if pkg.TypesInfo == nil { - log.Fatalf("types info not available") - } - if len(pkg.GoFiles) < 1 { - log.Fatalf("no files included in package") - } - - // We assume that our output directory is sibling to the directory - // containing the protobuf specification. - outDir := filepath.Join(filepath.Dir(pkg.GoFiles[0]), "../dynrpcserver") - -Types: - for _, obj := range pkg.TypesInfo.Defs { - typ, ok := obj.(*types.TypeName) - if !ok { - continue + for shortName, pkgName := range protobufPkgs { + cfg := &packages.Config{ + Mode: packages.NeedTypes | packages.NeedTypesInfo | packages.NeedFiles, } - underTyp := typ.Type().Underlying() - iface, ok := underTyp.(*types.Interface) - if !ok { - continue + pkgs, err := packages.Load(cfg, pkgName) + if err != nil { + log.Fatalf("can't load the protobuf/gRPC proxy package: %s", err) } - if !strings.HasSuffix(typ.Name(), "Server") || typ.Name() == "SetupServer" { - // Doesn't look like a generated gRPC server interface - continue + if len(pkgs) != 1 { + log.Fatalf("wrong number of packages found") + } + pkg := pkgs[0] + if pkg.TypesInfo == nil { + log.Fatalf("types info not available") + } + if len(pkg.GoFiles) < 1 { + log.Fatalf("no files included in package") } - // The interfaces used for streaming requests/responses unfortunately - // also have a "Server" suffix in the generated Go code, and so - // we need to detect those more surgically by noticing that they - // have grpc.ServerStream embedded inside. - for i := 0; i < iface.NumEmbeddeds(); i++ { - emb, ok := iface.EmbeddedType(i).(*types.Named) + // We assume that our output directory is sibling to the directory + // containing the protobuf specification. + outDir := filepath.Join(filepath.Dir(pkg.GoFiles[0]), "../../dynrpcserver") + + Types: + for _, obj := range pkg.TypesInfo.Defs { + typ, ok := obj.(*types.TypeName) if !ok { continue } - pkg := emb.Obj().Pkg().Path() - name := emb.Obj().Name() - if pkg == "google.golang.org/grpc" && name == "ServerStream" { - continue Types + underTyp := typ.Type().Underlying() + iface, ok := underTyp.(*types.Interface) + if !ok { + continue + } + if !strings.HasSuffix(typ.Name(), "Server") || typ.Name() == "SetupServer" { + // Doesn't look like a generated gRPC server interface + continue } - } - // If we get here then what we're holding _seems_ to be a gRPC - // server interface, and so we'll generate a dynamic initialization - // wrapper for it. + // The interfaces used for streaming requests/responses unfortunately + // also have a "Server" suffix in the generated Go code, and so + // we need to detect those more surgically by noticing that they + // have grpc.ServerStream embedded inside. + for i := 0; i < iface.NumEmbeddeds(); i++ { + emb, ok := iface.EmbeddedType(i).(*types.Named) + if !ok { + continue + } + pkg := emb.Obj().Pkg().Path() + name := emb.Obj().Name() + if pkg == "google.golang.org/grpc" && name == "ServerStream" { + continue Types + } + } - ifaceName := typ.Name() - baseName := strings.TrimSuffix(ifaceName, "Server") - filename := toFilenameCase(baseName) + ".go" - absFilename := filepath.Join(outDir, filename) + // If we get here then what we're holding _seems_ to be a gRPC + // server interface, and so we'll generate a dynamic initialization + // wrapper for it. - var buf bytes.Buffer + ifaceName := typ.Name() + baseName := strings.TrimSuffix(ifaceName, "Server") + filename := toFilenameCase(baseName) + ".go" + absFilename := filepath.Join(outDir, filename) - fmt.Fprintf(&buf, `// Copyright (c) HashiCorp, Inc. + var buf bytes.Buffer + + fmt.Fprintf(&buf, `// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 // Code generated by ./generator. DO NOT EDIT. `) - fmt.Fprintf(&buf, `package dynrpcserver + fmt.Fprintf(&buf, `package dynrpcserver import ( "context" "sync" - tf1 %q + %s %q ) - `, protobufPkg) - fmt.Fprintf(&buf, "type %s struct {\n", baseName) - fmt.Fprintf(&buf, "impl tf1.%s\n", ifaceName) - fmt.Fprintln(&buf, "mu sync.RWMutex") - buf.WriteString("}\n\n") + `, shortName, pkg) + fmt.Fprintf(&buf, "type %s struct {\n", baseName) + fmt.Fprintf(&buf, "impl %s.%s\n", shortName, ifaceName) + fmt.Fprintln(&buf, "mu sync.RWMutex") + buf.WriteString("}\n\n") - fmt.Fprintf(&buf, "var _ tf1.%s = (*%s)(nil)\n\n", ifaceName, baseName) + fmt.Fprintf(&buf, "var _ %s.%s = (*%s)(nil)\n\n", shortName, ifaceName, baseName) - fmt.Fprintf(&buf, "func New%sStub() *%s {\n", baseName, baseName) - fmt.Fprintf(&buf, "return &%s{}\n", baseName) - fmt.Fprintf(&buf, "}\n\n") + fmt.Fprintf(&buf, "func New%sStub() *%s {\n", baseName, baseName) + fmt.Fprintf(&buf, "return &%s{}\n", baseName) + fmt.Fprintf(&buf, "}\n\n") - for i := 0; i < iface.NumMethods(); i++ { - method := iface.Method(i) - sig := method.Type().(*types.Signature) + for i := 0; i < iface.NumMethods(); i++ { + method := iface.Method(i) + sig := method.Type().(*types.Signature) - fmt.Fprintf(&buf, "func (s *%s) %s(", baseName, method.Name()) - for i := 0; i < sig.Params().Len(); i++ { - param := sig.Params().At(i) + fmt.Fprintf(&buf, "func (s *%s) %s(", baseName, method.Name()) + for i := 0; i < sig.Params().Len(); i++ { + param := sig.Params().At(i) - // The generated interface types don't include parameter names - // and so we just use synthetic parameter names here. - name := fmt.Sprintf("a%d", i) - genType := typeRef(param.Type().String()) + // The generated interface types don't include parameter names + // and so we just use synthetic parameter names here. + name := fmt.Sprintf("a%d", i) + genType := typeRef(param.Type().String(), shortName, pkgName) - if i > 0 { - buf.WriteString(", ") + if i > 0 { + buf.WriteString(", ") + } + buf.WriteString(name) + buf.WriteString(" ") + buf.WriteString(genType) } - buf.WriteString(name) - buf.WriteString(" ") - buf.WriteString(genType) - } - fmt.Fprintf(&buf, ")") - if sig.Results().Len() > 1 { - buf.WriteString("(") - } - for i := 0; i < sig.Results().Len(); i++ { - result := sig.Results().At(i) - genType := typeRef(result.Type().String()) - if i > 0 { - buf.WriteString(", ") + fmt.Fprintf(&buf, ")") + if sig.Results().Len() > 1 { + buf.WriteString("(") } - buf.WriteString(genType) - } - if sig.Results().Len() > 1 { - buf.WriteString(")") - } - switch n := sig.Results().Len(); n { - case 1: - fmt.Fprintf(&buf, ` { + for i := 0; i < sig.Results().Len(); i++ { + result := sig.Results().At(i) + genType := typeRef(result.Type().String(), shortName, pkgName) + if i > 0 { + buf.WriteString(", ") + } + buf.WriteString(genType) + } + if sig.Results().Len() > 1 { + buf.WriteString(")") + } + switch n := sig.Results().Len(); n { + case 1: + fmt.Fprintf(&buf, ` { impl, err := s.realRPCServer() if err != nil { return err } `) - case 2: - fmt.Fprintf(&buf, ` { + case 2: + fmt.Fprintf(&buf, ` { impl, err := s.realRPCServer() if err != nil { return nil, err } `) - default: - log.Fatalf("don't know how to make a stub for method with %d results", n) - } - fmt.Fprintf(&buf, "return impl.%s(", method.Name()) - for i := 0; i < sig.Params().Len(); i++ { - if i > 0 { - buf.WriteString(", ") + default: + log.Fatalf("don't know how to make a stub for method with %d results", n) } - fmt.Fprintf(&buf, "a%d", i) + fmt.Fprintf(&buf, "return impl.%s(", method.Name()) + for i := 0; i < sig.Params().Len(); i++ { + if i > 0 { + buf.WriteString(", ") + } + fmt.Fprintf(&buf, "a%d", i) + } + fmt.Fprintf(&buf, ")\n}\n\n") } - fmt.Fprintf(&buf, ")\n}\n\n") - } - fmt.Fprintf(&buf, ` - func (s *%s) ActivateRPCServer(impl tf1.%s) { + fmt.Fprintf(&buf, ` + func (s *%s) ActivateRPCServer(impl %s.%s) { s.mu.Lock() s.impl = impl s.mu.Unlock() } - func (s *%s) realRPCServer() (tf1.%s, error) { + func (s *%s) realRPCServer() (%s.%s, error) { s.mu.RLock() impl := s.impl s.mu.RUnlock() @@ -197,26 +202,27 @@ Types: } return impl, nil } - `, baseName, ifaceName, baseName, ifaceName) + `, baseName, shortName, ifaceName, baseName, shortName, ifaceName) - src, err := format.Source(buf.Bytes()) - if err != nil { - //log.Fatalf("formatting %s: %s", filename, err) - src = buf.Bytes() - } - f, err := os.Create(absFilename) - if err != nil { - log.Fatal(err) - } - _, err = f.Write(src) - if err != nil { - log.Fatalf("writing %s: %s", filename, err) - } + src, err := format.Source(buf.Bytes()) + if err != nil { + //log.Fatalf("formatting %s: %s", filename, err) + src = buf.Bytes() + } + f, err := os.Create(absFilename) + if err != nil { + log.Fatal(err) + } + _, err = f.Write(src) + if err != nil { + log.Fatalf("writing %s: %s", filename, err) + } + } } } -func typeRef(fullType string) string { +func typeRef(fullType, name, pkg string) string { // The following is specialized to only the parameter types // we typically expect to see in a server interface. This // might need extra rules if we step outside the design idiom @@ -226,10 +232,10 @@ func typeRef(fullType string) string { return fullType case fullType == "interface{}" || fullType == "any": return "any" - case strings.HasPrefix(fullType, "*"+protobufPkg+"."): - return "*tf1." + fullType[len(protobufPkg)+2:] - case strings.HasPrefix(fullType, protobufPkg+"."): - return "tf1." + fullType[len(protobufPkg)+1:] + case strings.HasPrefix(fullType, "*"+pkg+"."): + return "*" + name + "." + fullType[len(pkg)+2:] + case strings.HasPrefix(fullType, pkg+"."): + return name + "." + fullType[len(pkg)+1:] default: log.Fatalf("don't know what to do with parameter type %s", fullType) return "" diff --git a/internal/rpcapi/dynrpcserver/packages.go b/internal/rpcapi/dynrpcserver/packages.go index e1577f2f79..da3e72fc17 100644 --- a/internal/rpcapi/dynrpcserver/packages.go +++ b/internal/rpcapi/dynrpcserver/packages.go @@ -8,21 +8,21 @@ import ( "context" "sync" - tf1 "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + packages "github.com/hashicorp/terraform/internal/rpcapi/terraform1/packages" ) type Packages struct { - impl tf1.PackagesServer + impl packages.PackagesServer mu sync.RWMutex } -var _ tf1.PackagesServer = (*Packages)(nil) +var _ packages.PackagesServer = (*Packages)(nil) func NewPackagesStub() *Packages { return &Packages{} } -func (s *Packages) FetchModulePackage(a0 context.Context, a1 *tf1.FetchModulePackage_Request) (*tf1.FetchModulePackage_Response, error) { +func (s *Packages) FetchModulePackage(a0 context.Context, a1 *packages.FetchModulePackage_Request) (*packages.FetchModulePackage_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -30,7 +30,7 @@ func (s *Packages) FetchModulePackage(a0 context.Context, a1 *tf1.FetchModulePac return impl.FetchModulePackage(a0, a1) } -func (s *Packages) FetchProviderPackage(a0 context.Context, a1 *tf1.FetchProviderPackage_Request) (*tf1.FetchProviderPackage_Response, error) { +func (s *Packages) FetchProviderPackage(a0 context.Context, a1 *packages.FetchProviderPackage_Request) (*packages.FetchProviderPackage_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -38,7 +38,7 @@ func (s *Packages) FetchProviderPackage(a0 context.Context, a1 *tf1.FetchProvide return impl.FetchProviderPackage(a0, a1) } -func (s *Packages) ModulePackageSourceAddr(a0 context.Context, a1 *tf1.ModulePackageSourceAddr_Request) (*tf1.ModulePackageSourceAddr_Response, error) { +func (s *Packages) ModulePackageSourceAddr(a0 context.Context, a1 *packages.ModulePackageSourceAddr_Request) (*packages.ModulePackageSourceAddr_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -46,7 +46,7 @@ func (s *Packages) ModulePackageSourceAddr(a0 context.Context, a1 *tf1.ModulePac return impl.ModulePackageSourceAddr(a0, a1) } -func (s *Packages) ModulePackageVersions(a0 context.Context, a1 *tf1.ModulePackageVersions_Request) (*tf1.ModulePackageVersions_Response, error) { +func (s *Packages) ModulePackageVersions(a0 context.Context, a1 *packages.ModulePackageVersions_Request) (*packages.ModulePackageVersions_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -54,7 +54,7 @@ func (s *Packages) ModulePackageVersions(a0 context.Context, a1 *tf1.ModulePacka return impl.ModulePackageVersions(a0, a1) } -func (s *Packages) ProviderPackageVersions(a0 context.Context, a1 *tf1.ProviderPackageVersions_Request) (*tf1.ProviderPackageVersions_Response, error) { +func (s *Packages) ProviderPackageVersions(a0 context.Context, a1 *packages.ProviderPackageVersions_Request) (*packages.ProviderPackageVersions_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -62,13 +62,13 @@ func (s *Packages) ProviderPackageVersions(a0 context.Context, a1 *tf1.ProviderP return impl.ProviderPackageVersions(a0, a1) } -func (s *Packages) ActivateRPCServer(impl tf1.PackagesServer) { +func (s *Packages) ActivateRPCServer(impl packages.PackagesServer) { s.mu.Lock() s.impl = impl s.mu.Unlock() } -func (s *Packages) realRPCServer() (tf1.PackagesServer, error) { +func (s *Packages) realRPCServer() (packages.PackagesServer, error) { s.mu.RLock() impl := s.impl s.mu.RUnlock() diff --git a/internal/rpcapi/dynrpcserver/stacks.go b/internal/rpcapi/dynrpcserver/stacks.go index 6267773628..ddd996e416 100644 --- a/internal/rpcapi/dynrpcserver/stacks.go +++ b/internal/rpcapi/dynrpcserver/stacks.go @@ -8,21 +8,21 @@ import ( "context" "sync" - tf1 "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + stacks "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" ) type Stacks struct { - impl tf1.StacksServer + impl stacks.StacksServer mu sync.RWMutex } -var _ tf1.StacksServer = (*Stacks)(nil) +var _ stacks.StacksServer = (*Stacks)(nil) func NewStacksStub() *Stacks { return &Stacks{} } -func (s *Stacks) ApplyStackChanges(a0 *tf1.ApplyStackChanges_Request, a1 tf1.Stacks_ApplyStackChangesServer) error { +func (s *Stacks) ApplyStackChanges(a0 *stacks.ApplyStackChanges_Request, a1 stacks.Stacks_ApplyStackChangesServer) error { impl, err := s.realRPCServer() if err != nil { return err @@ -30,7 +30,7 @@ func (s *Stacks) ApplyStackChanges(a0 *tf1.ApplyStackChanges_Request, a1 tf1.Sta return impl.ApplyStackChanges(a0, a1) } -func (s *Stacks) ClosePlan(a0 context.Context, a1 *tf1.CloseStackPlan_Request) (*tf1.CloseStackPlan_Response, error) { +func (s *Stacks) ClosePlan(a0 context.Context, a1 *stacks.CloseStackPlan_Request) (*stacks.CloseStackPlan_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -38,7 +38,7 @@ func (s *Stacks) ClosePlan(a0 context.Context, a1 *tf1.CloseStackPlan_Request) ( return impl.ClosePlan(a0, a1) } -func (s *Stacks) CloseStackConfiguration(a0 context.Context, a1 *tf1.CloseStackConfiguration_Request) (*tf1.CloseStackConfiguration_Response, error) { +func (s *Stacks) CloseStackConfiguration(a0 context.Context, a1 *stacks.CloseStackConfiguration_Request) (*stacks.CloseStackConfiguration_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -46,7 +46,7 @@ func (s *Stacks) CloseStackConfiguration(a0 context.Context, a1 *tf1.CloseStackC return impl.CloseStackConfiguration(a0, a1) } -func (s *Stacks) CloseState(a0 context.Context, a1 *tf1.CloseStackState_Request) (*tf1.CloseStackState_Response, error) { +func (s *Stacks) CloseState(a0 context.Context, a1 *stacks.CloseStackState_Request) (*stacks.CloseStackState_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -54,7 +54,7 @@ func (s *Stacks) CloseState(a0 context.Context, a1 *tf1.CloseStackState_Request) return impl.CloseState(a0, a1) } -func (s *Stacks) FindStackConfigurationComponents(a0 context.Context, a1 *tf1.FindStackConfigurationComponents_Request) (*tf1.FindStackConfigurationComponents_Response, error) { +func (s *Stacks) FindStackConfigurationComponents(a0 context.Context, a1 *stacks.FindStackConfigurationComponents_Request) (*stacks.FindStackConfigurationComponents_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -62,7 +62,7 @@ func (s *Stacks) FindStackConfigurationComponents(a0 context.Context, a1 *tf1.Fi return impl.FindStackConfigurationComponents(a0, a1) } -func (s *Stacks) InspectExpressionResult(a0 context.Context, a1 *tf1.InspectExpressionResult_Request) (*tf1.InspectExpressionResult_Response, error) { +func (s *Stacks) InspectExpressionResult(a0 context.Context, a1 *stacks.InspectExpressionResult_Request) (*stacks.InspectExpressionResult_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -70,7 +70,7 @@ func (s *Stacks) InspectExpressionResult(a0 context.Context, a1 *tf1.InspectExpr return impl.InspectExpressionResult(a0, a1) } -func (s *Stacks) OpenPlan(a0 tf1.Stacks_OpenPlanServer) error { +func (s *Stacks) OpenPlan(a0 stacks.Stacks_OpenPlanServer) error { impl, err := s.realRPCServer() if err != nil { return err @@ -78,7 +78,7 @@ func (s *Stacks) OpenPlan(a0 tf1.Stacks_OpenPlanServer) error { return impl.OpenPlan(a0) } -func (s *Stacks) OpenStackConfiguration(a0 context.Context, a1 *tf1.OpenStackConfiguration_Request) (*tf1.OpenStackConfiguration_Response, error) { +func (s *Stacks) OpenStackConfiguration(a0 context.Context, a1 *stacks.OpenStackConfiguration_Request) (*stacks.OpenStackConfiguration_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -86,7 +86,7 @@ func (s *Stacks) OpenStackConfiguration(a0 context.Context, a1 *tf1.OpenStackCon return impl.OpenStackConfiguration(a0, a1) } -func (s *Stacks) OpenStackInspector(a0 context.Context, a1 *tf1.OpenStackInspector_Request) (*tf1.OpenStackInspector_Response, error) { +func (s *Stacks) OpenStackInspector(a0 context.Context, a1 *stacks.OpenStackInspector_Request) (*stacks.OpenStackInspector_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -94,7 +94,7 @@ func (s *Stacks) OpenStackInspector(a0 context.Context, a1 *tf1.OpenStackInspect return impl.OpenStackInspector(a0, a1) } -func (s *Stacks) OpenState(a0 tf1.Stacks_OpenStateServer) error { +func (s *Stacks) OpenState(a0 stacks.Stacks_OpenStateServer) error { impl, err := s.realRPCServer() if err != nil { return err @@ -102,7 +102,7 @@ func (s *Stacks) OpenState(a0 tf1.Stacks_OpenStateServer) error { return impl.OpenState(a0) } -func (s *Stacks) PlanStackChanges(a0 *tf1.PlanStackChanges_Request, a1 tf1.Stacks_PlanStackChangesServer) error { +func (s *Stacks) PlanStackChanges(a0 *stacks.PlanStackChanges_Request, a1 stacks.Stacks_PlanStackChangesServer) error { impl, err := s.realRPCServer() if err != nil { return err @@ -110,7 +110,7 @@ func (s *Stacks) PlanStackChanges(a0 *tf1.PlanStackChanges_Request, a1 tf1.Stack return impl.PlanStackChanges(a0, a1) } -func (s *Stacks) ValidateStackConfiguration(a0 context.Context, a1 *tf1.ValidateStackConfiguration_Request) (*tf1.ValidateStackConfiguration_Response, error) { +func (s *Stacks) ValidateStackConfiguration(a0 context.Context, a1 *stacks.ValidateStackConfiguration_Request) (*stacks.ValidateStackConfiguration_Response, error) { impl, err := s.realRPCServer() if err != nil { return nil, err @@ -118,13 +118,13 @@ func (s *Stacks) ValidateStackConfiguration(a0 context.Context, a1 *tf1.Validate return impl.ValidateStackConfiguration(a0, a1) } -func (s *Stacks) ActivateRPCServer(impl tf1.StacksServer) { +func (s *Stacks) ActivateRPCServer(impl stacks.StacksServer) { s.mu.Lock() s.impl = impl s.mu.Unlock() } -func (s *Stacks) realRPCServer() (tf1.StacksServer, error) { +func (s *Stacks) realRPCServer() (stacks.StacksServer, error) { s.mu.RLock() impl := s.impl s.mu.RUnlock() diff --git a/internal/rpcapi/internal_client.go b/internal/rpcapi/internal_client.go index f3c0fc130f..66e8978e07 100644 --- a/internal/rpcapi/internal_client.go +++ b/internal/rpcapi/internal_client.go @@ -8,10 +8,14 @@ import ( "fmt" "net" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/test/bufconn" + + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/packages" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/setup" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" ) // Client is a client for the RPC API. @@ -24,7 +28,7 @@ type Client struct { conn *grpc.ClientConn // serverCaps should be from the result of the Setup.Handshake call // previously made to the server that conn is connected to. - serverCaps *terraform1.ServerCapabilities + serverCaps *setup.ServerCapabilities close func(context.Context) error } @@ -39,7 +43,7 @@ type Client struct { // // Callers should call the Close method of the returned client once they are // done using it, or else they will leak goroutines. -func NewInternalClient(ctx context.Context, clientCaps *terraform1.ClientCapabilities) (*Client, error) { +func NewInternalClient(ctx context.Context, clientCaps *setup.ClientCapabilities) (*Client, error) { fakeListener := bufconn.Listen(4 * 1024 * 1024 /* buffer size */) srv := grpc.NewServer() registerGRPCServices(srv, &serviceOpts{}) @@ -68,8 +72,8 @@ func NewInternalClient(ctx context.Context, clientCaps *terraform1.ClientCapabil // immediately use the main services. (The caller would otherwise need // to do this immediately on return anyway, or the result would be // useless.) - setupClient := terraform1.NewSetupClient(clientConn) - setupResp, err := setupClient.Handshake(ctx, &terraform1.Handshake_Request{ + setupClient := setup.NewSetupClient(clientConn) + setupResp, err := setupClient.Handshake(ctx, &setup.Handshake_Request{ Capabilities: clientCaps, }) if err != nil { @@ -108,21 +112,21 @@ func (c *Client) Close(ctx context.Context) error { // ServerCapabilities returns the server's response to capability negotiation. // // Callers must not modify anything reachable through the returned pointer. -func (c *Client) ServerCapabilities() *terraform1.ServerCapabilities { +func (c *Client) ServerCapabilities() *setup.ServerCapabilities { return c.serverCaps } // Dependencies returns a client for the Dependencies service of the RPC API. -func (c *Client) Dependencies() terraform1.DependenciesClient { - return terraform1.NewDependenciesClient(c.conn) +func (c *Client) Dependencies() dependencies.DependenciesClient { + return dependencies.NewDependenciesClient(c.conn) } // Packages returns a client for the Packages service of the RPC API. -func (c *Client) Packages() terraform1.PackagesClient { - return terraform1.NewPackagesClient(c.conn) +func (c *Client) Packages() packages.PackagesClient { + return packages.NewPackagesClient(c.conn) } // Stacks returns a client for the Stacks service of the RPC API. -func (c *Client) Stacks() terraform1.StacksClient { - return terraform1.NewStacksClient(c.conn) +func (c *Client) Stacks() stacks.StacksClient { + return stacks.NewStacksClient(c.conn) } diff --git a/internal/rpcapi/internal_client_test.go b/internal/rpcapi/internal_client_test.go index 5be3945e55..00b12f64da 100644 --- a/internal/rpcapi/internal_client_test.go +++ b/internal/rpcapi/internal_client_test.go @@ -8,13 +8,14 @@ import ( "testing" "github.com/davecgh/go-spew/spew" + "github.com/hashicorp/terraform/internal/rpcapi" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/setup" ) func TestInternalClientOpenClose(t *testing.T) { ctx := context.Background() - client, err := rpcapi.NewInternalClient(ctx, &terraform1.ClientCapabilities{}) + client, err := rpcapi.NewInternalClient(ctx, &setup.ClientCapabilities{}) if err != nil { t.Error(err) } diff --git a/internal/rpcapi/packages.go b/internal/rpcapi/packages.go index 8834ce8250..dac2d2bcc3 100644 --- a/internal/rpcapi/packages.go +++ b/internal/rpcapi/packages.go @@ -18,9 +18,10 @@ import ( "github.com/hashicorp/terraform/internal/registry" "github.com/hashicorp/terraform/internal/registry/regsrc" "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/packages" ) -var _ terraform1.PackagesServer = (*packagesServer)(nil) +var _ packages.PackagesServer = (*packagesServer)(nil) func newPackagesServer(services *disco.Disco) *packagesServer { return &packagesServer{ @@ -38,14 +39,14 @@ func newPackagesServer(services *disco.Disco) *packagesServer { type providerSourceFn func(services *disco.Disco) getproviders.Source type packagesServer struct { - terraform1.UnimplementedPackagesServer + packages.UnimplementedPackagesServer services *disco.Disco providerSourceFn providerSourceFn } -func (p *packagesServer) ProviderPackageVersions(ctx context.Context, request *terraform1.ProviderPackageVersions_Request) (*terraform1.ProviderPackageVersions_Response, error) { - response := new(terraform1.ProviderPackageVersions_Response) +func (p *packagesServer) ProviderPackageVersions(ctx context.Context, request *packages.ProviderPackageVersions_Request) (*packages.ProviderPackageVersions_Response, error) { + response := new(packages.ProviderPackageVersions_Response) source := p.providerSourceFn(p.services) provider, diags := addrs.ParseProviderSourceString(request.SourceAddr) @@ -85,9 +86,9 @@ func (p *packagesServer) ProviderPackageVersions(ctx context.Context, request *t return response, nil } -func (p *packagesServer) FetchProviderPackage(ctx context.Context, request *terraform1.FetchProviderPackage_Request) (*terraform1.FetchProviderPackage_Response, error) { +func (p *packagesServer) FetchProviderPackage(ctx context.Context, request *packages.FetchProviderPackage_Request) (*packages.FetchProviderPackage_Response, error) { - response := new(terraform1.FetchProviderPackage_Response) + response := new(packages.FetchProviderPackage_Response) version, err := versions.ParseVersion(request.Version) if err != nil { @@ -112,7 +113,7 @@ func (p *packagesServer) FetchProviderPackage(ctx context.Context, request *terr } for _, requestPlatform := range request.Platforms { - result := new(terraform1.FetchProviderPackage_PlatformResult) + result := new(packages.FetchProviderPackage_PlatformResult) response.Results = append(response.Results, result) platform, err := getproviders.ParsePlatform(requestPlatform) @@ -178,8 +179,8 @@ func (p *packagesServer) FetchProviderPackage(ctx context.Context, request *terr return response, nil } -func (p *packagesServer) ModulePackageVersions(ctx context.Context, request *terraform1.ModulePackageVersions_Request) (*terraform1.ModulePackageVersions_Response, error) { - response := new(terraform1.ModulePackageVersions_Response) +func (p *packagesServer) ModulePackageVersions(ctx context.Context, request *packages.ModulePackageVersions_Request) (*packages.ModulePackageVersions_Response, error) { + response := new(packages.ModulePackageVersions_Response) module, err := regsrc.ParseModuleSource(request.SourceAddr) if err != nil { @@ -211,8 +212,8 @@ func (p *packagesServer) ModulePackageVersions(ctx context.Context, request *ter return response, nil } -func (p *packagesServer) ModulePackageSourceAddr(ctx context.Context, request *terraform1.ModulePackageSourceAddr_Request) (*terraform1.ModulePackageSourceAddr_Response, error) { - response := new(terraform1.ModulePackageSourceAddr_Response) +func (p *packagesServer) ModulePackageSourceAddr(ctx context.Context, request *packages.ModulePackageSourceAddr_Request) (*packages.ModulePackageSourceAddr_Response, error) { + response := new(packages.ModulePackageSourceAddr_Response) module, err := regsrc.ParseModuleSource(request.SourceAddr) if err != nil { @@ -239,8 +240,8 @@ func (p *packagesServer) ModulePackageSourceAddr(ctx context.Context, request *t return response, nil } -func (p *packagesServer) FetchModulePackage(ctx context.Context, request *terraform1.FetchModulePackage_Request) (*terraform1.FetchModulePackage_Response, error) { - response := new(terraform1.FetchModulePackage_Response) +func (p *packagesServer) FetchModulePackage(ctx context.Context, request *packages.FetchModulePackage_Request) (*packages.FetchModulePackage_Response, error) { + response := new(packages.FetchModulePackage_Response) fetcher := getmodules.NewPackageFetcher() if err := fetcher.FetchPackage(ctx, request.CacheDir, request.Url); err != nil { diff --git a/internal/rpcapi/packages_test.go b/internal/rpcapi/packages_test.go index 6a5f827421..d7d5407a86 100644 --- a/internal/rpcapi/packages_test.go +++ b/internal/rpcapi/packages_test.go @@ -19,6 +19,7 @@ import ( "github.com/hashicorp/terraform/internal/addrs" "github.com/hashicorp/terraform/internal/getproviders" "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/packages" ) func TestPackagesServer_ProviderPackageVersions(t *testing.T) { @@ -86,7 +87,7 @@ func TestPackagesServer_ProviderPackageVersions(t *testing.T) { providerSourceFn: tc.sourceFn, } - response, err := service.ProviderPackageVersions(context.Background(), &terraform1.ProviderPackageVersions_Request{ + response, err := service.ProviderPackageVersions(context.Background(), &packages.ProviderPackageVersions_Request{ SourceAddr: tc.source, }) if err != nil { @@ -230,7 +231,7 @@ func TestPackagesServer_FetchProviderPackage(t *testing.T) { } cacheDir := t.TempDir() - response, err := service.FetchProviderPackage(context.Background(), &terraform1.FetchProviderPackage_Request{ + response, err := service.FetchProviderPackage(context.Background(), &packages.FetchProviderPackage_Request{ CacheDir: cacheDir, SourceAddr: tc.source, Version: tc.version, diff --git a/internal/rpcapi/plugin.go b/internal/rpcapi/plugin.go index f50c697103..3e236f1d1f 100644 --- a/internal/rpcapi/plugin.go +++ b/internal/rpcapi/plugin.go @@ -14,7 +14,10 @@ import ( "google.golang.org/grpc" "github.com/hashicorp/terraform/internal/rpcapi/dynrpcserver" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/packages" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/setup" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" ) type corePlugin struct { @@ -41,19 +44,19 @@ func registerGRPCServices(s *grpc.Server, opts *serviceOpts) { // We initially only register the setup server, because the registration // of other services can vary depending on the capabilities negotiated // during handshake. - setup := newSetupServer(serverHandshake(s, opts)) - terraform1.RegisterSetupServer(s, setup) + server := newSetupServer(serverHandshake(s, opts)) + setup.RegisterSetupServer(s, server) } -func serverHandshake(s *grpc.Server, opts *serviceOpts) func(context.Context, *terraform1.Handshake_Request, *stopper) (*terraform1.ServerCapabilities, error) { - dependencies := dynrpcserver.NewDependenciesStub() - terraform1.RegisterDependenciesServer(s, dependencies) - stacks := dynrpcserver.NewStacksStub() - terraform1.RegisterStacksServer(s, stacks) - packages := dynrpcserver.NewPackagesStub() - terraform1.RegisterPackagesServer(s, packages) +func serverHandshake(s *grpc.Server, opts *serviceOpts) func(context.Context, *setup.Handshake_Request, *stopper) (*setup.ServerCapabilities, error) { + dependenciesStub := dynrpcserver.NewDependenciesStub() + dependencies.RegisterDependenciesServer(s, dependenciesStub) + stacksStub := dynrpcserver.NewStacksStub() + stacks.RegisterStacksServer(s, stacksStub) + packagesStub := dynrpcserver.NewPackagesStub() + packages.RegisterPackagesServer(s, packagesStub) - return func(ctx context.Context, request *terraform1.Handshake_Request, stopper *stopper) (*terraform1.ServerCapabilities, error) { + return func(ctx context.Context, request *setup.Handshake_Request, stopper *stopper) (*setup.ServerCapabilities, error) { // All of our servers will share a common handles table so that objects // can be passed from one service to another. handles := newHandleTable() @@ -70,7 +73,7 @@ func serverHandshake(s *grpc.Server, opts *serviceOpts) func(context.Context, *t // CLI configuration. services, err := newServiceDisco(request.GetConfig()) if err != nil { - return &terraform1.ServerCapabilities{}, err + return &setup.ServerCapabilities{}, err } // If handshaking is successful (which it currently always is, because @@ -78,13 +81,13 @@ func serverHandshake(s *grpc.Server, opts *serviceOpts) func(context.Context, *t // will initialize all of the other services so the client can begin // doing real work. In future the details of what we register here // might vary based on the negotiated capabilities. - dependencies.ActivateRPCServer(newDependenciesServer(handles, services)) - stacks.ActivateRPCServer(newStacksServer(stopper, handles, opts)) - packages.ActivateRPCServer(newPackagesServer(services)) + dependenciesStub.ActivateRPCServer(newDependenciesServer(handles, services)) + stacksStub.ActivateRPCServer(newStacksServer(stopper, handles, opts)) + packagesStub.ActivateRPCServer(newPackagesServer(services)) // If the client requested any extra capabililties that we're going // to honor then we should announce them in this result. - return &terraform1.ServerCapabilities{}, nil + return &setup.ServerCapabilities{}, nil } } @@ -97,7 +100,7 @@ type serviceOpts struct { experimentsAllowed bool } -func newServiceDisco(config *terraform1.Config) (*disco.Disco, error) { +func newServiceDisco(config *setup.Config) (*disco.Disco, error) { services := disco.New() credSrc := newCredentialsSource() diff --git a/internal/rpcapi/setup.go b/internal/rpcapi/setup.go index 328ef96f49..7336f9af23 100644 --- a/internal/rpcapi/setup.go +++ b/internal/rpcapi/setup.go @@ -7,7 +7,7 @@ import ( "context" "sync" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/setup" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -20,12 +20,12 @@ import ( // must call to negotiate access to any other services. This is really just // an adapter around a handshake function implemented on [corePlugin]. type setupServer struct { - terraform1.UnimplementedSetupServer + setup.UnimplementedSetupServer // initOthers is the callback used to perform the capability negotiation // step and initialize all of the other API services based on what was // negotiated. - initOthers func(context.Context, *terraform1.Handshake_Request, *stopper) (*terraform1.ServerCapabilities, error) + initOthers func(context.Context, *setup.Handshake_Request, *stopper) (*setup.ServerCapabilities, error) // stopper is used to track and stop long-running operations when the Stop // RPC is called. @@ -34,14 +34,14 @@ type setupServer struct { mu sync.Mutex } -func newSetupServer(initOthers func(context.Context, *terraform1.Handshake_Request, *stopper) (*terraform1.ServerCapabilities, error)) terraform1.SetupServer { +func newSetupServer(initOthers func(context.Context, *setup.Handshake_Request, *stopper) (*setup.ServerCapabilities, error)) setup.SetupServer { return &setupServer{ initOthers: initOthers, stopper: newStopper(), } } -func (s *setupServer) Handshake(ctx context.Context, req *terraform1.Handshake_Request) (*terraform1.Handshake_Response, error) { +func (s *setupServer) Handshake(ctx context.Context, req *setup.Handshake_Request) (*setup.Handshake_Response, error) { s.mu.Lock() defer s.mu.Unlock() @@ -49,7 +49,7 @@ func (s *setupServer) Handshake(ctx context.Context, req *terraform1.Handshake_R return nil, status.Error(codes.FailedPrecondition, "handshake already completed") } - var serverCaps *terraform1.ServerCapabilities + var serverCaps *setup.ServerCapabilities var err error { ctx, span := tracer.Start(ctx, "initialize RPC services") @@ -60,16 +60,16 @@ func (s *setupServer) Handshake(ctx context.Context, req *terraform1.Handshake_R if err != nil { return nil, err } - return &terraform1.Handshake_Response{ + return &setup.Handshake_Response{ Capabilities: serverCaps, }, nil } -func (s *setupServer) Stop(ctx context.Context, req *terraform1.Stop_Request) (*terraform1.Stop_Response, error) { +func (s *setupServer) Stop(ctx context.Context, req *setup.Stop_Request) (*setup.Stop_Response, error) { s.mu.Lock() defer s.mu.Unlock() s.stopper.stop() - return &terraform1.Stop_Response{}, nil + return &setup.Stop_Response{}, nil } diff --git a/internal/rpcapi/setup_test.go b/internal/rpcapi/setup_test.go index 099a9aba31..a9ee807955 100644 --- a/internal/rpcapi/setup_test.go +++ b/internal/rpcapi/setup_test.go @@ -9,23 +9,23 @@ import ( "sync" "testing" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/setup" ) func TestSetupServer_Handshake(t *testing.T) { called := 0 - server := newSetupServer(func(ctx context.Context, req *terraform1.Handshake_Request, stopper *stopper) (*terraform1.ServerCapabilities, error) { + server := newSetupServer(func(ctx context.Context, req *setup.Handshake_Request, stopper *stopper) (*setup.ServerCapabilities, error) { called++ if got, want := req.Config.Credentials["localterraform.com"].Token, "boop"; got != want { t.Fatalf("incorrect token. got %q, want %q", got, want) } - return &terraform1.ServerCapabilities{}, nil + return &setup.ServerCapabilities{}, nil }) - req := &terraform1.Handshake_Request{ - Capabilities: &terraform1.ClientCapabilities{}, - Config: &terraform1.Config{ - Credentials: map[string]*terraform1.HostCredential{ + req := &setup.Handshake_Request{ + Capabilities: &setup.ClientCapabilities{}, + Config: &setup.Config{ + Credentials: map[string]*setup.HostCredential{ "localterraform.com": { Token: "boop", }, @@ -51,9 +51,9 @@ func TestSetupServer_Handshake(t *testing.T) { func TestSetupServer_Stop(t *testing.T) { var s *stopper - server := newSetupServer(func(ctx context.Context, req *terraform1.Handshake_Request, stopper *stopper) (*terraform1.ServerCapabilities, error) { + server := newSetupServer(func(ctx context.Context, req *setup.Handshake_Request, stopper *stopper) (*setup.ServerCapabilities, error) { s = stopper - return &terraform1.ServerCapabilities{}, nil + return &setup.ServerCapabilities{}, nil }) _, err := server.Handshake(context.Background(), nil) if err != nil { diff --git a/internal/rpcapi/stacks.go b/internal/rpcapi/stacks.go index 5cb82f10b8..5fe9f1ca91 100644 --- a/internal/rpcapi/stacks.go +++ b/internal/rpcapi/stacks.go @@ -22,7 +22,7 @@ import ( "github.com/hashicorp/terraform/internal/plans" "github.com/hashicorp/terraform/internal/providercache" "github.com/hashicorp/terraform/internal/providers" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" "github.com/hashicorp/terraform/internal/stacks/stackconfig" "github.com/hashicorp/terraform/internal/stacks/stackplan" @@ -33,7 +33,7 @@ import ( ) type stacksServer struct { - terraform1.UnimplementedStacksServer + stacks.UnimplementedStacksServer stopper *stopper handles *handleTable @@ -53,7 +53,7 @@ type stacksServer struct { planTimestampOverride *time.Time } -var _ terraform1.StacksServer = (*stacksServer)(nil) +var _ stacks.StacksServer = (*stacksServer)(nil) func newStacksServer(stopper *stopper, handles *handleTable, opts *serviceOpts) *stacksServer { return &stacksServer{ @@ -63,7 +63,7 @@ func newStacksServer(stopper *stopper, handles *handleTable, opts *serviceOpts) } } -func (s *stacksServer) OpenStackConfiguration(ctx context.Context, req *terraform1.OpenStackConfiguration_Request) (*terraform1.OpenStackConfiguration_Response, error) { +func (s *stacksServer) OpenStackConfiguration(ctx context.Context, req *stacks.OpenStackConfiguration_Request) (*stacks.OpenStackConfiguration_Response, error) { sourcesHnd := handle[*sourcebundle.Bundle](req.SourceBundleHandle) sources := s.handles.SourceBundle(sourcesHnd) if sources == nil { @@ -80,7 +80,7 @@ func (s *stacksServer) OpenStackConfiguration(ctx context.Context, req *terrafor // For errors in the configuration itself we treat that as a successful // result from OpenStackConfiguration but with diagnostics in the // response and no source handle. - return &terraform1.OpenStackConfiguration_Response{ + return &stacks.OpenStackConfiguration_Response{ Diagnostics: diagnosticsToProto(diags), }, nil } @@ -102,22 +102,22 @@ func (s *stacksServer) OpenStackConfiguration(ctx context.Context, req *terrafor // handle. (The caller is required to ensure that the source bundle files // on disk are not modified for as long as the source bundle handle remains // open, and its lifetime will necessarily exceed the config handle.) - return &terraform1.OpenStackConfiguration_Response{ + return &stacks.OpenStackConfiguration_Response{ StackConfigHandle: configHnd.ForProtobuf(), Diagnostics: diagnosticsToProto(diags), }, nil } -func (s *stacksServer) CloseStackConfiguration(ctx context.Context, req *terraform1.CloseStackConfiguration_Request) (*terraform1.CloseStackConfiguration_Response, error) { +func (s *stacksServer) CloseStackConfiguration(ctx context.Context, req *stacks.CloseStackConfiguration_Request) (*stacks.CloseStackConfiguration_Response, error) { hnd := handle[*stackconfig.Config](req.StackConfigHandle) err := s.handles.CloseStackConfig(hnd) if err != nil { return nil, status.Error(codes.InvalidArgument, err.Error()) } - return &terraform1.CloseStackConfiguration_Response{}, nil + return &stacks.CloseStackConfiguration_Response{}, nil } -func (s *stacksServer) ValidateStackConfiguration(ctx context.Context, req *terraform1.ValidateStackConfiguration_Request) (*terraform1.ValidateStackConfiguration_Response, error) { +func (s *stacksServer) ValidateStackConfiguration(ctx context.Context, req *stacks.ValidateStackConfiguration_Request) (*stacks.ValidateStackConfiguration_Response, error) { cfgHnd := handle[*stackconfig.Config](req.StackConfigHandle) cfg := s.handles.StackConfig(cfgHnd) if cfg == nil { @@ -154,62 +154,62 @@ func (s *stacksServer) ValidateStackConfiguration(ctx context.Context, req *terr ProviderFactories: providerFactories, DependencyLocks: *deps, }) - return &terraform1.ValidateStackConfiguration_Response{ + return &stacks.ValidateStackConfiguration_Response{ Diagnostics: diagnosticsToProto(diags), }, nil } -func (s *stacksServer) FindStackConfigurationComponents(ctx context.Context, req *terraform1.FindStackConfigurationComponents_Request) (*terraform1.FindStackConfigurationComponents_Response, error) { +func (s *stacksServer) FindStackConfigurationComponents(ctx context.Context, req *stacks.FindStackConfigurationComponents_Request) (*stacks.FindStackConfigurationComponents_Response, error) { cfgHnd := handle[*stackconfig.Config](req.StackConfigHandle) cfg := s.handles.StackConfig(cfgHnd) if cfg == nil { return nil, status.Error(codes.InvalidArgument, "the given stack configuration handle is invalid") } - return &terraform1.FindStackConfigurationComponents_Response{ + return &stacks.FindStackConfigurationComponents_Response{ Config: stackConfigMetaforProto(cfg.Root, stackaddrs.RootStack), }, nil } -func stackConfigMetaforProto(cfgNode *stackconfig.ConfigNode, stackAddr stackaddrs.Stack) *terraform1.FindStackConfigurationComponents_StackConfig { - ret := &terraform1.FindStackConfigurationComponents_StackConfig{ - Components: make(map[string]*terraform1.FindStackConfigurationComponents_Component), - EmbeddedStacks: make(map[string]*terraform1.FindStackConfigurationComponents_EmbeddedStack), - InputVariables: make(map[string]*terraform1.FindStackConfigurationComponents_InputVariable), - OutputValues: make(map[string]*terraform1.FindStackConfigurationComponents_OutputValue), +func stackConfigMetaforProto(cfgNode *stackconfig.ConfigNode, stackAddr stackaddrs.Stack) *stacks.FindStackConfigurationComponents_StackConfig { + ret := &stacks.FindStackConfigurationComponents_StackConfig{ + Components: make(map[string]*stacks.FindStackConfigurationComponents_Component), + EmbeddedStacks: make(map[string]*stacks.FindStackConfigurationComponents_EmbeddedStack), + InputVariables: make(map[string]*stacks.FindStackConfigurationComponents_InputVariable), + OutputValues: make(map[string]*stacks.FindStackConfigurationComponents_OutputValue), } for name, cc := range cfgNode.Stack.Components { - cProto := &terraform1.FindStackConfigurationComponents_Component{ + cProto := &stacks.FindStackConfigurationComponents_Component{ SourceAddr: cc.FinalSourceAddr.String(), ComponentAddr: stackaddrs.Config(stackAddr, stackaddrs.Component{Name: cc.Name}).String(), } switch { case cc.ForEach != nil: - cProto.Instances = terraform1.FindStackConfigurationComponents_FOR_EACH + cProto.Instances = stacks.FindStackConfigurationComponents_FOR_EACH default: - cProto.Instances = terraform1.FindStackConfigurationComponents_SINGLE + cProto.Instances = stacks.FindStackConfigurationComponents_SINGLE } ret.Components[name] = cProto } for name, sn := range cfgNode.Children { sc := cfgNode.Stack.EmbeddedStacks[name] - sProto := &terraform1.FindStackConfigurationComponents_EmbeddedStack{ + sProto := &stacks.FindStackConfigurationComponents_EmbeddedStack{ SourceAddr: sn.Stack.SourceAddr.String(), Config: stackConfigMetaforProto(sn, stackAddr.Child(name)), } switch { case sc.ForEach != nil: - sProto.Instances = terraform1.FindStackConfigurationComponents_FOR_EACH + sProto.Instances = stacks.FindStackConfigurationComponents_FOR_EACH default: - sProto.Instances = terraform1.FindStackConfigurationComponents_SINGLE + sProto.Instances = stacks.FindStackConfigurationComponents_SINGLE } ret.EmbeddedStacks[name] = sProto } for name, vc := range cfgNode.Stack.InputVariables { - vProto := &terraform1.FindStackConfigurationComponents_InputVariable{ + vProto := &stacks.FindStackConfigurationComponents_InputVariable{ Optional: !vc.DefaultValue.IsNull(), Sensitive: vc.Sensitive, Ephemeral: vc.Ephemeral, @@ -218,7 +218,7 @@ func stackConfigMetaforProto(cfgNode *stackconfig.ConfigNode, stackAddr stackadd } for name, oc := range cfgNode.Stack.OutputValues { - oProto := &terraform1.FindStackConfigurationComponents_OutputValue{ + oProto := &stacks.FindStackConfigurationComponents_OutputValue{ Sensitive: oc.Sensitive, Ephemeral: oc.Ephemeral, } @@ -228,7 +228,7 @@ func stackConfigMetaforProto(cfgNode *stackconfig.ConfigNode, stackAddr stackadd return ret } -func (s *stacksServer) OpenState(stream terraform1.Stacks_OpenStateServer) error { +func (s *stacksServer) OpenState(stream stacks.Stacks_OpenStateServer) error { loader := stackstate.NewLoader() for { item, err := stream.Recv() @@ -244,21 +244,21 @@ func (s *stacksServer) OpenState(stream terraform1.Stacks_OpenStateServer) error } hnd := s.handles.NewStackState(loader.State()) - return stream.SendAndClose(&terraform1.OpenStackState_Response{ + return stream.SendAndClose(&stacks.OpenStackState_Response{ StateHandle: hnd.ForProtobuf(), }) } -func (s *stacksServer) CloseState(ctx context.Context, req *terraform1.CloseStackState_Request) (*terraform1.CloseStackState_Response, error) { +func (s *stacksServer) CloseState(ctx context.Context, req *stacks.CloseStackState_Request) (*stacks.CloseStackState_Response, error) { hnd := handle[*stackstate.State](req.StateHandle) err := s.handles.CloseStackState(hnd) if err != nil { return nil, status.Error(codes.InvalidArgument, err.Error()) } - return &terraform1.CloseStackState_Response{}, nil + return &stacks.CloseStackState_Response{}, nil } -func (s *stacksServer) PlanStackChanges(req *terraform1.PlanStackChanges_Request, evts terraform1.Stacks_PlanStackChangesServer) error { +func (s *stacksServer) PlanStackChanges(req *stacks.PlanStackChanges_Request, evts stacks.Stacks_PlanStackChangesServer) error { ctx := evts.Context() syncEvts := newSyncStreamingRPCSender(evts) evts = nil // Prevent accidental unsynchronized usage of this server @@ -323,11 +323,11 @@ func (s *stacksServer) PlanStackChanges(req *terraform1.PlanStackChanges_Request var planMode plans.Mode switch req.PlanMode { - case terraform1.PlanMode_NORMAL: + case stacks.PlanMode_NORMAL: planMode = plans.NormalMode - case terraform1.PlanMode_REFRESH_ONLY: + case stacks.PlanMode_REFRESH_ONLY: planMode = plans.RefreshOnlyMode - case terraform1.PlanMode_DESTROY: + case stacks.PlanMode_DESTROY: planMode = plans.DestroyMode default: return status.Errorf(codes.InvalidArgument, "unsupported planning mode %d", req.PlanMode) @@ -390,8 +390,8 @@ func (s *stacksServer) PlanStackChanges(req *terraform1.PlanStackChanges_Request diags := tfdiags.Diagnostics{diag} protoDiags := diagnosticsToProto(diags) for _, protoDiag := range protoDiags { - syncEvts.Send(&terraform1.PlanStackChanges_Event{ - Event: &terraform1.PlanStackChanges_Event_Diagnostic{ + syncEvts.Send(&stacks.PlanStackChanges_Event{ + Event: &stacks.PlanStackChanges_Event_Diagnostic{ Diagnostic: protoDiag, }, }) @@ -439,8 +439,8 @@ Events: continue } - syncEvts.Send(&terraform1.PlanStackChanges_Event{ - Event: &terraform1.PlanStackChanges_Event_PlannedChange{ + syncEvts.Send(&stacks.PlanStackChanges_Event{ + Event: &stacks.PlanStackChanges_Event_PlannedChange{ PlannedChange: protoChange, }, }) @@ -467,7 +467,7 @@ Events: return nil } -func (s *stacksServer) OpenPlan(stream terraform1.Stacks_OpenPlanServer) error { +func (s *stacksServer) OpenPlan(stream stacks.Stacks_OpenPlanServer) error { loader := stackplan.NewLoader() for { item, err := stream.Recv() @@ -487,21 +487,21 @@ func (s *stacksServer) OpenPlan(stream terraform1.Stacks_OpenPlanServer) error { return status.Errorf(codes.InvalidArgument, "invalid raw plan: %s", err) } hnd := s.handles.NewStackPlan(plan) - return stream.SendAndClose(&terraform1.OpenStackPlan_Response{ + return stream.SendAndClose(&stacks.OpenStackPlan_Response{ PlanHandle: hnd.ForProtobuf(), }) } -func (s *stacksServer) ClosePlan(ctx context.Context, req *terraform1.CloseStackPlan_Request) (*terraform1.CloseStackPlan_Response, error) { +func (s *stacksServer) ClosePlan(ctx context.Context, req *stacks.CloseStackPlan_Request) (*stacks.CloseStackPlan_Response, error) { hnd := handle[*stackplan.Plan](req.PlanHandle) err := s.handles.CloseStackPlan(hnd) if err != nil { return nil, status.Error(codes.InvalidArgument, err.Error()) } - return &terraform1.CloseStackPlan_Response{}, nil + return &stacks.CloseStackPlan_Response{}, nil } -func (s *stacksServer) ApplyStackChanges(req *terraform1.ApplyStackChanges_Request, evts terraform1.Stacks_ApplyStackChangesServer) error { +func (s *stacksServer) ApplyStackChanges(req *stacks.ApplyStackChanges_Request, evts stacks.Stacks_ApplyStackChangesServer) error { ctx := evts.Context() syncEvts := newSyncStreamingRPCSender(evts) evts = nil // Prevent accidental unsynchronized usage of this server @@ -612,8 +612,8 @@ func (s *stacksServer) ApplyStackChanges(req *terraform1.ApplyStackChanges_Reque diags := tfdiags.Diagnostics{diag} protoDiags := diagnosticsToProto(diags) for _, protoDiag := range protoDiags { - syncEvts.Send(&terraform1.ApplyStackChanges_Event{ - Event: &terraform1.ApplyStackChanges_Event_Diagnostic{ + syncEvts.Send(&stacks.ApplyStackChanges_Event{ + Event: &stacks.ApplyStackChanges_Event_Diagnostic{ Diagnostic: protoDiag, }, }) @@ -664,8 +664,8 @@ Events: continue } - syncEvts.Send(&terraform1.ApplyStackChanges_Event{ - Event: &terraform1.ApplyStackChanges_Event_AppliedChange{ + syncEvts.Send(&stacks.ApplyStackChanges_Event{ + Event: &stacks.ApplyStackChanges_Event_AppliedChange{ AppliedChange: protoChange, }, }) @@ -693,7 +693,7 @@ Events: return nil } -func (s *stacksServer) OpenStackInspector(ctx context.Context, req *terraform1.OpenStackInspector_Request) (*terraform1.OpenStackInspector_Response, error) { +func (s *stacksServer) OpenStackInspector(ctx context.Context, req *stacks.OpenStackInspector_Request) (*stacks.OpenStackInspector_Response, error) { cfgHnd := handle[*stackconfig.Config](req.StackConfigHandle) cfg := s.handles.StackConfig(cfgHnd) if cfg == nil { @@ -743,14 +743,14 @@ func (s *stacksServer) OpenStackInspector(ctx context.Context, req *terraform1.O ExperimentsAllowed: s.experimentsAllowed, }) - return &terraform1.OpenStackInspector_Response{ + return &stacks.OpenStackInspector_Response{ StackInspectorHandle: hnd.ForProtobuf(), // There are currently no situations that return diagnostics, but // we reserve the right to add some later. }, nil } -func (s *stacksServer) InspectExpressionResult(ctx context.Context, req *terraform1.InspectExpressionResult_Request) (*terraform1.InspectExpressionResult_Response, error) { +func (s *stacksServer) InspectExpressionResult(ctx context.Context, req *stacks.InspectExpressionResult_Request) (*stacks.InspectExpressionResult_Response, error) { hnd := handle[*stacksInspector](req.StackInspectorHandle) insp := s.handles.StackInspector(hnd) if insp == nil { @@ -761,9 +761,9 @@ func (s *stacksServer) InspectExpressionResult(ctx context.Context, req *terrafo func stackPlanHooks(evts *syncPlanStackChangesServer, mainStackSource sourceaddrs.FinalSource) *stackruntime.Hooks { return stackChangeHooks( - func(scp *terraform1.StackChangeProgress) error { - return evts.Send(&terraform1.PlanStackChanges_Event{ - Event: &terraform1.PlanStackChanges_Event_Progress{ + func(scp *stacks.StackChangeProgress) error { + return evts.Send(&stacks.PlanStackChanges_Event{ + Event: &stacks.PlanStackChanges_Event_Progress{ Progress: scp, }, }) @@ -774,9 +774,9 @@ func stackPlanHooks(evts *syncPlanStackChangesServer, mainStackSource sourceaddr func stackApplyHooks(evts *syncApplyStackChangesServer, mainStackSource sourceaddrs.FinalSource) *stackruntime.Hooks { return stackChangeHooks( - func(scp *terraform1.StackChangeProgress) error { - return evts.Send(&terraform1.ApplyStackChanges_Event{ - Event: &terraform1.ApplyStackChanges_Event_Progress{ + func(scp *stacks.StackChangeProgress) error { + return evts.Send(&stacks.ApplyStackChanges_Event{ + Event: &stacks.ApplyStackChanges_Event_Progress{ Progress: scp, }, }) @@ -788,7 +788,7 @@ func stackApplyHooks(evts *syncApplyStackChangesServer, mainStackSource sourcead // stackChangeHooks is the shared hook-handling logic for both [stackPlanHooks] // and [stackApplyHooks]. Each phase emits a different subset of the events // handled here. -func stackChangeHooks(send func(*terraform1.StackChangeProgress) error, mainStackSource sourceaddrs.FinalSource) *stackruntime.Hooks { +func stackChangeHooks(send func(*stacks.StackChangeProgress) error, mainStackSource sourceaddrs.FinalSource) *stackruntime.Hooks { return &stackruntime.Hooks{ // For any BeginFunc-shaped hook that returns an OpenTelemetry tracing // span, we'll wrap it in a context so that the runtime's downstream @@ -839,9 +839,9 @@ func stackChangeHooks(send func(*terraform1.StackChangeProgress) error, mainStac for _, ia := range ce.InstanceAddrs { ias = append(ias, ia.String()) } - send(&terraform1.StackChangeProgress{ - Event: &terraform1.StackChangeProgress_ComponentInstances_{ - ComponentInstances: &terraform1.StackChangeProgress_ComponentInstances{ + send(&stacks.StackChangeProgress{ + Event: &stacks.StackChangeProgress_ComponentInstances_{ + ComponentInstances: &stacks.StackChangeProgress_ComponentInstances{ ComponentAddr: ce.ComponentAddr.String(), InstanceAddrs: ias, }, @@ -914,10 +914,10 @@ func stackChangeHooks(send func(*terraform1.StackChangeProgress) error, mainStac if !rihd.ProviderAddr.IsZero() { providerAddr = rihd.ProviderAddr.String() } - send(&terraform1.StackChangeProgress{ - Event: &terraform1.StackChangeProgress_ResourceInstanceStatus_{ - ResourceInstanceStatus: &terraform1.StackChangeProgress_ResourceInstanceStatus{ - Addr: terraform1.NewResourceInstanceObjectInStackAddr(rihd.Addr), + send(&stacks.StackChangeProgress{ + Event: &stacks.StackChangeProgress_ResourceInstanceStatus_{ + ResourceInstanceStatus: &stacks.StackChangeProgress_ResourceInstanceStatus{ + Addr: stacks.NewResourceInstanceObjectInStackAddr(rihd.Addr), Status: rihd.Status.ForProtobuf(), ProviderAddr: providerAddr, }, @@ -939,8 +939,8 @@ func stackChangeHooks(send func(*terraform1.StackChangeProgress) error, mainStac return span } - send(&terraform1.StackChangeProgress{ - Event: &terraform1.StackChangeProgress_ResourceInstancePlannedChange_{ + send(&stacks.StackChangeProgress{ + Event: &stacks.StackChangeProgress_ResourceInstancePlannedChange_{ ResourceInstancePlannedChange: ripc, }, }) @@ -960,9 +960,9 @@ func stackChangeHooks(send func(*terraform1.StackChangeProgress) error, mainStac deferred := stackplan.EncodeDeferred(change.Reason) - send(&terraform1.StackChangeProgress{ - Event: &terraform1.StackChangeProgress_DeferredResourceInstancePlannedChange_{ - DeferredResourceInstancePlannedChange: &terraform1.StackChangeProgress_DeferredResourceInstancePlannedChange{ + send(&stacks.StackChangeProgress{ + Event: &stacks.StackChangeProgress_DeferredResourceInstancePlannedChange_{ + DeferredResourceInstancePlannedChange: &stacks.StackChangeProgress_DeferredResourceInstancePlannedChange{ Change: ripc, Deferred: deferred, }, @@ -974,10 +974,10 @@ func stackChangeHooks(send func(*terraform1.StackChangeProgress) error, mainStac // We also report a roll-up of planned resource action counts after each // component instance plan or apply completes. ReportComponentInstancePlanned: func(ctx context.Context, span any, cic *hooks.ComponentInstanceChange) any { - send(&terraform1.StackChangeProgress{ - Event: &terraform1.StackChangeProgress_ComponentInstanceChanges_{ - ComponentInstanceChanges: &terraform1.StackChangeProgress_ComponentInstanceChanges{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + send(&stacks.StackChangeProgress{ + Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{ + ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: stackaddrs.ConfigComponentForAbsInstance(cic.Addr).String(), ComponentInstanceAddr: cic.Addr.String(), }, @@ -1001,10 +1001,10 @@ func stackChangeHooks(send func(*terraform1.StackChangeProgress) error, mainStac // version of the agent than the plan phase which has support for // a different set of possible change types. ReportComponentInstanceApplied: func(ctx context.Context, span any, cic *hooks.ComponentInstanceChange) any { - send(&terraform1.StackChangeProgress{ - Event: &terraform1.StackChangeProgress_ComponentInstanceChanges_{ - ComponentInstanceChanges: &terraform1.StackChangeProgress_ComponentInstanceChanges{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + send(&stacks.StackChangeProgress{ + Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{ + ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: stackaddrs.ConfigComponentForAbsInstance(cic.Addr).String(), ComponentInstanceAddr: cic.Addr.String(), }, @@ -1024,32 +1024,32 @@ func stackChangeHooks(send func(*terraform1.StackChangeProgress) error, mainStac } } -func resourceInstancePlanned(ric *hooks.ResourceInstanceChange) (*terraform1.StackChangeProgress_ResourceInstancePlannedChange, error) { - actions, err := terraform1.ChangeTypesForPlanAction(ric.Change.Action) +func resourceInstancePlanned(ric *hooks.ResourceInstanceChange) (*stacks.StackChangeProgress_ResourceInstancePlannedChange, error) { + actions, err := stacks.ChangeTypesForPlanAction(ric.Change.Action) if err != nil { return nil, err } - var moved *terraform1.StackChangeProgress_ResourceInstancePlannedChange_Moved + var moved *stacks.StackChangeProgress_ResourceInstancePlannedChange_Moved if !ric.Change.PrevRunAddr.Equal(ric.Change.Addr) { - moved = &terraform1.StackChangeProgress_ResourceInstancePlannedChange_Moved{ - PrevAddr: &terraform1.ResourceInstanceInStackAddr{ + moved = &stacks.StackChangeProgress_ResourceInstancePlannedChange_Moved{ + PrevAddr: &stacks.ResourceInstanceInStackAddr{ ComponentInstanceAddr: ric.Addr.Component.String(), ResourceInstanceAddr: ric.Change.PrevRunAddr.String(), }, } } - var imported *terraform1.StackChangeProgress_ResourceInstancePlannedChange_Imported + var imported *stacks.StackChangeProgress_ResourceInstancePlannedChange_Imported if ric.Change.Importing != nil { - imported = &terraform1.StackChangeProgress_ResourceInstancePlannedChange_Imported{ + imported = &stacks.StackChangeProgress_ResourceInstancePlannedChange_Imported{ ImportId: ric.Change.Importing.ID, Unknown: ric.Change.Importing.Unknown, } } - return &terraform1.StackChangeProgress_ResourceInstancePlannedChange{ - Addr: terraform1.NewResourceInstanceObjectInStackAddr(ric.Addr), + return &stacks.StackChangeProgress_ResourceInstancePlannedChange{ + Addr: stacks.NewResourceInstanceObjectInStackAddr(ric.Addr), Actions: actions, Moved: moved, Imported: imported, @@ -1057,11 +1057,11 @@ func resourceInstancePlanned(ric *hooks.ResourceInstanceChange) (*terraform1.Sta }, nil } -func evtComponentInstanceStatus(ci stackaddrs.AbsComponentInstance, status hooks.ComponentInstanceStatus) *terraform1.StackChangeProgress { - return &terraform1.StackChangeProgress{ - Event: &terraform1.StackChangeProgress_ComponentInstanceStatus_{ - ComponentInstanceStatus: &terraform1.StackChangeProgress_ComponentInstanceStatus{ - Addr: &terraform1.ComponentInstanceInStackAddr{ +func evtComponentInstanceStatus(ci stackaddrs.AbsComponentInstance, status hooks.ComponentInstanceStatus) *stacks.StackChangeProgress { + return &stacks.StackChangeProgress{ + Event: &stacks.StackChangeProgress_ComponentInstanceStatus_{ + ComponentInstanceStatus: &stacks.StackChangeProgress_ComponentInstanceStatus{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: stackaddrs.ConfigComponentForAbsInstance(ci).String(), ComponentInstanceAddr: ci.String(), }, @@ -1072,13 +1072,13 @@ func evtComponentInstanceStatus(ci stackaddrs.AbsComponentInstance, status hooks } // syncPlanStackChangesServer is a wrapper around a -// terraform1.Stacks_PlanStackChangesServer implementation that makes the +// stacks.Stacks_PlanStackChangesServer implementation that makes the // Send method concurrency-safe by holding a mutex throughout the underlying // call. -type syncPlanStackChangesServer = syncStreamingRPCSender[terraform1.Stacks_PlanStackChangesServer, *terraform1.PlanStackChanges_Event] +type syncPlanStackChangesServer = syncStreamingRPCSender[stacks.Stacks_PlanStackChangesServer, *stacks.PlanStackChanges_Event] // syncApplyStackChangesServer is a wrapper around a -// terraform1.Stacks_ApplyStackChangesServer implementation that makes the +// stacks.Stacks_ApplyStackChangesServer implementation that makes the // Send method concurrency-safe by holding a mutex throughout the underlying // call. -type syncApplyStackChangesServer = syncStreamingRPCSender[terraform1.Stacks_ApplyStackChangesServer, *terraform1.ApplyStackChanges_Event] +type syncApplyStackChangesServer = syncStreamingRPCSender[stacks.Stacks_ApplyStackChangesServer, *stacks.ApplyStackChanges_Event] diff --git a/internal/rpcapi/stacks_inspector.go b/internal/rpcapi/stacks_inspector.go index 1ff6fe16ad..715588ae9d 100644 --- a/internal/rpcapi/stacks_inspector.go +++ b/internal/rpcapi/stacks_inspector.go @@ -17,7 +17,7 @@ import ( "github.com/hashicorp/terraform/internal/lang/marks" "github.com/hashicorp/terraform/internal/plans" "github.com/hashicorp/terraform/internal/providers" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" "github.com/hashicorp/terraform/internal/stacks/stackconfig" "github.com/hashicorp/terraform/internal/stacks/stackruntime" @@ -39,13 +39,13 @@ type stacksInspector struct { // InspectExpressionResult evaluates a given expression string in the // inspection environment represented by the receiver. -func (i *stacksInspector) InspectExpressionResult(ctx context.Context, req *terraform1.InspectExpressionResult_Request) (*terraform1.InspectExpressionResult_Response, error) { +func (i *stacksInspector) InspectExpressionResult(ctx context.Context, req *stacks.InspectExpressionResult_Request) (*stacks.InspectExpressionResult_Response, error) { var diags tfdiags.Diagnostics expr, hclDiags := hclsyntax.ParseExpression(req.ExpressionSrc, "", hcl.InitialPos) diags = diags.Append(hclDiags) if diags.HasErrors() { - return &terraform1.InspectExpressionResult_Response{ + return &stacks.InspectExpressionResult_Response{ Diagnostics: diagnosticsToProto(diags), }, nil } @@ -69,7 +69,7 @@ func (i *stacksInspector) InspectExpressionResult(ctx context.Context, req *terr diags = diags.Append(moreDiags) if val == cty.NilVal { // Too invalid to return any value at all, then. - return &terraform1.InspectExpressionResult_Response{ + return &stacks.InspectExpressionResult_Response{ Diagnostics: diagnosticsToProto(diags), }, nil } @@ -94,13 +94,13 @@ func (i *stacksInspector) InspectExpressionResult(ctx context.Context, req *terr "Result is not serializable", fmt.Sprintf("Cannot return the result of the given expression: %s.", err), )) - return &terraform1.InspectExpressionResult_Response{ + return &stacks.InspectExpressionResult_Response{ Diagnostics: diagnosticsToProto(diags), }, nil } - return &terraform1.InspectExpressionResult_Response{ - Result: terraform1.NewDynamicValue(valRaw, sensitivePaths), + return &stacks.InspectExpressionResult_Response{ + Result: stacks.NewDynamicValue(valRaw, sensitivePaths), Diagnostics: diagnosticsToProto(diags), }, nil } diff --git a/internal/rpcapi/stacks_test.go b/internal/rpcapi/stacks_test.go index b6593183a2..ff454a923e 100644 --- a/internal/rpcapi/stacks_test.go +++ b/internal/rpcapi/stacks_test.go @@ -27,6 +27,8 @@ import ( "github.com/hashicorp/terraform/internal/getproviders/providerreqs" "github.com/hashicorp/terraform/internal/providers" "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" "github.com/hashicorp/terraform/internal/stacks/stackconfig" "github.com/hashicorp/terraform/internal/stacks/stackplan" @@ -55,7 +57,7 @@ func TestStacksOpenCloseStackConfiguration(t *testing.T) { sourcesHnd = handles.NewSourceBundle(sources) } - openResp, err := stacksServer.OpenStackConfiguration(ctx, &terraform1.OpenStackConfiguration_Request{ + openResp, err := stacksServer.OpenStackConfiguration(ctx, &stacks.OpenStackConfiguration_Request{ SourceBundleHandle: sourcesHnd.ForProtobuf(), SourceAddress: &terraform1.SourceAddress{ Source: "git::https://example.com/foo.git", @@ -81,7 +83,7 @@ func TestStacksOpenCloseStackConfiguration(t *testing.T) { { depsServer := newDependenciesServer(handles, disco.New()) - _, err := depsServer.CloseSourceBundle(ctx, &terraform1.CloseSourceBundle_Request{ + _, err := depsServer.CloseSourceBundle(ctx, &dependencies.CloseSourceBundle_Request{ SourceBundleHandle: sourcesHnd.ForProtobuf(), }) if err == nil { @@ -99,7 +101,7 @@ func TestStacksOpenCloseStackConfiguration(t *testing.T) { } } - _, err = stacksServer.CloseStackConfiguration(ctx, &terraform1.CloseStackConfiguration_Request{ + _, err = stacksServer.CloseStackConfiguration(ctx, &stacks.CloseStackConfiguration_Request{ StackConfigHandle: openResp.StackConfigHandle, }) if err != nil { @@ -110,7 +112,7 @@ func TestStacksOpenCloseStackConfiguration(t *testing.T) { { depsServer := newDependenciesServer(handles, disco.New()) - _, err := depsServer.CloseSourceBundle(ctx, &terraform1.CloseSourceBundle_Request{ + _, err := depsServer.CloseSourceBundle(ctx, &dependencies.CloseSourceBundle_Request{ SourceBundleHandle: sourcesHnd.ForProtobuf(), }) if err != nil { @@ -138,7 +140,7 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) { } t.Run("empty config", func(t *testing.T) { - openResp, err := stacksServer.OpenStackConfiguration(ctx, &terraform1.OpenStackConfiguration_Request{ + openResp, err := stacksServer.OpenStackConfiguration(ctx, &stacks.OpenStackConfiguration_Request{ SourceBundleHandle: sourcesHnd.ForProtobuf(), SourceAddress: &terraform1.SourceAddress{ Source: "git::https://example.com/foo.git", @@ -154,7 +156,7 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) { } } - cmpntResp, err := stacksServer.FindStackConfigurationComponents(ctx, &terraform1.FindStackConfigurationComponents_Request{ + cmpntResp, err := stacksServer.FindStackConfigurationComponents(ctx, &stacks.FindStackConfigurationComponents_Request{ StackConfigHandle: openResp.StackConfigHandle, }) if err != nil { @@ -162,7 +164,7 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) { } got := cmpntResp.Config - want := &terraform1.FindStackConfigurationComponents_StackConfig{ + want := &stacks.FindStackConfigurationComponents_StackConfig{ // Intentionally empty, because the configuration we've loaded // is itself empty. } @@ -171,7 +173,7 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) { } }) t.Run("non-empty config", func(t *testing.T) { - openResp, err := stacksServer.OpenStackConfiguration(ctx, &terraform1.OpenStackConfiguration_Request{ + openResp, err := stacksServer.OpenStackConfiguration(ctx, &stacks.OpenStackConfiguration_Request{ SourceBundleHandle: sourcesHnd.ForProtobuf(), SourceAddress: &terraform1.SourceAddress{ Source: "git::https://example.com/foo.git//non-empty-stack", @@ -187,7 +189,7 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) { } } - cmpntResp, err := stacksServer.FindStackConfigurationComponents(ctx, &terraform1.FindStackConfigurationComponents_Request{ + cmpntResp, err := stacksServer.FindStackConfigurationComponents(ctx, &stacks.FindStackConfigurationComponents_Request{ StackConfigHandle: openResp.StackConfigHandle, }) if err != nil { @@ -195,23 +197,23 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) { } got := cmpntResp.Config - want := &terraform1.FindStackConfigurationComponents_StackConfig{ - Components: map[string]*terraform1.FindStackConfigurationComponents_Component{ + want := &stacks.FindStackConfigurationComponents_StackConfig{ + Components: map[string]*stacks.FindStackConfigurationComponents_Component{ "single": { SourceAddr: "git::https://example.com/foo.git//non-empty-stack/empty-module", ComponentAddr: "component.single", }, "for_each": { SourceAddr: "git::https://example.com/foo.git//non-empty-stack/empty-module", - Instances: terraform1.FindStackConfigurationComponents_FOR_EACH, + Instances: stacks.FindStackConfigurationComponents_FOR_EACH, ComponentAddr: "component.for_each", }, }, - EmbeddedStacks: map[string]*terraform1.FindStackConfigurationComponents_EmbeddedStack{ + EmbeddedStacks: map[string]*stacks.FindStackConfigurationComponents_EmbeddedStack{ "single": { SourceAddr: "git::https://example.com/foo.git//non-empty-stack/child", - Config: &terraform1.FindStackConfigurationComponents_StackConfig{ - Components: map[string]*terraform1.FindStackConfigurationComponents_Component{ + Config: &stacks.FindStackConfigurationComponents_StackConfig{ + Components: map[string]*stacks.FindStackConfigurationComponents_Component{ "foo": { SourceAddr: "git::https://example.com/foo.git//non-empty-stack/empty-module", ComponentAddr: "stack.single.component.foo", @@ -221,9 +223,9 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) { }, "for_each": { SourceAddr: "git::https://example.com/foo.git//non-empty-stack/child", - Instances: terraform1.FindStackConfigurationComponents_FOR_EACH, - Config: &terraform1.FindStackConfigurationComponents_StackConfig{ - Components: map[string]*terraform1.FindStackConfigurationComponents_Component{ + Instances: stacks.FindStackConfigurationComponents_FOR_EACH, + Config: &stacks.FindStackConfigurationComponents_StackConfig{ + Components: map[string]*stacks.FindStackConfigurationComponents_Component{ "foo": { SourceAddr: "git::https://example.com/foo.git//non-empty-stack/empty-module", ComponentAddr: "stack.for_each.component.foo", @@ -232,13 +234,13 @@ func TestStacksFindStackConfigurationComponents(t *testing.T) { }, }, }, - InputVariables: map[string]*terraform1.FindStackConfigurationComponents_InputVariable{ + InputVariables: map[string]*stacks.FindStackConfigurationComponents_InputVariable{ "unused": {Optional: false}, "unused_with_default": {Optional: true}, "sensitive": {Sensitive: true}, "ephemeral": {Ephemeral: true}, }, - OutputValues: map[string]*terraform1.FindStackConfigurationComponents_OutputValue{ + OutputValues: map[string]*stacks.FindStackConfigurationComponents_OutputValue{ "normal": {}, "sensitive": {Sensitive: true}, "ephemeral": {Ephemeral: true}, @@ -257,11 +259,11 @@ func TestStacksOpenState(t *testing.T) { stacksServer := newStacksServer(newStopper(), handles, &serviceOpts{}) grpcClient, close := grpcClientForTesting(ctx, t, func(srv *grpc.Server) { - terraform1.RegisterStacksServer(srv, stacksServer) + stacks.RegisterStacksServer(srv, stacksServer) }) defer close() - stacksClient := terraform1.NewStacksClient(grpcClient) + stacksClient := stacks.NewStacksClient(grpcClient) stream, err := stacksClient.OpenState(ctx) if err != nil { t.Fatal(err) @@ -272,8 +274,8 @@ func TestStacksOpenState(t *testing.T) { if err != nil { t.Fatalf("failed to encode %T message %q: %s", msg, key, err) } - err = stream.Send(&terraform1.OpenStackState_RequestItem{ - Raw: &terraform1.AppliedChange_RawChange{ + err = stream.Send(&stacks.OpenStackState_RequestItem{ + Raw: &stacks.AppliedChange_RawChange{ Key: key, Value: rawMsg, }, @@ -307,7 +309,7 @@ func TestStacksOpenState(t *testing.T) { t.Errorf("state does not track %s", wantComponentInstAddr) } - _, err = stacksClient.CloseState(ctx, &terraform1.CloseStackState_Request{ + _, err = stacksClient.CloseState(ctx, &stacks.CloseStackState_Request{ StateHandle: resp.StateHandle, }) if err != nil { @@ -322,11 +324,11 @@ func TestStacksOpenPlan(t *testing.T) { stacksServer := newStacksServer(newStopper(), handles, &serviceOpts{}) grpcClient, close := grpcClientForTesting(ctx, t, func(srv *grpc.Server) { - terraform1.RegisterStacksServer(srv, stacksServer) + stacks.RegisterStacksServer(srv, stacksServer) }) defer close() - stacksClient := terraform1.NewStacksClient(grpcClient) + stacksClient := stacks.NewStacksClient(grpcClient) stream, err := stacksClient.OpenPlan(ctx) if err != nil { t.Fatal(err) @@ -337,7 +339,7 @@ func TestStacksOpenPlan(t *testing.T) { if err != nil { t.Fatalf("failed to encode %T message: %s", msg, err) } - err = stream.Send(&terraform1.OpenStackPlan_RequestItem{ + err = stream.Send(&stacks.OpenStackPlan_RequestItem{ Raw: rawMsg, }) if err != nil { @@ -373,7 +375,7 @@ func TestStacksOpenPlan(t *testing.T) { t.Error("plan is missing the raw state entry for 'test-foo'") } - _, err = stacksClient.ClosePlan(ctx, &terraform1.CloseStackPlan_Request{ + _, err = stacksClient.ClosePlan(ctx, &stacks.CloseStackPlan_Request{ PlanHandle: resp.PlanHandle, }) if err != nil { @@ -408,23 +410,23 @@ func TestStacksPlanStackChanges(t *testing.T) { } grpcClient, close := grpcClientForTesting(ctx, t, func(srv *grpc.Server) { - terraform1.RegisterStacksServer(srv, stacksServer) + stacks.RegisterStacksServer(srv, stacksServer) }) defer close() - stacksClient := terraform1.NewStacksClient(grpcClient) - events, err := stacksClient.PlanStackChanges(ctx, &terraform1.PlanStackChanges_Request{ - PlanMode: terraform1.PlanMode_NORMAL, + stacksClient := stacks.NewStacksClient(grpcClient) + events, err := stacksClient.PlanStackChanges(ctx, &stacks.PlanStackChanges_Request{ + PlanMode: stacks.PlanMode_NORMAL, StackConfigHandle: configHnd.ForProtobuf(), }) if err != nil { t.Fatalf("unexpected error: %s", err) } - wantEvents := splitStackOperationEvents([]*terraform1.PlanStackChanges_Event{ + wantEvents := splitStackOperationEvents([]*stacks.PlanStackChanges_Event{ { - Event: &terraform1.PlanStackChanges_Event_PlannedChange{ - PlannedChange: &terraform1.PlannedChange{ + Event: &stacks.PlanStackChanges_Event_PlannedChange{ + PlannedChange: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanHeader{ TerraformVersion: version.SemVer.String(), @@ -434,8 +436,8 @@ func TestStacksPlanStackChanges(t *testing.T) { }, }, { - Event: &terraform1.PlanStackChanges_Event_PlannedChange{ - PlannedChange: &terraform1.PlannedChange{ + Event: &stacks.PlanStackChanges_Event_PlannedChange{ + PlannedChange: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanTimestamp{ PlanTimestamp: fakePlanTimestamp.Format(time.RFC3339), @@ -445,16 +447,16 @@ func TestStacksPlanStackChanges(t *testing.T) { }, }, { - Event: &terraform1.PlanStackChanges_Event_PlannedChange{ - PlannedChange: &terraform1.PlannedChange{ + Event: &stacks.PlanStackChanges_Event_PlannedChange{ + PlannedChange: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanApplyable{ Applyable: true, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_PlanApplyable{ + Description: &stacks.PlannedChange_ChangeDescription_PlanApplyable{ PlanApplyable: true, }, }, @@ -463,7 +465,7 @@ func TestStacksPlanStackChanges(t *testing.T) { }, }, }) - var gotEventsAll []*terraform1.PlanStackChanges_Event + var gotEventsAll []*stacks.PlanStackChanges_Event for { event, err := events.Recv() if err == io.EOF { @@ -487,16 +489,16 @@ func TestStackChangeProgress(t *testing.T) { store *stacks_testing_provider.ResourceStore state []stackstate.AppliedChange inputs map[string]cty.Value - want []*terraform1.StackChangeProgress + want []*stacks.StackChangeProgress diagnostics []*terraform1.Diagnostic }{ "deferred_changes": { source: "git::https://example.com/bar.git", - want: []*terraform1.StackChangeProgress{ + want: []*stacks.StackChangeProgress{ { - Event: &terraform1.StackChangeProgress_ComponentInstanceChanges_{ - ComponentInstanceChanges: &terraform1.StackChangeProgress_ComponentInstanceChanges{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{ + ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "component.deferred", ComponentInstanceAddr: "component.deferred", }, @@ -506,54 +508,54 @@ func TestStackChangeProgress(t *testing.T) { }, }, { - Event: &terraform1.StackChangeProgress_DeferredResourceInstancePlannedChange_{ - DeferredResourceInstancePlannedChange: &terraform1.StackChangeProgress_DeferredResourceInstancePlannedChange{ - Deferred: &terraform1.Deferred{ - Reason: terraform1.Deferred_RESOURCE_CONFIG_UNKNOWN, + Event: &stacks.StackChangeProgress_DeferredResourceInstancePlannedChange_{ + DeferredResourceInstancePlannedChange: &stacks.StackChangeProgress_DeferredResourceInstancePlannedChange{ + Deferred: &stacks.Deferred{ + Reason: stacks.Deferred_RESOURCE_CONFIG_UNKNOWN, }, - Change: &terraform1.StackChangeProgress_ResourceInstancePlannedChange{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Change: &stacks.StackChangeProgress_ResourceInstancePlannedChange{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.deferred", ResourceInstanceAddr: "testing_deferred_resource.resource", }, - Actions: []terraform1.ChangeType{terraform1.ChangeType_CREATE}, + Actions: []stacks.ChangeType{stacks.ChangeType_CREATE}, ProviderAddr: "registry.terraform.io/hashicorp/testing", }, }, }, }, { - Event: &terraform1.StackChangeProgress_ResourceInstanceStatus_{ - ResourceInstanceStatus: &terraform1.StackChangeProgress_ResourceInstanceStatus{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstanceStatus_{ + ResourceInstanceStatus: &stacks.StackChangeProgress_ResourceInstanceStatus{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.deferred", ResourceInstanceAddr: "testing_deferred_resource.resource", }, - Status: terraform1.StackChangeProgress_ResourceInstanceStatus_PLANNING, + Status: stacks.StackChangeProgress_ResourceInstanceStatus_PLANNING, ProviderAddr: "registry.terraform.io/hashicorp/testing", }, }, }, { - Event: &terraform1.StackChangeProgress_ResourceInstanceStatus_{ - ResourceInstanceStatus: &terraform1.StackChangeProgress_ResourceInstanceStatus{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstanceStatus_{ + ResourceInstanceStatus: &stacks.StackChangeProgress_ResourceInstanceStatus{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.deferred", ResourceInstanceAddr: "testing_deferred_resource.resource", }, - Status: terraform1.StackChangeProgress_ResourceInstanceStatus_PLANNED, + Status: stacks.StackChangeProgress_ResourceInstanceStatus_PLANNED, ProviderAddr: "registry.terraform.io/hashicorp/testing", }, }, }, { - Event: &terraform1.StackChangeProgress_ComponentInstanceStatus_{ - ComponentInstanceStatus: &terraform1.StackChangeProgress_ComponentInstanceStatus{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Event: &stacks.StackChangeProgress_ComponentInstanceStatus_{ + ComponentInstanceStatus: &stacks.StackChangeProgress_ComponentInstanceStatus{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "component.deferred", ComponentInstanceAddr: "component.deferred", }, - Status: terraform1.StackChangeProgress_ComponentInstanceStatus_DEFERRED, + Status: stacks.StackChangeProgress_ComponentInstanceStatus_DEFERRED, }, }, }, @@ -585,19 +587,19 @@ func TestStackChangeProgress(t *testing.T) { Schema: stacks_testing_provider.TestingResourceSchema, }, }, - want: []*terraform1.StackChangeProgress{ + want: []*stacks.StackChangeProgress{ { - Event: &terraform1.StackChangeProgress_ResourceInstancePlannedChange_{ - ResourceInstancePlannedChange: &terraform1.StackChangeProgress_ResourceInstancePlannedChange{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstancePlannedChange_{ + ResourceInstancePlannedChange: &stacks.StackChangeProgress_ResourceInstancePlannedChange{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.self", ResourceInstanceAddr: "testing_resource.after", }, - Actions: []terraform1.ChangeType{ - terraform1.ChangeType_NOOP, + Actions: []stacks.ChangeType{ + stacks.ChangeType_NOOP, }, - Moved: &terraform1.StackChangeProgress_ResourceInstancePlannedChange_Moved{ - PrevAddr: &terraform1.ResourceInstanceInStackAddr{ + Moved: &stacks.StackChangeProgress_ResourceInstancePlannedChange_Moved{ + PrevAddr: &stacks.ResourceInstanceInStackAddr{ ComponentInstanceAddr: "component.self", ResourceInstanceAddr: "testing_resource.before", }, @@ -607,9 +609,9 @@ func TestStackChangeProgress(t *testing.T) { }, }, { - Event: &terraform1.StackChangeProgress_ComponentInstanceChanges_{ - ComponentInstanceChanges: &terraform1.StackChangeProgress_ComponentInstanceChanges{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{ + ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "component.self", ComponentInstanceAddr: "component.self", }, @@ -631,12 +633,12 @@ func TestStackChangeProgress(t *testing.T) { inputs: map[string]cty.Value{ "unknown": cty.UnknownVal(cty.String), }, - want: []*terraform1.StackChangeProgress{ + want: []*stacks.StackChangeProgress{ { - Event: &terraform1.StackChangeProgress_ComponentInstanceChanges_{ - ComponentInstanceChanges: &terraform1.StackChangeProgress_ComponentInstanceChanges{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{ + ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "component.unknown", ComponentInstanceAddr: "component.unknown", }, @@ -646,18 +648,18 @@ func TestStackChangeProgress(t *testing.T) { }, }, { - Event: &terraform1.StackChangeProgress_DeferredResourceInstancePlannedChange_{ - DeferredResourceInstancePlannedChange: &terraform1.StackChangeProgress_DeferredResourceInstancePlannedChange{ - Deferred: &terraform1.Deferred{ - Reason: terraform1.Deferred_RESOURCE_CONFIG_UNKNOWN, + Event: &stacks.StackChangeProgress_DeferredResourceInstancePlannedChange_{ + DeferredResourceInstancePlannedChange: &stacks.StackChangeProgress_DeferredResourceInstancePlannedChange{ + Deferred: &stacks.Deferred{ + Reason: stacks.Deferred_RESOURCE_CONFIG_UNKNOWN, }, - Change: &terraform1.StackChangeProgress_ResourceInstancePlannedChange{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Change: &stacks.StackChangeProgress_ResourceInstancePlannedChange{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.unknown", ResourceInstanceAddr: "testing_resource.resource", }, - Actions: []terraform1.ChangeType{terraform1.ChangeType_CREATE}, - Imported: &terraform1.StackChangeProgress_ResourceInstancePlannedChange_Imported{ + Actions: []stacks.ChangeType{stacks.ChangeType_CREATE}, + Imported: &stacks.StackChangeProgress_ResourceInstancePlannedChange_Imported{ Unknown: true, }, ProviderAddr: "registry.terraform.io/hashicorp/testing", @@ -666,32 +668,32 @@ func TestStackChangeProgress(t *testing.T) { }, }, { - Event: &terraform1.StackChangeProgress_ResourceInstanceStatus_{ - ResourceInstanceStatus: &terraform1.StackChangeProgress_ResourceInstanceStatus{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstanceStatus_{ + ResourceInstanceStatus: &stacks.StackChangeProgress_ResourceInstanceStatus{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.unknown", ResourceInstanceAddr: "testing_resource.resource", }, - Status: terraform1.StackChangeProgress_ResourceInstanceStatus_PLANNING, + Status: stacks.StackChangeProgress_ResourceInstanceStatus_PLANNING, ProviderAddr: "registry.terraform.io/hashicorp/testing", }, }, }, { - Event: &terraform1.StackChangeProgress_ResourceInstanceStatus_{ - ResourceInstanceStatus: &terraform1.StackChangeProgress_ResourceInstanceStatus{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstanceStatus_{ + ResourceInstanceStatus: &stacks.StackChangeProgress_ResourceInstanceStatus{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.unknown", ResourceInstanceAddr: "testing_resource.resource", }, - Status: terraform1.StackChangeProgress_ResourceInstanceStatus_PLANNED, + Status: stacks.StackChangeProgress_ResourceInstanceStatus_PLANNED, ProviderAddr: "registry.terraform.io/hashicorp/testing", }, }, }, { - Event: &terraform1.StackChangeProgress_ComponentInstanceChanges_{ - ComponentInstanceChanges: &terraform1.StackChangeProgress_ComponentInstanceChanges{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{ + ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "component.self", ComponentInstanceAddr: "component.self", }, @@ -701,14 +703,14 @@ func TestStackChangeProgress(t *testing.T) { }, }, { - Event: &terraform1.StackChangeProgress_ResourceInstancePlannedChange_{ - ResourceInstancePlannedChange: &terraform1.StackChangeProgress_ResourceInstancePlannedChange{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstancePlannedChange_{ + ResourceInstancePlannedChange: &stacks.StackChangeProgress_ResourceInstancePlannedChange{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.self", ResourceInstanceAddr: "testing_resource.resource", }, - Actions: []terraform1.ChangeType{terraform1.ChangeType_NOOP}, - Imported: &terraform1.StackChangeProgress_ResourceInstancePlannedChange_Imported{ + Actions: []stacks.ChangeType{stacks.ChangeType_NOOP}, + Imported: &stacks.StackChangeProgress_ResourceInstancePlannedChange_Imported{ ImportId: "self", }, ProviderAddr: "registry.terraform.io/hashicorp/testing", @@ -716,25 +718,25 @@ func TestStackChangeProgress(t *testing.T) { }, }, { - Event: &terraform1.StackChangeProgress_ResourceInstanceStatus_{ - ResourceInstanceStatus: &terraform1.StackChangeProgress_ResourceInstanceStatus{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstanceStatus_{ + ResourceInstanceStatus: &stacks.StackChangeProgress_ResourceInstanceStatus{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.self", ResourceInstanceAddr: "testing_resource.resource", }, - Status: terraform1.StackChangeProgress_ResourceInstanceStatus_PLANNING, + Status: stacks.StackChangeProgress_ResourceInstanceStatus_PLANNING, ProviderAddr: "registry.terraform.io/hashicorp/testing", }, }, }, { - Event: &terraform1.StackChangeProgress_ResourceInstanceStatus_{ - ResourceInstanceStatus: &terraform1.StackChangeProgress_ResourceInstanceStatus{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstanceStatus_{ + ResourceInstanceStatus: &stacks.StackChangeProgress_ResourceInstanceStatus{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.self", ResourceInstanceAddr: "testing_resource.resource", }, - Status: terraform1.StackChangeProgress_ResourceInstanceStatus_PLANNED, + Status: stacks.StackChangeProgress_ResourceInstanceStatus_PLANNED, ProviderAddr: "registry.terraform.io/hashicorp/testing", }, }, @@ -767,25 +769,25 @@ func TestStackChangeProgress(t *testing.T) { Schema: stacks_testing_provider.TestingResourceSchema, }, }, - want: []*terraform1.StackChangeProgress{ + want: []*stacks.StackChangeProgress{ { - Event: &terraform1.StackChangeProgress_ResourceInstancePlannedChange_{ - ResourceInstancePlannedChange: &terraform1.StackChangeProgress_ResourceInstancePlannedChange{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Event: &stacks.StackChangeProgress_ResourceInstancePlannedChange_{ + ResourceInstancePlannedChange: &stacks.StackChangeProgress_ResourceInstancePlannedChange{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: "component.self", ResourceInstanceAddr: "testing_resource.resource", }, - Actions: []terraform1.ChangeType{ - terraform1.ChangeType_FORGET, + Actions: []stacks.ChangeType{ + stacks.ChangeType_FORGET, }, ProviderAddr: "registry.terraform.io/hashicorp/testing", }, }, }, { - Event: &terraform1.StackChangeProgress_ComponentInstanceChanges_{ - ComponentInstanceChanges: &terraform1.StackChangeProgress_ComponentInstanceChanges{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Event: &stacks.StackChangeProgress_ComponentInstanceChanges_{ + ComponentInstanceChanges: &stacks.StackChangeProgress_ComponentInstanceChanges{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "component.self", ComponentInstanceAddr: "component.self", }, @@ -834,13 +836,13 @@ func TestStackChangeProgress(t *testing.T) { hnd := handles.NewSourceBundle(sb) client, close := grpcClientForTesting(ctx, t, func(srv *grpc.Server) { - terraform1.RegisterStacksServer(srv, stacksServer) + stacks.RegisterStacksServer(srv, stacksServer) }) defer close() - stacks := terraform1.NewStacksClient(client) + stacksClient := stacks.NewStacksClient(client) - open, err := stacks.OpenStackConfiguration(ctx, &terraform1.OpenStackConfiguration_Request{ + open, err := stacksClient.OpenStackConfiguration(ctx, &stacks.OpenStackConfiguration_Request{ SourceBundleHandle: hnd.ForProtobuf(), SourceAddress: &terraform1.SourceAddress{ Source: tc.source, @@ -849,19 +851,19 @@ func TestStackChangeProgress(t *testing.T) { if err != nil { t.Fatalf("unexpected error: %s", err) } - defer stacks.CloseStackConfiguration(ctx, &terraform1.CloseStackConfiguration_Request{ + defer stacksClient.CloseStackConfiguration(ctx, &stacks.CloseStackConfiguration_Request{ StackConfigHandle: open.StackConfigHandle, }) - resp, err := stacks.PlanStackChanges(ctx, &terraform1.PlanStackChanges_Request{ - PlanMode: terraform1.PlanMode_NORMAL, + resp, err := stacksClient.PlanStackChanges(ctx, &stacks.PlanStackChanges_Request{ + PlanMode: stacks.PlanMode_NORMAL, StackConfigHandle: open.StackConfigHandle, PreviousState: appliedChangeToRawState(t, tc.state), - InputValues: func() map[string]*terraform1.DynamicValueWithSource { - values := make(map[string]*terraform1.DynamicValueWithSource) + InputValues: func() map[string]*stacks.DynamicValueWithSource { + values := make(map[string]*stacks.DynamicValueWithSource) for name, value := range tc.inputs { - values[name] = &terraform1.DynamicValueWithSource{ - Value: &terraform1.DynamicValue{ + values[name] = &stacks.DynamicValueWithSource{ + Value: &stacks.DynamicValue{ Msgpack: mustMsgpack(t, value, value.Type()), }, SourceRange: &terraform1.SourceRange{ @@ -877,11 +879,11 @@ func TestStackChangeProgress(t *testing.T) { t.Fatalf("unexpected error: %s", err) } - wantEvents := splitStackOperationEvents(func() []*terraform1.PlanStackChanges_Event { - events := make([]*terraform1.PlanStackChanges_Event, 0, len(tc.want)) + wantEvents := splitStackOperationEvents(func() []*stacks.PlanStackChanges_Event { + events := make([]*stacks.PlanStackChanges_Event, 0, len(tc.want)) for _, want := range tc.want { - events = append(events, &terraform1.PlanStackChanges_Event{ - Event: &terraform1.PlanStackChanges_Event_Progress{ + events = append(events, &stacks.PlanStackChanges_Event{ + Event: &stacks.PlanStackChanges_Event_Progress{ Progress: want, }, }) @@ -889,8 +891,8 @@ func TestStackChangeProgress(t *testing.T) { return events }()) - gotEvents := splitStackOperationEvents(func() []*terraform1.PlanStackChanges_Event { - var events []*terraform1.PlanStackChanges_Event + gotEvents := splitStackOperationEvents(func() []*stacks.PlanStackChanges_Event { + var events []*stacks.PlanStackChanges_Event for { event, err := resp.Recv() if err == io.EOF { @@ -915,7 +917,7 @@ func TestStackChangeProgress(t *testing.T) { t.Errorf("missing expected diagnostic: %v", tc.diagnostics[diagIx]) continue } - diag := gotEvents.Diagnostics[diagIx].Event.(*terraform1.PlanStackChanges_Event_Diagnostic).Diagnostic + diag := gotEvents.Diagnostics[diagIx].Event.(*stacks.PlanStackChanges_Event_Diagnostic).Diagnostic if diff := cmp.Diff(tc.diagnostics[diagIx], diag, protocmp.Transform()); diff != "" { // Then we have a diagnostic that doesn't match what we // expected. @@ -980,21 +982,21 @@ func TestStackChangeProgress(t *testing.T) { // interest, which will also avoid the need to update every test whenever we // add something entirely new to the even stream. type stackOperationEventStreams struct { - PlannedChanges []*terraform1.PlanStackChanges_Event - Diagnostics []*terraform1.PlanStackChanges_Event + PlannedChanges []*stacks.PlanStackChanges_Event + Diagnostics []*stacks.PlanStackChanges_Event // MiscHooks is the "everything else" category where the detailed begin/end // events for individual Terraform Core operations appear. - MiscHooks []*terraform1.PlanStackChanges_Event + MiscHooks []*stacks.PlanStackChanges_Event } -func splitStackOperationEvents(all []*terraform1.PlanStackChanges_Event) stackOperationEventStreams { +func splitStackOperationEvents(all []*stacks.PlanStackChanges_Event) stackOperationEventStreams { ret := stackOperationEventStreams{} for _, evt := range all { switch evt.Event.(type) { - case *terraform1.PlanStackChanges_Event_PlannedChange: + case *stacks.PlanStackChanges_Event_PlannedChange: ret.PlannedChanges = append(ret.PlannedChanges, evt) - case *terraform1.PlanStackChanges_Event_Diagnostic: + case *stacks.PlanStackChanges_Event_Diagnostic: ret.Diagnostics = append(ret.Diagnostics, evt) default: ret.MiscHooks = append(ret.MiscHooks, evt) diff --git a/internal/rpcapi/telemetry_test.go b/internal/rpcapi/telemetry_test.go index 67b375d0cb..87a08b9199 100644 --- a/internal/rpcapi/telemetry_test.go +++ b/internal/rpcapi/telemetry_test.go @@ -12,7 +12,9 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/google/go-cmp/cmp" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/setup" + "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" @@ -224,20 +226,20 @@ func TestTelemetryInTestsGRPC(t *testing.T) { ) client, close := grpcClientForTesting(ctx, t, func(srv *grpc.Server) { - setup := &setupServer{ - initOthers: func(ctx context.Context, cc *terraform1.Handshake_Request, stopper *stopper) (*terraform1.ServerCapabilities, error) { - return &terraform1.ServerCapabilities{}, nil + server := &setupServer{ + initOthers: func(ctx context.Context, cc *setup.Handshake_Request, stopper *stopper) (*setup.ServerCapabilities, error) { + return &setup.ServerCapabilities{}, nil }, } - terraform1.RegisterSetupServer(srv, setup) + setup.RegisterSetupServer(srv, server) }) defer close() - setupClient := terraform1.NewSetupClient(client) + setupClient := setup.NewSetupClient(client) { ctx, span := otel.Tracer("TestTelemetryInTestsGRPC").Start(ctx, "root") - _, err := setupClient.Handshake(ctx, &terraform1.Handshake_Request{ - Capabilities: &terraform1.ClientCapabilities{}, + _, err := setupClient.Handshake(ctx, &setup.Handshake_Request{ + Capabilities: &setup.ClientCapabilities{}, }) if err != nil { t.Fatal(err) @@ -254,14 +256,14 @@ func TestTelemetryInTestsGRPC(t *testing.T) { t.Run("client span", func(t *testing.T) { span := clientSpan t.Logf("client span: %s", spew.Sdump(span)) - if got, want := span.Name, "terraform1.Setup/Handshake"; got != want { + if got, want := span.Name, "terraform1.setup.Setup/Handshake"; got != want { t.Errorf("wrong name\ngot: %s\nwant: %s", got, want) } attrs := otelAttributesMap(span.Attributes) if got, want := attrs["rpc.system"], "grpc"; got != want { t.Errorf("wrong rpc.system\ngot: %s\nwant: %s", got, want) } - if got, want := attrs["rpc.service"], "terraform1.Setup"; got != want { + if got, want := attrs["rpc.service"], "terraform1.setup.Setup"; got != want { t.Errorf("wrong rpc.service\ngot: %s\nwant: %s", got, want) } if got, want := attrs["rpc.method"], "Handshake"; got != want { @@ -271,7 +273,7 @@ func TestTelemetryInTestsGRPC(t *testing.T) { t.Run("server span", func(t *testing.T) { span := serverSpan t.Logf("server span: %s", spew.Sdump(span)) - if got, want := span.Name, "terraform1.Setup/Handshake"; got != want { + if got, want := span.Name, "terraform1.setup.Setup/Handshake"; got != want { t.Errorf("wrong name\ngot: %s\nwant: %s", got, want) } if got, want := span.Parent.SpanID(), clientSpan.SpanContext.SpanID(); got != want { @@ -284,7 +286,7 @@ func TestTelemetryInTestsGRPC(t *testing.T) { if got, want := attrs["rpc.system"], "grpc"; got != want { t.Errorf("wrong rpc.system\ngot: %s\nwant: %s", got, want) } - if got, want := attrs["rpc.service"], "terraform1.Setup"; got != want { + if got, want := attrs["rpc.service"], "terraform1.setup.Setup"; got != want { t.Errorf("wrong rpc.service\ngot: %s\nwant: %s", got, want) } if got, want := attrs["rpc.method"], "Handshake"; got != want { diff --git a/internal/rpcapi/terraform1/dependencies/dependencies.pb.go b/internal/rpcapi/terraform1/dependencies/dependencies.pb.go new file mode 100644 index 0000000000..088ab70e33 --- /dev/null +++ b/internal/rpcapi/terraform1/dependencies/dependencies.pb.go @@ -0,0 +1,4833 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.33.0 +// protoc v3.15.6 +// source: dependencies.proto + +package dependencies + +import ( + context "context" + terraform1 "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type BuildProviderPluginCache_Event_FetchComplete_AuthResult int32 + +const ( + BuildProviderPluginCache_Event_FetchComplete_UNKNOWN BuildProviderPluginCache_Event_FetchComplete_AuthResult = 0 + BuildProviderPluginCache_Event_FetchComplete_VERIFIED_CHECKSUM BuildProviderPluginCache_Event_FetchComplete_AuthResult = 1 + BuildProviderPluginCache_Event_FetchComplete_OFFICIAL_SIGNED BuildProviderPluginCache_Event_FetchComplete_AuthResult = 2 + BuildProviderPluginCache_Event_FetchComplete_PARTNER_SIGNED BuildProviderPluginCache_Event_FetchComplete_AuthResult = 3 + BuildProviderPluginCache_Event_FetchComplete_SELF_SIGNED BuildProviderPluginCache_Event_FetchComplete_AuthResult = 4 +) + +// Enum value maps for BuildProviderPluginCache_Event_FetchComplete_AuthResult. +var ( + BuildProviderPluginCache_Event_FetchComplete_AuthResult_name = map[int32]string{ + 0: "UNKNOWN", + 1: "VERIFIED_CHECKSUM", + 2: "OFFICIAL_SIGNED", + 3: "PARTNER_SIGNED", + 4: "SELF_SIGNED", + } + BuildProviderPluginCache_Event_FetchComplete_AuthResult_value = map[string]int32{ + "UNKNOWN": 0, + "VERIFIED_CHECKSUM": 1, + "OFFICIAL_SIGNED": 2, + "PARTNER_SIGNED": 3, + "SELF_SIGNED": 4, + } +) + +func (x BuildProviderPluginCache_Event_FetchComplete_AuthResult) Enum() *BuildProviderPluginCache_Event_FetchComplete_AuthResult { + p := new(BuildProviderPluginCache_Event_FetchComplete_AuthResult) + *p = x + return p +} + +func (x BuildProviderPluginCache_Event_FetchComplete_AuthResult) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BuildProviderPluginCache_Event_FetchComplete_AuthResult) Descriptor() protoreflect.EnumDescriptor { + return file_dependencies_proto_enumTypes[0].Descriptor() +} + +func (BuildProviderPluginCache_Event_FetchComplete_AuthResult) Type() protoreflect.EnumType { + return &file_dependencies_proto_enumTypes[0] +} + +func (x BuildProviderPluginCache_Event_FetchComplete_AuthResult) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BuildProviderPluginCache_Event_FetchComplete_AuthResult.Descriptor instead. +func (BuildProviderPluginCache_Event_FetchComplete_AuthResult) EnumDescriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 1, 5, 0} +} + +type Schema_NestedBlock_NestingMode int32 + +const ( + Schema_NestedBlock_INVALID Schema_NestedBlock_NestingMode = 0 + Schema_NestedBlock_SINGLE Schema_NestedBlock_NestingMode = 1 + Schema_NestedBlock_LIST Schema_NestedBlock_NestingMode = 2 + Schema_NestedBlock_SET Schema_NestedBlock_NestingMode = 3 + Schema_NestedBlock_MAP Schema_NestedBlock_NestingMode = 4 + Schema_NestedBlock_GROUP Schema_NestedBlock_NestingMode = 5 +) + +// Enum value maps for Schema_NestedBlock_NestingMode. +var ( + Schema_NestedBlock_NestingMode_name = map[int32]string{ + 0: "INVALID", + 1: "SINGLE", + 2: "LIST", + 3: "SET", + 4: "MAP", + 5: "GROUP", + } + Schema_NestedBlock_NestingMode_value = map[string]int32{ + "INVALID": 0, + "SINGLE": 1, + "LIST": 2, + "SET": 3, + "MAP": 4, + "GROUP": 5, + } +) + +func (x Schema_NestedBlock_NestingMode) Enum() *Schema_NestedBlock_NestingMode { + p := new(Schema_NestedBlock_NestingMode) + *p = x + return p +} + +func (x Schema_NestedBlock_NestingMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Schema_NestedBlock_NestingMode) Descriptor() protoreflect.EnumDescriptor { + return file_dependencies_proto_enumTypes[1].Descriptor() +} + +func (Schema_NestedBlock_NestingMode) Type() protoreflect.EnumType { + return &file_dependencies_proto_enumTypes[1] +} + +func (x Schema_NestedBlock_NestingMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Schema_NestedBlock_NestingMode.Descriptor instead. +func (Schema_NestedBlock_NestingMode) EnumDescriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13, 2, 0} +} + +type Schema_Object_NestingMode int32 + +const ( + Schema_Object_INVALID Schema_Object_NestingMode = 0 + Schema_Object_SINGLE Schema_Object_NestingMode = 1 + Schema_Object_LIST Schema_Object_NestingMode = 2 + Schema_Object_SET Schema_Object_NestingMode = 3 + Schema_Object_MAP Schema_Object_NestingMode = 4 +) + +// Enum value maps for Schema_Object_NestingMode. +var ( + Schema_Object_NestingMode_name = map[int32]string{ + 0: "INVALID", + 1: "SINGLE", + 2: "LIST", + 3: "SET", + 4: "MAP", + } + Schema_Object_NestingMode_value = map[string]int32{ + "INVALID": 0, + "SINGLE": 1, + "LIST": 2, + "SET": 3, + "MAP": 4, + } +) + +func (x Schema_Object_NestingMode) Enum() *Schema_Object_NestingMode { + p := new(Schema_Object_NestingMode) + *p = x + return p +} + +func (x Schema_Object_NestingMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Schema_Object_NestingMode) Descriptor() protoreflect.EnumDescriptor { + return file_dependencies_proto_enumTypes[2].Descriptor() +} + +func (Schema_Object_NestingMode) Type() protoreflect.EnumType { + return &file_dependencies_proto_enumTypes[2] +} + +func (x Schema_Object_NestingMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Schema_Object_NestingMode.Descriptor instead. +func (Schema_Object_NestingMode) EnumDescriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13, 3, 0} +} + +type Schema_DocString_Format int32 + +const ( + Schema_DocString_PLAIN Schema_DocString_Format = 0 + Schema_DocString_MARKDOWN Schema_DocString_Format = 1 +) + +// Enum value maps for Schema_DocString_Format. +var ( + Schema_DocString_Format_name = map[int32]string{ + 0: "PLAIN", + 1: "MARKDOWN", + } + Schema_DocString_Format_value = map[string]int32{ + "PLAIN": 0, + "MARKDOWN": 1, + } +) + +func (x Schema_DocString_Format) Enum() *Schema_DocString_Format { + p := new(Schema_DocString_Format) + *p = x + return p +} + +func (x Schema_DocString_Format) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Schema_DocString_Format) Descriptor() protoreflect.EnumDescriptor { + return file_dependencies_proto_enumTypes[3].Descriptor() +} + +func (Schema_DocString_Format) Type() protoreflect.EnumType { + return &file_dependencies_proto_enumTypes[3] +} + +func (x Schema_DocString_Format) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Schema_DocString_Format.Descriptor instead. +func (Schema_DocString_Format) EnumDescriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13, 4, 0} +} + +type OpenSourceBundle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenSourceBundle) Reset() { + *x = OpenSourceBundle{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenSourceBundle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenSourceBundle) ProtoMessage() {} + +func (x *OpenSourceBundle) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenSourceBundle.ProtoReflect.Descriptor instead. +func (*OpenSourceBundle) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{0} +} + +type CloseSourceBundle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseSourceBundle) Reset() { + *x = CloseSourceBundle{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseSourceBundle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseSourceBundle) ProtoMessage() {} + +func (x *CloseSourceBundle) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseSourceBundle.ProtoReflect.Descriptor instead. +func (*CloseSourceBundle) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{1} +} + +type OpenDependencyLockFile struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenDependencyLockFile) Reset() { + *x = OpenDependencyLockFile{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenDependencyLockFile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenDependencyLockFile) ProtoMessage() {} + +func (x *OpenDependencyLockFile) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenDependencyLockFile.ProtoReflect.Descriptor instead. +func (*OpenDependencyLockFile) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{2} +} + +type CreateDependencyLocks struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CreateDependencyLocks) Reset() { + *x = CreateDependencyLocks{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDependencyLocks) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDependencyLocks) ProtoMessage() {} + +func (x *CreateDependencyLocks) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDependencyLocks.ProtoReflect.Descriptor instead. +func (*CreateDependencyLocks) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{3} +} + +type CloseDependencyLocks struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseDependencyLocks) Reset() { + *x = CloseDependencyLocks{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseDependencyLocks) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseDependencyLocks) ProtoMessage() {} + +func (x *CloseDependencyLocks) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseDependencyLocks.ProtoReflect.Descriptor instead. +func (*CloseDependencyLocks) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{4} +} + +type GetLockedProviderDependencies struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetLockedProviderDependencies) Reset() { + *x = GetLockedProviderDependencies{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetLockedProviderDependencies) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLockedProviderDependencies) ProtoMessage() {} + +func (x *GetLockedProviderDependencies) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetLockedProviderDependencies.ProtoReflect.Descriptor instead. +func (*GetLockedProviderDependencies) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{5} +} + +type BuildProviderPluginCache struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BuildProviderPluginCache) Reset() { + *x = BuildProviderPluginCache{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache) ProtoMessage() {} + +func (x *BuildProviderPluginCache) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6} +} + +type OpenProviderPluginCache struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenProviderPluginCache) Reset() { + *x = OpenProviderPluginCache{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenProviderPluginCache) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenProviderPluginCache) ProtoMessage() {} + +func (x *OpenProviderPluginCache) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenProviderPluginCache.ProtoReflect.Descriptor instead. +func (*OpenProviderPluginCache) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{7} +} + +type CloseProviderPluginCache struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseProviderPluginCache) Reset() { + *x = CloseProviderPluginCache{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseProviderPluginCache) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseProviderPluginCache) ProtoMessage() {} + +func (x *CloseProviderPluginCache) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseProviderPluginCache.ProtoReflect.Descriptor instead. +func (*CloseProviderPluginCache) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{8} +} + +type GetCachedProviders struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetCachedProviders) Reset() { + *x = GetCachedProviders{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCachedProviders) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCachedProviders) ProtoMessage() {} + +func (x *GetCachedProviders) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCachedProviders.ProtoReflect.Descriptor instead. +func (*GetCachedProviders) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{9} +} + +type GetBuiltInProviders struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetBuiltInProviders) Reset() { + *x = GetBuiltInProviders{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBuiltInProviders) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBuiltInProviders) ProtoMessage() {} + +func (x *GetBuiltInProviders) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBuiltInProviders.ProtoReflect.Descriptor instead. +func (*GetBuiltInProviders) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{10} +} + +type GetProviderSchema struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetProviderSchema) Reset() { + *x = GetProviderSchema{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProviderSchema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProviderSchema) ProtoMessage() {} + +func (x *GetProviderSchema) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProviderSchema.ProtoReflect.Descriptor instead. +func (*GetProviderSchema) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{11} +} + +// ProviderSchema describes the full schema for a particular provider. +type ProviderSchema struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProviderConfig *Schema `protobuf:"bytes,1,opt,name=provider_config,json=providerConfig,proto3" json:"provider_config,omitempty"` + ManagedResourceTypes map[string]*Schema `protobuf:"bytes,2,rep,name=managed_resource_types,json=managedResourceTypes,proto3" json:"managed_resource_types,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + DataResourceTypes map[string]*Schema `protobuf:"bytes,3,rep,name=data_resource_types,json=dataResourceTypes,proto3" json:"data_resource_types,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ProviderSchema) Reset() { + *x = ProviderSchema{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderSchema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderSchema) ProtoMessage() {} + +func (x *ProviderSchema) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProviderSchema.ProtoReflect.Descriptor instead. +func (*ProviderSchema) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{12} +} + +func (x *ProviderSchema) GetProviderConfig() *Schema { + if x != nil { + return x.ProviderConfig + } + return nil +} + +func (x *ProviderSchema) GetManagedResourceTypes() map[string]*Schema { + if x != nil { + return x.ManagedResourceTypes + } + return nil +} + +func (x *ProviderSchema) GetDataResourceTypes() map[string]*Schema { + if x != nil { + return x.DataResourceTypes + } + return nil +} + +// Schema describes a schema for an instance of a particular object, such as +// a resource type or a provider's overall configuration. +type Schema struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Block is the top level configuration block for this schema. + Block *Schema_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` +} + +func (x *Schema) Reset() { + *x = Schema{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schema) ProtoMessage() {} + +func (x *Schema) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schema.ProtoReflect.Descriptor instead. +func (*Schema) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13} +} + +func (x *Schema) GetBlock() *Schema_Block { + if x != nil { + return x.Block + } + return nil +} + +type OpenSourceBundle_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` +} + +func (x *OpenSourceBundle_Request) Reset() { + *x = OpenSourceBundle_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenSourceBundle_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenSourceBundle_Request) ProtoMessage() {} + +func (x *OpenSourceBundle_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenSourceBundle_Request.ProtoReflect.Descriptor instead. +func (*OpenSourceBundle_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *OpenSourceBundle_Request) GetLocalPath() string { + if x != nil { + return x.LocalPath + } + return "" +} + +type OpenSourceBundle_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceBundleHandle int64 `protobuf:"varint,1,opt,name=source_bundle_handle,json=sourceBundleHandle,proto3" json:"source_bundle_handle,omitempty"` +} + +func (x *OpenSourceBundle_Response) Reset() { + *x = OpenSourceBundle_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenSourceBundle_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenSourceBundle_Response) ProtoMessage() {} + +func (x *OpenSourceBundle_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenSourceBundle_Response.ProtoReflect.Descriptor instead. +func (*OpenSourceBundle_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *OpenSourceBundle_Response) GetSourceBundleHandle() int64 { + if x != nil { + return x.SourceBundleHandle + } + return 0 +} + +type CloseSourceBundle_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceBundleHandle int64 `protobuf:"varint,1,opt,name=source_bundle_handle,json=sourceBundleHandle,proto3" json:"source_bundle_handle,omitempty"` +} + +func (x *CloseSourceBundle_Request) Reset() { + *x = CloseSourceBundle_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseSourceBundle_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseSourceBundle_Request) ProtoMessage() {} + +func (x *CloseSourceBundle_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseSourceBundle_Request.ProtoReflect.Descriptor instead. +func (*CloseSourceBundle_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{1, 0} +} + +func (x *CloseSourceBundle_Request) GetSourceBundleHandle() int64 { + if x != nil { + return x.SourceBundleHandle + } + return 0 +} + +type CloseSourceBundle_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseSourceBundle_Response) Reset() { + *x = CloseSourceBundle_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseSourceBundle_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseSourceBundle_Response) ProtoMessage() {} + +func (x *CloseSourceBundle_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseSourceBundle_Response.ProtoReflect.Descriptor instead. +func (*CloseSourceBundle_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{1, 1} +} + +type OpenDependencyLockFile_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceBundleHandle int64 `protobuf:"varint,1,opt,name=source_bundle_handle,json=sourceBundleHandle,proto3" json:"source_bundle_handle,omitempty"` + SourceAddress *terraform1.SourceAddress `protobuf:"bytes,2,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` +} + +func (x *OpenDependencyLockFile_Request) Reset() { + *x = OpenDependencyLockFile_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenDependencyLockFile_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenDependencyLockFile_Request) ProtoMessage() {} + +func (x *OpenDependencyLockFile_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenDependencyLockFile_Request.ProtoReflect.Descriptor instead. +func (*OpenDependencyLockFile_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *OpenDependencyLockFile_Request) GetSourceBundleHandle() int64 { + if x != nil { + return x.SourceBundleHandle + } + return 0 +} + +func (x *OpenDependencyLockFile_Request) GetSourceAddress() *terraform1.SourceAddress { + if x != nil { + return x.SourceAddress + } + return nil +} + +type OpenDependencyLockFile_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DependencyLocksHandle int64 `protobuf:"varint,1,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *OpenDependencyLockFile_Response) Reset() { + *x = OpenDependencyLockFile_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenDependencyLockFile_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenDependencyLockFile_Response) ProtoMessage() {} + +func (x *OpenDependencyLockFile_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenDependencyLockFile_Response.ProtoReflect.Descriptor instead. +func (*OpenDependencyLockFile_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *OpenDependencyLockFile_Response) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +func (x *OpenDependencyLockFile_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type CreateDependencyLocks_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The provider selections to include in the locks object. + // + // A typical value would be the result of an earlier call to + // GetLockedProviderDependencies on some other locks object, + // e.g. if a caller needs to propagate a set of locks from one + // Terraform Core RPC server to another. + ProviderSelections []*terraform1.ProviderPackage `protobuf:"bytes,1,rep,name=provider_selections,json=providerSelections,proto3" json:"provider_selections,omitempty"` +} + +func (x *CreateDependencyLocks_Request) Reset() { + *x = CreateDependencyLocks_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDependencyLocks_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDependencyLocks_Request) ProtoMessage() {} + +func (x *CreateDependencyLocks_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDependencyLocks_Request.ProtoReflect.Descriptor instead. +func (*CreateDependencyLocks_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *CreateDependencyLocks_Request) GetProviderSelections() []*terraform1.ProviderPackage { + if x != nil { + return x.ProviderSelections + } + return nil +} + +type CreateDependencyLocks_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DependencyLocksHandle int64 `protobuf:"varint,1,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` +} + +func (x *CreateDependencyLocks_Response) Reset() { + *x = CreateDependencyLocks_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDependencyLocks_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDependencyLocks_Response) ProtoMessage() {} + +func (x *CreateDependencyLocks_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDependencyLocks_Response.ProtoReflect.Descriptor instead. +func (*CreateDependencyLocks_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{3, 1} +} + +func (x *CreateDependencyLocks_Response) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +type CloseDependencyLocks_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DependencyLocksHandle int64 `protobuf:"varint,1,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` +} + +func (x *CloseDependencyLocks_Request) Reset() { + *x = CloseDependencyLocks_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseDependencyLocks_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseDependencyLocks_Request) ProtoMessage() {} + +func (x *CloseDependencyLocks_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseDependencyLocks_Request.ProtoReflect.Descriptor instead. +func (*CloseDependencyLocks_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *CloseDependencyLocks_Request) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +type CloseDependencyLocks_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseDependencyLocks_Response) Reset() { + *x = CloseDependencyLocks_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseDependencyLocks_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseDependencyLocks_Response) ProtoMessage() {} + +func (x *CloseDependencyLocks_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseDependencyLocks_Response.ProtoReflect.Descriptor instead. +func (*CloseDependencyLocks_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{4, 1} +} + +type GetLockedProviderDependencies_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DependencyLocksHandle int64 `protobuf:"varint,1,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` +} + +func (x *GetLockedProviderDependencies_Request) Reset() { + *x = GetLockedProviderDependencies_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetLockedProviderDependencies_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLockedProviderDependencies_Request) ProtoMessage() {} + +func (x *GetLockedProviderDependencies_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetLockedProviderDependencies_Request.ProtoReflect.Descriptor instead. +func (*GetLockedProviderDependencies_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{5, 0} +} + +func (x *GetLockedProviderDependencies_Request) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +type GetLockedProviderDependencies_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SelectedProviders []*terraform1.ProviderPackage `protobuf:"bytes,1,rep,name=selected_providers,json=selectedProviders,proto3" json:"selected_providers,omitempty"` +} + +func (x *GetLockedProviderDependencies_Response) Reset() { + *x = GetLockedProviderDependencies_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetLockedProviderDependencies_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetLockedProviderDependencies_Response) ProtoMessage() {} + +func (x *GetLockedProviderDependencies_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetLockedProviderDependencies_Response.ProtoReflect.Descriptor instead. +func (*GetLockedProviderDependencies_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{5, 1} +} + +func (x *GetLockedProviderDependencies_Response) GetSelectedProviders() []*terraform1.ProviderPackage { + if x != nil { + return x.SelectedProviders + } + return nil +} + +type BuildProviderPluginCache_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CacheDir string `protobuf:"bytes,1,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` + DependencyLocksHandle int64 `protobuf:"varint,2,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` + InstallationMethods []*BuildProviderPluginCache_Request_InstallMethod `protobuf:"bytes,3,rep,name=installation_methods,json=installationMethods,proto3" json:"installation_methods,omitempty"` + // If set, this populates the cache with plugins for a different + // platform than the one the Terraform Core RPC server is running on. + // If unset (empty) then the cache will be populated with packages + // for the same platform as Terraform Core was built for, if available. + // + // If this is set to a different platform than the Terraform Core RPC + // server's then the generated cache directory will appear empty to + // other operations on this server. + OverridePlatform string `protobuf:"bytes,4,opt,name=override_platform,json=overridePlatform,proto3" json:"override_platform,omitempty"` +} + +func (x *BuildProviderPluginCache_Request) Reset() { + *x = BuildProviderPluginCache_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Request) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Request.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 0} +} + +func (x *BuildProviderPluginCache_Request) GetCacheDir() string { + if x != nil { + return x.CacheDir + } + return "" +} + +func (x *BuildProviderPluginCache_Request) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +func (x *BuildProviderPluginCache_Request) GetInstallationMethods() []*BuildProviderPluginCache_Request_InstallMethod { + if x != nil { + return x.InstallationMethods + } + return nil +} + +func (x *BuildProviderPluginCache_Request) GetOverridePlatform() string { + if x != nil { + return x.OverridePlatform + } + return "" +} + +type BuildProviderPluginCache_Event struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Event: + // + // *BuildProviderPluginCache_Event_Pending_ + // *BuildProviderPluginCache_Event_AlreadyInstalled + // *BuildProviderPluginCache_Event_BuiltIn + // *BuildProviderPluginCache_Event_QueryBegin + // *BuildProviderPluginCache_Event_QuerySuccess + // *BuildProviderPluginCache_Event_QueryWarnings + // *BuildProviderPluginCache_Event_FetchBegin_ + // *BuildProviderPluginCache_Event_FetchComplete_ + // *BuildProviderPluginCache_Event_Diagnostic + Event isBuildProviderPluginCache_Event_Event `protobuf_oneof:"event"` +} + +func (x *BuildProviderPluginCache_Event) Reset() { + *x = BuildProviderPluginCache_Event{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Event) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Event) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Event.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Event) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 1} +} + +func (m *BuildProviderPluginCache_Event) GetEvent() isBuildProviderPluginCache_Event_Event { + if m != nil { + return m.Event + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetPending() *BuildProviderPluginCache_Event_Pending { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_Pending_); ok { + return x.Pending + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetAlreadyInstalled() *BuildProviderPluginCache_Event_ProviderVersion { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_AlreadyInstalled); ok { + return x.AlreadyInstalled + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetBuiltIn() *BuildProviderPluginCache_Event_ProviderVersion { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_BuiltIn); ok { + return x.BuiltIn + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetQueryBegin() *BuildProviderPluginCache_Event_ProviderConstraints { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_QueryBegin); ok { + return x.QueryBegin + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetQuerySuccess() *BuildProviderPluginCache_Event_ProviderVersion { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_QuerySuccess); ok { + return x.QuerySuccess + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetQueryWarnings() *BuildProviderPluginCache_Event_ProviderWarnings { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_QueryWarnings); ok { + return x.QueryWarnings + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetFetchBegin() *BuildProviderPluginCache_Event_FetchBegin { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_FetchBegin_); ok { + return x.FetchBegin + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetFetchComplete() *BuildProviderPluginCache_Event_FetchComplete { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_FetchComplete_); ok { + return x.FetchComplete + } + return nil +} + +func (x *BuildProviderPluginCache_Event) GetDiagnostic() *terraform1.Diagnostic { + if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_Diagnostic); ok { + return x.Diagnostic + } + return nil +} + +type isBuildProviderPluginCache_Event_Event interface { + isBuildProviderPluginCache_Event_Event() +} + +type BuildProviderPluginCache_Event_Pending_ struct { + Pending *BuildProviderPluginCache_Event_Pending `protobuf:"bytes,1,opt,name=pending,proto3,oneof"` +} + +type BuildProviderPluginCache_Event_AlreadyInstalled struct { + AlreadyInstalled *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,2,opt,name=already_installed,json=alreadyInstalled,proto3,oneof"` +} + +type BuildProviderPluginCache_Event_BuiltIn struct { + BuiltIn *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,3,opt,name=built_in,json=builtIn,proto3,oneof"` +} + +type BuildProviderPluginCache_Event_QueryBegin struct { + QueryBegin *BuildProviderPluginCache_Event_ProviderConstraints `protobuf:"bytes,4,opt,name=query_begin,json=queryBegin,proto3,oneof"` +} + +type BuildProviderPluginCache_Event_QuerySuccess struct { + QuerySuccess *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,5,opt,name=query_success,json=querySuccess,proto3,oneof"` +} + +type BuildProviderPluginCache_Event_QueryWarnings struct { + QueryWarnings *BuildProviderPluginCache_Event_ProviderWarnings `protobuf:"bytes,6,opt,name=query_warnings,json=queryWarnings,proto3,oneof"` +} + +type BuildProviderPluginCache_Event_FetchBegin_ struct { + FetchBegin *BuildProviderPluginCache_Event_FetchBegin `protobuf:"bytes,7,opt,name=fetch_begin,json=fetchBegin,proto3,oneof"` +} + +type BuildProviderPluginCache_Event_FetchComplete_ struct { + FetchComplete *BuildProviderPluginCache_Event_FetchComplete `protobuf:"bytes,8,opt,name=fetch_complete,json=fetchComplete,proto3,oneof"` +} + +type BuildProviderPluginCache_Event_Diagnostic struct { + Diagnostic *terraform1.Diagnostic `protobuf:"bytes,9,opt,name=diagnostic,proto3,oneof"` +} + +func (*BuildProviderPluginCache_Event_Pending_) isBuildProviderPluginCache_Event_Event() {} + +func (*BuildProviderPluginCache_Event_AlreadyInstalled) isBuildProviderPluginCache_Event_Event() {} + +func (*BuildProviderPluginCache_Event_BuiltIn) isBuildProviderPluginCache_Event_Event() {} + +func (*BuildProviderPluginCache_Event_QueryBegin) isBuildProviderPluginCache_Event_Event() {} + +func (*BuildProviderPluginCache_Event_QuerySuccess) isBuildProviderPluginCache_Event_Event() {} + +func (*BuildProviderPluginCache_Event_QueryWarnings) isBuildProviderPluginCache_Event_Event() {} + +func (*BuildProviderPluginCache_Event_FetchBegin_) isBuildProviderPluginCache_Event_Event() {} + +func (*BuildProviderPluginCache_Event_FetchComplete_) isBuildProviderPluginCache_Event_Event() {} + +func (*BuildProviderPluginCache_Event_Diagnostic) isBuildProviderPluginCache_Event_Event() {} + +type BuildProviderPluginCache_Request_InstallMethod struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Source: + // + // *BuildProviderPluginCache_Request_InstallMethod_Direct + // *BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir + // *BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl + Source isBuildProviderPluginCache_Request_InstallMethod_Source `protobuf_oneof:"source"` + Include []string `protobuf:"bytes,4,rep,name=include,proto3" json:"include,omitempty"` + Exclude []string `protobuf:"bytes,5,rep,name=exclude,proto3" json:"exclude,omitempty"` +} + +func (x *BuildProviderPluginCache_Request_InstallMethod) Reset() { + *x = BuildProviderPluginCache_Request_InstallMethod{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Request_InstallMethod) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Request_InstallMethod) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Request_InstallMethod) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Request_InstallMethod.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Request_InstallMethod) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 0, 0} +} + +func (m *BuildProviderPluginCache_Request_InstallMethod) GetSource() isBuildProviderPluginCache_Request_InstallMethod_Source { + if m != nil { + return m.Source + } + return nil +} + +func (x *BuildProviderPluginCache_Request_InstallMethod) GetDirect() bool { + if x, ok := x.GetSource().(*BuildProviderPluginCache_Request_InstallMethod_Direct); ok { + return x.Direct + } + return false +} + +func (x *BuildProviderPluginCache_Request_InstallMethod) GetLocalMirrorDir() string { + if x, ok := x.GetSource().(*BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir); ok { + return x.LocalMirrorDir + } + return "" +} + +func (x *BuildProviderPluginCache_Request_InstallMethod) GetNetworkMirrorUrl() string { + if x, ok := x.GetSource().(*BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl); ok { + return x.NetworkMirrorUrl + } + return "" +} + +func (x *BuildProviderPluginCache_Request_InstallMethod) GetInclude() []string { + if x != nil { + return x.Include + } + return nil +} + +func (x *BuildProviderPluginCache_Request_InstallMethod) GetExclude() []string { + if x != nil { + return x.Exclude + } + return nil +} + +type isBuildProviderPluginCache_Request_InstallMethod_Source interface { + isBuildProviderPluginCache_Request_InstallMethod_Source() +} + +type BuildProviderPluginCache_Request_InstallMethod_Direct struct { + Direct bool `protobuf:"varint,1,opt,name=direct,proto3,oneof"` +} + +type BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir struct { + LocalMirrorDir string `protobuf:"bytes,2,opt,name=local_mirror_dir,json=localMirrorDir,proto3,oneof"` +} + +type BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl struct { + NetworkMirrorUrl string `protobuf:"bytes,3,opt,name=network_mirror_url,json=networkMirrorUrl,proto3,oneof"` +} + +func (*BuildProviderPluginCache_Request_InstallMethod_Direct) isBuildProviderPluginCache_Request_InstallMethod_Source() { +} + +func (*BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir) isBuildProviderPluginCache_Request_InstallMethod_Source() { +} + +func (*BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl) isBuildProviderPluginCache_Request_InstallMethod_Source() { +} + +type BuildProviderPluginCache_Event_Pending struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Expected []*BuildProviderPluginCache_Event_ProviderConstraints `protobuf:"bytes,1,rep,name=expected,proto3" json:"expected,omitempty"` +} + +func (x *BuildProviderPluginCache_Event_Pending) Reset() { + *x = BuildProviderPluginCache_Event_Pending{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Event_Pending) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Event_Pending) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Event_Pending) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Event_Pending.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Event_Pending) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 1, 0} +} + +func (x *BuildProviderPluginCache_Event_Pending) GetExpected() []*BuildProviderPluginCache_Event_ProviderConstraints { + if x != nil { + return x.Expected + } + return nil +} + +type BuildProviderPluginCache_Event_ProviderConstraints struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` + Versions string `protobuf:"bytes,2,opt,name=versions,proto3" json:"versions,omitempty"` +} + +func (x *BuildProviderPluginCache_Event_ProviderConstraints) Reset() { + *x = BuildProviderPluginCache_Event_ProviderConstraints{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Event_ProviderConstraints) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Event_ProviderConstraints) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Event_ProviderConstraints) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Event_ProviderConstraints.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Event_ProviderConstraints) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 1, 1} +} + +func (x *BuildProviderPluginCache_Event_ProviderConstraints) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +func (x *BuildProviderPluginCache_Event_ProviderConstraints) GetVersions() string { + if x != nil { + return x.Versions + } + return "" +} + +type BuildProviderPluginCache_Event_ProviderVersion struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *BuildProviderPluginCache_Event_ProviderVersion) Reset() { + *x = BuildProviderPluginCache_Event_ProviderVersion{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Event_ProviderVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Event_ProviderVersion) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Event_ProviderVersion) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Event_ProviderVersion.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Event_ProviderVersion) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 1, 2} +} + +func (x *BuildProviderPluginCache_Event_ProviderVersion) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +func (x *BuildProviderPluginCache_Event_ProviderVersion) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +type BuildProviderPluginCache_Event_ProviderWarnings struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` + Warnings []string `protobuf:"bytes,2,rep,name=warnings,proto3" json:"warnings,omitempty"` +} + +func (x *BuildProviderPluginCache_Event_ProviderWarnings) Reset() { + *x = BuildProviderPluginCache_Event_ProviderWarnings{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Event_ProviderWarnings) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Event_ProviderWarnings) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Event_ProviderWarnings) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Event_ProviderWarnings.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Event_ProviderWarnings) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 1, 3} +} + +func (x *BuildProviderPluginCache_Event_ProviderWarnings) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +func (x *BuildProviderPluginCache_Event_ProviderWarnings) GetWarnings() []string { + if x != nil { + return x.Warnings + } + return nil +} + +type BuildProviderPluginCache_Event_FetchBegin struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProviderVersion *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,1,opt,name=provider_version,json=providerVersion,proto3" json:"provider_version,omitempty"` + Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` +} + +func (x *BuildProviderPluginCache_Event_FetchBegin) Reset() { + *x = BuildProviderPluginCache_Event_FetchBegin{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Event_FetchBegin) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Event_FetchBegin) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Event_FetchBegin) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Event_FetchBegin.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Event_FetchBegin) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 1, 4} +} + +func (x *BuildProviderPluginCache_Event_FetchBegin) GetProviderVersion() *BuildProviderPluginCache_Event_ProviderVersion { + if x != nil { + return x.ProviderVersion + } + return nil +} + +func (x *BuildProviderPluginCache_Event_FetchBegin) GetLocation() string { + if x != nil { + return x.Location + } + return "" +} + +type BuildProviderPluginCache_Event_FetchComplete struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProviderVersion *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,1,opt,name=provider_version,json=providerVersion,proto3" json:"provider_version,omitempty"` + AuthResult BuildProviderPluginCache_Event_FetchComplete_AuthResult `protobuf:"varint,2,opt,name=auth_result,json=authResult,proto3,enum=terraform1.dependencies.BuildProviderPluginCache_Event_FetchComplete_AuthResult" json:"auth_result,omitempty"` + // If auth_result is one of the "_SIGNED" variants then this + // might contain a UI-oriented identifier for the key that + // signed the package. The exact format of this string is not + // guaranteed; do not attempt to parse it or make automated + // decisions based on it. + KeyIdForDisplay string `protobuf:"bytes,3,opt,name=key_id_for_display,json=keyIdForDisplay,proto3" json:"key_id_for_display,omitempty"` +} + +func (x *BuildProviderPluginCache_Event_FetchComplete) Reset() { + *x = BuildProviderPluginCache_Event_FetchComplete{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuildProviderPluginCache_Event_FetchComplete) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuildProviderPluginCache_Event_FetchComplete) ProtoMessage() {} + +func (x *BuildProviderPluginCache_Event_FetchComplete) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuildProviderPluginCache_Event_FetchComplete.ProtoReflect.Descriptor instead. +func (*BuildProviderPluginCache_Event_FetchComplete) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{6, 1, 5} +} + +func (x *BuildProviderPluginCache_Event_FetchComplete) GetProviderVersion() *BuildProviderPluginCache_Event_ProviderVersion { + if x != nil { + return x.ProviderVersion + } + return nil +} + +func (x *BuildProviderPluginCache_Event_FetchComplete) GetAuthResult() BuildProviderPluginCache_Event_FetchComplete_AuthResult { + if x != nil { + return x.AuthResult + } + return BuildProviderPluginCache_Event_FetchComplete_UNKNOWN +} + +func (x *BuildProviderPluginCache_Event_FetchComplete) GetKeyIdForDisplay() string { + if x != nil { + return x.KeyIdForDisplay + } + return "" +} + +type OpenProviderPluginCache_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CacheDir string `protobuf:"bytes,1,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` + // As with the field of the same name in BuildProviderPluginCache.Request. + // + // If this is set to anything other than this RPC server's native + // platform then any operations that require executing the provider + // plugin are likely to fail due to executable format errors or + // similar. However, it's valid to use the returned handle with + // GetCachedProviders, since it only analyzes the cache metadata + // and doesn't actually run the plugins inside. + OverridePlatform string `protobuf:"bytes,2,opt,name=override_platform,json=overridePlatform,proto3" json:"override_platform,omitempty"` +} + +func (x *OpenProviderPluginCache_Request) Reset() { + *x = OpenProviderPluginCache_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenProviderPluginCache_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenProviderPluginCache_Request) ProtoMessage() {} + +func (x *OpenProviderPluginCache_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenProviderPluginCache_Request.ProtoReflect.Descriptor instead. +func (*OpenProviderPluginCache_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{7, 0} +} + +func (x *OpenProviderPluginCache_Request) GetCacheDir() string { + if x != nil { + return x.CacheDir + } + return "" +} + +func (x *OpenProviderPluginCache_Request) GetOverridePlatform() string { + if x != nil { + return x.OverridePlatform + } + return "" +} + +type OpenProviderPluginCache_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProviderCacheHandle int64 `protobuf:"varint,1,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` +} + +func (x *OpenProviderPluginCache_Response) Reset() { + *x = OpenProviderPluginCache_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenProviderPluginCache_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenProviderPluginCache_Response) ProtoMessage() {} + +func (x *OpenProviderPluginCache_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenProviderPluginCache_Response.ProtoReflect.Descriptor instead. +func (*OpenProviderPluginCache_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{7, 1} +} + +func (x *OpenProviderPluginCache_Response) GetProviderCacheHandle() int64 { + if x != nil { + return x.ProviderCacheHandle + } + return 0 +} + +type CloseProviderPluginCache_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProviderCacheHandle int64 `protobuf:"varint,1,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` +} + +func (x *CloseProviderPluginCache_Request) Reset() { + *x = CloseProviderPluginCache_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseProviderPluginCache_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseProviderPluginCache_Request) ProtoMessage() {} + +func (x *CloseProviderPluginCache_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseProviderPluginCache_Request.ProtoReflect.Descriptor instead. +func (*CloseProviderPluginCache_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{8, 0} +} + +func (x *CloseProviderPluginCache_Request) GetProviderCacheHandle() int64 { + if x != nil { + return x.ProviderCacheHandle + } + return 0 +} + +type CloseProviderPluginCache_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseProviderPluginCache_Response) Reset() { + *x = CloseProviderPluginCache_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseProviderPluginCache_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseProviderPluginCache_Response) ProtoMessage() {} + +func (x *CloseProviderPluginCache_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseProviderPluginCache_Response.ProtoReflect.Descriptor instead. +func (*CloseProviderPluginCache_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{8, 1} +} + +type GetCachedProviders_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProviderCacheHandle int64 `protobuf:"varint,1,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` +} + +func (x *GetCachedProviders_Request) Reset() { + *x = GetCachedProviders_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCachedProviders_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCachedProviders_Request) ProtoMessage() {} + +func (x *GetCachedProviders_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCachedProviders_Request.ProtoReflect.Descriptor instead. +func (*GetCachedProviders_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{9, 0} +} + +func (x *GetCachedProviders_Request) GetProviderCacheHandle() int64 { + if x != nil { + return x.ProviderCacheHandle + } + return 0 +} + +type GetCachedProviders_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AvailableProviders []*terraform1.ProviderPackage `protobuf:"bytes,1,rep,name=available_providers,json=availableProviders,proto3" json:"available_providers,omitempty"` +} + +func (x *GetCachedProviders_Response) Reset() { + *x = GetCachedProviders_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetCachedProviders_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCachedProviders_Response) ProtoMessage() {} + +func (x *GetCachedProviders_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCachedProviders_Response.ProtoReflect.Descriptor instead. +func (*GetCachedProviders_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{9, 1} +} + +func (x *GetCachedProviders_Response) GetAvailableProviders() []*terraform1.ProviderPackage { + if x != nil { + return x.AvailableProviders + } + return nil +} + +type GetBuiltInProviders_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetBuiltInProviders_Request) Reset() { + *x = GetBuiltInProviders_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBuiltInProviders_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBuiltInProviders_Request) ProtoMessage() {} + +func (x *GetBuiltInProviders_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBuiltInProviders_Request.ProtoReflect.Descriptor instead. +func (*GetBuiltInProviders_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{10, 0} +} + +type GetBuiltInProviders_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The built-in providers that are compiled in to this Terraform Core + // server. + // + // This uses terraform1.ProviderPackage messages for consistency with the other + // operations which list providers, but built-in providers do not + // have version numbers nor hashes so those fields will always be + // unset in the result. + AvailableProviders []*terraform1.ProviderPackage `protobuf:"bytes,1,rep,name=available_providers,json=availableProviders,proto3" json:"available_providers,omitempty"` +} + +func (x *GetBuiltInProviders_Response) Reset() { + *x = GetBuiltInProviders_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBuiltInProviders_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBuiltInProviders_Response) ProtoMessage() {} + +func (x *GetBuiltInProviders_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBuiltInProviders_Response.ProtoReflect.Descriptor instead. +func (*GetBuiltInProviders_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{10, 1} +} + +func (x *GetBuiltInProviders_Response) GetAvailableProviders() []*terraform1.ProviderPackage { + if x != nil { + return x.AvailableProviders + } + return nil +} + +type GetProviderSchema_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The address of the provider to retrieve schema for, using the + // typical provider source address syntax. + // + // When requesting schema based on a terraform1.ProviderPackage message, populate + // this with its "source_addr" field. + ProviderAddr string `protobuf:"bytes,1,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` + // The version number of the given provider to retrieve the schema + // of, which must have already been populated into the cache directory. + // + // Not supported for built-in providers because we can only access the + // single "version" of the provider that's compiled into this Terraform + // Core server, and so must be left unset or empty for those. + // + // When requesting schema based on a terraform1.ProviderPackage message, populate + // this with its "version" field. + ProviderVersion string `protobuf:"bytes,2,opt,name=provider_version,json=providerVersion,proto3" json:"provider_version,omitempty"` + // The handle for the previously-opened provider plugin cache to + // load the provider plugin from. + // + // Optional for built-in providers, but can still be specified in that + // case if desired so that callers can safely just send the handle they + // have in all cases and be naive about which providers are and are + // not built in. + ProviderCacheHandle int64 `protobuf:"varint,3,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` +} + +func (x *GetProviderSchema_Request) Reset() { + *x = GetProviderSchema_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProviderSchema_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProviderSchema_Request) ProtoMessage() {} + +func (x *GetProviderSchema_Request) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProviderSchema_Request.ProtoReflect.Descriptor instead. +func (*GetProviderSchema_Request) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{11, 0} +} + +func (x *GetProviderSchema_Request) GetProviderAddr() string { + if x != nil { + return x.ProviderAddr + } + return "" +} + +func (x *GetProviderSchema_Request) GetProviderVersion() string { + if x != nil { + return x.ProviderVersion + } + return "" +} + +func (x *GetProviderSchema_Request) GetProviderCacheHandle() int64 { + if x != nil { + return x.ProviderCacheHandle + } + return 0 +} + +type GetProviderSchema_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Schema *ProviderSchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` +} + +func (x *GetProviderSchema_Response) Reset() { + *x = GetProviderSchema_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetProviderSchema_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetProviderSchema_Response) ProtoMessage() {} + +func (x *GetProviderSchema_Response) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetProviderSchema_Response.ProtoReflect.Descriptor instead. +func (*GetProviderSchema_Response) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{11, 1} +} + +func (x *GetProviderSchema_Response) GetSchema() *ProviderSchema { + if x != nil { + return x.Schema + } + return nil +} + +type Schema_Block struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attributes []*Schema_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` + BlockTypes []*Schema_NestedBlock `protobuf:"bytes,2,rep,name=block_types,json=blockTypes,proto3" json:"block_types,omitempty"` + Description *Schema_DocString `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Deprecated bool `protobuf:"varint,4,opt,name=deprecated,proto3" json:"deprecated,omitempty"` +} + +func (x *Schema_Block) Reset() { + *x = Schema_Block{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schema_Block) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schema_Block) ProtoMessage() {} + +func (x *Schema_Block) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schema_Block.ProtoReflect.Descriptor instead. +func (*Schema_Block) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13, 0} +} + +func (x *Schema_Block) GetAttributes() []*Schema_Attribute { + if x != nil { + return x.Attributes + } + return nil +} + +func (x *Schema_Block) GetBlockTypes() []*Schema_NestedBlock { + if x != nil { + return x.BlockTypes + } + return nil +} + +func (x *Schema_Block) GetDescription() *Schema_DocString { + if x != nil { + return x.Description + } + return nil +} + +func (x *Schema_Block) GetDeprecated() bool { + if x != nil { + return x.Deprecated + } + return false +} + +type Schema_Attribute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Type []byte `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + NestedType *Schema_Object `protobuf:"bytes,10,opt,name=nested_type,json=nestedType,proto3" json:"nested_type,omitempty"` + Description *Schema_DocString `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` + Optional bool `protobuf:"varint,5,opt,name=optional,proto3" json:"optional,omitempty"` + Computed bool `protobuf:"varint,6,opt,name=computed,proto3" json:"computed,omitempty"` + Sensitive bool `protobuf:"varint,7,opt,name=sensitive,proto3" json:"sensitive,omitempty"` + Deprecated bool `protobuf:"varint,8,opt,name=deprecated,proto3" json:"deprecated,omitempty"` +} + +func (x *Schema_Attribute) Reset() { + *x = Schema_Attribute{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schema_Attribute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schema_Attribute) ProtoMessage() {} + +func (x *Schema_Attribute) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schema_Attribute.ProtoReflect.Descriptor instead. +func (*Schema_Attribute) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13, 1} +} + +func (x *Schema_Attribute) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Schema_Attribute) GetType() []byte { + if x != nil { + return x.Type + } + return nil +} + +func (x *Schema_Attribute) GetNestedType() *Schema_Object { + if x != nil { + return x.NestedType + } + return nil +} + +func (x *Schema_Attribute) GetDescription() *Schema_DocString { + if x != nil { + return x.Description + } + return nil +} + +func (x *Schema_Attribute) GetRequired() bool { + if x != nil { + return x.Required + } + return false +} + +func (x *Schema_Attribute) GetOptional() bool { + if x != nil { + return x.Optional + } + return false +} + +func (x *Schema_Attribute) GetComputed() bool { + if x != nil { + return x.Computed + } + return false +} + +func (x *Schema_Attribute) GetSensitive() bool { + if x != nil { + return x.Sensitive + } + return false +} + +func (x *Schema_Attribute) GetDeprecated() bool { + if x != nil { + return x.Deprecated + } + return false +} + +type Schema_NestedBlock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Block *Schema_Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` + Nesting Schema_NestedBlock_NestingMode `protobuf:"varint,3,opt,name=nesting,proto3,enum=terraform1.dependencies.Schema_NestedBlock_NestingMode" json:"nesting,omitempty"` +} + +func (x *Schema_NestedBlock) Reset() { + *x = Schema_NestedBlock{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schema_NestedBlock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schema_NestedBlock) ProtoMessage() {} + +func (x *Schema_NestedBlock) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schema_NestedBlock.ProtoReflect.Descriptor instead. +func (*Schema_NestedBlock) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13, 2} +} + +func (x *Schema_NestedBlock) GetTypeName() string { + if x != nil { + return x.TypeName + } + return "" +} + +func (x *Schema_NestedBlock) GetBlock() *Schema_Block { + if x != nil { + return x.Block + } + return nil +} + +func (x *Schema_NestedBlock) GetNesting() Schema_NestedBlock_NestingMode { + if x != nil { + return x.Nesting + } + return Schema_NestedBlock_INVALID +} + +type Schema_Object struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attributes []*Schema_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` + Nesting Schema_Object_NestingMode `protobuf:"varint,3,opt,name=nesting,proto3,enum=terraform1.dependencies.Schema_Object_NestingMode" json:"nesting,omitempty"` +} + +func (x *Schema_Object) Reset() { + *x = Schema_Object{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schema_Object) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schema_Object) ProtoMessage() {} + +func (x *Schema_Object) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schema_Object.ProtoReflect.Descriptor instead. +func (*Schema_Object) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13, 3} +} + +func (x *Schema_Object) GetAttributes() []*Schema_Attribute { + if x != nil { + return x.Attributes + } + return nil +} + +func (x *Schema_Object) GetNesting() Schema_Object_NestingMode { + if x != nil { + return x.Nesting + } + return Schema_Object_INVALID +} + +type Schema_DocString struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + Format Schema_DocString_Format `protobuf:"varint,2,opt,name=format,proto3,enum=terraform1.dependencies.Schema_DocString_Format" json:"format,omitempty"` +} + +func (x *Schema_DocString) Reset() { + *x = Schema_DocString{} + if protoimpl.UnsafeEnabled { + mi := &file_dependencies_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schema_DocString) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schema_DocString) ProtoMessage() {} + +func (x *Schema_DocString) ProtoReflect() protoreflect.Message { + mi := &file_dependencies_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schema_DocString.ProtoReflect.Descriptor instead. +func (*Schema_DocString) Descriptor() ([]byte, []int) { + return file_dependencies_proto_rawDescGZIP(), []int{13, 4} +} + +func (x *Schema_DocString) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Schema_DocString) GetFormat() Schema_DocString_Format { + if x != nil { + return x.Format + } + return Schema_DocString_PLAIN +} + +var File_dependencies_proto protoreflect.FileDescriptor + +var file_dependencies_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x1a, 0x10, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x7a, 0x0a, 0x10, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x1a, 0x28, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x74, 0x68, 0x1a, 0x3c, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x5c, 0x0a, 0x11, 0x43, + 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x1a, 0x3b, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x68, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x95, 0x02, 0x0a, 0x16, 0x4f, 0x70, + 0x65, 0x6e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, + 0x46, 0x69, 0x6c, 0x65, 0x1a, 0x7d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x30, 0x0a, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, + 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x1a, 0x7c, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, + 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, + 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x22, 0xb4, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x57, 0x0a, 0x07, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x52, 0x12, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x42, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, + 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, + 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x65, 0x0a, 0x14, 0x43, 0x6c, 0x6f, 0x73, + 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, + 0x1a, 0x41, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x64, + 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, + 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0xba, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, + 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x17, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, + 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, + 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x56, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4a, 0x0a, 0x12, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x11, 0x73, 0x65, 0x6c, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0xb4, 0x12, 0x0a, + 0x18, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x1a, 0xcd, 0x03, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x64, + 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, + 0x69, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, + 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, + 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x7a, 0x0a, 0x14, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, + 0x65, 0x73, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, + 0x64, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x1a, 0xc3, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x18, 0x0a, 0x06, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, + 0x2a, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, + 0x64, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0e, 0x6c, 0x6f, 0x63, + 0x61, 0x6c, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x69, 0x72, 0x12, 0x2e, 0x0a, 0x12, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x75, 0x72, + 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x42, + 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0xc7, 0x0e, 0x0a, 0x05, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x5b, 0x0a, 0x07, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x65, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x07, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x12, 0x76, 0x0a, 0x11, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x10, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x64, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, + 0x74, 0x5f, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, + 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x12, 0x6e, + 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x4b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, + 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, + 0x48, 0x00, 0x52, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x12, 0x6e, + 0x0a, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, + 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x71, + 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, + 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, + 0x48, 0x00, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, + 0x73, 0x12, 0x65, 0x0a, 0x0b, 0x66, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x62, 0x65, 0x67, 0x69, 0x6e, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, + 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x65, + 0x74, 0x63, 0x68, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x12, 0x6e, 0x0a, 0x0e, 0x66, 0x65, 0x74, 0x63, + 0x68, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x45, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, + 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x66, 0x65, 0x74, 0x63, 0x68, + 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x64, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x1a, 0x72, 0x0a, 0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x67, 0x0a, + 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x4b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, + 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, + 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x08, 0x65, 0x78, + 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x1a, 0x52, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x1f, 0x0a, + 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1a, + 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x4c, 0x0a, 0x0f, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, + 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x4f, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1a, 0x0a, + 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x9c, 0x01, 0x0a, 0x0a, 0x46, 0x65, + 0x74, 0x63, 0x68, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x12, 0x72, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, 0x69, + 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x8f, 0x03, 0x0a, 0x0d, 0x46, 0x65, 0x74, + 0x63, 0x68, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x72, 0x0a, 0x10, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x71, + 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x50, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, + 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x65, 0x74, + 0x63, 0x68, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x2b, 0x0a, 0x12, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x5f, + 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6b, + 0x65, 0x79, 0x49, 0x64, 0x46, 0x6f, 0x72, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x22, 0x6a, + 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0b, 0x0a, 0x07, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x45, 0x52, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x10, 0x01, + 0x12, 0x13, 0x0a, 0x0f, 0x4f, 0x46, 0x46, 0x49, 0x43, 0x49, 0x41, 0x4c, 0x5f, 0x53, 0x49, 0x47, + 0x4e, 0x45, 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x41, 0x52, 0x54, 0x4e, 0x45, 0x52, + 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x45, 0x4c, + 0x46, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x10, 0x04, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x22, 0xae, 0x01, 0x0a, 0x17, 0x4f, 0x70, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x1a, + 0x53, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, + 0x63, 0x68, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, + 0x61, 0x63, 0x68, 0x65, 0x44, 0x69, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x76, 0x65, 0x72, 0x72, + 0x69, 0x64, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x50, 0x6c, 0x61, 0x74, + 0x66, 0x6f, 0x72, 0x6d, 0x1a, 0x3e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, + 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x65, 0x0a, 0x18, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, + 0x1a, 0x3d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, + 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x12, + 0x47, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x73, 0x1a, 0x3d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, + 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, + 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, + 0x65, 0x1a, 0x58, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, + 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x7a, 0x0a, 0x13, 0x47, + 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x73, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x58, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x13, 0x61, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0xf0, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x8d, 0x01, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x29, + 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, + 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x4b, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, + 0x69, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x94, 0x04, 0x0a, 0x0e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x48, 0x0a, + 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, + 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x77, 0x0a, 0x16, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, + 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x2e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x6d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x12, 0x6e, 0x0a, 0x13, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x64, + 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x1a, 0x68, 0x0a, 0x19, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x65, 0x0a, 0x16, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, + 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0xc4, 0x0a, 0x0a, 0x06, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x3b, 0x0a, 0x05, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x8d, 0x02, 0x0a, 0x05, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x12, 0x49, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, + 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x4c, + 0x0a, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x52, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, + 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x1a, 0xdb, 0x02, 0x0a, 0x09, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x47, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x0a, 0x6e, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x44, + 0x6f, 0x63, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, + 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6e, + 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, + 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x1a, 0x89, 0x02, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x12, 0x51, 0x0a, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, + 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x22, 0x4d, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, + 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, + 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, + 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, + 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, + 0x50, 0x10, 0x05, 0x1a, 0xe5, 0x01, 0x0a, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x49, + 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x4c, 0x0a, 0x07, 0x6e, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, + 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, + 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x42, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, + 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, + 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, + 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x1a, 0x9a, 0x01, 0x0a, 0x09, + 0x44, 0x6f, 0x63, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x06, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x44, 0x6f, 0x63, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x21, 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, + 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x41, + 0x52, 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x32, 0x87, 0x0d, 0x0a, 0x0c, 0x44, 0x65, 0x70, + 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x79, 0x0a, 0x10, 0x4f, 0x70, 0x65, + 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x31, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, + 0x69, 0x65, 0x73, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x6e, 0x44, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x37, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x44, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, + 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, + 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x88, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x36, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, + 0x63, 0x69, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, + 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x85, 0x01, 0x0a, 0x14, + 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, + 0x6f, 0x63, 0x6b, 0x73, 0x12, 0x35, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x43, + 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, + 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x65, + 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, + 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x3e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, + 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, + 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x18, 0x42, 0x75, 0x69, 0x6c, 0x64, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, + 0x63, 0x68, 0x65, 0x12, 0x39, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, + 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, + 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x30, 0x01, 0x12, 0x8e, 0x01, 0x0a, 0x17, 0x4f, 0x70, + 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, + 0x4f, 0x70, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x39, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, + 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, + 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x18, 0x43, + 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x39, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, + 0x73, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x43, 0x6c, 0x6f, + 0x73, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x73, 0x12, 0x33, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, + 0x69, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x82, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, + 0x73, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x74, + 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7c, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, + 0x69, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x64, 0x65, 0x70, 0x65, 0x6e, + 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_dependencies_proto_rawDescOnce sync.Once + file_dependencies_proto_rawDescData = file_dependencies_proto_rawDesc +) + +func file_dependencies_proto_rawDescGZIP() []byte { + file_dependencies_proto_rawDescOnce.Do(func() { + file_dependencies_proto_rawDescData = protoimpl.X.CompressGZIP(file_dependencies_proto_rawDescData) + }) + return file_dependencies_proto_rawDescData +} + +var file_dependencies_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_dependencies_proto_msgTypes = make([]protoimpl.MessageInfo, 52) +var file_dependencies_proto_goTypes = []interface{}{ + (BuildProviderPluginCache_Event_FetchComplete_AuthResult)(0), // 0: terraform1.dependencies.BuildProviderPluginCache.Event.FetchComplete.AuthResult + (Schema_NestedBlock_NestingMode)(0), // 1: terraform1.dependencies.Schema.NestedBlock.NestingMode + (Schema_Object_NestingMode)(0), // 2: terraform1.dependencies.Schema.Object.NestingMode + (Schema_DocString_Format)(0), // 3: terraform1.dependencies.Schema.DocString.Format + (*OpenSourceBundle)(nil), // 4: terraform1.dependencies.OpenSourceBundle + (*CloseSourceBundle)(nil), // 5: terraform1.dependencies.CloseSourceBundle + (*OpenDependencyLockFile)(nil), // 6: terraform1.dependencies.OpenDependencyLockFile + (*CreateDependencyLocks)(nil), // 7: terraform1.dependencies.CreateDependencyLocks + (*CloseDependencyLocks)(nil), // 8: terraform1.dependencies.CloseDependencyLocks + (*GetLockedProviderDependencies)(nil), // 9: terraform1.dependencies.GetLockedProviderDependencies + (*BuildProviderPluginCache)(nil), // 10: terraform1.dependencies.BuildProviderPluginCache + (*OpenProviderPluginCache)(nil), // 11: terraform1.dependencies.OpenProviderPluginCache + (*CloseProviderPluginCache)(nil), // 12: terraform1.dependencies.CloseProviderPluginCache + (*GetCachedProviders)(nil), // 13: terraform1.dependencies.GetCachedProviders + (*GetBuiltInProviders)(nil), // 14: terraform1.dependencies.GetBuiltInProviders + (*GetProviderSchema)(nil), // 15: terraform1.dependencies.GetProviderSchema + (*ProviderSchema)(nil), // 16: terraform1.dependencies.ProviderSchema + (*Schema)(nil), // 17: terraform1.dependencies.Schema + (*OpenSourceBundle_Request)(nil), // 18: terraform1.dependencies.OpenSourceBundle.Request + (*OpenSourceBundle_Response)(nil), // 19: terraform1.dependencies.OpenSourceBundle.Response + (*CloseSourceBundle_Request)(nil), // 20: terraform1.dependencies.CloseSourceBundle.Request + (*CloseSourceBundle_Response)(nil), // 21: terraform1.dependencies.CloseSourceBundle.Response + (*OpenDependencyLockFile_Request)(nil), // 22: terraform1.dependencies.OpenDependencyLockFile.Request + (*OpenDependencyLockFile_Response)(nil), // 23: terraform1.dependencies.OpenDependencyLockFile.Response + (*CreateDependencyLocks_Request)(nil), // 24: terraform1.dependencies.CreateDependencyLocks.Request + (*CreateDependencyLocks_Response)(nil), // 25: terraform1.dependencies.CreateDependencyLocks.Response + (*CloseDependencyLocks_Request)(nil), // 26: terraform1.dependencies.CloseDependencyLocks.Request + (*CloseDependencyLocks_Response)(nil), // 27: terraform1.dependencies.CloseDependencyLocks.Response + (*GetLockedProviderDependencies_Request)(nil), // 28: terraform1.dependencies.GetLockedProviderDependencies.Request + (*GetLockedProviderDependencies_Response)(nil), // 29: terraform1.dependencies.GetLockedProviderDependencies.Response + (*BuildProviderPluginCache_Request)(nil), // 30: terraform1.dependencies.BuildProviderPluginCache.Request + (*BuildProviderPluginCache_Event)(nil), // 31: terraform1.dependencies.BuildProviderPluginCache.Event + (*BuildProviderPluginCache_Request_InstallMethod)(nil), // 32: terraform1.dependencies.BuildProviderPluginCache.Request.InstallMethod + (*BuildProviderPluginCache_Event_Pending)(nil), // 33: terraform1.dependencies.BuildProviderPluginCache.Event.Pending + (*BuildProviderPluginCache_Event_ProviderConstraints)(nil), // 34: terraform1.dependencies.BuildProviderPluginCache.Event.ProviderConstraints + (*BuildProviderPluginCache_Event_ProviderVersion)(nil), // 35: terraform1.dependencies.BuildProviderPluginCache.Event.ProviderVersion + (*BuildProviderPluginCache_Event_ProviderWarnings)(nil), // 36: terraform1.dependencies.BuildProviderPluginCache.Event.ProviderWarnings + (*BuildProviderPluginCache_Event_FetchBegin)(nil), // 37: terraform1.dependencies.BuildProviderPluginCache.Event.FetchBegin + (*BuildProviderPluginCache_Event_FetchComplete)(nil), // 38: terraform1.dependencies.BuildProviderPluginCache.Event.FetchComplete + (*OpenProviderPluginCache_Request)(nil), // 39: terraform1.dependencies.OpenProviderPluginCache.Request + (*OpenProviderPluginCache_Response)(nil), // 40: terraform1.dependencies.OpenProviderPluginCache.Response + (*CloseProviderPluginCache_Request)(nil), // 41: terraform1.dependencies.CloseProviderPluginCache.Request + (*CloseProviderPluginCache_Response)(nil), // 42: terraform1.dependencies.CloseProviderPluginCache.Response + (*GetCachedProviders_Request)(nil), // 43: terraform1.dependencies.GetCachedProviders.Request + (*GetCachedProviders_Response)(nil), // 44: terraform1.dependencies.GetCachedProviders.Response + (*GetBuiltInProviders_Request)(nil), // 45: terraform1.dependencies.GetBuiltInProviders.Request + (*GetBuiltInProviders_Response)(nil), // 46: terraform1.dependencies.GetBuiltInProviders.Response + (*GetProviderSchema_Request)(nil), // 47: terraform1.dependencies.GetProviderSchema.Request + (*GetProviderSchema_Response)(nil), // 48: terraform1.dependencies.GetProviderSchema.Response + nil, // 49: terraform1.dependencies.ProviderSchema.ManagedResourceTypesEntry + nil, // 50: terraform1.dependencies.ProviderSchema.DataResourceTypesEntry + (*Schema_Block)(nil), // 51: terraform1.dependencies.Schema.Block + (*Schema_Attribute)(nil), // 52: terraform1.dependencies.Schema.Attribute + (*Schema_NestedBlock)(nil), // 53: terraform1.dependencies.Schema.NestedBlock + (*Schema_Object)(nil), // 54: terraform1.dependencies.Schema.Object + (*Schema_DocString)(nil), // 55: terraform1.dependencies.Schema.DocString + (*terraform1.SourceAddress)(nil), // 56: terraform1.SourceAddress + (*terraform1.Diagnostic)(nil), // 57: terraform1.Diagnostic + (*terraform1.ProviderPackage)(nil), // 58: terraform1.ProviderPackage +} +var file_dependencies_proto_depIdxs = []int32{ + 17, // 0: terraform1.dependencies.ProviderSchema.provider_config:type_name -> terraform1.dependencies.Schema + 49, // 1: terraform1.dependencies.ProviderSchema.managed_resource_types:type_name -> terraform1.dependencies.ProviderSchema.ManagedResourceTypesEntry + 50, // 2: terraform1.dependencies.ProviderSchema.data_resource_types:type_name -> terraform1.dependencies.ProviderSchema.DataResourceTypesEntry + 51, // 3: terraform1.dependencies.Schema.block:type_name -> terraform1.dependencies.Schema.Block + 56, // 4: terraform1.dependencies.OpenDependencyLockFile.Request.source_address:type_name -> terraform1.SourceAddress + 57, // 5: terraform1.dependencies.OpenDependencyLockFile.Response.diagnostics:type_name -> terraform1.Diagnostic + 58, // 6: terraform1.dependencies.CreateDependencyLocks.Request.provider_selections:type_name -> terraform1.ProviderPackage + 58, // 7: terraform1.dependencies.GetLockedProviderDependencies.Response.selected_providers:type_name -> terraform1.ProviderPackage + 32, // 8: terraform1.dependencies.BuildProviderPluginCache.Request.installation_methods:type_name -> terraform1.dependencies.BuildProviderPluginCache.Request.InstallMethod + 33, // 9: terraform1.dependencies.BuildProviderPluginCache.Event.pending:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.Pending + 35, // 10: terraform1.dependencies.BuildProviderPluginCache.Event.already_installed:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.ProviderVersion + 35, // 11: terraform1.dependencies.BuildProviderPluginCache.Event.built_in:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.ProviderVersion + 34, // 12: terraform1.dependencies.BuildProviderPluginCache.Event.query_begin:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.ProviderConstraints + 35, // 13: terraform1.dependencies.BuildProviderPluginCache.Event.query_success:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.ProviderVersion + 36, // 14: terraform1.dependencies.BuildProviderPluginCache.Event.query_warnings:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.ProviderWarnings + 37, // 15: terraform1.dependencies.BuildProviderPluginCache.Event.fetch_begin:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.FetchBegin + 38, // 16: terraform1.dependencies.BuildProviderPluginCache.Event.fetch_complete:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.FetchComplete + 57, // 17: terraform1.dependencies.BuildProviderPluginCache.Event.diagnostic:type_name -> terraform1.Diagnostic + 34, // 18: terraform1.dependencies.BuildProviderPluginCache.Event.Pending.expected:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.ProviderConstraints + 35, // 19: terraform1.dependencies.BuildProviderPluginCache.Event.FetchBegin.provider_version:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.ProviderVersion + 35, // 20: terraform1.dependencies.BuildProviderPluginCache.Event.FetchComplete.provider_version:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.ProviderVersion + 0, // 21: terraform1.dependencies.BuildProviderPluginCache.Event.FetchComplete.auth_result:type_name -> terraform1.dependencies.BuildProviderPluginCache.Event.FetchComplete.AuthResult + 58, // 22: terraform1.dependencies.GetCachedProviders.Response.available_providers:type_name -> terraform1.ProviderPackage + 58, // 23: terraform1.dependencies.GetBuiltInProviders.Response.available_providers:type_name -> terraform1.ProviderPackage + 16, // 24: terraform1.dependencies.GetProviderSchema.Response.schema:type_name -> terraform1.dependencies.ProviderSchema + 17, // 25: terraform1.dependencies.ProviderSchema.ManagedResourceTypesEntry.value:type_name -> terraform1.dependencies.Schema + 17, // 26: terraform1.dependencies.ProviderSchema.DataResourceTypesEntry.value:type_name -> terraform1.dependencies.Schema + 52, // 27: terraform1.dependencies.Schema.Block.attributes:type_name -> terraform1.dependencies.Schema.Attribute + 53, // 28: terraform1.dependencies.Schema.Block.block_types:type_name -> terraform1.dependencies.Schema.NestedBlock + 55, // 29: terraform1.dependencies.Schema.Block.description:type_name -> terraform1.dependencies.Schema.DocString + 54, // 30: terraform1.dependencies.Schema.Attribute.nested_type:type_name -> terraform1.dependencies.Schema.Object + 55, // 31: terraform1.dependencies.Schema.Attribute.description:type_name -> terraform1.dependencies.Schema.DocString + 51, // 32: terraform1.dependencies.Schema.NestedBlock.block:type_name -> terraform1.dependencies.Schema.Block + 1, // 33: terraform1.dependencies.Schema.NestedBlock.nesting:type_name -> terraform1.dependencies.Schema.NestedBlock.NestingMode + 52, // 34: terraform1.dependencies.Schema.Object.attributes:type_name -> terraform1.dependencies.Schema.Attribute + 2, // 35: terraform1.dependencies.Schema.Object.nesting:type_name -> terraform1.dependencies.Schema.Object.NestingMode + 3, // 36: terraform1.dependencies.Schema.DocString.format:type_name -> terraform1.dependencies.Schema.DocString.Format + 18, // 37: terraform1.dependencies.Dependencies.OpenSourceBundle:input_type -> terraform1.dependencies.OpenSourceBundle.Request + 20, // 38: terraform1.dependencies.Dependencies.CloseSourceBundle:input_type -> terraform1.dependencies.CloseSourceBundle.Request + 22, // 39: terraform1.dependencies.Dependencies.OpenDependencyLockFile:input_type -> terraform1.dependencies.OpenDependencyLockFile.Request + 24, // 40: terraform1.dependencies.Dependencies.CreateDependencyLocks:input_type -> terraform1.dependencies.CreateDependencyLocks.Request + 26, // 41: terraform1.dependencies.Dependencies.CloseDependencyLocks:input_type -> terraform1.dependencies.CloseDependencyLocks.Request + 28, // 42: terraform1.dependencies.Dependencies.GetLockedProviderDependencies:input_type -> terraform1.dependencies.GetLockedProviderDependencies.Request + 30, // 43: terraform1.dependencies.Dependencies.BuildProviderPluginCache:input_type -> terraform1.dependencies.BuildProviderPluginCache.Request + 39, // 44: terraform1.dependencies.Dependencies.OpenProviderPluginCache:input_type -> terraform1.dependencies.OpenProviderPluginCache.Request + 41, // 45: terraform1.dependencies.Dependencies.CloseProviderPluginCache:input_type -> terraform1.dependencies.CloseProviderPluginCache.Request + 43, // 46: terraform1.dependencies.Dependencies.GetCachedProviders:input_type -> terraform1.dependencies.GetCachedProviders.Request + 45, // 47: terraform1.dependencies.Dependencies.GetBuiltInProviders:input_type -> terraform1.dependencies.GetBuiltInProviders.Request + 47, // 48: terraform1.dependencies.Dependencies.GetProviderSchema:input_type -> terraform1.dependencies.GetProviderSchema.Request + 19, // 49: terraform1.dependencies.Dependencies.OpenSourceBundle:output_type -> terraform1.dependencies.OpenSourceBundle.Response + 21, // 50: terraform1.dependencies.Dependencies.CloseSourceBundle:output_type -> terraform1.dependencies.CloseSourceBundle.Response + 23, // 51: terraform1.dependencies.Dependencies.OpenDependencyLockFile:output_type -> terraform1.dependencies.OpenDependencyLockFile.Response + 25, // 52: terraform1.dependencies.Dependencies.CreateDependencyLocks:output_type -> terraform1.dependencies.CreateDependencyLocks.Response + 27, // 53: terraform1.dependencies.Dependencies.CloseDependencyLocks:output_type -> terraform1.dependencies.CloseDependencyLocks.Response + 29, // 54: terraform1.dependencies.Dependencies.GetLockedProviderDependencies:output_type -> terraform1.dependencies.GetLockedProviderDependencies.Response + 31, // 55: terraform1.dependencies.Dependencies.BuildProviderPluginCache:output_type -> terraform1.dependencies.BuildProviderPluginCache.Event + 40, // 56: terraform1.dependencies.Dependencies.OpenProviderPluginCache:output_type -> terraform1.dependencies.OpenProviderPluginCache.Response + 42, // 57: terraform1.dependencies.Dependencies.CloseProviderPluginCache:output_type -> terraform1.dependencies.CloseProviderPluginCache.Response + 44, // 58: terraform1.dependencies.Dependencies.GetCachedProviders:output_type -> terraform1.dependencies.GetCachedProviders.Response + 46, // 59: terraform1.dependencies.Dependencies.GetBuiltInProviders:output_type -> terraform1.dependencies.GetBuiltInProviders.Response + 48, // 60: terraform1.dependencies.Dependencies.GetProviderSchema:output_type -> terraform1.dependencies.GetProviderSchema.Response + 49, // [49:61] is the sub-list for method output_type + 37, // [37:49] is the sub-list for method input_type + 37, // [37:37] is the sub-list for extension type_name + 37, // [37:37] is the sub-list for extension extendee + 0, // [0:37] is the sub-list for field type_name +} + +func init() { file_dependencies_proto_init() } +func file_dependencies_proto_init() { + if File_dependencies_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_dependencies_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenSourceBundle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseSourceBundle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenDependencyLockFile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDependencyLocks); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseDependencyLocks); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLockedProviderDependencies); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenProviderPluginCache); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseProviderPluginCache); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCachedProviders); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBuiltInProviders); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProviderSchema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderSchema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenSourceBundle_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenSourceBundle_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseSourceBundle_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseSourceBundle_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenDependencyLockFile_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenDependencyLockFile_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDependencyLocks_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDependencyLocks_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseDependencyLocks_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseDependencyLocks_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLockedProviderDependencies_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLockedProviderDependencies_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Event); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Request_InstallMethod); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Event_Pending); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Event_ProviderConstraints); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Event_ProviderVersion); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Event_ProviderWarnings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Event_FetchBegin); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuildProviderPluginCache_Event_FetchComplete); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenProviderPluginCache_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenProviderPluginCache_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseProviderPluginCache_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseProviderPluginCache_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCachedProviders_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetCachedProviders_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBuiltInProviders_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBuiltInProviders_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProviderSchema_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetProviderSchema_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema_Block); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema_Attribute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema_NestedBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema_Object); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_dependencies_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema_DocString); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_dependencies_proto_msgTypes[27].OneofWrappers = []interface{}{ + (*BuildProviderPluginCache_Event_Pending_)(nil), + (*BuildProviderPluginCache_Event_AlreadyInstalled)(nil), + (*BuildProviderPluginCache_Event_BuiltIn)(nil), + (*BuildProviderPluginCache_Event_QueryBegin)(nil), + (*BuildProviderPluginCache_Event_QuerySuccess)(nil), + (*BuildProviderPluginCache_Event_QueryWarnings)(nil), + (*BuildProviderPluginCache_Event_FetchBegin_)(nil), + (*BuildProviderPluginCache_Event_FetchComplete_)(nil), + (*BuildProviderPluginCache_Event_Diagnostic)(nil), + } + file_dependencies_proto_msgTypes[28].OneofWrappers = []interface{}{ + (*BuildProviderPluginCache_Request_InstallMethod_Direct)(nil), + (*BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir)(nil), + (*BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_dependencies_proto_rawDesc, + NumEnums: 4, + NumMessages: 52, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_dependencies_proto_goTypes, + DependencyIndexes: file_dependencies_proto_depIdxs, + EnumInfos: file_dependencies_proto_enumTypes, + MessageInfos: file_dependencies_proto_msgTypes, + }.Build() + File_dependencies_proto = out.File + file_dependencies_proto_rawDesc = nil + file_dependencies_proto_goTypes = nil + file_dependencies_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// DependenciesClient is the client API for Dependencies service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DependenciesClient interface { + // Opens a source bundle that was already extracted into the filesystem + // somewhere, returning an opaque source bundle handle that can be used for + // subsequent operations. + OpenSourceBundle(ctx context.Context, in *OpenSourceBundle_Request, opts ...grpc.CallOption) (*OpenSourceBundle_Response, error) + // Closes a previously-opened source bundle, invalidating the given handle + // and therefore making it safe to delete or modify the bundle directory + // on disk. + CloseSourceBundle(ctx context.Context, in *CloseSourceBundle_Request, opts ...grpc.CallOption) (*CloseSourceBundle_Response, error) + // Reads and parses an existing dependency lock file from the filesystem, + // returning a dependency locks handle. + // + // This function parses a user-provided source file, and so invalid content + // in that file is treated as diagnostics in a successful response rather + // than as an RPC error. Callers must check whether the dependency locks + // handle in the response is set (non-zero) before using it, and treat + // an unset handle as indicating a user error which is described in the + // accompanying diagnostics. Diagnostics can also be returned along with + // a valid handle, e.g. if there are non-blocking warning diagnostics. + OpenDependencyLockFile(ctx context.Context, in *OpenDependencyLockFile_Request, opts ...grpc.CallOption) (*OpenDependencyLockFile_Response, error) + // Creates an in-memory-only dependency locks handle with a fixed set of + // dependency selections provided as arguments. + CreateDependencyLocks(ctx context.Context, in *CreateDependencyLocks_Request, opts ...grpc.CallOption) (*CreateDependencyLocks_Response, error) + CloseDependencyLocks(ctx context.Context, in *CloseDependencyLocks_Request, opts ...grpc.CallOption) (*CloseDependencyLocks_Response, error) + // Returns information about the provider version selections in a + // dependency locks object. + GetLockedProviderDependencies(ctx context.Context, in *GetLockedProviderDependencies_Request, opts ...grpc.CallOption) (*GetLockedProviderDependencies_Response, error) + // Populates a new provider plugin cache directory in the local filesystem + // based on the provider version selections in a given dependency locks + // object. + // + // This particular RPC can only install already-selected provider packages + // recorded in a dependency locks object; it does not support "upgrading" + // provider selections to newer versions as a CLI user would do with + // "terraform init -upgrade", because there would be no way to then + // commit the updated locks to disk as a lock file. + BuildProviderPluginCache(ctx context.Context, in *BuildProviderPluginCache_Request, opts ...grpc.CallOption) (Dependencies_BuildProviderPluginCacheClient, error) + // Opens an existing local filesystem directory as a provider plugin cache + // directory, returning a plugin cache handle that can be used with other + // RPC operations. + OpenProviderPluginCache(ctx context.Context, in *OpenProviderPluginCache_Request, opts ...grpc.CallOption) (*OpenProviderPluginCache_Response, error) + CloseProviderPluginCache(ctx context.Context, in *CloseProviderPluginCache_Request, opts ...grpc.CallOption) (*CloseProviderPluginCache_Response, error) + // Returns information about the specific provider packages that are + // available in the given provider plugin cache. + GetCachedProviders(ctx context.Context, in *GetCachedProviders_Request, opts ...grpc.CallOption) (*GetCachedProviders_Response, error) + // Returns information about the built-in providers that are compiled in + // to this Terraform Core server. + GetBuiltInProviders(ctx context.Context, in *GetBuiltInProviders_Request, opts ...grpc.CallOption) (*GetBuiltInProviders_Response, error) + // Returns a description of the schema for a particular provider in a + // given provider plugin cache, or of a particular built-in provider + // known to this version of Terraform Core. + // + // WARNING: This operation requires executing the selected provider plugin, + // which therefore allows it to run arbitrary code as a child process of + // this Terraform Core server, with access to all of the same resources. + // This should typically be used only with providers explicitly selected + // in a dependency lock file, so users can control what external code + // has the potential to run in a context that probably has access to + // private source code and other sensitive information. + GetProviderSchema(ctx context.Context, in *GetProviderSchema_Request, opts ...grpc.CallOption) (*GetProviderSchema_Response, error) +} + +type dependenciesClient struct { + cc grpc.ClientConnInterface +} + +func NewDependenciesClient(cc grpc.ClientConnInterface) DependenciesClient { + return &dependenciesClient{cc} +} + +func (c *dependenciesClient) OpenSourceBundle(ctx context.Context, in *OpenSourceBundle_Request, opts ...grpc.CallOption) (*OpenSourceBundle_Response, error) { + out := new(OpenSourceBundle_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/OpenSourceBundle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) CloseSourceBundle(ctx context.Context, in *CloseSourceBundle_Request, opts ...grpc.CallOption) (*CloseSourceBundle_Response, error) { + out := new(CloseSourceBundle_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/CloseSourceBundle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) OpenDependencyLockFile(ctx context.Context, in *OpenDependencyLockFile_Request, opts ...grpc.CallOption) (*OpenDependencyLockFile_Response, error) { + out := new(OpenDependencyLockFile_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/OpenDependencyLockFile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) CreateDependencyLocks(ctx context.Context, in *CreateDependencyLocks_Request, opts ...grpc.CallOption) (*CreateDependencyLocks_Response, error) { + out := new(CreateDependencyLocks_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/CreateDependencyLocks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) CloseDependencyLocks(ctx context.Context, in *CloseDependencyLocks_Request, opts ...grpc.CallOption) (*CloseDependencyLocks_Response, error) { + out := new(CloseDependencyLocks_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/CloseDependencyLocks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) GetLockedProviderDependencies(ctx context.Context, in *GetLockedProviderDependencies_Request, opts ...grpc.CallOption) (*GetLockedProviderDependencies_Response, error) { + out := new(GetLockedProviderDependencies_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/GetLockedProviderDependencies", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) BuildProviderPluginCache(ctx context.Context, in *BuildProviderPluginCache_Request, opts ...grpc.CallOption) (Dependencies_BuildProviderPluginCacheClient, error) { + stream, err := c.cc.NewStream(ctx, &_Dependencies_serviceDesc.Streams[0], "/terraform1.dependencies.Dependencies/BuildProviderPluginCache", opts...) + if err != nil { + return nil, err + } + x := &dependenciesBuildProviderPluginCacheClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Dependencies_BuildProviderPluginCacheClient interface { + Recv() (*BuildProviderPluginCache_Event, error) + grpc.ClientStream +} + +type dependenciesBuildProviderPluginCacheClient struct { + grpc.ClientStream +} + +func (x *dependenciesBuildProviderPluginCacheClient) Recv() (*BuildProviderPluginCache_Event, error) { + m := new(BuildProviderPluginCache_Event) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *dependenciesClient) OpenProviderPluginCache(ctx context.Context, in *OpenProviderPluginCache_Request, opts ...grpc.CallOption) (*OpenProviderPluginCache_Response, error) { + out := new(OpenProviderPluginCache_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/OpenProviderPluginCache", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) CloseProviderPluginCache(ctx context.Context, in *CloseProviderPluginCache_Request, opts ...grpc.CallOption) (*CloseProviderPluginCache_Response, error) { + out := new(CloseProviderPluginCache_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/CloseProviderPluginCache", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) GetCachedProviders(ctx context.Context, in *GetCachedProviders_Request, opts ...grpc.CallOption) (*GetCachedProviders_Response, error) { + out := new(GetCachedProviders_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/GetCachedProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) GetBuiltInProviders(ctx context.Context, in *GetBuiltInProviders_Request, opts ...grpc.CallOption) (*GetBuiltInProviders_Response, error) { + out := new(GetBuiltInProviders_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/GetBuiltInProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dependenciesClient) GetProviderSchema(ctx context.Context, in *GetProviderSchema_Request, opts ...grpc.CallOption) (*GetProviderSchema_Response, error) { + out := new(GetProviderSchema_Response) + err := c.cc.Invoke(ctx, "/terraform1.dependencies.Dependencies/GetProviderSchema", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DependenciesServer is the server API for Dependencies service. +type DependenciesServer interface { + // Opens a source bundle that was already extracted into the filesystem + // somewhere, returning an opaque source bundle handle that can be used for + // subsequent operations. + OpenSourceBundle(context.Context, *OpenSourceBundle_Request) (*OpenSourceBundle_Response, error) + // Closes a previously-opened source bundle, invalidating the given handle + // and therefore making it safe to delete or modify the bundle directory + // on disk. + CloseSourceBundle(context.Context, *CloseSourceBundle_Request) (*CloseSourceBundle_Response, error) + // Reads and parses an existing dependency lock file from the filesystem, + // returning a dependency locks handle. + // + // This function parses a user-provided source file, and so invalid content + // in that file is treated as diagnostics in a successful response rather + // than as an RPC error. Callers must check whether the dependency locks + // handle in the response is set (non-zero) before using it, and treat + // an unset handle as indicating a user error which is described in the + // accompanying diagnostics. Diagnostics can also be returned along with + // a valid handle, e.g. if there are non-blocking warning diagnostics. + OpenDependencyLockFile(context.Context, *OpenDependencyLockFile_Request) (*OpenDependencyLockFile_Response, error) + // Creates an in-memory-only dependency locks handle with a fixed set of + // dependency selections provided as arguments. + CreateDependencyLocks(context.Context, *CreateDependencyLocks_Request) (*CreateDependencyLocks_Response, error) + CloseDependencyLocks(context.Context, *CloseDependencyLocks_Request) (*CloseDependencyLocks_Response, error) + // Returns information about the provider version selections in a + // dependency locks object. + GetLockedProviderDependencies(context.Context, *GetLockedProviderDependencies_Request) (*GetLockedProviderDependencies_Response, error) + // Populates a new provider plugin cache directory in the local filesystem + // based on the provider version selections in a given dependency locks + // object. + // + // This particular RPC can only install already-selected provider packages + // recorded in a dependency locks object; it does not support "upgrading" + // provider selections to newer versions as a CLI user would do with + // "terraform init -upgrade", because there would be no way to then + // commit the updated locks to disk as a lock file. + BuildProviderPluginCache(*BuildProviderPluginCache_Request, Dependencies_BuildProviderPluginCacheServer) error + // Opens an existing local filesystem directory as a provider plugin cache + // directory, returning a plugin cache handle that can be used with other + // RPC operations. + OpenProviderPluginCache(context.Context, *OpenProviderPluginCache_Request) (*OpenProviderPluginCache_Response, error) + CloseProviderPluginCache(context.Context, *CloseProviderPluginCache_Request) (*CloseProviderPluginCache_Response, error) + // Returns information about the specific provider packages that are + // available in the given provider plugin cache. + GetCachedProviders(context.Context, *GetCachedProviders_Request) (*GetCachedProviders_Response, error) + // Returns information about the built-in providers that are compiled in + // to this Terraform Core server. + GetBuiltInProviders(context.Context, *GetBuiltInProviders_Request) (*GetBuiltInProviders_Response, error) + // Returns a description of the schema for a particular provider in a + // given provider plugin cache, or of a particular built-in provider + // known to this version of Terraform Core. + // + // WARNING: This operation requires executing the selected provider plugin, + // which therefore allows it to run arbitrary code as a child process of + // this Terraform Core server, with access to all of the same resources. + // This should typically be used only with providers explicitly selected + // in a dependency lock file, so users can control what external code + // has the potential to run in a context that probably has access to + // private source code and other sensitive information. + GetProviderSchema(context.Context, *GetProviderSchema_Request) (*GetProviderSchema_Response, error) +} + +// UnimplementedDependenciesServer can be embedded to have forward compatible implementations. +type UnimplementedDependenciesServer struct { +} + +func (*UnimplementedDependenciesServer) OpenSourceBundle(context.Context, *OpenSourceBundle_Request) (*OpenSourceBundle_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenSourceBundle not implemented") +} +func (*UnimplementedDependenciesServer) CloseSourceBundle(context.Context, *CloseSourceBundle_Request) (*CloseSourceBundle_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseSourceBundle not implemented") +} +func (*UnimplementedDependenciesServer) OpenDependencyLockFile(context.Context, *OpenDependencyLockFile_Request) (*OpenDependencyLockFile_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenDependencyLockFile not implemented") +} +func (*UnimplementedDependenciesServer) CreateDependencyLocks(context.Context, *CreateDependencyLocks_Request) (*CreateDependencyLocks_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDependencyLocks not implemented") +} +func (*UnimplementedDependenciesServer) CloseDependencyLocks(context.Context, *CloseDependencyLocks_Request) (*CloseDependencyLocks_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseDependencyLocks not implemented") +} +func (*UnimplementedDependenciesServer) GetLockedProviderDependencies(context.Context, *GetLockedProviderDependencies_Request) (*GetLockedProviderDependencies_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLockedProviderDependencies not implemented") +} +func (*UnimplementedDependenciesServer) BuildProviderPluginCache(*BuildProviderPluginCache_Request, Dependencies_BuildProviderPluginCacheServer) error { + return status.Errorf(codes.Unimplemented, "method BuildProviderPluginCache not implemented") +} +func (*UnimplementedDependenciesServer) OpenProviderPluginCache(context.Context, *OpenProviderPluginCache_Request) (*OpenProviderPluginCache_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenProviderPluginCache not implemented") +} +func (*UnimplementedDependenciesServer) CloseProviderPluginCache(context.Context, *CloseProviderPluginCache_Request) (*CloseProviderPluginCache_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseProviderPluginCache not implemented") +} +func (*UnimplementedDependenciesServer) GetCachedProviders(context.Context, *GetCachedProviders_Request) (*GetCachedProviders_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetCachedProviders not implemented") +} +func (*UnimplementedDependenciesServer) GetBuiltInProviders(context.Context, *GetBuiltInProviders_Request) (*GetBuiltInProviders_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBuiltInProviders not implemented") +} +func (*UnimplementedDependenciesServer) GetProviderSchema(context.Context, *GetProviderSchema_Request) (*GetProviderSchema_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProviderSchema not implemented") +} + +func RegisterDependenciesServer(s *grpc.Server, srv DependenciesServer) { + s.RegisterService(&_Dependencies_serviceDesc, srv) +} + +func _Dependencies_OpenSourceBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenSourceBundle_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).OpenSourceBundle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/OpenSourceBundle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).OpenSourceBundle(ctx, req.(*OpenSourceBundle_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_CloseSourceBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseSourceBundle_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).CloseSourceBundle(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/CloseSourceBundle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).CloseSourceBundle(ctx, req.(*CloseSourceBundle_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_OpenDependencyLockFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenDependencyLockFile_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).OpenDependencyLockFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/OpenDependencyLockFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).OpenDependencyLockFile(ctx, req.(*OpenDependencyLockFile_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_CreateDependencyLocks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDependencyLocks_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).CreateDependencyLocks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/CreateDependencyLocks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).CreateDependencyLocks(ctx, req.(*CreateDependencyLocks_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_CloseDependencyLocks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseDependencyLocks_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).CloseDependencyLocks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/CloseDependencyLocks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).CloseDependencyLocks(ctx, req.(*CloseDependencyLocks_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_GetLockedProviderDependencies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLockedProviderDependencies_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).GetLockedProviderDependencies(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/GetLockedProviderDependencies", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).GetLockedProviderDependencies(ctx, req.(*GetLockedProviderDependencies_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_BuildProviderPluginCache_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(BuildProviderPluginCache_Request) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(DependenciesServer).BuildProviderPluginCache(m, &dependenciesBuildProviderPluginCacheServer{stream}) +} + +type Dependencies_BuildProviderPluginCacheServer interface { + Send(*BuildProviderPluginCache_Event) error + grpc.ServerStream +} + +type dependenciesBuildProviderPluginCacheServer struct { + grpc.ServerStream +} + +func (x *dependenciesBuildProviderPluginCacheServer) Send(m *BuildProviderPluginCache_Event) error { + return x.ServerStream.SendMsg(m) +} + +func _Dependencies_OpenProviderPluginCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenProviderPluginCache_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).OpenProviderPluginCache(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/OpenProviderPluginCache", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).OpenProviderPluginCache(ctx, req.(*OpenProviderPluginCache_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_CloseProviderPluginCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseProviderPluginCache_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).CloseProviderPluginCache(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/CloseProviderPluginCache", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).CloseProviderPluginCache(ctx, req.(*CloseProviderPluginCache_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_GetCachedProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetCachedProviders_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).GetCachedProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/GetCachedProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).GetCachedProviders(ctx, req.(*GetCachedProviders_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_GetBuiltInProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBuiltInProviders_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).GetBuiltInProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/GetBuiltInProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).GetBuiltInProviders(ctx, req.(*GetBuiltInProviders_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dependencies_GetProviderSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetProviderSchema_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DependenciesServer).GetProviderSchema(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.dependencies.Dependencies/GetProviderSchema", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DependenciesServer).GetProviderSchema(ctx, req.(*GetProviderSchema_Request)) + } + return interceptor(ctx, in, info, handler) +} + +var _Dependencies_serviceDesc = grpc.ServiceDesc{ + ServiceName: "terraform1.dependencies.Dependencies", + HandlerType: (*DependenciesServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "OpenSourceBundle", + Handler: _Dependencies_OpenSourceBundle_Handler, + }, + { + MethodName: "CloseSourceBundle", + Handler: _Dependencies_CloseSourceBundle_Handler, + }, + { + MethodName: "OpenDependencyLockFile", + Handler: _Dependencies_OpenDependencyLockFile_Handler, + }, + { + MethodName: "CreateDependencyLocks", + Handler: _Dependencies_CreateDependencyLocks_Handler, + }, + { + MethodName: "CloseDependencyLocks", + Handler: _Dependencies_CloseDependencyLocks_Handler, + }, + { + MethodName: "GetLockedProviderDependencies", + Handler: _Dependencies_GetLockedProviderDependencies_Handler, + }, + { + MethodName: "OpenProviderPluginCache", + Handler: _Dependencies_OpenProviderPluginCache_Handler, + }, + { + MethodName: "CloseProviderPluginCache", + Handler: _Dependencies_CloseProviderPluginCache_Handler, + }, + { + MethodName: "GetCachedProviders", + Handler: _Dependencies_GetCachedProviders_Handler, + }, + { + MethodName: "GetBuiltInProviders", + Handler: _Dependencies_GetBuiltInProviders_Handler, + }, + { + MethodName: "GetProviderSchema", + Handler: _Dependencies_GetProviderSchema_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "BuildProviderPluginCache", + Handler: _Dependencies_BuildProviderPluginCache_Handler, + ServerStreams: true, + }, + }, + Metadata: "dependencies.proto", +} diff --git a/internal/rpcapi/terraform1/dependencies/dependencies.proto b/internal/rpcapi/terraform1/dependencies/dependencies.proto new file mode 100644 index 0000000000..40d142d64f --- /dev/null +++ b/internal/rpcapi/terraform1/dependencies/dependencies.proto @@ -0,0 +1,379 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +syntax = "proto3"; +package terraform1.dependencies; + +import "terraform1.proto"; + +service Dependencies { + // Opens a source bundle that was already extracted into the filesystem + // somewhere, returning an opaque source bundle handle that can be used for + // subsequent operations. + rpc OpenSourceBundle(OpenSourceBundle.Request) returns (OpenSourceBundle.Response); + + // Closes a previously-opened source bundle, invalidating the given handle + // and therefore making it safe to delete or modify the bundle directory + // on disk. + rpc CloseSourceBundle(CloseSourceBundle.Request) returns (CloseSourceBundle.Response); + + // Reads and parses an existing dependency lock file from the filesystem, + // returning a dependency locks handle. + // + // This function parses a user-provided source file, and so invalid content + // in that file is treated as diagnostics in a successful response rather + // than as an RPC error. Callers must check whether the dependency locks + // handle in the response is set (non-zero) before using it, and treat + // an unset handle as indicating a user error which is described in the + // accompanying diagnostics. Diagnostics can also be returned along with + // a valid handle, e.g. if there are non-blocking warning diagnostics. + rpc OpenDependencyLockFile(OpenDependencyLockFile.Request) returns (OpenDependencyLockFile.Response); + + // Creates an in-memory-only dependency locks handle with a fixed set of + // dependency selections provided as arguments. + rpc CreateDependencyLocks(CreateDependencyLocks.Request) returns (CreateDependencyLocks.Response); + + rpc CloseDependencyLocks(CloseDependencyLocks.Request) returns (CloseDependencyLocks.Response); + + // Returns information about the provider version selections in a + // dependency locks object. + rpc GetLockedProviderDependencies(GetLockedProviderDependencies.Request) returns (GetLockedProviderDependencies.Response); + + // Populates a new provider plugin cache directory in the local filesystem + // based on the provider version selections in a given dependency locks + // object. + // + // This particular RPC can only install already-selected provider packages + // recorded in a dependency locks object; it does not support "upgrading" + // provider selections to newer versions as a CLI user would do with + // "terraform init -upgrade", because there would be no way to then + // commit the updated locks to disk as a lock file. + rpc BuildProviderPluginCache(BuildProviderPluginCache.Request) returns (stream BuildProviderPluginCache.Event); + + // Opens an existing local filesystem directory as a provider plugin cache + // directory, returning a plugin cache handle that can be used with other + // RPC operations. + rpc OpenProviderPluginCache(OpenProviderPluginCache.Request) returns (OpenProviderPluginCache.Response); + + rpc CloseProviderPluginCache(CloseProviderPluginCache.Request) returns (CloseProviderPluginCache.Response); + + // Returns information about the specific provider packages that are + // available in the given provider plugin cache. + rpc GetCachedProviders(GetCachedProviders.Request) returns (GetCachedProviders.Response); + + // Returns information about the built-in providers that are compiled in + // to this Terraform Core server. + rpc GetBuiltInProviders(GetBuiltInProviders.Request) returns (GetBuiltInProviders.Response); + + // Returns a description of the schema for a particular provider in a + // given provider plugin cache, or of a particular built-in provider + // known to this version of Terraform Core. + // + // WARNING: This operation requires executing the selected provider plugin, + // which therefore allows it to run arbitrary code as a child process of + // this Terraform Core server, with access to all of the same resources. + // This should typically be used only with providers explicitly selected + // in a dependency lock file, so users can control what external code + // has the potential to run in a context that probably has access to + // private source code and other sensitive information. + rpc GetProviderSchema(GetProviderSchema.Request) returns (GetProviderSchema.Response); +} + + +message OpenSourceBundle { + message Request { + string local_path = 1; + } + message Response { + int64 source_bundle_handle = 1; + } +} + +message CloseSourceBundle { + message Request { + int64 source_bundle_handle = 1; + } + message Response { + } +} + +message OpenDependencyLockFile { + message Request { + int64 source_bundle_handle = 1; + terraform1.SourceAddress source_address = 2; + } + message Response { + int64 dependency_locks_handle = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } +} + +message CreateDependencyLocks { + message Request { + // The provider selections to include in the locks object. + // + // A typical value would be the result of an earlier call to + // GetLockedProviderDependencies on some other locks object, + // e.g. if a caller needs to propagate a set of locks from one + // Terraform Core RPC server to another. + repeated terraform1.ProviderPackage provider_selections = 1; + } + message Response { + int64 dependency_locks_handle = 1; + } +} + +message CloseDependencyLocks { + message Request { + int64 dependency_locks_handle = 1; + } + message Response { + } +} + +message GetLockedProviderDependencies { + message Request { + int64 dependency_locks_handle = 1; + } + message Response { + repeated terraform1.ProviderPackage selected_providers = 1; + } +} + +message BuildProviderPluginCache { + message Request { + string cache_dir = 1; + int64 dependency_locks_handle = 2; + repeated InstallMethod installation_methods = 3; + + // If set, this populates the cache with plugins for a different + // platform than the one the Terraform Core RPC server is running on. + // If unset (empty) then the cache will be populated with packages + // for the same platform as Terraform Core was built for, if available. + // + // If this is set to a different platform than the Terraform Core RPC + // server's then the generated cache directory will appear empty to + // other operations on this server. + string override_platform = 4; + + message InstallMethod { + oneof source { + bool direct = 1; + string local_mirror_dir = 2; + string network_mirror_url = 3; + } + repeated string include = 4; + repeated string exclude = 5; + } + } + message Event { + oneof event { + Pending pending = 1; + ProviderVersion already_installed = 2; + + ProviderVersion built_in = 3; + ProviderConstraints query_begin = 4; + ProviderVersion query_success = 5; + ProviderWarnings query_warnings = 6; + + FetchBegin fetch_begin = 7; + FetchComplete fetch_complete = 8; + + terraform1.Diagnostic diagnostic = 9; + } + + message Pending { + repeated ProviderConstraints expected = 1; + } + message ProviderConstraints { + string source_addr = 1; + string versions = 2; + } + message ProviderVersion { + string source_addr = 1; + string version = 2; + } + message ProviderWarnings { + string source_addr = 1; + repeated string warnings = 2; + } + message FetchBegin { + ProviderVersion provider_version = 1; + string location = 2; + } + message FetchComplete { + ProviderVersion provider_version = 1; + AuthResult auth_result = 2; + + // If auth_result is one of the "_SIGNED" variants then this + // might contain a UI-oriented identifier for the key that + // signed the package. The exact format of this string is not + // guaranteed; do not attempt to parse it or make automated + // decisions based on it. + string key_id_for_display = 3; + + enum AuthResult { + UNKNOWN = 0; + VERIFIED_CHECKSUM = 1; + OFFICIAL_SIGNED = 2; + PARTNER_SIGNED = 3; + SELF_SIGNED = 4; + } + } + } +} + +message OpenProviderPluginCache { + message Request { + string cache_dir = 1; + + // As with the field of the same name in BuildProviderPluginCache.Request. + // + // If this is set to anything other than this RPC server's native + // platform then any operations that require executing the provider + // plugin are likely to fail due to executable format errors or + // similar. However, it's valid to use the returned handle with + // GetCachedProviders, since it only analyzes the cache metadata + // and doesn't actually run the plugins inside. + string override_platform = 2; + } + message Response { + int64 provider_cache_handle = 1; + } +} + +message CloseProviderPluginCache { + message Request { + int64 provider_cache_handle = 1; + } + message Response { + } +} + +message GetCachedProviders { + message Request { + int64 provider_cache_handle = 1; + } + message Response { + repeated terraform1.ProviderPackage available_providers = 1; + } +} + +message GetBuiltInProviders { + message Request { + } + message Response { + // The built-in providers that are compiled in to this Terraform Core + // server. + // + // This uses terraform1.ProviderPackage messages for consistency with the other + // operations which list providers, but built-in providers do not + // have version numbers nor hashes so those fields will always be + // unset in the result. + repeated terraform1.ProviderPackage available_providers = 1; + } +} + +message GetProviderSchema { + message Request { + // The address of the provider to retrieve schema for, using the + // typical provider source address syntax. + // + // When requesting schema based on a terraform1.ProviderPackage message, populate + // this with its "source_addr" field. + string provider_addr = 1; + // The version number of the given provider to retrieve the schema + // of, which must have already been populated into the cache directory. + // + // Not supported for built-in providers because we can only access the + // single "version" of the provider that's compiled into this Terraform + // Core server, and so must be left unset or empty for those. + // + // When requesting schema based on a terraform1.ProviderPackage message, populate + // this with its "version" field. + string provider_version = 2; + + // The handle for the previously-opened provider plugin cache to + // load the provider plugin from. + // + // Optional for built-in providers, but can still be specified in that + // case if desired so that callers can safely just send the handle they + // have in all cases and be naive about which providers are and are + // not built in. + int64 provider_cache_handle = 3; + } + message Response { + ProviderSchema schema = 1; + } +} + +// ProviderSchema describes the full schema for a particular provider. +message ProviderSchema { + Schema provider_config = 1; + map managed_resource_types = 2; + map data_resource_types = 3; +} + +// Schema describes a schema for an instance of a particular object, such as +// a resource type or a provider's overall configuration. +message Schema { + // Block is the top level configuration block for this schema. + Block block = 1; + + message Block { + repeated Attribute attributes = 1; + repeated NestedBlock block_types = 2; + DocString description = 3; + bool deprecated = 4; + } + + message Attribute { + string name = 1; + bytes type = 2; + Object nested_type = 10; + DocString description = 3; + bool required = 4; + bool optional = 5; + bool computed = 6; + bool sensitive = 7; + bool deprecated = 8; + } + + message NestedBlock { + enum NestingMode { + INVALID = 0; + SINGLE = 1; + LIST = 2; + SET = 3; + MAP = 4; + GROUP = 5; + } + + string type_name = 1; + Block block = 2; + NestingMode nesting = 3; + } + + message Object { + enum NestingMode { + INVALID = 0; + SINGLE = 1; + LIST = 2; + SET = 3; + MAP = 4; + } + + repeated Attribute attributes = 1; + NestingMode nesting = 3; + } + + message DocString { + string description = 1; + Format format = 2; + + enum Format { + PLAIN = 0; + MARKDOWN = 1; + } + } +} diff --git a/internal/rpcapi/terraform1/packages/packages.pb.go b/internal/rpcapi/terraform1/packages/packages.pb.go new file mode 100644 index 0000000000..daa6dc1636 --- /dev/null +++ b/internal/rpcapi/terraform1/packages/packages.pb.go @@ -0,0 +1,1453 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.33.0 +// protoc v3.15.6 +// source: packages.proto + +package packages + +import ( + context "context" + terraform1 "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ProviderPackageVersions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProviderPackageVersions) Reset() { + *x = ProviderPackageVersions{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderPackageVersions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderPackageVersions) ProtoMessage() {} + +func (x *ProviderPackageVersions) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProviderPackageVersions.ProtoReflect.Descriptor instead. +func (*ProviderPackageVersions) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{0} +} + +type FetchProviderPackage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FetchProviderPackage) Reset() { + *x = FetchProviderPackage{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchProviderPackage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchProviderPackage) ProtoMessage() {} + +func (x *FetchProviderPackage) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FetchProviderPackage.ProtoReflect.Descriptor instead. +func (*FetchProviderPackage) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{1} +} + +type ModulePackageVersions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ModulePackageVersions) Reset() { + *x = ModulePackageVersions{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModulePackageVersions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModulePackageVersions) ProtoMessage() {} + +func (x *ModulePackageVersions) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ModulePackageVersions.ProtoReflect.Descriptor instead. +func (*ModulePackageVersions) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{2} +} + +type ModulePackageSourceAddr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ModulePackageSourceAddr) Reset() { + *x = ModulePackageSourceAddr{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModulePackageSourceAddr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModulePackageSourceAddr) ProtoMessage() {} + +func (x *ModulePackageSourceAddr) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ModulePackageSourceAddr.ProtoReflect.Descriptor instead. +func (*ModulePackageSourceAddr) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{3} +} + +type FetchModulePackage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FetchModulePackage) Reset() { + *x = FetchModulePackage{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchModulePackage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchModulePackage) ProtoMessage() {} + +func (x *FetchModulePackage) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FetchModulePackage.ProtoReflect.Descriptor instead. +func (*FetchModulePackage) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{4} +} + +type ProviderPackageVersions_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` +} + +func (x *ProviderPackageVersions_Request) Reset() { + *x = ProviderPackageVersions_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderPackageVersions_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderPackageVersions_Request) ProtoMessage() {} + +func (x *ProviderPackageVersions_Request) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProviderPackageVersions_Request.ProtoReflect.Descriptor instead. +func (*ProviderPackageVersions_Request) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *ProviderPackageVersions_Request) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +type ProviderPackageVersions_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *ProviderPackageVersions_Response) Reset() { + *x = ProviderPackageVersions_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProviderPackageVersions_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProviderPackageVersions_Response) ProtoMessage() {} + +func (x *ProviderPackageVersions_Response) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProviderPackageVersions_Response.ProtoReflect.Descriptor instead. +func (*ProviderPackageVersions_Response) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *ProviderPackageVersions_Response) GetVersions() []string { + if x != nil { + return x.Versions + } + return nil +} + +func (x *ProviderPackageVersions_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type FetchProviderPackage_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CacheDir string `protobuf:"bytes,1,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` + SourceAddr string `protobuf:"bytes,2,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Platforms []string `protobuf:"bytes,4,rep,name=platforms,proto3" json:"platforms,omitempty"` + Hashes []string `protobuf:"bytes,5,rep,name=hashes,proto3" json:"hashes,omitempty"` +} + +func (x *FetchProviderPackage_Request) Reset() { + *x = FetchProviderPackage_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchProviderPackage_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchProviderPackage_Request) ProtoMessage() {} + +func (x *FetchProviderPackage_Request) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FetchProviderPackage_Request.ProtoReflect.Descriptor instead. +func (*FetchProviderPackage_Request) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{1, 0} +} + +func (x *FetchProviderPackage_Request) GetCacheDir() string { + if x != nil { + return x.CacheDir + } + return "" +} + +func (x *FetchProviderPackage_Request) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +func (x *FetchProviderPackage_Request) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *FetchProviderPackage_Request) GetPlatforms() []string { + if x != nil { + return x.Platforms + } + return nil +} + +func (x *FetchProviderPackage_Request) GetHashes() []string { + if x != nil { + return x.Hashes + } + return nil +} + +type FetchProviderPackage_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Each requested platform will return a result in this list. The order + // of the returned results will match the order of the requested + // platforms. If the binary for a given platform could not be downloaded + // there will still be an entry in the results with diagnostics + // explaining why. + Results []*FetchProviderPackage_PlatformResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *FetchProviderPackage_Response) Reset() { + *x = FetchProviderPackage_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchProviderPackage_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchProviderPackage_Response) ProtoMessage() {} + +func (x *FetchProviderPackage_Response) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FetchProviderPackage_Response.ProtoReflect.Descriptor instead. +func (*FetchProviderPackage_Response) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *FetchProviderPackage_Response) GetResults() []*FetchProviderPackage_PlatformResult { + if x != nil { + return x.Results + } + return nil +} + +func (x *FetchProviderPackage_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type FetchProviderPackage_PlatformResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Provider *terraform1.ProviderPackage `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *FetchProviderPackage_PlatformResult) Reset() { + *x = FetchProviderPackage_PlatformResult{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchProviderPackage_PlatformResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchProviderPackage_PlatformResult) ProtoMessage() {} + +func (x *FetchProviderPackage_PlatformResult) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FetchProviderPackage_PlatformResult.ProtoReflect.Descriptor instead. +func (*FetchProviderPackage_PlatformResult) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{1, 2} +} + +func (x *FetchProviderPackage_PlatformResult) GetProvider() *terraform1.ProviderPackage { + if x != nil { + return x.Provider + } + return nil +} + +func (x *FetchProviderPackage_PlatformResult) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type ModulePackageVersions_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceAddr string `protobuf:"bytes,2,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` +} + +func (x *ModulePackageVersions_Request) Reset() { + *x = ModulePackageVersions_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModulePackageVersions_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModulePackageVersions_Request) ProtoMessage() {} + +func (x *ModulePackageVersions_Request) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ModulePackageVersions_Request.ProtoReflect.Descriptor instead. +func (*ModulePackageVersions_Request) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *ModulePackageVersions_Request) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +type ModulePackageVersions_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *ModulePackageVersions_Response) Reset() { + *x = ModulePackageVersions_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModulePackageVersions_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModulePackageVersions_Response) ProtoMessage() {} + +func (x *ModulePackageVersions_Response) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ModulePackageVersions_Response.ProtoReflect.Descriptor instead. +func (*ModulePackageVersions_Response) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *ModulePackageVersions_Response) GetVersions() []string { + if x != nil { + return x.Versions + } + return nil +} + +func (x *ModulePackageVersions_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type ModulePackageSourceAddr_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *ModulePackageSourceAddr_Request) Reset() { + *x = ModulePackageSourceAddr_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModulePackageSourceAddr_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModulePackageSourceAddr_Request) ProtoMessage() {} + +func (x *ModulePackageSourceAddr_Request) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ModulePackageSourceAddr_Request.ProtoReflect.Descriptor instead. +func (*ModulePackageSourceAddr_Request) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *ModulePackageSourceAddr_Request) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +func (x *ModulePackageSourceAddr_Request) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +type ModulePackageSourceAddr_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *ModulePackageSourceAddr_Response) Reset() { + *x = ModulePackageSourceAddr_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ModulePackageSourceAddr_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModulePackageSourceAddr_Response) ProtoMessage() {} + +func (x *ModulePackageSourceAddr_Response) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ModulePackageSourceAddr_Response.ProtoReflect.Descriptor instead. +func (*ModulePackageSourceAddr_Response) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{3, 1} +} + +func (x *ModulePackageSourceAddr_Response) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *ModulePackageSourceAddr_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type FetchModulePackage_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CacheDir string `protobuf:"bytes,1,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` +} + +func (x *FetchModulePackage_Request) Reset() { + *x = FetchModulePackage_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchModulePackage_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchModulePackage_Request) ProtoMessage() {} + +func (x *FetchModulePackage_Request) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FetchModulePackage_Request.ProtoReflect.Descriptor instead. +func (*FetchModulePackage_Request) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *FetchModulePackage_Request) GetCacheDir() string { + if x != nil { + return x.CacheDir + } + return "" +} + +func (x *FetchModulePackage_Request) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +type FetchModulePackage_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *FetchModulePackage_Response) Reset() { + *x = FetchModulePackage_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_packages_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FetchModulePackage_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FetchModulePackage_Response) ProtoMessage() {} + +func (x *FetchModulePackage_Response) ProtoReflect() protoreflect.Message { + mi := &file_packages_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FetchModulePackage_Response.ProtoReflect.Descriptor instead. +func (*FetchModulePackage_Response) Descriptor() ([]byte, []int) { + return file_packages_proto_rawDescGZIP(), []int{4, 1} +} + +func (x *FetchModulePackage_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +var File_packages_proto protoreflect.FileDescriptor + +var file_packages_proto_rawDesc = []byte{ + 0x0a, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x13, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x73, 0x1a, 0x10, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x1a, 0x2a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x1a, + 0x60, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x73, 0x22, 0xd1, 0x03, 0x0a, 0x14, 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x1a, 0x97, 0x01, 0x0a, 0x07, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, + 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x63, 0x68, 0x65, + 0x44, 0x69, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, + 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, + 0x73, 0x68, 0x65, 0x73, 0x1a, 0x98, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x52, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, + 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x1a, + 0x83, 0x01, 0x0a, 0x0e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0b, 0x64, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, + 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xa5, 0x01, 0x0a, 0x15, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, + 0x2a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x60, 0x0a, 0x08, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb7, 0x01, + 0x0a, 0x17, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x44, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, + 0x56, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, + 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x38, 0x0a, + 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x12, 0x46, 0x65, 0x74, 0x63, + 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x1a, 0x38, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, 0x63, + 0x68, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, + 0x63, 0x68, 0x65, 0x44, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x44, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x32, 0x97, + 0x05, 0x0a, 0x08, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x12, 0x86, 0x01, 0x0a, 0x17, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x14, 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x31, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x73, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x15, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x32, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x33, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x17, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, + 0x64, 0x72, 0x12, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x4d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x77, 0x0a, 0x12, 0x46, 0x65, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x2f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x46, 0x65, 0x74, 0x63, + 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x46, 0x65, 0x74, + 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_packages_proto_rawDescOnce sync.Once + file_packages_proto_rawDescData = file_packages_proto_rawDesc +) + +func file_packages_proto_rawDescGZIP() []byte { + file_packages_proto_rawDescOnce.Do(func() { + file_packages_proto_rawDescData = protoimpl.X.CompressGZIP(file_packages_proto_rawDescData) + }) + return file_packages_proto_rawDescData +} + +var file_packages_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_packages_proto_goTypes = []interface{}{ + (*ProviderPackageVersions)(nil), // 0: terraform1.packages.ProviderPackageVersions + (*FetchProviderPackage)(nil), // 1: terraform1.packages.FetchProviderPackage + (*ModulePackageVersions)(nil), // 2: terraform1.packages.ModulePackageVersions + (*ModulePackageSourceAddr)(nil), // 3: terraform1.packages.ModulePackageSourceAddr + (*FetchModulePackage)(nil), // 4: terraform1.packages.FetchModulePackage + (*ProviderPackageVersions_Request)(nil), // 5: terraform1.packages.ProviderPackageVersions.Request + (*ProviderPackageVersions_Response)(nil), // 6: terraform1.packages.ProviderPackageVersions.Response + (*FetchProviderPackage_Request)(nil), // 7: terraform1.packages.FetchProviderPackage.Request + (*FetchProviderPackage_Response)(nil), // 8: terraform1.packages.FetchProviderPackage.Response + (*FetchProviderPackage_PlatformResult)(nil), // 9: terraform1.packages.FetchProviderPackage.PlatformResult + (*ModulePackageVersions_Request)(nil), // 10: terraform1.packages.ModulePackageVersions.Request + (*ModulePackageVersions_Response)(nil), // 11: terraform1.packages.ModulePackageVersions.Response + (*ModulePackageSourceAddr_Request)(nil), // 12: terraform1.packages.ModulePackageSourceAddr.Request + (*ModulePackageSourceAddr_Response)(nil), // 13: terraform1.packages.ModulePackageSourceAddr.Response + (*FetchModulePackage_Request)(nil), // 14: terraform1.packages.FetchModulePackage.Request + (*FetchModulePackage_Response)(nil), // 15: terraform1.packages.FetchModulePackage.Response + (*terraform1.Diagnostic)(nil), // 16: terraform1.Diagnostic + (*terraform1.ProviderPackage)(nil), // 17: terraform1.ProviderPackage +} +var file_packages_proto_depIdxs = []int32{ + 16, // 0: terraform1.packages.ProviderPackageVersions.Response.diagnostics:type_name -> terraform1.Diagnostic + 9, // 1: terraform1.packages.FetchProviderPackage.Response.results:type_name -> terraform1.packages.FetchProviderPackage.PlatformResult + 16, // 2: terraform1.packages.FetchProviderPackage.Response.diagnostics:type_name -> terraform1.Diagnostic + 17, // 3: terraform1.packages.FetchProviderPackage.PlatformResult.provider:type_name -> terraform1.ProviderPackage + 16, // 4: terraform1.packages.FetchProviderPackage.PlatformResult.diagnostics:type_name -> terraform1.Diagnostic + 16, // 5: terraform1.packages.ModulePackageVersions.Response.diagnostics:type_name -> terraform1.Diagnostic + 16, // 6: terraform1.packages.ModulePackageSourceAddr.Response.diagnostics:type_name -> terraform1.Diagnostic + 16, // 7: terraform1.packages.FetchModulePackage.Response.diagnostics:type_name -> terraform1.Diagnostic + 5, // 8: terraform1.packages.Packages.ProviderPackageVersions:input_type -> terraform1.packages.ProviderPackageVersions.Request + 7, // 9: terraform1.packages.Packages.FetchProviderPackage:input_type -> terraform1.packages.FetchProviderPackage.Request + 10, // 10: terraform1.packages.Packages.ModulePackageVersions:input_type -> terraform1.packages.ModulePackageVersions.Request + 12, // 11: terraform1.packages.Packages.ModulePackageSourceAddr:input_type -> terraform1.packages.ModulePackageSourceAddr.Request + 14, // 12: terraform1.packages.Packages.FetchModulePackage:input_type -> terraform1.packages.FetchModulePackage.Request + 6, // 13: terraform1.packages.Packages.ProviderPackageVersions:output_type -> terraform1.packages.ProviderPackageVersions.Response + 8, // 14: terraform1.packages.Packages.FetchProviderPackage:output_type -> terraform1.packages.FetchProviderPackage.Response + 11, // 15: terraform1.packages.Packages.ModulePackageVersions:output_type -> terraform1.packages.ModulePackageVersions.Response + 13, // 16: terraform1.packages.Packages.ModulePackageSourceAddr:output_type -> terraform1.packages.ModulePackageSourceAddr.Response + 15, // 17: terraform1.packages.Packages.FetchModulePackage:output_type -> terraform1.packages.FetchModulePackage.Response + 13, // [13:18] is the sub-list for method output_type + 8, // [8:13] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_packages_proto_init() } +func file_packages_proto_init() { + if File_packages_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_packages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderPackageVersions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchProviderPackage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModulePackageVersions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModulePackageSourceAddr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchModulePackage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderPackageVersions_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProviderPackageVersions_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchProviderPackage_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchProviderPackage_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchProviderPackage_PlatformResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModulePackageVersions_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModulePackageVersions_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModulePackageSourceAddr_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ModulePackageSourceAddr_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchModulePackage_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_packages_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FetchModulePackage_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_packages_proto_rawDesc, + NumEnums: 0, + NumMessages: 16, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_packages_proto_goTypes, + DependencyIndexes: file_packages_proto_depIdxs, + MessageInfos: file_packages_proto_msgTypes, + }.Build() + File_packages_proto = out.File + file_packages_proto_rawDesc = nil + file_packages_proto_goTypes = nil + file_packages_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// PackagesClient is the client API for Packages service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type PackagesClient interface { + ProviderPackageVersions(ctx context.Context, in *ProviderPackageVersions_Request, opts ...grpc.CallOption) (*ProviderPackageVersions_Response, error) + FetchProviderPackage(ctx context.Context, in *FetchProviderPackage_Request, opts ...grpc.CallOption) (*FetchProviderPackage_Response, error) + ModulePackageVersions(ctx context.Context, in *ModulePackageVersions_Request, opts ...grpc.CallOption) (*ModulePackageVersions_Response, error) + ModulePackageSourceAddr(ctx context.Context, in *ModulePackageSourceAddr_Request, opts ...grpc.CallOption) (*ModulePackageSourceAddr_Response, error) + FetchModulePackage(ctx context.Context, in *FetchModulePackage_Request, opts ...grpc.CallOption) (*FetchModulePackage_Response, error) +} + +type packagesClient struct { + cc grpc.ClientConnInterface +} + +func NewPackagesClient(cc grpc.ClientConnInterface) PackagesClient { + return &packagesClient{cc} +} + +func (c *packagesClient) ProviderPackageVersions(ctx context.Context, in *ProviderPackageVersions_Request, opts ...grpc.CallOption) (*ProviderPackageVersions_Response, error) { + out := new(ProviderPackageVersions_Response) + err := c.cc.Invoke(ctx, "/terraform1.packages.Packages/ProviderPackageVersions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *packagesClient) FetchProviderPackage(ctx context.Context, in *FetchProviderPackage_Request, opts ...grpc.CallOption) (*FetchProviderPackage_Response, error) { + out := new(FetchProviderPackage_Response) + err := c.cc.Invoke(ctx, "/terraform1.packages.Packages/FetchProviderPackage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *packagesClient) ModulePackageVersions(ctx context.Context, in *ModulePackageVersions_Request, opts ...grpc.CallOption) (*ModulePackageVersions_Response, error) { + out := new(ModulePackageVersions_Response) + err := c.cc.Invoke(ctx, "/terraform1.packages.Packages/ModulePackageVersions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *packagesClient) ModulePackageSourceAddr(ctx context.Context, in *ModulePackageSourceAddr_Request, opts ...grpc.CallOption) (*ModulePackageSourceAddr_Response, error) { + out := new(ModulePackageSourceAddr_Response) + err := c.cc.Invoke(ctx, "/terraform1.packages.Packages/ModulePackageSourceAddr", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *packagesClient) FetchModulePackage(ctx context.Context, in *FetchModulePackage_Request, opts ...grpc.CallOption) (*FetchModulePackage_Response, error) { + out := new(FetchModulePackage_Response) + err := c.cc.Invoke(ctx, "/terraform1.packages.Packages/FetchModulePackage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PackagesServer is the server API for Packages service. +type PackagesServer interface { + ProviderPackageVersions(context.Context, *ProviderPackageVersions_Request) (*ProviderPackageVersions_Response, error) + FetchProviderPackage(context.Context, *FetchProviderPackage_Request) (*FetchProviderPackage_Response, error) + ModulePackageVersions(context.Context, *ModulePackageVersions_Request) (*ModulePackageVersions_Response, error) + ModulePackageSourceAddr(context.Context, *ModulePackageSourceAddr_Request) (*ModulePackageSourceAddr_Response, error) + FetchModulePackage(context.Context, *FetchModulePackage_Request) (*FetchModulePackage_Response, error) +} + +// UnimplementedPackagesServer can be embedded to have forward compatible implementations. +type UnimplementedPackagesServer struct { +} + +func (*UnimplementedPackagesServer) ProviderPackageVersions(context.Context, *ProviderPackageVersions_Request) (*ProviderPackageVersions_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ProviderPackageVersions not implemented") +} +func (*UnimplementedPackagesServer) FetchProviderPackage(context.Context, *FetchProviderPackage_Request) (*FetchProviderPackage_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchProviderPackage not implemented") +} +func (*UnimplementedPackagesServer) ModulePackageVersions(context.Context, *ModulePackageVersions_Request) (*ModulePackageVersions_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModulePackageVersions not implemented") +} +func (*UnimplementedPackagesServer) ModulePackageSourceAddr(context.Context, *ModulePackageSourceAddr_Request) (*ModulePackageSourceAddr_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ModulePackageSourceAddr not implemented") +} +func (*UnimplementedPackagesServer) FetchModulePackage(context.Context, *FetchModulePackage_Request) (*FetchModulePackage_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method FetchModulePackage not implemented") +} + +func RegisterPackagesServer(s *grpc.Server, srv PackagesServer) { + s.RegisterService(&_Packages_serviceDesc, srv) +} + +func _Packages_ProviderPackageVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ProviderPackageVersions_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PackagesServer).ProviderPackageVersions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.packages.Packages/ProviderPackageVersions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PackagesServer).ProviderPackageVersions(ctx, req.(*ProviderPackageVersions_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Packages_FetchProviderPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchProviderPackage_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PackagesServer).FetchProviderPackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.packages.Packages/FetchProviderPackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PackagesServer).FetchProviderPackage(ctx, req.(*FetchProviderPackage_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Packages_ModulePackageVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ModulePackageVersions_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PackagesServer).ModulePackageVersions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.packages.Packages/ModulePackageVersions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PackagesServer).ModulePackageVersions(ctx, req.(*ModulePackageVersions_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Packages_ModulePackageSourceAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ModulePackageSourceAddr_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PackagesServer).ModulePackageSourceAddr(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.packages.Packages/ModulePackageSourceAddr", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PackagesServer).ModulePackageSourceAddr(ctx, req.(*ModulePackageSourceAddr_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Packages_FetchModulePackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FetchModulePackage_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PackagesServer).FetchModulePackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.packages.Packages/FetchModulePackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PackagesServer).FetchModulePackage(ctx, req.(*FetchModulePackage_Request)) + } + return interceptor(ctx, in, info, handler) +} + +var _Packages_serviceDesc = grpc.ServiceDesc{ + ServiceName: "terraform1.packages.Packages", + HandlerType: (*PackagesServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "ProviderPackageVersions", + Handler: _Packages_ProviderPackageVersions_Handler, + }, + { + MethodName: "FetchProviderPackage", + Handler: _Packages_FetchProviderPackage_Handler, + }, + { + MethodName: "ModulePackageVersions", + Handler: _Packages_ModulePackageVersions_Handler, + }, + { + MethodName: "ModulePackageSourceAddr", + Handler: _Packages_ModulePackageSourceAddr_Handler, + }, + { + MethodName: "FetchModulePackage", + Handler: _Packages_FetchModulePackage_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "packages.proto", +} diff --git a/internal/rpcapi/terraform1/packages/packages.proto b/internal/rpcapi/terraform1/packages/packages.proto new file mode 100644 index 0000000000..d90d3dc033 --- /dev/null +++ b/internal/rpcapi/terraform1/packages/packages.proto @@ -0,0 +1,91 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +syntax = "proto3"; +package terraform1.packages; + +import "terraform1.proto"; + +// The Packages service provides helper functions for retrieving Terraform +// modules and providers. +// +// Unlike the Dependencies service, the Packages service does not require any +// existing configuration or sourcebundle to function. +// +// This service is designed for use with a specific command-line tool, and is +// currently experimental. It can be changed and removed without warning, even +// in patch releases. +service Packages { + rpc ProviderPackageVersions(ProviderPackageVersions.Request) returns (ProviderPackageVersions.Response); + rpc FetchProviderPackage(FetchProviderPackage.Request) returns (FetchProviderPackage.Response); + + rpc ModulePackageVersions(ModulePackageVersions.Request) returns (ModulePackageVersions.Response); + rpc ModulePackageSourceAddr(ModulePackageSourceAddr.Request) returns (ModulePackageSourceAddr.Response); + rpc FetchModulePackage(FetchModulePackage.Request) returns (FetchModulePackage.Response); +} + +message ProviderPackageVersions { + message Request { + string source_addr = 1; + } + message Response { + repeated string versions = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } +} + +message FetchProviderPackage { + message Request { + string cache_dir = 1; + + string source_addr = 2; + string version = 3; + repeated string platforms = 4; + repeated string hashes = 5; + } + message Response { + // Each requested platform will return a result in this list. The order + // of the returned results will match the order of the requested + // platforms. If the binary for a given platform could not be downloaded + // there will still be an entry in the results with diagnostics + // explaining why. + repeated FetchProviderPackage.PlatformResult results = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } + message PlatformResult { + terraform1.ProviderPackage provider = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } +} + +message ModulePackageVersions { + message Request { + string source_addr = 2; + } + message Response { + repeated string versions = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } +} + +message ModulePackageSourceAddr { + message Request { + string source_addr = 1; + string version = 2; + } + message Response { + string url = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } +} + +message FetchModulePackage { + message Request { + string cache_dir = 1; + + string url = 2; + } + message Response { + repeated terraform1.Diagnostic diagnostics = 1; + } +} diff --git a/internal/rpcapi/terraform1/setup/setup.pb.go b/internal/rpcapi/terraform1/setup/setup.pb.go new file mode 100644 index 0000000000..e0f77af7a5 --- /dev/null +++ b/internal/rpcapi/terraform1/setup/setup.pb.go @@ -0,0 +1,831 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.33.0 +// protoc v3.15.6 +// source: setup.proto + +package setup + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Handshake struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Handshake) Reset() { + *x = Handshake{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Handshake) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Handshake) ProtoMessage() {} + +func (x *Handshake) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Handshake.ProtoReflect.Descriptor instead. +func (*Handshake) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{0} +} + +type Stop struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Stop) Reset() { + *x = Stop{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Stop) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Stop) ProtoMessage() {} + +func (x *Stop) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Stop.ProtoReflect.Descriptor instead. +func (*Stop) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{1} +} + +type Config struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Credentials map[string]*HostCredential `protobuf:"bytes,1,rep,name=credentials,proto3" json:"credentials,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Config) Reset() { + *x = Config{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Config) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Config) ProtoMessage() {} + +func (x *Config) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Config.ProtoReflect.Descriptor instead. +func (*Config) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{2} +} + +func (x *Config) GetCredentials() map[string]*HostCredential { + if x != nil { + return x.Credentials + } + return nil +} + +type HostCredential struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *HostCredential) Reset() { + *x = HostCredential{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HostCredential) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HostCredential) ProtoMessage() {} + +func (x *HostCredential) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HostCredential.ProtoReflect.Descriptor instead. +func (*HostCredential) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{3} +} + +func (x *HostCredential) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// The capabilities that the client wishes to advertise to the server during +// handshake. +type ClientCapabilities struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ClientCapabilities) Reset() { + *x = ClientCapabilities{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClientCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClientCapabilities) ProtoMessage() {} + +func (x *ClientCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClientCapabilities.ProtoReflect.Descriptor instead. +func (*ClientCapabilities) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{4} +} + +// The capabilities that the server wishes to advertise to the client during +// handshake. Fields in this message can also be used to acknowledge and +// confirm support for client capabilities advertised in ClientCapabilities, +// in situations where the client must vary its behavior based on the server's +// level of support. +type ServerCapabilities struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ServerCapabilities) Reset() { + *x = ServerCapabilities{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServerCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerCapabilities) ProtoMessage() {} + +func (x *ServerCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServerCapabilities.ProtoReflect.Descriptor instead. +func (*ServerCapabilities) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{5} +} + +type Handshake_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Capabilities *ClientCapabilities `protobuf:"bytes,1,opt,name=capabilities,proto3" json:"capabilities,omitempty"` + Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` +} + +func (x *Handshake_Request) Reset() { + *x = Handshake_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Handshake_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Handshake_Request) ProtoMessage() {} + +func (x *Handshake_Request) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Handshake_Request.ProtoReflect.Descriptor instead. +func (*Handshake_Request) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *Handshake_Request) GetCapabilities() *ClientCapabilities { + if x != nil { + return x.Capabilities + } + return nil +} + +func (x *Handshake_Request) GetConfig() *Config { + if x != nil { + return x.Config + } + return nil +} + +type Handshake_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Capabilities *ServerCapabilities `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` +} + +func (x *Handshake_Response) Reset() { + *x = Handshake_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Handshake_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Handshake_Response) ProtoMessage() {} + +func (x *Handshake_Response) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Handshake_Response.ProtoReflect.Descriptor instead. +func (*Handshake_Response) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *Handshake_Response) GetCapabilities() *ServerCapabilities { + if x != nil { + return x.Capabilities + } + return nil +} + +type Stop_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Stop_Request) Reset() { + *x = Stop_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Stop_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Stop_Request) ProtoMessage() {} + +func (x *Stop_Request) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Stop_Request.ProtoReflect.Descriptor instead. +func (*Stop_Request) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{1, 0} +} + +type Stop_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Stop_Response) Reset() { + *x = Stop_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_setup_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Stop_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Stop_Response) ProtoMessage() {} + +func (x *Stop_Response) ProtoReflect() protoreflect.Message { + mi := &file_setup_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Stop_Response.ProtoReflect.Descriptor instead. +func (*Stop_Response) Descriptor() ([]byte, []int) { + return file_setup_proto_rawDescGZIP(), []int{1, 1} +} + +var File_setup_proto protoreflect.FileDescriptor + +var file_setup_proto_rawDesc = []byte{ + 0x0a, 0x0b, 0x73, 0x65, 0x74, 0x75, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x65, 0x74, 0x75, 0x70, 0x22, + 0xe9, 0x01, 0x0a, 0x09, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x1a, 0x85, 0x01, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x0c, 0x63, 0x61, 0x70, + 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x65, 0x74, + 0x75, 0x70, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x65, 0x74, 0x75, 0x70, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x54, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x48, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x65, 0x74, 0x75, 0x70, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x63, + 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x1d, 0x0a, 0x04, 0x53, + 0x74, 0x6f, 0x70, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, + 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb7, 0x01, 0x0a, 0x06, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x65, 0x74, 0x75, 0x70, 0x2e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, + 0x6c, 0x73, 0x1a, 0x60, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x65, 0x74, 0x75, 0x70, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x43, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x0e, 0x48, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x14, 0x0a, 0x12, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x32, 0xa8, 0x01, 0x0a, 0x05, 0x53, 0x65, 0x74, + 0x75, 0x70, 0x12, 0x56, 0x0a, 0x09, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x12, + 0x23, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x65, 0x74, + 0x75, 0x70, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x73, 0x65, 0x74, 0x75, 0x70, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, + 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x04, 0x53, 0x74, + 0x6f, 0x70, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x73, 0x65, 0x74, 0x75, 0x70, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x73, 0x65, 0x74, 0x75, 0x70, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_setup_proto_rawDescOnce sync.Once + file_setup_proto_rawDescData = file_setup_proto_rawDesc +) + +func file_setup_proto_rawDescGZIP() []byte { + file_setup_proto_rawDescOnce.Do(func() { + file_setup_proto_rawDescData = protoimpl.X.CompressGZIP(file_setup_proto_rawDescData) + }) + return file_setup_proto_rawDescData +} + +var file_setup_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_setup_proto_goTypes = []interface{}{ + (*Handshake)(nil), // 0: terraform1.setup.Handshake + (*Stop)(nil), // 1: terraform1.setup.Stop + (*Config)(nil), // 2: terraform1.setup.Config + (*HostCredential)(nil), // 3: terraform1.setup.HostCredential + (*ClientCapabilities)(nil), // 4: terraform1.setup.ClientCapabilities + (*ServerCapabilities)(nil), // 5: terraform1.setup.ServerCapabilities + (*Handshake_Request)(nil), // 6: terraform1.setup.Handshake.Request + (*Handshake_Response)(nil), // 7: terraform1.setup.Handshake.Response + (*Stop_Request)(nil), // 8: terraform1.setup.Stop.Request + (*Stop_Response)(nil), // 9: terraform1.setup.Stop.Response + nil, // 10: terraform1.setup.Config.CredentialsEntry +} +var file_setup_proto_depIdxs = []int32{ + 10, // 0: terraform1.setup.Config.credentials:type_name -> terraform1.setup.Config.CredentialsEntry + 4, // 1: terraform1.setup.Handshake.Request.capabilities:type_name -> terraform1.setup.ClientCapabilities + 2, // 2: terraform1.setup.Handshake.Request.config:type_name -> terraform1.setup.Config + 5, // 3: terraform1.setup.Handshake.Response.capabilities:type_name -> terraform1.setup.ServerCapabilities + 3, // 4: terraform1.setup.Config.CredentialsEntry.value:type_name -> terraform1.setup.HostCredential + 6, // 5: terraform1.setup.Setup.Handshake:input_type -> terraform1.setup.Handshake.Request + 8, // 6: terraform1.setup.Setup.Stop:input_type -> terraform1.setup.Stop.Request + 7, // 7: terraform1.setup.Setup.Handshake:output_type -> terraform1.setup.Handshake.Response + 9, // 8: terraform1.setup.Setup.Stop:output_type -> terraform1.setup.Stop.Response + 7, // [7:9] is the sub-list for method output_type + 5, // [5:7] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_setup_proto_init() } +func file_setup_proto_init() { + if File_setup_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_setup_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Handshake); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Stop); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Config); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HostCredential); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClientCapabilities); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerCapabilities); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Handshake_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Handshake_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Stop_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_setup_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Stop_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_setup_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_setup_proto_goTypes, + DependencyIndexes: file_setup_proto_depIdxs, + MessageInfos: file_setup_proto_msgTypes, + }.Build() + File_setup_proto = out.File + file_setup_proto_rawDesc = nil + file_setup_proto_goTypes = nil + file_setup_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// SetupClient is the client API for Setup service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type SetupClient interface { + // Clients must call Handshake before any other function of any other + // service, to complete the capability negotiation step that may + // then affect the behaviors of subsequent operations. + // + // This function can be called only once per RPC server. + Handshake(ctx context.Context, in *Handshake_Request, opts ...grpc.CallOption) (*Handshake_Response, error) + // At any time after handshaking, clients may call Stop to initiate a + // graceful shutdown of the server. + Stop(ctx context.Context, in *Stop_Request, opts ...grpc.CallOption) (*Stop_Response, error) +} + +type setupClient struct { + cc grpc.ClientConnInterface +} + +func NewSetupClient(cc grpc.ClientConnInterface) SetupClient { + return &setupClient{cc} +} + +func (c *setupClient) Handshake(ctx context.Context, in *Handshake_Request, opts ...grpc.CallOption) (*Handshake_Response, error) { + out := new(Handshake_Response) + err := c.cc.Invoke(ctx, "/terraform1.setup.Setup/Handshake", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *setupClient) Stop(ctx context.Context, in *Stop_Request, opts ...grpc.CallOption) (*Stop_Response, error) { + out := new(Stop_Response) + err := c.cc.Invoke(ctx, "/terraform1.setup.Setup/Stop", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SetupServer is the server API for Setup service. +type SetupServer interface { + // Clients must call Handshake before any other function of any other + // service, to complete the capability negotiation step that may + // then affect the behaviors of subsequent operations. + // + // This function can be called only once per RPC server. + Handshake(context.Context, *Handshake_Request) (*Handshake_Response, error) + // At any time after handshaking, clients may call Stop to initiate a + // graceful shutdown of the server. + Stop(context.Context, *Stop_Request) (*Stop_Response, error) +} + +// UnimplementedSetupServer can be embedded to have forward compatible implementations. +type UnimplementedSetupServer struct { +} + +func (*UnimplementedSetupServer) Handshake(context.Context, *Handshake_Request) (*Handshake_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method Handshake not implemented") +} +func (*UnimplementedSetupServer) Stop(context.Context, *Stop_Request) (*Stop_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") +} + +func RegisterSetupServer(s *grpc.Server, srv SetupServer) { + s.RegisterService(&_Setup_serviceDesc, srv) +} + +func _Setup_Handshake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Handshake_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SetupServer).Handshake(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.setup.Setup/Handshake", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SetupServer).Handshake(ctx, req.(*Handshake_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Setup_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Stop_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SetupServer).Stop(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.setup.Setup/Stop", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SetupServer).Stop(ctx, req.(*Stop_Request)) + } + return interceptor(ctx, in, info, handler) +} + +var _Setup_serviceDesc = grpc.ServiceDesc{ + ServiceName: "terraform1.setup.Setup", + HandlerType: (*SetupServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Handshake", + Handler: _Setup_Handshake_Handler, + }, + { + MethodName: "Stop", + Handler: _Setup_Stop_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "setup.proto", +} diff --git a/internal/rpcapi/terraform1/setup/setup.proto b/internal/rpcapi/terraform1/setup/setup.proto new file mode 100644 index 0000000000..863f638991 --- /dev/null +++ b/internal/rpcapi/terraform1/setup/setup.proto @@ -0,0 +1,58 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +syntax = "proto3"; +package terraform1.setup; + +service Setup { + // Clients must call Handshake before any other function of any other + // service, to complete the capability negotiation step that may + // then affect the behaviors of subsequent operations. + // + // This function can be called only once per RPC server. + rpc Handshake(Handshake.Request) returns (Handshake.Response); + + // At any time after handshaking, clients may call Stop to initiate a + // graceful shutdown of the server. + rpc Stop(Stop.Request) returns (Stop.Response); +} + +message Handshake { + message Request { + ClientCapabilities capabilities = 1; + Config config = 2; + } + message Response { + ServerCapabilities capabilities = 2; + } +} + +message Stop { + message Request { + } + message Response { + } +} + +message Config { + map credentials = 1; +} + +message HostCredential { + string token = 1; +} + +// The capabilities that the client wishes to advertise to the server during +// handshake. +message ClientCapabilities { + // There are not yet any negotiatable capabilities. +} + +// The capabilities that the server wishes to advertise to the client during +// handshake. Fields in this message can also be used to acknowledge and +// confirm support for client capabilities advertised in ClientCapabilities, +// in situations where the client must vary its behavior based on the server's +// level of support. +message ServerCapabilities { + // There are not yet any negotiatable capabilities. +} diff --git a/internal/rpcapi/terraform1/conversion.go b/internal/rpcapi/terraform1/stacks/conversion.go similarity index 99% rename from internal/rpcapi/terraform1/conversion.go rename to internal/rpcapi/terraform1/stacks/conversion.go index 7d1d5a7873..6ffef84778 100644 --- a/internal/rpcapi/terraform1/conversion.go +++ b/internal/rpcapi/terraform1/stacks/conversion.go @@ -1,7 +1,7 @@ // Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 -package terraform1 +package stacks import ( "fmt" diff --git a/internal/rpcapi/terraform1/stacks/stacks.pb.go b/internal/rpcapi/terraform1/stacks/stacks.pb.go new file mode 100644 index 0000000000..2120cc5322 --- /dev/null +++ b/internal/rpcapi/terraform1/stacks/stacks.pb.go @@ -0,0 +1,8396 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.33.0 +// protoc v3.15.6 +// source: stacks.proto + +package stacks + +import ( + context "context" + terraform1 "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ResourceMode int32 + +const ( + ResourceMode_UNKNOWN ResourceMode = 0 + ResourceMode_MANAGED ResourceMode = 1 + ResourceMode_DATA ResourceMode = 2 +) + +// Enum value maps for ResourceMode. +var ( + ResourceMode_name = map[int32]string{ + 0: "UNKNOWN", + 1: "MANAGED", + 2: "DATA", + } + ResourceMode_value = map[string]int32{ + "UNKNOWN": 0, + "MANAGED": 1, + "DATA": 2, + } +) + +func (x ResourceMode) Enum() *ResourceMode { + p := new(ResourceMode) + *p = x + return p +} + +func (x ResourceMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResourceMode) Descriptor() protoreflect.EnumDescriptor { + return file_stacks_proto_enumTypes[0].Descriptor() +} + +func (ResourceMode) Type() protoreflect.EnumType { + return &file_stacks_proto_enumTypes[0] +} + +func (x ResourceMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResourceMode.Descriptor instead. +func (ResourceMode) EnumDescriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{0} +} + +type PlanMode int32 + +const ( + PlanMode_NORMAL PlanMode = 0 + PlanMode_REFRESH_ONLY PlanMode = 1 + PlanMode_DESTROY PlanMode = 2 +) + +// Enum value maps for PlanMode. +var ( + PlanMode_name = map[int32]string{ + 0: "NORMAL", + 1: "REFRESH_ONLY", + 2: "DESTROY", + } + PlanMode_value = map[string]int32{ + "NORMAL": 0, + "REFRESH_ONLY": 1, + "DESTROY": 2, + } +) + +func (x PlanMode) Enum() *PlanMode { + p := new(PlanMode) + *p = x + return p +} + +func (x PlanMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PlanMode) Descriptor() protoreflect.EnumDescriptor { + return file_stacks_proto_enumTypes[1].Descriptor() +} + +func (PlanMode) Type() protoreflect.EnumType { + return &file_stacks_proto_enumTypes[1] +} + +func (x PlanMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PlanMode.Descriptor instead. +func (PlanMode) EnumDescriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{1} +} + +type ChangeType int32 + +const ( + ChangeType_NOOP ChangeType = 0 + ChangeType_READ ChangeType = 1 + ChangeType_CREATE ChangeType = 2 + ChangeType_UPDATE ChangeType = 3 + ChangeType_DELETE ChangeType = 4 + ChangeType_FORGET ChangeType = 5 +) + +// Enum value maps for ChangeType. +var ( + ChangeType_name = map[int32]string{ + 0: "NOOP", + 1: "READ", + 2: "CREATE", + 3: "UPDATE", + 4: "DELETE", + 5: "FORGET", + } + ChangeType_value = map[string]int32{ + "NOOP": 0, + "READ": 1, + "CREATE": 2, + "UPDATE": 3, + "DELETE": 4, + "FORGET": 5, + } +) + +func (x ChangeType) Enum() *ChangeType { + p := new(ChangeType) + *p = x + return p +} + +func (x ChangeType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ChangeType) Descriptor() protoreflect.EnumDescriptor { + return file_stacks_proto_enumTypes[2].Descriptor() +} + +func (ChangeType) Type() protoreflect.EnumType { + return &file_stacks_proto_enumTypes[2] +} + +func (x ChangeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ChangeType.Descriptor instead. +func (ChangeType) EnumDescriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{2} +} + +type FindStackConfigurationComponents_Instances int32 + +const ( + FindStackConfigurationComponents_SINGLE FindStackConfigurationComponents_Instances = 0 + FindStackConfigurationComponents_COUNT FindStackConfigurationComponents_Instances = 1 + FindStackConfigurationComponents_FOR_EACH FindStackConfigurationComponents_Instances = 2 +) + +// Enum value maps for FindStackConfigurationComponents_Instances. +var ( + FindStackConfigurationComponents_Instances_name = map[int32]string{ + 0: "SINGLE", + 1: "COUNT", + 2: "FOR_EACH", + } + FindStackConfigurationComponents_Instances_value = map[string]int32{ + "SINGLE": 0, + "COUNT": 1, + "FOR_EACH": 2, + } +) + +func (x FindStackConfigurationComponents_Instances) Enum() *FindStackConfigurationComponents_Instances { + p := new(FindStackConfigurationComponents_Instances) + *p = x + return p +} + +func (x FindStackConfigurationComponents_Instances) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FindStackConfigurationComponents_Instances) Descriptor() protoreflect.EnumDescriptor { + return file_stacks_proto_enumTypes[3].Descriptor() +} + +func (FindStackConfigurationComponents_Instances) Type() protoreflect.EnumType { + return &file_stacks_proto_enumTypes[3] +} + +func (x FindStackConfigurationComponents_Instances) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FindStackConfigurationComponents_Instances.Descriptor instead. +func (FindStackConfigurationComponents_Instances) EnumDescriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3, 0} +} + +// Reason describes the reason why a resource instance change was +// deferred. +type Deferred_Reason int32 + +const ( + Deferred_INVALID Deferred_Reason = 0 + Deferred_INSTANCE_COUNT_UNKNOWN Deferred_Reason = 1 + Deferred_RESOURCE_CONFIG_UNKNOWN Deferred_Reason = 2 + Deferred_PROVIDER_CONFIG_UNKNOWN Deferred_Reason = 3 + Deferred_ABSENT_PREREQ Deferred_Reason = 4 + Deferred_DEFERRED_PREREQ Deferred_Reason = 5 +) + +// Enum value maps for Deferred_Reason. +var ( + Deferred_Reason_name = map[int32]string{ + 0: "INVALID", + 1: "INSTANCE_COUNT_UNKNOWN", + 2: "RESOURCE_CONFIG_UNKNOWN", + 3: "PROVIDER_CONFIG_UNKNOWN", + 4: "ABSENT_PREREQ", + 5: "DEFERRED_PREREQ", + } + Deferred_Reason_value = map[string]int32{ + "INVALID": 0, + "INSTANCE_COUNT_UNKNOWN": 1, + "RESOURCE_CONFIG_UNKNOWN": 2, + "PROVIDER_CONFIG_UNKNOWN": 3, + "ABSENT_PREREQ": 4, + "DEFERRED_PREREQ": 5, + } +) + +func (x Deferred_Reason) Enum() *Deferred_Reason { + p := new(Deferred_Reason) + *p = x + return p +} + +func (x Deferred_Reason) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Deferred_Reason) Descriptor() protoreflect.EnumDescriptor { + return file_stacks_proto_enumTypes[4].Descriptor() +} + +func (Deferred_Reason) Type() protoreflect.EnumType { + return &file_stacks_proto_enumTypes[4] +} + +func (x Deferred_Reason) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Deferred_Reason.Descriptor instead. +func (Deferred_Reason) EnumDescriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{20, 0} +} + +type StackChangeProgress_ComponentInstanceStatus_Status int32 + +const ( + StackChangeProgress_ComponentInstanceStatus_INVALID StackChangeProgress_ComponentInstanceStatus_Status = 0 + StackChangeProgress_ComponentInstanceStatus_PENDING StackChangeProgress_ComponentInstanceStatus_Status = 1 + StackChangeProgress_ComponentInstanceStatus_PLANNING StackChangeProgress_ComponentInstanceStatus_Status = 2 + StackChangeProgress_ComponentInstanceStatus_PLANNED StackChangeProgress_ComponentInstanceStatus_Status = 3 + StackChangeProgress_ComponentInstanceStatus_APPLYING StackChangeProgress_ComponentInstanceStatus_Status = 4 + StackChangeProgress_ComponentInstanceStatus_APPLIED StackChangeProgress_ComponentInstanceStatus_Status = 5 + StackChangeProgress_ComponentInstanceStatus_ERRORED StackChangeProgress_ComponentInstanceStatus_Status = 6 + StackChangeProgress_ComponentInstanceStatus_DEFERRED StackChangeProgress_ComponentInstanceStatus_Status = 7 +) + +// Enum value maps for StackChangeProgress_ComponentInstanceStatus_Status. +var ( + StackChangeProgress_ComponentInstanceStatus_Status_name = map[int32]string{ + 0: "INVALID", + 1: "PENDING", + 2: "PLANNING", + 3: "PLANNED", + 4: "APPLYING", + 5: "APPLIED", + 6: "ERRORED", + 7: "DEFERRED", + } + StackChangeProgress_ComponentInstanceStatus_Status_value = map[string]int32{ + "INVALID": 0, + "PENDING": 1, + "PLANNING": 2, + "PLANNED": 3, + "APPLYING": 4, + "APPLIED": 5, + "ERRORED": 6, + "DEFERRED": 7, + } +) + +func (x StackChangeProgress_ComponentInstanceStatus_Status) Enum() *StackChangeProgress_ComponentInstanceStatus_Status { + p := new(StackChangeProgress_ComponentInstanceStatus_Status) + *p = x + return p +} + +func (x StackChangeProgress_ComponentInstanceStatus_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StackChangeProgress_ComponentInstanceStatus_Status) Descriptor() protoreflect.EnumDescriptor { + return file_stacks_proto_enumTypes[5].Descriptor() +} + +func (StackChangeProgress_ComponentInstanceStatus_Status) Type() protoreflect.EnumType { + return &file_stacks_proto_enumTypes[5] +} + +func (x StackChangeProgress_ComponentInstanceStatus_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StackChangeProgress_ComponentInstanceStatus_Status.Descriptor instead. +func (StackChangeProgress_ComponentInstanceStatus_Status) EnumDescriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 0, 0} +} + +type StackChangeProgress_ResourceInstanceStatus_Status int32 + +const ( + StackChangeProgress_ResourceInstanceStatus_INVALID StackChangeProgress_ResourceInstanceStatus_Status = 0 + StackChangeProgress_ResourceInstanceStatus_PENDING StackChangeProgress_ResourceInstanceStatus_Status = 1 + StackChangeProgress_ResourceInstanceStatus_REFRESHING StackChangeProgress_ResourceInstanceStatus_Status = 2 + StackChangeProgress_ResourceInstanceStatus_REFRESHED StackChangeProgress_ResourceInstanceStatus_Status = 3 + StackChangeProgress_ResourceInstanceStatus_PLANNING StackChangeProgress_ResourceInstanceStatus_Status = 4 + StackChangeProgress_ResourceInstanceStatus_PLANNED StackChangeProgress_ResourceInstanceStatus_Status = 5 + StackChangeProgress_ResourceInstanceStatus_APPLYING StackChangeProgress_ResourceInstanceStatus_Status = 6 + StackChangeProgress_ResourceInstanceStatus_APPLIED StackChangeProgress_ResourceInstanceStatus_Status = 7 + StackChangeProgress_ResourceInstanceStatus_ERRORED StackChangeProgress_ResourceInstanceStatus_Status = 8 +) + +// Enum value maps for StackChangeProgress_ResourceInstanceStatus_Status. +var ( + StackChangeProgress_ResourceInstanceStatus_Status_name = map[int32]string{ + 0: "INVALID", + 1: "PENDING", + 2: "REFRESHING", + 3: "REFRESHED", + 4: "PLANNING", + 5: "PLANNED", + 6: "APPLYING", + 7: "APPLIED", + 8: "ERRORED", + } + StackChangeProgress_ResourceInstanceStatus_Status_value = map[string]int32{ + "INVALID": 0, + "PENDING": 1, + "REFRESHING": 2, + "REFRESHED": 3, + "PLANNING": 4, + "PLANNED": 5, + "APPLYING": 6, + "APPLIED": 7, + "ERRORED": 8, + } +) + +func (x StackChangeProgress_ResourceInstanceStatus_Status) Enum() *StackChangeProgress_ResourceInstanceStatus_Status { + p := new(StackChangeProgress_ResourceInstanceStatus_Status) + *p = x + return p +} + +func (x StackChangeProgress_ResourceInstanceStatus_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StackChangeProgress_ResourceInstanceStatus_Status) Descriptor() protoreflect.EnumDescriptor { + return file_stacks_proto_enumTypes[6].Descriptor() +} + +func (StackChangeProgress_ResourceInstanceStatus_Status) Type() protoreflect.EnumType { + return &file_stacks_proto_enumTypes[6] +} + +func (x StackChangeProgress_ResourceInstanceStatus_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StackChangeProgress_ResourceInstanceStatus_Status.Descriptor instead. +func (StackChangeProgress_ResourceInstanceStatus_Status) EnumDescriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 1, 0} +} + +type StackChangeProgress_ProvisionerStatus_Status int32 + +const ( + StackChangeProgress_ProvisionerStatus_INVALID StackChangeProgress_ProvisionerStatus_Status = 0 + StackChangeProgress_ProvisionerStatus_PROVISIONING StackChangeProgress_ProvisionerStatus_Status = 1 + StackChangeProgress_ProvisionerStatus_PROVISIONED StackChangeProgress_ProvisionerStatus_Status = 2 + StackChangeProgress_ProvisionerStatus_ERRORED StackChangeProgress_ProvisionerStatus_Status = 3 +) + +// Enum value maps for StackChangeProgress_ProvisionerStatus_Status. +var ( + StackChangeProgress_ProvisionerStatus_Status_name = map[int32]string{ + 0: "INVALID", + 1: "PROVISIONING", + 2: "PROVISIONED", + 3: "ERRORED", + } + StackChangeProgress_ProvisionerStatus_Status_value = map[string]int32{ + "INVALID": 0, + "PROVISIONING": 1, + "PROVISIONED": 2, + "ERRORED": 3, + } +) + +func (x StackChangeProgress_ProvisionerStatus_Status) Enum() *StackChangeProgress_ProvisionerStatus_Status { + p := new(StackChangeProgress_ProvisionerStatus_Status) + *p = x + return p +} + +func (x StackChangeProgress_ProvisionerStatus_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StackChangeProgress_ProvisionerStatus_Status) Descriptor() protoreflect.EnumDescriptor { + return file_stacks_proto_enumTypes[7].Descriptor() +} + +func (StackChangeProgress_ProvisionerStatus_Status) Type() protoreflect.EnumType { + return &file_stacks_proto_enumTypes[7] +} + +func (x StackChangeProgress_ProvisionerStatus_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use StackChangeProgress_ProvisionerStatus_Status.Descriptor instead. +func (StackChangeProgress_ProvisionerStatus_Status) EnumDescriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 4, 0} +} + +type OpenStackConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenStackConfiguration) Reset() { + *x = OpenStackConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackConfiguration) ProtoMessage() {} + +func (x *OpenStackConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackConfiguration.ProtoReflect.Descriptor instead. +func (*OpenStackConfiguration) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{0} +} + +type CloseStackConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseStackConfiguration) Reset() { + *x = CloseStackConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackConfiguration) ProtoMessage() {} + +func (x *CloseStackConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackConfiguration.ProtoReflect.Descriptor instead. +func (*CloseStackConfiguration) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{1} +} + +type ValidateStackConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ValidateStackConfiguration) Reset() { + *x = ValidateStackConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateStackConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateStackConfiguration) ProtoMessage() {} + +func (x *ValidateStackConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateStackConfiguration.ProtoReflect.Descriptor instead. +func (*ValidateStackConfiguration) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{2} +} + +type FindStackConfigurationComponents struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindStackConfigurationComponents) Reset() { + *x = FindStackConfigurationComponents{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindStackConfigurationComponents) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindStackConfigurationComponents) ProtoMessage() {} + +func (x *FindStackConfigurationComponents) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindStackConfigurationComponents.ProtoReflect.Descriptor instead. +func (*FindStackConfigurationComponents) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3} +} + +type OpenStackState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenStackState) Reset() { + *x = OpenStackState{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackState) ProtoMessage() {} + +func (x *OpenStackState) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackState.ProtoReflect.Descriptor instead. +func (*OpenStackState) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{4} +} + +type CloseStackState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseStackState) Reset() { + *x = CloseStackState{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackState) ProtoMessage() {} + +func (x *CloseStackState) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackState.ProtoReflect.Descriptor instead. +func (*CloseStackState) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{5} +} + +type PlanStackChanges struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *PlanStackChanges) Reset() { + *x = PlanStackChanges{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlanStackChanges) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlanStackChanges) ProtoMessage() {} + +func (x *PlanStackChanges) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlanStackChanges.ProtoReflect.Descriptor instead. +func (*PlanStackChanges) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{6} +} + +type OpenStackPlan struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenStackPlan) Reset() { + *x = OpenStackPlan{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackPlan) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackPlan) ProtoMessage() {} + +func (x *OpenStackPlan) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackPlan.ProtoReflect.Descriptor instead. +func (*OpenStackPlan) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{7} +} + +type CloseStackPlan struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseStackPlan) Reset() { + *x = CloseStackPlan{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackPlan) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackPlan) ProtoMessage() {} + +func (x *CloseStackPlan) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackPlan.ProtoReflect.Descriptor instead. +func (*CloseStackPlan) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{8} +} + +type ApplyStackChanges struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ApplyStackChanges) Reset() { + *x = ApplyStackChanges{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplyStackChanges) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplyStackChanges) ProtoMessage() {} + +func (x *ApplyStackChanges) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplyStackChanges.ProtoReflect.Descriptor instead. +func (*ApplyStackChanges) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{9} +} + +type OpenStackInspector struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OpenStackInspector) Reset() { + *x = OpenStackInspector{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackInspector) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackInspector) ProtoMessage() {} + +func (x *OpenStackInspector) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackInspector.ProtoReflect.Descriptor instead. +func (*OpenStackInspector) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{10} +} + +type InspectExpressionResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *InspectExpressionResult) Reset() { + *x = InspectExpressionResult{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InspectExpressionResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InspectExpressionResult) ProtoMessage() {} + +func (x *InspectExpressionResult) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InspectExpressionResult.ProtoReflect.Descriptor instead. +func (*InspectExpressionResult) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{11} +} + +// Represents dynamically-typed data from within the Terraform language. +// Typically only one of the available serialization formats will be populated, +// depending on what serializations are appropriate for a particular context +// and what capabilities the client and the server negotiated during Handshake. +type DynamicValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Msgpack []byte `protobuf:"bytes,1,opt,name=msgpack,proto3" json:"msgpack,omitempty"` // The default serialization format + Sensitive []*AttributePath `protobuf:"bytes,2,rep,name=sensitive,proto3" json:"sensitive,omitempty"` // Paths to any sensitive-marked values. +} + +func (x *DynamicValue) Reset() { + *x = DynamicValue{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DynamicValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DynamicValue) ProtoMessage() {} + +func (x *DynamicValue) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DynamicValue.ProtoReflect.Descriptor instead. +func (*DynamicValue) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{12} +} + +func (x *DynamicValue) GetMsgpack() []byte { + if x != nil { + return x.Msgpack + } + return nil +} + +func (x *DynamicValue) GetSensitive() []*AttributePath { + if x != nil { + return x.Sensitive + } + return nil +} + +// Represents a change of some object from one dynamic value to another. +type DynamicValueChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Old *DynamicValue `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"` + New *DynamicValue `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` +} + +func (x *DynamicValueChange) Reset() { + *x = DynamicValueChange{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DynamicValueChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DynamicValueChange) ProtoMessage() {} + +func (x *DynamicValueChange) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DynamicValueChange.ProtoReflect.Descriptor instead. +func (*DynamicValueChange) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{13} +} + +func (x *DynamicValueChange) GetOld() *DynamicValue { + if x != nil { + return x.Old + } + return nil +} + +func (x *DynamicValueChange) GetNew() *DynamicValue { + if x != nil { + return x.New + } + return nil +} + +// Represents a DynamicValue accompanied by a source location where it was +// presumably defined, for values that originated in configuration files for +// situations such as returning error messages. +type DynamicValueWithSource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *DynamicValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + SourceRange *terraform1.SourceRange `protobuf:"bytes,2,opt,name=source_range,json=sourceRange,proto3" json:"source_range,omitempty"` +} + +func (x *DynamicValueWithSource) Reset() { + *x = DynamicValueWithSource{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DynamicValueWithSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DynamicValueWithSource) ProtoMessage() {} + +func (x *DynamicValueWithSource) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DynamicValueWithSource.ProtoReflect.Descriptor instead. +func (*DynamicValueWithSource) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{14} +} + +func (x *DynamicValueWithSource) GetValue() *DynamicValue { + if x != nil { + return x.Value + } + return nil +} + +func (x *DynamicValueWithSource) GetSourceRange() *terraform1.SourceRange { + if x != nil { + return x.SourceRange + } + return nil +} + +type AttributePath struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Steps []*AttributePath_Step `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"` +} + +func (x *AttributePath) Reset() { + *x = AttributePath{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AttributePath) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AttributePath) ProtoMessage() {} + +func (x *AttributePath) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AttributePath.ProtoReflect.Descriptor instead. +func (*AttributePath) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{15} +} + +func (x *AttributePath) GetSteps() []*AttributePath_Step { + if x != nil { + return x.Steps + } + return nil +} + +// Represents the address of a specific component instance within a stack. +type ComponentInstanceInStackAddr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The address of the static component that this is an instance of. + ComponentAddr string `protobuf:"bytes,1,opt,name=component_addr,json=componentAddr,proto3" json:"component_addr,omitempty"` + // The address of the instance that's being announced. For + // multi-instance components this could have any combination of + // instance keys on the component itself or instance keys on any + // of the containing embedded stacks. + ComponentInstanceAddr string `protobuf:"bytes,2,opt,name=component_instance_addr,json=componentInstanceAddr,proto3" json:"component_instance_addr,omitempty"` +} + +func (x *ComponentInstanceInStackAddr) Reset() { + *x = ComponentInstanceInStackAddr{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComponentInstanceInStackAddr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComponentInstanceInStackAddr) ProtoMessage() {} + +func (x *ComponentInstanceInStackAddr) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ComponentInstanceInStackAddr.ProtoReflect.Descriptor instead. +func (*ComponentInstanceInStackAddr) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{16} +} + +func (x *ComponentInstanceInStackAddr) GetComponentAddr() string { + if x != nil { + return x.ComponentAddr + } + return "" +} + +func (x *ComponentInstanceInStackAddr) GetComponentInstanceAddr() string { + if x != nil { + return x.ComponentInstanceAddr + } + return "" +} + +// Represents the address of a specific resource instance inside a specific +// component instance within the containing stack. +type ResourceInstanceInStackAddr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique address of the component instance that this resource instance + // belongs to. This is comparable with + ComponentInstanceAddr string `protobuf:"bytes,1,opt,name=component_instance_addr,json=componentInstanceAddr,proto3" json:"component_instance_addr,omitempty"` + // Unique address of the resource instance within the given component + // instance. Each component instance has a separate namespace of + // resource instance addresses, so callers must take both fields together + // to produce a key that's unique throughout the entire plan. + ResourceInstanceAddr string `protobuf:"bytes,2,opt,name=resource_instance_addr,json=resourceInstanceAddr,proto3" json:"resource_instance_addr,omitempty"` +} + +func (x *ResourceInstanceInStackAddr) Reset() { + *x = ResourceInstanceInStackAddr{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceInstanceInStackAddr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceInstanceInStackAddr) ProtoMessage() {} + +func (x *ResourceInstanceInStackAddr) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceInstanceInStackAddr.ProtoReflect.Descriptor instead. +func (*ResourceInstanceInStackAddr) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{17} +} + +func (x *ResourceInstanceInStackAddr) GetComponentInstanceAddr() string { + if x != nil { + return x.ComponentInstanceAddr + } + return "" +} + +func (x *ResourceInstanceInStackAddr) GetResourceInstanceAddr() string { + if x != nil { + return x.ResourceInstanceAddr + } + return "" +} + +// Represents the address of a specific resource instance object inside a +// specific component instance within the containing stack. +type ResourceInstanceObjectInStackAddr struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique address of the component instance that this resource instance + // belongs to. This is comparable with + ComponentInstanceAddr string `protobuf:"bytes,1,opt,name=component_instance_addr,json=componentInstanceAddr,proto3" json:"component_instance_addr,omitempty"` + // Unique address of the resource instance within the given component + // instance. Each component instance has a separate namespace of + // resource instance addresses, so callers must take both fields together + // to produce a key that's unique throughout the entire plan. + ResourceInstanceAddr string `protobuf:"bytes,2,opt,name=resource_instance_addr,json=resourceInstanceAddr,proto3" json:"resource_instance_addr,omitempty"` + // Optional "deposed key" populated only for non-current (deposed) objects, + // which can appear for "create before destroy" replacements where the + // create succeeds but then the destroy fails, leaving us with two different + // objects to track for the same resource instance. + DeposedKey string `protobuf:"bytes,3,opt,name=deposed_key,json=deposedKey,proto3" json:"deposed_key,omitempty"` +} + +func (x *ResourceInstanceObjectInStackAddr) Reset() { + *x = ResourceInstanceObjectInStackAddr{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceInstanceObjectInStackAddr) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceInstanceObjectInStackAddr) ProtoMessage() {} + +func (x *ResourceInstanceObjectInStackAddr) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceInstanceObjectInStackAddr.ProtoReflect.Descriptor instead. +func (*ResourceInstanceObjectInStackAddr) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{18} +} + +func (x *ResourceInstanceObjectInStackAddr) GetComponentInstanceAddr() string { + if x != nil { + return x.ComponentInstanceAddr + } + return "" +} + +func (x *ResourceInstanceObjectInStackAddr) GetResourceInstanceAddr() string { + if x != nil { + return x.ResourceInstanceAddr + } + return "" +} + +func (x *ResourceInstanceObjectInStackAddr) GetDeposedKey() string { + if x != nil { + return x.DeposedKey + } + return "" +} + +// Describes one item in a stack plan. The overall plan is the concatentation +// of all messages of this type emitted as events during the plan; splitting +// this information over multiple messages just allows the individual events +// to double as progress notifications for an interactive UI. +type PlannedChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Terraform Core's internal representation(s) of this change. Callers + // must provide the messages in this field, if any, verbatim to the + // ApplyStackChanges RPC in order to apply this change, and must not + // attempt to decode or analyze the contents because they are subject + // to change in future versions of Terraform Core. + // + // This might be unpopulated if this message represents only information + // for the caller and Terraform Core doesn't actually need to recall this + // information during the apply step. Callers must append each raw item + // to the raw plan in the order specified, and provide them all together + // in the same order to ApplyStackChanges. + Raw []*anypb.Any `protobuf:"bytes,1,rep,name=raw,proto3" json:"raw,omitempty"` + // Caller-facing descriptions of this change, to use for presenting + // information to end-users in the UI and for other subsystems such as + // imposing policy rules on the resulting plan. + // + // There can be zero or more description objects associated with each + // change. More than one is not common, but should be supported by clients + // by treating them the same way as if each description had arrived in + // a separate PlannedChange message. Clients should not treat the grouping + // or not-grouping of change description objects as meaningful information, + // since it's subject to change in future Terraform Core versions. + // + // DO NOT attempt to use this to surgically filter particular changes + // from a larger plan. Although external descriptions often match with + // the raw representations in field "raw", that is not guaranteed and + // Terraform Core assumes that it will always be provided with the full + // set of raw messages -- in the same order they were emitted -- during + // the apply step. For example, some raw messages might omit information + // that is implied by earlier raw messages and would therefore be + // incomplete if isolated. + Descriptions []*PlannedChange_ChangeDescription `protobuf:"bytes,2,rep,name=descriptions,proto3" json:"descriptions,omitempty"` +} + +func (x *PlannedChange) Reset() { + *x = PlannedChange{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange) ProtoMessage() {} + +func (x *PlannedChange) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange.ProtoReflect.Descriptor instead. +func (*PlannedChange) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19} +} + +func (x *PlannedChange) GetRaw() []*anypb.Any { + if x != nil { + return x.Raw + } + return nil +} + +func (x *PlannedChange) GetDescriptions() []*PlannedChange_ChangeDescription { + if x != nil { + return x.Descriptions + } + return nil +} + +// Deferred contains all the metadata about a the deferral of a resource +// instance change. +type Deferred struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Reason Deferred_Reason `protobuf:"varint,1,opt,name=reason,proto3,enum=terraform1.stacks.Deferred_Reason" json:"reason,omitempty"` +} + +func (x *Deferred) Reset() { + *x = Deferred{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Deferred) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Deferred) ProtoMessage() {} + +func (x *Deferred) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Deferred.ProtoReflect.Descriptor instead. +func (*Deferred) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{20} +} + +func (x *Deferred) GetReason() Deferred_Reason { + if x != nil { + return x.Reason + } + return Deferred_INVALID +} + +// Describes a change made during a Stacks.ApplyStackChanges call. +// +// All of the events of this type taken together represent a sort of "patch" +// modifying the two data structures that the caller must maintain: the +// raw state map, and the description map. Callers must apply these changes +// in the order of the emission of the messages and then retain the entirety +// of both data structures to populate fields in the next PlanStackChanges call. +type AppliedChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Terraform Core's internal representation of the change, presented as + // a sequence of modifications to the raw state data structure. + // + // For each element, in order: + // - If both key and value are set and the key matches an element + // already in the raw state map, the new value replaces the existing one. + // - If both key and value are set but the key does not match an + // element in the raw state map, this represents inserting a new element + // into the map. + // - If key is set and value is not, this represents removing any existing + // element from the raw state map which has the given key, or a no-op + // if no such element exists. + // - No other situation is legal. + // + // This sequence can potentially be zero-length if a particular event only + // has a external-facing "description" component and no raw equivalent. In + // that case the raw state map is unmodified. + Raw []*AppliedChange_RawChange `protobuf:"bytes,1,rep,name=raw,proto3" json:"raw,omitempty"` + // Caller-facing description of this change, to use for presenting + // information to end-users in the UI and for other subsystems such as + // billing. + // + // Callers are expected to maintain a map of description objects that + // gets updated piecemeal by messages in this field. Callers must treat + // the keys as entirely opaque and thus treat the resulting data structure + // as if it were an unsorted set of ChangeDescription objects; the keys + // exist only to allow patching the data structure over time. + // + // For each element, in order: + // - If both key and description are set and the key matches an element + // from the previous apply's description map, the new value replaces + // the existing one. + // - If both key and value are set but the key does not match an + // element in the previous apply's description map, this represents + // inserting a new element into the map. + // - If key is set and description is "deleted", this represents removing + // any existing element from the previous apply's description map which + // has the given key, or a no-op if no such element exists. + // - If a description field is set that the caller doesn't understand, + // the caller should still write it to the updated description map + // but ignore it in further processing. + // - No other situation is legal. + // + // Callers MUST preserve the verbatim description message in the + // description map, even if it contains fields that are not present in + // the caller's current protobuf stubs. In other words, callers must use + // a protocol buffers implementation that is able to preserve unknown + // fields and store them so that future versions of the caller might + // use an updated set of stubs to interact with the previously-stored + // description. + // + // DO NOT attempt to use this to surgically filter particular raw state + // updates from a larger plan. Although external descriptions often match + // with the raw representations in field "raw", that is not guaranteed and + // Terraform Core assumes that it will always be provided with the full + // raw state map during the next plan step. + Descriptions []*AppliedChange_ChangeDescription `protobuf:"bytes,2,rep,name=descriptions,proto3" json:"descriptions,omitempty"` +} + +func (x *AppliedChange) Reset() { + *x = AppliedChange{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppliedChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppliedChange) ProtoMessage() {} + +func (x *AppliedChange) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AppliedChange.ProtoReflect.Descriptor instead. +func (*AppliedChange) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{21} +} + +func (x *AppliedChange) GetRaw() []*AppliedChange_RawChange { + if x != nil { + return x.Raw + } + return nil +} + +func (x *AppliedChange) GetDescriptions() []*AppliedChange_ChangeDescription { + if x != nil { + return x.Descriptions + } + return nil +} + +// A container for "progress report" events in both Stacks.PlanStackChanges +// and Stacks.ApplyStackChanges, which share this message type to allow +// clients to share event-handling code between the two phases. +type StackChangeProgress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Some event types are relevant only to one of the two operations, while + // others are common across both but will include different status codes, + // etc in different phases. + // + // Types that are assignable to Event: + // + // *StackChangeProgress_ComponentInstanceStatus_ + // *StackChangeProgress_ResourceInstanceStatus_ + // *StackChangeProgress_ResourceInstancePlannedChange_ + // *StackChangeProgress_ProvisionerStatus_ + // *StackChangeProgress_ProvisionerOutput_ + // *StackChangeProgress_ComponentInstanceChanges_ + // *StackChangeProgress_ComponentInstances_ + // *StackChangeProgress_DeferredResourceInstancePlannedChange_ + Event isStackChangeProgress_Event `protobuf_oneof:"event"` +} + +func (x *StackChangeProgress) Reset() { + *x = StackChangeProgress{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress) ProtoMessage() {} + +func (x *StackChangeProgress) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress.ProtoReflect.Descriptor instead. +func (*StackChangeProgress) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22} +} + +func (m *StackChangeProgress) GetEvent() isStackChangeProgress_Event { + if m != nil { + return m.Event + } + return nil +} + +func (x *StackChangeProgress) GetComponentInstanceStatus() *StackChangeProgress_ComponentInstanceStatus { + if x, ok := x.GetEvent().(*StackChangeProgress_ComponentInstanceStatus_); ok { + return x.ComponentInstanceStatus + } + return nil +} + +func (x *StackChangeProgress) GetResourceInstanceStatus() *StackChangeProgress_ResourceInstanceStatus { + if x, ok := x.GetEvent().(*StackChangeProgress_ResourceInstanceStatus_); ok { + return x.ResourceInstanceStatus + } + return nil +} + +func (x *StackChangeProgress) GetResourceInstancePlannedChange() *StackChangeProgress_ResourceInstancePlannedChange { + if x, ok := x.GetEvent().(*StackChangeProgress_ResourceInstancePlannedChange_); ok { + return x.ResourceInstancePlannedChange + } + return nil +} + +func (x *StackChangeProgress) GetProvisionerStatus() *StackChangeProgress_ProvisionerStatus { + if x, ok := x.GetEvent().(*StackChangeProgress_ProvisionerStatus_); ok { + return x.ProvisionerStatus + } + return nil +} + +func (x *StackChangeProgress) GetProvisionerOutput() *StackChangeProgress_ProvisionerOutput { + if x, ok := x.GetEvent().(*StackChangeProgress_ProvisionerOutput_); ok { + return x.ProvisionerOutput + } + return nil +} + +func (x *StackChangeProgress) GetComponentInstanceChanges() *StackChangeProgress_ComponentInstanceChanges { + if x, ok := x.GetEvent().(*StackChangeProgress_ComponentInstanceChanges_); ok { + return x.ComponentInstanceChanges + } + return nil +} + +func (x *StackChangeProgress) GetComponentInstances() *StackChangeProgress_ComponentInstances { + if x, ok := x.GetEvent().(*StackChangeProgress_ComponentInstances_); ok { + return x.ComponentInstances + } + return nil +} + +func (x *StackChangeProgress) GetDeferredResourceInstancePlannedChange() *StackChangeProgress_DeferredResourceInstancePlannedChange { + if x, ok := x.GetEvent().(*StackChangeProgress_DeferredResourceInstancePlannedChange_); ok { + return x.DeferredResourceInstancePlannedChange + } + return nil +} + +type isStackChangeProgress_Event interface { + isStackChangeProgress_Event() +} + +type StackChangeProgress_ComponentInstanceStatus_ struct { + ComponentInstanceStatus *StackChangeProgress_ComponentInstanceStatus `protobuf:"bytes,1,opt,name=component_instance_status,json=componentInstanceStatus,proto3,oneof"` +} + +type StackChangeProgress_ResourceInstanceStatus_ struct { + ResourceInstanceStatus *StackChangeProgress_ResourceInstanceStatus `protobuf:"bytes,2,opt,name=resource_instance_status,json=resourceInstanceStatus,proto3,oneof"` +} + +type StackChangeProgress_ResourceInstancePlannedChange_ struct { + ResourceInstancePlannedChange *StackChangeProgress_ResourceInstancePlannedChange `protobuf:"bytes,3,opt,name=resource_instance_planned_change,json=resourceInstancePlannedChange,proto3,oneof"` +} + +type StackChangeProgress_ProvisionerStatus_ struct { + ProvisionerStatus *StackChangeProgress_ProvisionerStatus `protobuf:"bytes,4,opt,name=provisioner_status,json=provisionerStatus,proto3,oneof"` +} + +type StackChangeProgress_ProvisionerOutput_ struct { + ProvisionerOutput *StackChangeProgress_ProvisionerOutput `protobuf:"bytes,5,opt,name=provisioner_output,json=provisionerOutput,proto3,oneof"` +} + +type StackChangeProgress_ComponentInstanceChanges_ struct { + ComponentInstanceChanges *StackChangeProgress_ComponentInstanceChanges `protobuf:"bytes,6,opt,name=component_instance_changes,json=componentInstanceChanges,proto3,oneof"` +} + +type StackChangeProgress_ComponentInstances_ struct { + ComponentInstances *StackChangeProgress_ComponentInstances `protobuf:"bytes,7,opt,name=component_instances,json=componentInstances,proto3,oneof"` +} + +type StackChangeProgress_DeferredResourceInstancePlannedChange_ struct { + DeferredResourceInstancePlannedChange *StackChangeProgress_DeferredResourceInstancePlannedChange `protobuf:"bytes,8,opt,name=deferred_resource_instance_planned_change,json=deferredResourceInstancePlannedChange,proto3,oneof"` +} + +func (*StackChangeProgress_ComponentInstanceStatus_) isStackChangeProgress_Event() {} + +func (*StackChangeProgress_ResourceInstanceStatus_) isStackChangeProgress_Event() {} + +func (*StackChangeProgress_ResourceInstancePlannedChange_) isStackChangeProgress_Event() {} + +func (*StackChangeProgress_ProvisionerStatus_) isStackChangeProgress_Event() {} + +func (*StackChangeProgress_ProvisionerOutput_) isStackChangeProgress_Event() {} + +func (*StackChangeProgress_ComponentInstanceChanges_) isStackChangeProgress_Event() {} + +func (*StackChangeProgress_ComponentInstances_) isStackChangeProgress_Event() {} + +func (*StackChangeProgress_DeferredResourceInstancePlannedChange_) isStackChangeProgress_Event() {} + +type OpenStackConfiguration_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceBundleHandle int64 `protobuf:"varint,1,opt,name=source_bundle_handle,json=sourceBundleHandle,proto3" json:"source_bundle_handle,omitempty"` + SourceAddress *terraform1.SourceAddress `protobuf:"bytes,2,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` +} + +func (x *OpenStackConfiguration_Request) Reset() { + *x = OpenStackConfiguration_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackConfiguration_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackConfiguration_Request) ProtoMessage() {} + +func (x *OpenStackConfiguration_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackConfiguration_Request.ProtoReflect.Descriptor instead. +func (*OpenStackConfiguration_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *OpenStackConfiguration_Request) GetSourceBundleHandle() int64 { + if x != nil { + return x.SourceBundleHandle + } + return 0 +} + +func (x *OpenStackConfiguration_Request) GetSourceAddress() *terraform1.SourceAddress { + if x != nil { + return x.SourceAddress + } + return nil +} + +type OpenStackConfiguration_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *OpenStackConfiguration_Response) Reset() { + *x = OpenStackConfiguration_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackConfiguration_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackConfiguration_Response) ProtoMessage() {} + +func (x *OpenStackConfiguration_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackConfiguration_Response.ProtoReflect.Descriptor instead. +func (*OpenStackConfiguration_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *OpenStackConfiguration_Response) GetStackConfigHandle() int64 { + if x != nil { + return x.StackConfigHandle + } + return 0 +} + +func (x *OpenStackConfiguration_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type CloseStackConfiguration_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` +} + +func (x *CloseStackConfiguration_Request) Reset() { + *x = CloseStackConfiguration_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackConfiguration_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackConfiguration_Request) ProtoMessage() {} + +func (x *CloseStackConfiguration_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackConfiguration_Request.ProtoReflect.Descriptor instead. +func (*CloseStackConfiguration_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{1, 0} +} + +func (x *CloseStackConfiguration_Request) GetStackConfigHandle() int64 { + if x != nil { + return x.StackConfigHandle + } + return 0 +} + +type CloseStackConfiguration_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseStackConfiguration_Response) Reset() { + *x = CloseStackConfiguration_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackConfiguration_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackConfiguration_Response) ProtoMessage() {} + +func (x *CloseStackConfiguration_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackConfiguration_Response.ProtoReflect.Descriptor instead. +func (*CloseStackConfiguration_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{1, 1} +} + +type ValidateStackConfiguration_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` + DependencyLocksHandle int64 `protobuf:"varint,2,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` + ProviderCacheHandle int64 `protobuf:"varint,3,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` +} + +func (x *ValidateStackConfiguration_Request) Reset() { + *x = ValidateStackConfiguration_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateStackConfiguration_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateStackConfiguration_Request) ProtoMessage() {} + +func (x *ValidateStackConfiguration_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateStackConfiguration_Request.ProtoReflect.Descriptor instead. +func (*ValidateStackConfiguration_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{2, 0} +} + +func (x *ValidateStackConfiguration_Request) GetStackConfigHandle() int64 { + if x != nil { + return x.StackConfigHandle + } + return 0 +} + +func (x *ValidateStackConfiguration_Request) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +func (x *ValidateStackConfiguration_Request) GetProviderCacheHandle() int64 { + if x != nil { + return x.ProviderCacheHandle + } + return 0 +} + +type ValidateStackConfiguration_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *ValidateStackConfiguration_Response) Reset() { + *x = ValidateStackConfiguration_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateStackConfiguration_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateStackConfiguration_Response) ProtoMessage() {} + +func (x *ValidateStackConfiguration_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateStackConfiguration_Response.ProtoReflect.Descriptor instead. +func (*ValidateStackConfiguration_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{2, 1} +} + +func (x *ValidateStackConfiguration_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type FindStackConfigurationComponents_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` +} + +func (x *FindStackConfigurationComponents_Request) Reset() { + *x = FindStackConfigurationComponents_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindStackConfigurationComponents_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindStackConfigurationComponents_Request) ProtoMessage() {} + +func (x *FindStackConfigurationComponents_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindStackConfigurationComponents_Request.ProtoReflect.Descriptor instead. +func (*FindStackConfigurationComponents_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3, 0} +} + +func (x *FindStackConfigurationComponents_Request) GetStackConfigHandle() int64 { + if x != nil { + return x.StackConfigHandle + } + return 0 +} + +type FindStackConfigurationComponents_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Config *FindStackConfigurationComponents_StackConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` +} + +func (x *FindStackConfigurationComponents_Response) Reset() { + *x = FindStackConfigurationComponents_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindStackConfigurationComponents_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindStackConfigurationComponents_Response) ProtoMessage() {} + +func (x *FindStackConfigurationComponents_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindStackConfigurationComponents_Response.ProtoReflect.Descriptor instead. +func (*FindStackConfigurationComponents_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3, 1} +} + +func (x *FindStackConfigurationComponents_Response) GetConfig() *FindStackConfigurationComponents_StackConfig { + if x != nil { + return x.Config + } + return nil +} + +type FindStackConfigurationComponents_StackConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Components map[string]*FindStackConfigurationComponents_Component `protobuf:"bytes,1,rep,name=components,proto3" json:"components,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EmbeddedStacks map[string]*FindStackConfigurationComponents_EmbeddedStack `protobuf:"bytes,2,rep,name=embedded_stacks,json=embeddedStacks,proto3" json:"embedded_stacks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + InputVariables map[string]*FindStackConfigurationComponents_InputVariable `protobuf:"bytes,3,rep,name=input_variables,json=inputVariables,proto3" json:"input_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + OutputValues map[string]*FindStackConfigurationComponents_OutputValue `protobuf:"bytes,4,rep,name=output_values,json=outputValues,proto3" json:"output_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *FindStackConfigurationComponents_StackConfig) Reset() { + *x = FindStackConfigurationComponents_StackConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindStackConfigurationComponents_StackConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindStackConfigurationComponents_StackConfig) ProtoMessage() {} + +func (x *FindStackConfigurationComponents_StackConfig) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindStackConfigurationComponents_StackConfig.ProtoReflect.Descriptor instead. +func (*FindStackConfigurationComponents_StackConfig) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3, 2} +} + +func (x *FindStackConfigurationComponents_StackConfig) GetComponents() map[string]*FindStackConfigurationComponents_Component { + if x != nil { + return x.Components + } + return nil +} + +func (x *FindStackConfigurationComponents_StackConfig) GetEmbeddedStacks() map[string]*FindStackConfigurationComponents_EmbeddedStack { + if x != nil { + return x.EmbeddedStacks + } + return nil +} + +func (x *FindStackConfigurationComponents_StackConfig) GetInputVariables() map[string]*FindStackConfigurationComponents_InputVariable { + if x != nil { + return x.InputVariables + } + return nil +} + +func (x *FindStackConfigurationComponents_StackConfig) GetOutputValues() map[string]*FindStackConfigurationComponents_OutputValue { + if x != nil { + return x.OutputValues + } + return nil +} + +type FindStackConfigurationComponents_EmbeddedStack struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` + Instances FindStackConfigurationComponents_Instances `protobuf:"varint,2,opt,name=instances,proto3,enum=terraform1.stacks.FindStackConfigurationComponents_Instances" json:"instances,omitempty"` + Config *FindStackConfigurationComponents_StackConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` +} + +func (x *FindStackConfigurationComponents_EmbeddedStack) Reset() { + *x = FindStackConfigurationComponents_EmbeddedStack{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindStackConfigurationComponents_EmbeddedStack) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindStackConfigurationComponents_EmbeddedStack) ProtoMessage() {} + +func (x *FindStackConfigurationComponents_EmbeddedStack) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindStackConfigurationComponents_EmbeddedStack.ProtoReflect.Descriptor instead. +func (*FindStackConfigurationComponents_EmbeddedStack) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3, 3} +} + +func (x *FindStackConfigurationComponents_EmbeddedStack) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +func (x *FindStackConfigurationComponents_EmbeddedStack) GetInstances() FindStackConfigurationComponents_Instances { + if x != nil { + return x.Instances + } + return FindStackConfigurationComponents_SINGLE +} + +func (x *FindStackConfigurationComponents_EmbeddedStack) GetConfig() *FindStackConfigurationComponents_StackConfig { + if x != nil { + return x.Config + } + return nil +} + +type FindStackConfigurationComponents_Component struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` + Instances FindStackConfigurationComponents_Instances `protobuf:"varint,2,opt,name=instances,proto3,enum=terraform1.stacks.FindStackConfigurationComponents_Instances" json:"instances,omitempty"` + ComponentAddr string `protobuf:"bytes,3,opt,name=component_addr,json=componentAddr,proto3" json:"component_addr,omitempty"` +} + +func (x *FindStackConfigurationComponents_Component) Reset() { + *x = FindStackConfigurationComponents_Component{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindStackConfigurationComponents_Component) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindStackConfigurationComponents_Component) ProtoMessage() {} + +func (x *FindStackConfigurationComponents_Component) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindStackConfigurationComponents_Component.ProtoReflect.Descriptor instead. +func (*FindStackConfigurationComponents_Component) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3, 4} +} + +func (x *FindStackConfigurationComponents_Component) GetSourceAddr() string { + if x != nil { + return x.SourceAddr + } + return "" +} + +func (x *FindStackConfigurationComponents_Component) GetInstances() FindStackConfigurationComponents_Instances { + if x != nil { + return x.Instances + } + return FindStackConfigurationComponents_SINGLE +} + +func (x *FindStackConfigurationComponents_Component) GetComponentAddr() string { + if x != nil { + return x.ComponentAddr + } + return "" +} + +type FindStackConfigurationComponents_InputVariable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Optional bool `protobuf:"varint,1,opt,name=optional,proto3" json:"optional,omitempty"` + Sensitive bool `protobuf:"varint,2,opt,name=sensitive,proto3" json:"sensitive,omitempty"` + Ephemeral bool `protobuf:"varint,3,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` +} + +func (x *FindStackConfigurationComponents_InputVariable) Reset() { + *x = FindStackConfigurationComponents_InputVariable{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindStackConfigurationComponents_InputVariable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindStackConfigurationComponents_InputVariable) ProtoMessage() {} + +func (x *FindStackConfigurationComponents_InputVariable) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindStackConfigurationComponents_InputVariable.ProtoReflect.Descriptor instead. +func (*FindStackConfigurationComponents_InputVariable) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3, 5} +} + +func (x *FindStackConfigurationComponents_InputVariable) GetOptional() bool { + if x != nil { + return x.Optional + } + return false +} + +func (x *FindStackConfigurationComponents_InputVariable) GetSensitive() bool { + if x != nil { + return x.Sensitive + } + return false +} + +func (x *FindStackConfigurationComponents_InputVariable) GetEphemeral() bool { + if x != nil { + return x.Ephemeral + } + return false +} + +type FindStackConfigurationComponents_OutputValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Sensitive bool `protobuf:"varint,1,opt,name=sensitive,proto3" json:"sensitive,omitempty"` + Ephemeral bool `protobuf:"varint,2,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` +} + +func (x *FindStackConfigurationComponents_OutputValue) Reset() { + *x = FindStackConfigurationComponents_OutputValue{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindStackConfigurationComponents_OutputValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindStackConfigurationComponents_OutputValue) ProtoMessage() {} + +func (x *FindStackConfigurationComponents_OutputValue) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindStackConfigurationComponents_OutputValue.ProtoReflect.Descriptor instead. +func (*FindStackConfigurationComponents_OutputValue) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{3, 6} +} + +func (x *FindStackConfigurationComponents_OutputValue) GetSensitive() bool { + if x != nil { + return x.Sensitive + } + return false +} + +func (x *FindStackConfigurationComponents_OutputValue) GetEphemeral() bool { + if x != nil { + return x.Ephemeral + } + return false +} + +type OpenStackState_RequestItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Raw *AppliedChange_RawChange `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"` +} + +func (x *OpenStackState_RequestItem) Reset() { + *x = OpenStackState_RequestItem{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackState_RequestItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackState_RequestItem) ProtoMessage() {} + +func (x *OpenStackState_RequestItem) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackState_RequestItem.ProtoReflect.Descriptor instead. +func (*OpenStackState_RequestItem) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{4, 0} +} + +func (x *OpenStackState_RequestItem) GetRaw() *AppliedChange_RawChange { + if x != nil { + return x.Raw + } + return nil +} + +type OpenStackState_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StateHandle int64 `protobuf:"varint,1,opt,name=state_handle,json=stateHandle,proto3" json:"state_handle,omitempty"` +} + +func (x *OpenStackState_Response) Reset() { + *x = OpenStackState_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackState_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackState_Response) ProtoMessage() {} + +func (x *OpenStackState_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackState_Response.ProtoReflect.Descriptor instead. +func (*OpenStackState_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{4, 1} +} + +func (x *OpenStackState_Response) GetStateHandle() int64 { + if x != nil { + return x.StateHandle + } + return 0 +} + +type CloseStackState_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StateHandle int64 `protobuf:"varint,1,opt,name=state_handle,json=stateHandle,proto3" json:"state_handle,omitempty"` +} + +func (x *CloseStackState_Request) Reset() { + *x = CloseStackState_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackState_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackState_Request) ProtoMessage() {} + +func (x *CloseStackState_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackState_Request.ProtoReflect.Descriptor instead. +func (*CloseStackState_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{5, 0} +} + +func (x *CloseStackState_Request) GetStateHandle() int64 { + if x != nil { + return x.StateHandle + } + return 0 +} + +type CloseStackState_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseStackState_Response) Reset() { + *x = CloseStackState_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackState_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackState_Response) ProtoMessage() {} + +func (x *CloseStackState_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackState_Response.ProtoReflect.Descriptor instead. +func (*CloseStackState_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{5, 1} +} + +type PlanStackChanges_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PlanMode PlanMode `protobuf:"varint,1,opt,name=plan_mode,json=planMode,proto3,enum=terraform1.stacks.PlanMode" json:"plan_mode,omitempty"` + StackConfigHandle int64 `protobuf:"varint,2,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` + PreviousStateHandle int64 `protobuf:"varint,7,opt,name=previous_state_handle,json=previousStateHandle,proto3" json:"previous_state_handle,omitempty"` + // Deprecated: Marked as deprecated in stacks.proto. + PreviousState map[string]*anypb.Any `protobuf:"bytes,3,rep,name=previous_state,json=previousState,proto3" json:"previous_state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + DependencyLocksHandle int64 `protobuf:"varint,4,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` + ProviderCacheHandle int64 `protobuf:"varint,5,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` + InputValues map[string]*DynamicValueWithSource `protobuf:"bytes,6,rep,name=input_values,json=inputValues,proto3" json:"input_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // TODO: Various other planning options +} + +func (x *PlanStackChanges_Request) Reset() { + *x = PlanStackChanges_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlanStackChanges_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlanStackChanges_Request) ProtoMessage() {} + +func (x *PlanStackChanges_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlanStackChanges_Request.ProtoReflect.Descriptor instead. +func (*PlanStackChanges_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{6, 0} +} + +func (x *PlanStackChanges_Request) GetPlanMode() PlanMode { + if x != nil { + return x.PlanMode + } + return PlanMode_NORMAL +} + +func (x *PlanStackChanges_Request) GetStackConfigHandle() int64 { + if x != nil { + return x.StackConfigHandle + } + return 0 +} + +func (x *PlanStackChanges_Request) GetPreviousStateHandle() int64 { + if x != nil { + return x.PreviousStateHandle + } + return 0 +} + +// Deprecated: Marked as deprecated in stacks.proto. +func (x *PlanStackChanges_Request) GetPreviousState() map[string]*anypb.Any { + if x != nil { + return x.PreviousState + } + return nil +} + +func (x *PlanStackChanges_Request) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +func (x *PlanStackChanges_Request) GetProviderCacheHandle() int64 { + if x != nil { + return x.ProviderCacheHandle + } + return 0 +} + +func (x *PlanStackChanges_Request) GetInputValues() map[string]*DynamicValueWithSource { + if x != nil { + return x.InputValues + } + return nil +} + +type PlanStackChanges_Event struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Event: + // + // *PlanStackChanges_Event_PlannedChange + // *PlanStackChanges_Event_Diagnostic + // *PlanStackChanges_Event_Progress + Event isPlanStackChanges_Event_Event `protobuf_oneof:"event"` +} + +func (x *PlanStackChanges_Event) Reset() { + *x = PlanStackChanges_Event{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlanStackChanges_Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlanStackChanges_Event) ProtoMessage() {} + +func (x *PlanStackChanges_Event) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlanStackChanges_Event.ProtoReflect.Descriptor instead. +func (*PlanStackChanges_Event) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{6, 1} +} + +func (m *PlanStackChanges_Event) GetEvent() isPlanStackChanges_Event_Event { + if m != nil { + return m.Event + } + return nil +} + +func (x *PlanStackChanges_Event) GetPlannedChange() *PlannedChange { + if x, ok := x.GetEvent().(*PlanStackChanges_Event_PlannedChange); ok { + return x.PlannedChange + } + return nil +} + +func (x *PlanStackChanges_Event) GetDiagnostic() *terraform1.Diagnostic { + if x, ok := x.GetEvent().(*PlanStackChanges_Event_Diagnostic); ok { + return x.Diagnostic + } + return nil +} + +func (x *PlanStackChanges_Event) GetProgress() *StackChangeProgress { + if x, ok := x.GetEvent().(*PlanStackChanges_Event_Progress); ok { + return x.Progress + } + return nil +} + +type isPlanStackChanges_Event_Event interface { + isPlanStackChanges_Event_Event() +} + +type PlanStackChanges_Event_PlannedChange struct { + PlannedChange *PlannedChange `protobuf:"bytes,1,opt,name=planned_change,json=plannedChange,proto3,oneof"` +} + +type PlanStackChanges_Event_Diagnostic struct { + Diagnostic *terraform1.Diagnostic `protobuf:"bytes,2,opt,name=diagnostic,proto3,oneof"` +} + +type PlanStackChanges_Event_Progress struct { + Progress *StackChangeProgress `protobuf:"bytes,10,opt,name=progress,proto3,oneof"` +} + +func (*PlanStackChanges_Event_PlannedChange) isPlanStackChanges_Event_Event() {} + +func (*PlanStackChanges_Event_Diagnostic) isPlanStackChanges_Event_Event() {} + +func (*PlanStackChanges_Event_Progress) isPlanStackChanges_Event_Event() {} + +type OpenStackPlan_RequestItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Raw *anypb.Any `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"` +} + +func (x *OpenStackPlan_RequestItem) Reset() { + *x = OpenStackPlan_RequestItem{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackPlan_RequestItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackPlan_RequestItem) ProtoMessage() {} + +func (x *OpenStackPlan_RequestItem) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackPlan_RequestItem.ProtoReflect.Descriptor instead. +func (*OpenStackPlan_RequestItem) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{7, 0} +} + +func (x *OpenStackPlan_RequestItem) GetRaw() *anypb.Any { + if x != nil { + return x.Raw + } + return nil +} + +type OpenStackPlan_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PlanHandle int64 `protobuf:"varint,1,opt,name=plan_handle,json=planHandle,proto3" json:"plan_handle,omitempty"` +} + +func (x *OpenStackPlan_Response) Reset() { + *x = OpenStackPlan_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackPlan_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackPlan_Response) ProtoMessage() {} + +func (x *OpenStackPlan_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackPlan_Response.ProtoReflect.Descriptor instead. +func (*OpenStackPlan_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{7, 1} +} + +func (x *OpenStackPlan_Response) GetPlanHandle() int64 { + if x != nil { + return x.PlanHandle + } + return 0 +} + +type CloseStackPlan_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PlanHandle int64 `protobuf:"varint,1,opt,name=plan_handle,json=planHandle,proto3" json:"plan_handle,omitempty"` +} + +func (x *CloseStackPlan_Request) Reset() { + *x = CloseStackPlan_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackPlan_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackPlan_Request) ProtoMessage() {} + +func (x *CloseStackPlan_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackPlan_Request.ProtoReflect.Descriptor instead. +func (*CloseStackPlan_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{8, 0} +} + +func (x *CloseStackPlan_Request) GetPlanHandle() int64 { + if x != nil { + return x.PlanHandle + } + return 0 +} + +type CloseStackPlan_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CloseStackPlan_Response) Reset() { + *x = CloseStackPlan_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloseStackPlan_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloseStackPlan_Response) ProtoMessage() {} + +func (x *CloseStackPlan_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloseStackPlan_Response.ProtoReflect.Descriptor instead. +func (*CloseStackPlan_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{8, 1} +} + +type ApplyStackChanges_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // This must refer to exactly the same configuration that was + // passed to PlanStackChanges when creating this plan, or the + // results will be unpredictable. + StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` + // The caller should send all of the keys present in the previous + // apply's description map. Terraform Core will use this for + // situations such as updating existing descriptions to newer + // formats even if no change is being made to the corresponding + // real objects. + KnownDescriptionKeys []string `protobuf:"bytes,3,rep,name=known_description_keys,json=knownDescriptionKeys,proto3" json:"known_description_keys,omitempty"` + // The handle for a saved plan previously loaded using the + // Stacks.OpenPlan function. + // Applying a plan immediately invalidates it, so the handle will + // be automatically closed. + PlanHandle int64 `protobuf:"varint,8,opt,name=plan_handle,json=planHandle,proto3" json:"plan_handle,omitempty"` + // This must include all of the "raw" values emitted through + // PlannedChange events during the PlanStackChanges operation + // that created this plan, concatenated together in the same + // order they were written to the PlanStackChanges event stream. + // + // Use plan_handle instead. This will be removed in future. + // + // Deprecated: Marked as deprecated in stacks.proto. + PlannedChanges []*anypb.Any `protobuf:"bytes,4,rep,name=planned_changes,json=plannedChanges,proto3" json:"planned_changes,omitempty"` + // This must be equivalent to the argument of the same name + // passed to PlanStackChanges when creating this plan. + DependencyLocksHandle int64 `protobuf:"varint,5,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` + // This must be equivalent to the argument of the same name + // passed to PlanStackChanges when creating this plan. + ProviderCacheHandle int64 `protobuf:"varint,6,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` + // Any input variables identified as an "apply-time input variable" + // in the plan must have values provided here. + // + // Callers may also optionally include values for other declared input + // variables, but if so their values must exactly match those used when + // creating the plan. + InputValues map[string]*DynamicValueWithSource `protobuf:"bytes,7,rep,name=input_values,json=inputValues,proto3" json:"input_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ApplyStackChanges_Request) Reset() { + *x = ApplyStackChanges_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplyStackChanges_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplyStackChanges_Request) ProtoMessage() {} + +func (x *ApplyStackChanges_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[52] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplyStackChanges_Request.ProtoReflect.Descriptor instead. +func (*ApplyStackChanges_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{9, 0} +} + +func (x *ApplyStackChanges_Request) GetStackConfigHandle() int64 { + if x != nil { + return x.StackConfigHandle + } + return 0 +} + +func (x *ApplyStackChanges_Request) GetKnownDescriptionKeys() []string { + if x != nil { + return x.KnownDescriptionKeys + } + return nil +} + +func (x *ApplyStackChanges_Request) GetPlanHandle() int64 { + if x != nil { + return x.PlanHandle + } + return 0 +} + +// Deprecated: Marked as deprecated in stacks.proto. +func (x *ApplyStackChanges_Request) GetPlannedChanges() []*anypb.Any { + if x != nil { + return x.PlannedChanges + } + return nil +} + +func (x *ApplyStackChanges_Request) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +func (x *ApplyStackChanges_Request) GetProviderCacheHandle() int64 { + if x != nil { + return x.ProviderCacheHandle + } + return 0 +} + +func (x *ApplyStackChanges_Request) GetInputValues() map[string]*DynamicValueWithSource { + if x != nil { + return x.InputValues + } + return nil +} + +type ApplyStackChanges_Event struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Event: + // + // *ApplyStackChanges_Event_AppliedChange + // *ApplyStackChanges_Event_Diagnostic + // *ApplyStackChanges_Event_Progress + Event isApplyStackChanges_Event_Event `protobuf_oneof:"event"` +} + +func (x *ApplyStackChanges_Event) Reset() { + *x = ApplyStackChanges_Event{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplyStackChanges_Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplyStackChanges_Event) ProtoMessage() {} + +func (x *ApplyStackChanges_Event) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplyStackChanges_Event.ProtoReflect.Descriptor instead. +func (*ApplyStackChanges_Event) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{9, 1} +} + +func (m *ApplyStackChanges_Event) GetEvent() isApplyStackChanges_Event_Event { + if m != nil { + return m.Event + } + return nil +} + +func (x *ApplyStackChanges_Event) GetAppliedChange() *AppliedChange { + if x, ok := x.GetEvent().(*ApplyStackChanges_Event_AppliedChange); ok { + return x.AppliedChange + } + return nil +} + +func (x *ApplyStackChanges_Event) GetDiagnostic() *terraform1.Diagnostic { + if x, ok := x.GetEvent().(*ApplyStackChanges_Event_Diagnostic); ok { + return x.Diagnostic + } + return nil +} + +func (x *ApplyStackChanges_Event) GetProgress() *StackChangeProgress { + if x, ok := x.GetEvent().(*ApplyStackChanges_Event_Progress); ok { + return x.Progress + } + return nil +} + +type isApplyStackChanges_Event_Event interface { + isApplyStackChanges_Event_Event() +} + +type ApplyStackChanges_Event_AppliedChange struct { + AppliedChange *AppliedChange `protobuf:"bytes,1,opt,name=applied_change,json=appliedChange,proto3,oneof"` +} + +type ApplyStackChanges_Event_Diagnostic struct { + Diagnostic *terraform1.Diagnostic `protobuf:"bytes,2,opt,name=diagnostic,proto3,oneof"` +} + +type ApplyStackChanges_Event_Progress struct { + Progress *StackChangeProgress `protobuf:"bytes,3,opt,name=progress,proto3,oneof"` +} + +func (*ApplyStackChanges_Event_AppliedChange) isApplyStackChanges_Event_Event() {} + +func (*ApplyStackChanges_Event_Diagnostic) isApplyStackChanges_Event_Event() {} + +func (*ApplyStackChanges_Event_Progress) isApplyStackChanges_Event_Event() {} + +type OpenStackInspector_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` + State map[string]*anypb.Any `protobuf:"bytes,2,rep,name=state,proto3" json:"state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + DependencyLocksHandle int64 `protobuf:"varint,3,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` + ProviderCacheHandle int64 `protobuf:"varint,4,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` + InputValues map[string]*DynamicValueWithSource `protobuf:"bytes,5,rep,name=input_values,json=inputValues,proto3" json:"input_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *OpenStackInspector_Request) Reset() { + *x = OpenStackInspector_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackInspector_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackInspector_Request) ProtoMessage() {} + +func (x *OpenStackInspector_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[55] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackInspector_Request.ProtoReflect.Descriptor instead. +func (*OpenStackInspector_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{10, 0} +} + +func (x *OpenStackInspector_Request) GetStackConfigHandle() int64 { + if x != nil { + return x.StackConfigHandle + } + return 0 +} + +func (x *OpenStackInspector_Request) GetState() map[string]*anypb.Any { + if x != nil { + return x.State + } + return nil +} + +func (x *OpenStackInspector_Request) GetDependencyLocksHandle() int64 { + if x != nil { + return x.DependencyLocksHandle + } + return 0 +} + +func (x *OpenStackInspector_Request) GetProviderCacheHandle() int64 { + if x != nil { + return x.ProviderCacheHandle + } + return 0 +} + +func (x *OpenStackInspector_Request) GetInputValues() map[string]*DynamicValueWithSource { + if x != nil { + return x.InputValues + } + return nil +} + +type OpenStackInspector_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StackInspectorHandle int64 `protobuf:"varint,1,opt,name=stack_inspector_handle,json=stackInspectorHandle,proto3" json:"stack_inspector_handle,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *OpenStackInspector_Response) Reset() { + *x = OpenStackInspector_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OpenStackInspector_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OpenStackInspector_Response) ProtoMessage() {} + +func (x *OpenStackInspector_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[56] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OpenStackInspector_Response.ProtoReflect.Descriptor instead. +func (*OpenStackInspector_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{10, 1} +} + +func (x *OpenStackInspector_Response) GetStackInspectorHandle() int64 { + if x != nil { + return x.StackInspectorHandle + } + return 0 +} + +func (x *OpenStackInspector_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type InspectExpressionResult_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StackInspectorHandle int64 `protobuf:"varint,1,opt,name=stack_inspector_handle,json=stackInspectorHandle,proto3" json:"stack_inspector_handle,omitempty"` + ExpressionSrc []byte `protobuf:"bytes,2,opt,name=expression_src,json=expressionSrc,proto3" json:"expression_src,omitempty"` + StackAddr string `protobuf:"bytes,3,opt,name=stack_addr,json=stackAddr,proto3" json:"stack_addr,omitempty"` +} + +func (x *InspectExpressionResult_Request) Reset() { + *x = InspectExpressionResult_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InspectExpressionResult_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InspectExpressionResult_Request) ProtoMessage() {} + +func (x *InspectExpressionResult_Request) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[59] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InspectExpressionResult_Request.ProtoReflect.Descriptor instead. +func (*InspectExpressionResult_Request) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{11, 0} +} + +func (x *InspectExpressionResult_Request) GetStackInspectorHandle() int64 { + if x != nil { + return x.StackInspectorHandle + } + return 0 +} + +func (x *InspectExpressionResult_Request) GetExpressionSrc() []byte { + if x != nil { + return x.ExpressionSrc + } + return nil +} + +func (x *InspectExpressionResult_Request) GetStackAddr() string { + if x != nil { + return x.StackAddr + } + return "" +} + +type InspectExpressionResult_Response struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The result of evaluating the expression, if successful enough to + // produce a result. Unpopulated if the expression was too invalid + // to produce a result, with the problem then described in the + // associated diagnostics. + // + // Uses a MessagePack encoding with in-band type information. + Result *DynamicValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + Diagnostics []*terraform1.Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` +} + +func (x *InspectExpressionResult_Response) Reset() { + *x = InspectExpressionResult_Response{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InspectExpressionResult_Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InspectExpressionResult_Response) ProtoMessage() {} + +func (x *InspectExpressionResult_Response) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[60] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InspectExpressionResult_Response.ProtoReflect.Descriptor instead. +func (*InspectExpressionResult_Response) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{11, 1} +} + +func (x *InspectExpressionResult_Response) GetResult() *DynamicValue { + if x != nil { + return x.Result + } + return nil +} + +func (x *InspectExpressionResult_Response) GetDiagnostics() []*terraform1.Diagnostic { + if x != nil { + return x.Diagnostics + } + return nil +} + +type AttributePath_Step struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Selector: + // + // *AttributePath_Step_AttributeName + // *AttributePath_Step_ElementKeyString + // *AttributePath_Step_ElementKeyInt + Selector isAttributePath_Step_Selector `protobuf_oneof:"selector"` +} + +func (x *AttributePath_Step) Reset() { + *x = AttributePath_Step{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AttributePath_Step) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AttributePath_Step) ProtoMessage() {} + +func (x *AttributePath_Step) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[61] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AttributePath_Step.ProtoReflect.Descriptor instead. +func (*AttributePath_Step) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{15, 0} +} + +func (m *AttributePath_Step) GetSelector() isAttributePath_Step_Selector { + if m != nil { + return m.Selector + } + return nil +} + +func (x *AttributePath_Step) GetAttributeName() string { + if x, ok := x.GetSelector().(*AttributePath_Step_AttributeName); ok { + return x.AttributeName + } + return "" +} + +func (x *AttributePath_Step) GetElementKeyString() string { + if x, ok := x.GetSelector().(*AttributePath_Step_ElementKeyString); ok { + return x.ElementKeyString + } + return "" +} + +func (x *AttributePath_Step) GetElementKeyInt() int64 { + if x, ok := x.GetSelector().(*AttributePath_Step_ElementKeyInt); ok { + return x.ElementKeyInt + } + return 0 +} + +type isAttributePath_Step_Selector interface { + isAttributePath_Step_Selector() +} + +type AttributePath_Step_AttributeName struct { + // Set "attribute_name" to represent looking up an attribute + // in the current object value. + AttributeName string `protobuf:"bytes,1,opt,name=attribute_name,json=attributeName,proto3,oneof"` +} + +type AttributePath_Step_ElementKeyString struct { + // Set "element_key_*" to represent looking up an element in + // an indexable collection type. + ElementKeyString string `protobuf:"bytes,2,opt,name=element_key_string,json=elementKeyString,proto3,oneof"` +} + +type AttributePath_Step_ElementKeyInt struct { + ElementKeyInt int64 `protobuf:"varint,3,opt,name=element_key_int,json=elementKeyInt,proto3,oneof"` +} + +func (*AttributePath_Step_AttributeName) isAttributePath_Step_Selector() {} + +func (*AttributePath_Step_ElementKeyString) isAttributePath_Step_Selector() {} + +func (*AttributePath_Step_ElementKeyInt) isAttributePath_Step_Selector() {} + +// Represents a single caller-facing description of a change, to use for +// presenting information to end users in the UI and for other subsystems +// such as imposing policy rules on the resulting plan. +// +// New description types might be added in future versions of Terraform +// Core, and so clients should tolerate description messages that appear +// to have none of the oneof fields set, and should just ignore those +// messages entirely. +type PlannedChange_ChangeDescription struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Description: + // + // *PlannedChange_ChangeDescription_ComponentInstancePlanned + // *PlannedChange_ChangeDescription_ResourceInstancePlanned + // *PlannedChange_ChangeDescription_OutputValuePlanned + // *PlannedChange_ChangeDescription_PlanApplyable + // *PlannedChange_ChangeDescription_ResourceInstanceDeferred + // *PlannedChange_ChangeDescription_ApplyTimeInputVariable + Description isPlannedChange_ChangeDescription_Description `protobuf_oneof:"description"` +} + +func (x *PlannedChange_ChangeDescription) Reset() { + *x = PlannedChange_ChangeDescription{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_ChangeDescription) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_ChangeDescription) ProtoMessage() {} + +func (x *PlannedChange_ChangeDescription) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[62] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_ChangeDescription.ProtoReflect.Descriptor instead. +func (*PlannedChange_ChangeDescription) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 0} +} + +func (m *PlannedChange_ChangeDescription) GetDescription() isPlannedChange_ChangeDescription_Description { + if m != nil { + return m.Description + } + return nil +} + +func (x *PlannedChange_ChangeDescription) GetComponentInstancePlanned() *PlannedChange_ComponentInstance { + if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_ComponentInstancePlanned); ok { + return x.ComponentInstancePlanned + } + return nil +} + +func (x *PlannedChange_ChangeDescription) GetResourceInstancePlanned() *PlannedChange_ResourceInstance { + if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_ResourceInstancePlanned); ok { + return x.ResourceInstancePlanned + } + return nil +} + +func (x *PlannedChange_ChangeDescription) GetOutputValuePlanned() *PlannedChange_OutputValue { + if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_OutputValuePlanned); ok { + return x.OutputValuePlanned + } + return nil +} + +func (x *PlannedChange_ChangeDescription) GetPlanApplyable() bool { + if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_PlanApplyable); ok { + return x.PlanApplyable + } + return false +} + +func (x *PlannedChange_ChangeDescription) GetResourceInstanceDeferred() *PlannedChange_ResourceInstanceDeferred { + if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_ResourceInstanceDeferred); ok { + return x.ResourceInstanceDeferred + } + return nil +} + +func (x *PlannedChange_ChangeDescription) GetApplyTimeInputVariable() *PlannedChange_InputVariableDuringApply { + if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_ApplyTimeInputVariable); ok { + return x.ApplyTimeInputVariable + } + return nil +} + +type isPlannedChange_ChangeDescription_Description interface { + isPlannedChange_ChangeDescription_Description() +} + +type PlannedChange_ChangeDescription_ComponentInstancePlanned struct { + ComponentInstancePlanned *PlannedChange_ComponentInstance `protobuf:"bytes,1,opt,name=component_instance_planned,json=componentInstancePlanned,proto3,oneof"` +} + +type PlannedChange_ChangeDescription_ResourceInstancePlanned struct { + ResourceInstancePlanned *PlannedChange_ResourceInstance `protobuf:"bytes,2,opt,name=resource_instance_planned,json=resourceInstancePlanned,proto3,oneof"` +} + +type PlannedChange_ChangeDescription_OutputValuePlanned struct { + OutputValuePlanned *PlannedChange_OutputValue `protobuf:"bytes,3,opt,name=output_value_planned,json=outputValuePlanned,proto3,oneof"` +} + +type PlannedChange_ChangeDescription_PlanApplyable struct { + PlanApplyable bool `protobuf:"varint,4,opt,name=plan_applyable,json=planApplyable,proto3,oneof"` +} + +type PlannedChange_ChangeDescription_ResourceInstanceDeferred struct { + ResourceInstanceDeferred *PlannedChange_ResourceInstanceDeferred `protobuf:"bytes,5,opt,name=resource_instance_deferred,json=resourceInstanceDeferred,proto3,oneof"` +} + +type PlannedChange_ChangeDescription_ApplyTimeInputVariable struct { + ApplyTimeInputVariable *PlannedChange_InputVariableDuringApply `protobuf:"bytes,6,opt,name=apply_time_input_variable,json=applyTimeInputVariable,proto3,oneof"` +} + +func (*PlannedChange_ChangeDescription_ComponentInstancePlanned) isPlannedChange_ChangeDescription_Description() { +} + +func (*PlannedChange_ChangeDescription_ResourceInstancePlanned) isPlannedChange_ChangeDescription_Description() { +} + +func (*PlannedChange_ChangeDescription_OutputValuePlanned) isPlannedChange_ChangeDescription_Description() { +} + +func (*PlannedChange_ChangeDescription_PlanApplyable) isPlannedChange_ChangeDescription_Description() { +} + +func (*PlannedChange_ChangeDescription_ResourceInstanceDeferred) isPlannedChange_ChangeDescription_Description() { +} + +func (*PlannedChange_ChangeDescription_ApplyTimeInputVariable) isPlannedChange_ChangeDescription_Description() { +} + +// Reports the existence of a particular instance of a component, +// once Terraform has resolved arguments such as "for_each" that +// might make the set of instances dynamic. +type PlannedChange_ComponentInstance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ComponentInstanceInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // The changes to the existence of this instance relative to the + // prior state. This only considers the component instance directly, + // and doesn't take into account what actions are planned for any + // resource instances inside. + Actions []ChangeType `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=terraform1.stacks.ChangeType" json:"actions,omitempty"` + // A flag for whether applying this plan is expected to cause the + // desired state and actual state to become converged. + // + // If this field is false, that means Terraform expects that at least + // one more plan/apply round will be needed to reach convergence. + // + // If this field is true then Terraform hopes to be able to converge + // after this plan is applied, but callers should ideally still check + // anyway by running one more plan to confirm that there aren't any + // unexpected differences caused by such situations as contradictory + // configuration or provider bugs. + PlanComplete bool `protobuf:"varint,3,opt,name=plan_complete,json=planComplete,proto3" json:"plan_complete,omitempty"` +} + +func (x *PlannedChange_ComponentInstance) Reset() { + *x = PlannedChange_ComponentInstance{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_ComponentInstance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_ComponentInstance) ProtoMessage() {} + +func (x *PlannedChange_ComponentInstance) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[63] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_ComponentInstance.ProtoReflect.Descriptor instead. +func (*PlannedChange_ComponentInstance) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 1} +} + +func (x *PlannedChange_ComponentInstance) GetAddr() *ComponentInstanceInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *PlannedChange_ComponentInstance) GetActions() []ChangeType { + if x != nil { + return x.Actions + } + return nil +} + +func (x *PlannedChange_ComponentInstance) GetPlanComplete() bool { + if x != nil { + return x.PlanComplete + } + return false +} + +type PlannedChange_ResourceInstance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Actions []ChangeType `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=terraform1.stacks.ChangeType" json:"actions,omitempty"` + Values *DynamicValueChange `protobuf:"bytes,3,opt,name=values,proto3" json:"values,omitempty"` + Moved *PlannedChange_ResourceInstance_Moved `protobuf:"bytes,4,opt,name=moved,proto3" json:"moved,omitempty"` + Imported *PlannedChange_ResourceInstance_Imported `protobuf:"bytes,5,opt,name=imported,proto3" json:"imported,omitempty"` + ResourceMode ResourceMode `protobuf:"varint,6,opt,name=resource_mode,json=resourceMode,proto3,enum=terraform1.stacks.ResourceMode" json:"resource_mode,omitempty"` + ResourceType string `protobuf:"bytes,7,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` + ProviderAddr string `protobuf:"bytes,8,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` + // previous_run_value is included only if it would be + // different from values.old, which typically means that + // Terraform detected some changes made outside of Terraform + // since the previous run. In that case, this field is + // the un-refreshed (but still upgraded) value from + // the previous run and values.old is the refreshed version. + // + // If this isn't set then values.old should be used as the + // previous run value, if needed. + PreviousRunValue *DynamicValue `protobuf:"bytes,9,opt,name=previous_run_value,json=previousRunValue,proto3" json:"previous_run_value,omitempty"` + // This flag is set if Terraform Core considers the difference + // between previous_run_value and values.old to be "notable", + // which is a heuristic subject to change over time but is + // broadly intended to mean that it would be worth mentioning + // the difference between the two in the UI as a + // "change outside of Terraform". If this isn't set then the + // difference is probably not worth mentioning to the user + // by default, although it could still be shown behind an + // optional disclosure in UI contexts where such things are possible. + NotableChangeOutside bool `protobuf:"varint,10,opt,name=notable_change_outside,json=notableChangeOutside,proto3" json:"notable_change_outside,omitempty"` + ReplacePaths []*AttributePath `protobuf:"bytes,11,rep,name=replace_paths,json=replacePaths,proto3" json:"replace_paths,omitempty"` + ResourceName string `protobuf:"bytes,12,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` + Index *PlannedChange_ResourceInstance_Index `protobuf:"bytes,13,opt,name=index,proto3" json:"index,omitempty"` + ModuleAddr string `protobuf:"bytes,14,opt,name=module_addr,json=moduleAddr,proto3" json:"module_addr,omitempty"` + ActionReason string `protobuf:"bytes,15,opt,name=action_reason,json=actionReason,proto3" json:"action_reason,omitempty"` +} + +func (x *PlannedChange_ResourceInstance) Reset() { + *x = PlannedChange_ResourceInstance{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_ResourceInstance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_ResourceInstance) ProtoMessage() {} + +func (x *PlannedChange_ResourceInstance) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[64] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_ResourceInstance.ProtoReflect.Descriptor instead. +func (*PlannedChange_ResourceInstance) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 2} +} + +func (x *PlannedChange_ResourceInstance) GetAddr() *ResourceInstanceObjectInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *PlannedChange_ResourceInstance) GetActions() []ChangeType { + if x != nil { + return x.Actions + } + return nil +} + +func (x *PlannedChange_ResourceInstance) GetValues() *DynamicValueChange { + if x != nil { + return x.Values + } + return nil +} + +func (x *PlannedChange_ResourceInstance) GetMoved() *PlannedChange_ResourceInstance_Moved { + if x != nil { + return x.Moved + } + return nil +} + +func (x *PlannedChange_ResourceInstance) GetImported() *PlannedChange_ResourceInstance_Imported { + if x != nil { + return x.Imported + } + return nil +} + +func (x *PlannedChange_ResourceInstance) GetResourceMode() ResourceMode { + if x != nil { + return x.ResourceMode + } + return ResourceMode_UNKNOWN +} + +func (x *PlannedChange_ResourceInstance) GetResourceType() string { + if x != nil { + return x.ResourceType + } + return "" +} + +func (x *PlannedChange_ResourceInstance) GetProviderAddr() string { + if x != nil { + return x.ProviderAddr + } + return "" +} + +func (x *PlannedChange_ResourceInstance) GetPreviousRunValue() *DynamicValue { + if x != nil { + return x.PreviousRunValue + } + return nil +} + +func (x *PlannedChange_ResourceInstance) GetNotableChangeOutside() bool { + if x != nil { + return x.NotableChangeOutside + } + return false +} + +func (x *PlannedChange_ResourceInstance) GetReplacePaths() []*AttributePath { + if x != nil { + return x.ReplacePaths + } + return nil +} + +func (x *PlannedChange_ResourceInstance) GetResourceName() string { + if x != nil { + return x.ResourceName + } + return "" +} + +func (x *PlannedChange_ResourceInstance) GetIndex() *PlannedChange_ResourceInstance_Index { + if x != nil { + return x.Index + } + return nil +} + +func (x *PlannedChange_ResourceInstance) GetModuleAddr() string { + if x != nil { + return x.ModuleAddr + } + return "" +} + +func (x *PlannedChange_ResourceInstance) GetActionReason() string { + if x != nil { + return x.ActionReason + } + return "" +} + +// Note: this is only for output values from the topmost +// stack configuration, because all other output values are +// internal to the configuration and not part of its public API. +type PlannedChange_OutputValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Actions []ChangeType `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=terraform1.stacks.ChangeType" json:"actions,omitempty"` + Values *DynamicValueChange `protobuf:"bytes,3,opt,name=values,proto3" json:"values,omitempty"` +} + +func (x *PlannedChange_OutputValue) Reset() { + *x = PlannedChange_OutputValue{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_OutputValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_OutputValue) ProtoMessage() {} + +func (x *PlannedChange_OutputValue) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[65] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_OutputValue.ProtoReflect.Descriptor instead. +func (*PlannedChange_OutputValue) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 3} +} + +func (x *PlannedChange_OutputValue) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *PlannedChange_OutputValue) GetActions() []ChangeType { + if x != nil { + return x.Actions + } + return nil +} + +func (x *PlannedChange_OutputValue) GetValues() *DynamicValueChange { + if x != nil { + return x.Values + } + return nil +} + +type PlannedChange_ResourceInstanceDeferred struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ResourceInstance *PlannedChange_ResourceInstance `protobuf:"bytes,1,opt,name=resource_instance,json=resourceInstance,proto3" json:"resource_instance,omitempty"` + Deferred *Deferred `protobuf:"bytes,2,opt,name=deferred,proto3" json:"deferred,omitempty"` +} + +func (x *PlannedChange_ResourceInstanceDeferred) Reset() { + *x = PlannedChange_ResourceInstanceDeferred{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_ResourceInstanceDeferred) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_ResourceInstanceDeferred) ProtoMessage() {} + +func (x *PlannedChange_ResourceInstanceDeferred) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[66] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_ResourceInstanceDeferred.ProtoReflect.Descriptor instead. +func (*PlannedChange_ResourceInstanceDeferred) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 4} +} + +func (x *PlannedChange_ResourceInstanceDeferred) GetResourceInstance() *PlannedChange_ResourceInstance { + if x != nil { + return x.ResourceInstance + } + return nil +} + +func (x *PlannedChange_ResourceInstanceDeferred) GetDeferred() *Deferred { + if x != nil { + return x.Deferred + } + return nil +} + +// Describes an input variable that must have a value provided +// during the apply phase. +// +// This currently arises only when the variable was declared +// as ephemeral and was set to a non-null value during the planning +// phase. +type PlannedChange_InputVariableDuringApply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *PlannedChange_InputVariableDuringApply) Reset() { + *x = PlannedChange_InputVariableDuringApply{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_InputVariableDuringApply) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_InputVariableDuringApply) ProtoMessage() {} + +func (x *PlannedChange_InputVariableDuringApply) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[67] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_InputVariableDuringApply.ProtoReflect.Descriptor instead. +func (*PlannedChange_InputVariableDuringApply) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 5} +} + +func (x *PlannedChange_InputVariableDuringApply) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type PlannedChange_ResourceInstance_Index struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *DynamicValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Unknown bool `protobuf:"varint,2,opt,name=unknown,proto3" json:"unknown,omitempty"` +} + +func (x *PlannedChange_ResourceInstance_Index) Reset() { + *x = PlannedChange_ResourceInstance_Index{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_ResourceInstance_Index) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_ResourceInstance_Index) ProtoMessage() {} + +func (x *PlannedChange_ResourceInstance_Index) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[68] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_ResourceInstance_Index.ProtoReflect.Descriptor instead. +func (*PlannedChange_ResourceInstance_Index) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 2, 0} +} + +func (x *PlannedChange_ResourceInstance_Index) GetValue() *DynamicValue { + if x != nil { + return x.Value + } + return nil +} + +func (x *PlannedChange_ResourceInstance_Index) GetUnknown() bool { + if x != nil { + return x.Unknown + } + return false +} + +type PlannedChange_ResourceInstance_Moved struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PrevAddr *ResourceInstanceInStackAddr `protobuf:"bytes,1,opt,name=prev_addr,json=prevAddr,proto3" json:"prev_addr,omitempty"` +} + +func (x *PlannedChange_ResourceInstance_Moved) Reset() { + *x = PlannedChange_ResourceInstance_Moved{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_ResourceInstance_Moved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_ResourceInstance_Moved) ProtoMessage() {} + +func (x *PlannedChange_ResourceInstance_Moved) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[69] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_ResourceInstance_Moved.ProtoReflect.Descriptor instead. +func (*PlannedChange_ResourceInstance_Moved) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 2, 1} +} + +func (x *PlannedChange_ResourceInstance_Moved) GetPrevAddr() *ResourceInstanceInStackAddr { + if x != nil { + return x.PrevAddr + } + return nil +} + +type PlannedChange_ResourceInstance_Imported struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ImportId string `protobuf:"bytes,1,opt,name=import_id,json=importId,proto3" json:"import_id,omitempty"` + Unknown bool `protobuf:"varint,2,opt,name=unknown,proto3" json:"unknown,omitempty"` + GeneratedConfig string `protobuf:"bytes,3,opt,name=generated_config,json=generatedConfig,proto3" json:"generated_config,omitempty"` +} + +func (x *PlannedChange_ResourceInstance_Imported) Reset() { + *x = PlannedChange_ResourceInstance_Imported{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PlannedChange_ResourceInstance_Imported) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlannedChange_ResourceInstance_Imported) ProtoMessage() {} + +func (x *PlannedChange_ResourceInstance_Imported) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[70] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PlannedChange_ResourceInstance_Imported.ProtoReflect.Descriptor instead. +func (*PlannedChange_ResourceInstance_Imported) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{19, 2, 2} +} + +func (x *PlannedChange_ResourceInstance_Imported) GetImportId() string { + if x != nil { + return x.ImportId + } + return "" +} + +func (x *PlannedChange_ResourceInstance_Imported) GetUnknown() bool { + if x != nil { + return x.Unknown + } + return false +} + +func (x *PlannedChange_ResourceInstance_Imported) GetGeneratedConfig() string { + if x != nil { + return x.GeneratedConfig + } + return "" +} + +type AppliedChange_RawChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value *anypb.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *AppliedChange_RawChange) Reset() { + *x = AppliedChange_RawChange{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppliedChange_RawChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppliedChange_RawChange) ProtoMessage() {} + +func (x *AppliedChange_RawChange) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[71] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AppliedChange_RawChange.ProtoReflect.Descriptor instead. +func (*AppliedChange_RawChange) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{21, 0} +} + +func (x *AppliedChange_RawChange) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *AppliedChange_RawChange) GetValue() *anypb.Any { + if x != nil { + return x.Value + } + return nil +} + +type AppliedChange_ChangeDescription struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Types that are assignable to Description: + // + // *AppliedChange_ChangeDescription_Deleted + // *AppliedChange_ChangeDescription_Moved + // *AppliedChange_ChangeDescription_ResourceInstance + // *AppliedChange_ChangeDescription_OutputValue + // *AppliedChange_ChangeDescription_ComponentInstance + Description isAppliedChange_ChangeDescription_Description `protobuf_oneof:"description"` +} + +func (x *AppliedChange_ChangeDescription) Reset() { + *x = AppliedChange_ChangeDescription{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppliedChange_ChangeDescription) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppliedChange_ChangeDescription) ProtoMessage() {} + +func (x *AppliedChange_ChangeDescription) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[72] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AppliedChange_ChangeDescription.ProtoReflect.Descriptor instead. +func (*AppliedChange_ChangeDescription) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{21, 1} +} + +func (x *AppliedChange_ChangeDescription) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (m *AppliedChange_ChangeDescription) GetDescription() isAppliedChange_ChangeDescription_Description { + if m != nil { + return m.Description + } + return nil +} + +func (x *AppliedChange_ChangeDescription) GetDeleted() *AppliedChange_Nothing { + if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_Deleted); ok { + return x.Deleted + } + return nil +} + +func (x *AppliedChange_ChangeDescription) GetMoved() *AppliedChange_Nothing { + if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_Moved); ok { + return x.Moved + } + return nil +} + +func (x *AppliedChange_ChangeDescription) GetResourceInstance() *AppliedChange_ResourceInstance { + if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_ResourceInstance); ok { + return x.ResourceInstance + } + return nil +} + +func (x *AppliedChange_ChangeDescription) GetOutputValue() *AppliedChange_OutputValue { + if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_OutputValue); ok { + return x.OutputValue + } + return nil +} + +func (x *AppliedChange_ChangeDescription) GetComponentInstance() *AppliedChange_ComponentInstance { + if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_ComponentInstance); ok { + return x.ComponentInstance + } + return nil +} + +type isAppliedChange_ChangeDescription_Description interface { + isAppliedChange_ChangeDescription_Description() +} + +type AppliedChange_ChangeDescription_Deleted struct { + Deleted *AppliedChange_Nothing `protobuf:"bytes,4,opt,name=deleted,proto3,oneof"` // explicitly represents the absence of a description +} + +type AppliedChange_ChangeDescription_Moved struct { + Moved *AppliedChange_Nothing `protobuf:"bytes,6,opt,name=moved,proto3,oneof"` // explicitly represents the absence of a description +} + +type AppliedChange_ChangeDescription_ResourceInstance struct { + ResourceInstance *AppliedChange_ResourceInstance `protobuf:"bytes,2,opt,name=resource_instance,json=resourceInstance,proto3,oneof"` +} + +type AppliedChange_ChangeDescription_OutputValue struct { + OutputValue *AppliedChange_OutputValue `protobuf:"bytes,3,opt,name=output_value,json=outputValue,proto3,oneof"` +} + +type AppliedChange_ChangeDescription_ComponentInstance struct { + ComponentInstance *AppliedChange_ComponentInstance `protobuf:"bytes,5,opt,name=component_instance,json=componentInstance,proto3,oneof"` +} + +func (*AppliedChange_ChangeDescription_Deleted) isAppliedChange_ChangeDescription_Description() {} + +func (*AppliedChange_ChangeDescription_Moved) isAppliedChange_ChangeDescription_Description() {} + +func (*AppliedChange_ChangeDescription_ResourceInstance) isAppliedChange_ChangeDescription_Description() { +} + +func (*AppliedChange_ChangeDescription_OutputValue) isAppliedChange_ChangeDescription_Description() {} + +func (*AppliedChange_ChangeDescription_ComponentInstance) isAppliedChange_ChangeDescription_Description() { +} + +type AppliedChange_ResourceInstance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + NewValue *DynamicValue `protobuf:"bytes,2,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` + ResourceMode ResourceMode `protobuf:"varint,4,opt,name=resource_mode,json=resourceMode,proto3,enum=terraform1.stacks.ResourceMode" json:"resource_mode,omitempty"` + ResourceType string `protobuf:"bytes,5,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` + ProviderAddr string `protobuf:"bytes,6,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` + // Sometimes Terraform needs to make changes to a resource in + // multiple steps during the apply phase, with each step + // changing something about the state. This flag will be set + // for such interim updates, and left unset for whatever + // description Terraform Core considers to be "final", at + // which point the new value should be converged with the + // desired state. + // + // The intended use for this is when presenting updated values + // to users in the UI, where it might be best to ignore or + // present differently interim updates to avoid creating + // confusion by showing the not-yet-converged intermediate + // states. + // + // If Terraform encounters a problem during the apply phase + // and needs to stop partway through then a "final" change + // description might never arrive. In that case, callers + // should save the most recent interim object as the final + // description, since it would represent the most accurate + // description of the state the remote system has been left + // in. + Interim bool `protobuf:"varint,3,opt,name=interim,proto3" json:"interim,omitempty"` +} + +func (x *AppliedChange_ResourceInstance) Reset() { + *x = AppliedChange_ResourceInstance{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppliedChange_ResourceInstance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppliedChange_ResourceInstance) ProtoMessage() {} + +func (x *AppliedChange_ResourceInstance) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[73] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AppliedChange_ResourceInstance.ProtoReflect.Descriptor instead. +func (*AppliedChange_ResourceInstance) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{21, 2} +} + +func (x *AppliedChange_ResourceInstance) GetAddr() *ResourceInstanceObjectInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *AppliedChange_ResourceInstance) GetNewValue() *DynamicValue { + if x != nil { + return x.NewValue + } + return nil +} + +func (x *AppliedChange_ResourceInstance) GetResourceMode() ResourceMode { + if x != nil { + return x.ResourceMode + } + return ResourceMode_UNKNOWN +} + +func (x *AppliedChange_ResourceInstance) GetResourceType() string { + if x != nil { + return x.ResourceType + } + return "" +} + +func (x *AppliedChange_ResourceInstance) GetProviderAddr() string { + if x != nil { + return x.ProviderAddr + } + return "" +} + +func (x *AppliedChange_ResourceInstance) GetInterim() bool { + if x != nil { + return x.Interim + } + return false +} + +type AppliedChange_ComponentInstance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ComponentAddr string `protobuf:"bytes,3,opt,name=component_addr,json=componentAddr,proto3" json:"component_addr,omitempty"` + ComponentInstanceAddr string `protobuf:"bytes,1,opt,name=component_instance_addr,json=componentInstanceAddr,proto3" json:"component_instance_addr,omitempty"` + OutputValues map[string]*DynamicValue `protobuf:"bytes,2,rep,name=output_values,json=outputValues,proto3" json:"output_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *AppliedChange_ComponentInstance) Reset() { + *x = AppliedChange_ComponentInstance{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppliedChange_ComponentInstance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppliedChange_ComponentInstance) ProtoMessage() {} + +func (x *AppliedChange_ComponentInstance) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[74] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AppliedChange_ComponentInstance.ProtoReflect.Descriptor instead. +func (*AppliedChange_ComponentInstance) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{21, 3} +} + +func (x *AppliedChange_ComponentInstance) GetComponentAddr() string { + if x != nil { + return x.ComponentAddr + } + return "" +} + +func (x *AppliedChange_ComponentInstance) GetComponentInstanceAddr() string { + if x != nil { + return x.ComponentInstanceAddr + } + return "" +} + +func (x *AppliedChange_ComponentInstance) GetOutputValues() map[string]*DynamicValue { + if x != nil { + return x.OutputValues + } + return nil +} + +type AppliedChange_OutputValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + NewValue *DynamicValue `protobuf:"bytes,2,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` +} + +func (x *AppliedChange_OutputValue) Reset() { + *x = AppliedChange_OutputValue{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppliedChange_OutputValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppliedChange_OutputValue) ProtoMessage() {} + +func (x *AppliedChange_OutputValue) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[75] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AppliedChange_OutputValue.ProtoReflect.Descriptor instead. +func (*AppliedChange_OutputValue) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{21, 4} +} + +func (x *AppliedChange_OutputValue) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *AppliedChange_OutputValue) GetNewValue() *DynamicValue { + if x != nil { + return x.NewValue + } + return nil +} + +type AppliedChange_Nothing struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AppliedChange_Nothing) Reset() { + *x = AppliedChange_Nothing{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppliedChange_Nothing) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppliedChange_Nothing) ProtoMessage() {} + +func (x *AppliedChange_Nothing) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[76] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AppliedChange_Nothing.ProtoReflect.Descriptor instead. +func (*AppliedChange_Nothing) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{21, 5} +} + +// ComponentInstanceStatus describes the current status of a component instance +// undergoing a plan or apply operation. +type StackChangeProgress_ComponentInstanceStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ComponentInstanceInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Status StackChangeProgress_ComponentInstanceStatus_Status `protobuf:"varint,2,opt,name=status,proto3,enum=terraform1.stacks.StackChangeProgress_ComponentInstanceStatus_Status" json:"status,omitempty"` +} + +func (x *StackChangeProgress_ComponentInstanceStatus) Reset() { + *x = StackChangeProgress_ComponentInstanceStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ComponentInstanceStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ComponentInstanceStatus) ProtoMessage() {} + +func (x *StackChangeProgress_ComponentInstanceStatus) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[78] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ComponentInstanceStatus.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ComponentInstanceStatus) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 0} +} + +func (x *StackChangeProgress_ComponentInstanceStatus) GetAddr() *ComponentInstanceInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *StackChangeProgress_ComponentInstanceStatus) GetStatus() StackChangeProgress_ComponentInstanceStatus_Status { + if x != nil { + return x.Status + } + return StackChangeProgress_ComponentInstanceStatus_INVALID +} + +// ComponentInstanceStatus describes the current status of a resource instance +// undergoing a plan or apply operation. +type StackChangeProgress_ResourceInstanceStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Status StackChangeProgress_ResourceInstanceStatus_Status `protobuf:"varint,2,opt,name=status,proto3,enum=terraform1.stacks.StackChangeProgress_ResourceInstanceStatus_Status" json:"status,omitempty"` + ProviderAddr string `protobuf:"bytes,3,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` +} + +func (x *StackChangeProgress_ResourceInstanceStatus) Reset() { + *x = StackChangeProgress_ResourceInstanceStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ResourceInstanceStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ResourceInstanceStatus) ProtoMessage() {} + +func (x *StackChangeProgress_ResourceInstanceStatus) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[79] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ResourceInstanceStatus.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ResourceInstanceStatus) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 1} +} + +func (x *StackChangeProgress_ResourceInstanceStatus) GetAddr() *ResourceInstanceObjectInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *StackChangeProgress_ResourceInstanceStatus) GetStatus() StackChangeProgress_ResourceInstanceStatus_Status { + if x != nil { + return x.Status + } + return StackChangeProgress_ResourceInstanceStatus_INVALID +} + +func (x *StackChangeProgress_ResourceInstanceStatus) GetProviderAddr() string { + if x != nil { + return x.ProviderAddr + } + return "" +} + +// ResourceInstancePlannedChange describes summary information about a planned +// change for a resource instance. This does not include the full object change, +// which is described in PlannedChange.ResourceChange. The information in this +// message is intended for the event stream and need not include the instance's +// full object values. +type StackChangeProgress_ResourceInstancePlannedChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Actions []ChangeType `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=terraform1.stacks.ChangeType" json:"actions,omitempty"` + Moved *StackChangeProgress_ResourceInstancePlannedChange_Moved `protobuf:"bytes,3,opt,name=moved,proto3" json:"moved,omitempty"` + Imported *StackChangeProgress_ResourceInstancePlannedChange_Imported `protobuf:"bytes,4,opt,name=imported,proto3" json:"imported,omitempty"` + ProviderAddr string `protobuf:"bytes,5,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange) Reset() { + *x = StackChangeProgress_ResourceInstancePlannedChange{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ResourceInstancePlannedChange) ProtoMessage() {} + +func (x *StackChangeProgress_ResourceInstancePlannedChange) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[80] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ResourceInstancePlannedChange.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ResourceInstancePlannedChange) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 2} +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange) GetAddr() *ResourceInstanceObjectInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange) GetActions() []ChangeType { + if x != nil { + return x.Actions + } + return nil +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange) GetMoved() *StackChangeProgress_ResourceInstancePlannedChange_Moved { + if x != nil { + return x.Moved + } + return nil +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange) GetImported() *StackChangeProgress_ResourceInstancePlannedChange_Imported { + if x != nil { + return x.Imported + } + return nil +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange) GetProviderAddr() string { + if x != nil { + return x.ProviderAddr + } + return "" +} + +// DeferredResourceInstancePlannedChange represents a planned change for a +// resource instance that is deferred due to the reason provided. +type StackChangeProgress_DeferredResourceInstancePlannedChange struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Deferred *Deferred `protobuf:"bytes,1,opt,name=deferred,proto3" json:"deferred,omitempty"` + Change *StackChangeProgress_ResourceInstancePlannedChange `protobuf:"bytes,2,opt,name=change,proto3" json:"change,omitempty"` +} + +func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) Reset() { + *x = StackChangeProgress_DeferredResourceInstancePlannedChange{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_DeferredResourceInstancePlannedChange) ProtoMessage() {} + +func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[81] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_DeferredResourceInstancePlannedChange.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_DeferredResourceInstancePlannedChange) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 3} +} + +func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) GetDeferred() *Deferred { + if x != nil { + return x.Deferred + } + return nil +} + +func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) GetChange() *StackChangeProgress_ResourceInstancePlannedChange { + if x != nil { + return x.Change + } + return nil +} + +// ProvisionerStatus represents the progress of a given provisioner during its +// resource instance's apply operation. +type StackChangeProgress_ProvisionerStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Status *StackChangeProgress_ProvisionerStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *StackChangeProgress_ProvisionerStatus) Reset() { + *x = StackChangeProgress_ProvisionerStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ProvisionerStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ProvisionerStatus) ProtoMessage() {} + +func (x *StackChangeProgress_ProvisionerStatus) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[82] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ProvisionerStatus.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ProvisionerStatus) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 4} +} + +func (x *StackChangeProgress_ProvisionerStatus) GetAddr() *ResourceInstanceObjectInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *StackChangeProgress_ProvisionerStatus) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *StackChangeProgress_ProvisionerStatus) GetStatus() *StackChangeProgress_ProvisionerStatus { + if x != nil { + return x.Status + } + return nil +} + +// ProvisionerOutput represents recorded output data emitted by a provisioner +// during a resource instance's apply operation. +type StackChangeProgress_ProvisionerOutput struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Output string `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` +} + +func (x *StackChangeProgress_ProvisionerOutput) Reset() { + *x = StackChangeProgress_ProvisionerOutput{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ProvisionerOutput) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ProvisionerOutput) ProtoMessage() {} + +func (x *StackChangeProgress_ProvisionerOutput) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[83] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ProvisionerOutput.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ProvisionerOutput) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 5} +} + +func (x *StackChangeProgress_ProvisionerOutput) GetAddr() *ResourceInstanceObjectInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *StackChangeProgress_ProvisionerOutput) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *StackChangeProgress_ProvisionerOutput) GetOutput() string { + if x != nil { + return x.Output + } + return "" +} + +// ComponentInstanceChanges represents a roll-up of change counts for a +// component instance plan or apply operation. +type StackChangeProgress_ComponentInstanceChanges struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Addr *ComponentInstanceInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` + // total is the sum of all of the other count fields. + // + // Clients should sum all of the other count fields they know about + // and compare to total. If the sum is less than total then the + // difference should be treated as an "other change types" category, + // for forward-compatibility when the Terraform Core RPC server is + // using a newer version of this protocol than the client. + Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + Add int32 `protobuf:"varint,3,opt,name=add,proto3" json:"add,omitempty"` + Change int32 `protobuf:"varint,4,opt,name=change,proto3" json:"change,omitempty"` + Import int32 `protobuf:"varint,5,opt,name=import,proto3" json:"import,omitempty"` + Remove int32 `protobuf:"varint,6,opt,name=remove,proto3" json:"remove,omitempty"` + Defer int32 `protobuf:"varint,7,opt,name=defer,proto3" json:"defer,omitempty"` + Move int32 `protobuf:"varint,8,opt,name=move,proto3" json:"move,omitempty"` + Forget int32 `protobuf:"varint,9,opt,name=forget,proto3" json:"forget,omitempty"` +} + +func (x *StackChangeProgress_ComponentInstanceChanges) Reset() { + *x = StackChangeProgress_ComponentInstanceChanges{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ComponentInstanceChanges) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ComponentInstanceChanges) ProtoMessage() {} + +func (x *StackChangeProgress_ComponentInstanceChanges) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[84] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ComponentInstanceChanges.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ComponentInstanceChanges) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 6} +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetAddr() *ComponentInstanceInStackAddr { + if x != nil { + return x.Addr + } + return nil +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetTotal() int32 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetAdd() int32 { + if x != nil { + return x.Add + } + return 0 +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetChange() int32 { + if x != nil { + return x.Change + } + return 0 +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetImport() int32 { + if x != nil { + return x.Import + } + return 0 +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetRemove() int32 { + if x != nil { + return x.Remove + } + return 0 +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetDefer() int32 { + if x != nil { + return x.Defer + } + return 0 +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetMove() int32 { + if x != nil { + return x.Move + } + return 0 +} + +func (x *StackChangeProgress_ComponentInstanceChanges) GetForget() int32 { + if x != nil { + return x.Forget + } + return 0 +} + +// ComponentInstances represents the result of expanding a component into zero +// or more instances. +type StackChangeProgress_ComponentInstances struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ComponentAddr string `protobuf:"bytes,1,opt,name=component_addr,json=componentAddr,proto3" json:"component_addr,omitempty"` + InstanceAddrs []string `protobuf:"bytes,2,rep,name=instance_addrs,json=instanceAddrs,proto3" json:"instance_addrs,omitempty"` +} + +func (x *StackChangeProgress_ComponentInstances) Reset() { + *x = StackChangeProgress_ComponentInstances{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ComponentInstances) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ComponentInstances) ProtoMessage() {} + +func (x *StackChangeProgress_ComponentInstances) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[85] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ComponentInstances.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ComponentInstances) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 7} +} + +func (x *StackChangeProgress_ComponentInstances) GetComponentAddr() string { + if x != nil { + return x.ComponentAddr + } + return "" +} + +func (x *StackChangeProgress_ComponentInstances) GetInstanceAddrs() []string { + if x != nil { + return x.InstanceAddrs + } + return nil +} + +type StackChangeProgress_ResourceInstancePlannedChange_Moved struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PrevAddr *ResourceInstanceInStackAddr `protobuf:"bytes,1,opt,name=prev_addr,json=prevAddr,proto3" json:"prev_addr,omitempty"` +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Moved) Reset() { + *x = StackChangeProgress_ResourceInstancePlannedChange_Moved{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Moved) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ResourceInstancePlannedChange_Moved) ProtoMessage() {} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Moved) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[86] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ResourceInstancePlannedChange_Moved.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ResourceInstancePlannedChange_Moved) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 2, 0} +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Moved) GetPrevAddr() *ResourceInstanceInStackAddr { + if x != nil { + return x.PrevAddr + } + return nil +} + +type StackChangeProgress_ResourceInstancePlannedChange_Imported struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ImportId string `protobuf:"bytes,1,opt,name=import_id,json=importId,proto3" json:"import_id,omitempty"` + Unknown bool `protobuf:"varint,2,opt,name=unknown,proto3" json:"unknown,omitempty"` +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) Reset() { + *x = StackChangeProgress_ResourceInstancePlannedChange_Imported{} + if protoimpl.UnsafeEnabled { + mi := &file_stacks_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StackChangeProgress_ResourceInstancePlannedChange_Imported) ProtoMessage() {} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) ProtoReflect() protoreflect.Message { + mi := &file_stacks_proto_msgTypes[87] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StackChangeProgress_ResourceInstancePlannedChange_Imported.ProtoReflect.Descriptor instead. +func (*StackChangeProgress_ResourceInstancePlannedChange_Imported) Descriptor() ([]byte, []int) { + return file_stacks_proto_rawDescGZIP(), []int{22, 2, 1} +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) GetImportId() string { + if x != nil { + return x.ImportId + } + return "" +} + +func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) GetUnknown() bool { + if x != nil { + return x.Unknown + } + return false +} + +var File_stacks_proto protoreflect.FileDescriptor + +var file_stacks_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, + 0x02, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x7d, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x74, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x60, + 0x0a, 0x17, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x8a, 0x02, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, + 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, + 0xa5, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, + 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x64, + 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, + 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, + 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, + 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, + 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x44, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, + 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xc8, 0x0e, + 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x1a, 0x39, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, + 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x63, 0x0a, + 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x06, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x1a, 0x81, 0x08, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x6f, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x7c, 0x0a, 0x0f, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x5f, + 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x6d, + 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x0e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x12, 0x7c, 0x0a, 0x0f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, + 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x53, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, + 0x76, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x51, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x7c, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x53, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x84, 0x01, 0x0a, 0x13, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, + 0x65, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x57, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x84, 0x01, 0x0a, + 0x13, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x57, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, + 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, + 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x80, 0x01, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x55, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xe6, 0x01, 0x0a, 0x0d, 0x45, 0x6d, 0x62, 0x65, 0x64, + 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x5b, 0x0a, 0x09, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3d, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x09, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, + 0xb0, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, + 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x5b, + 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x3d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x41, 0x64, + 0x64, 0x72, 0x1a, 0x67, 0x0a, 0x0d, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, + 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, + 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x09, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x1a, 0x49, 0x0a, 0x0b, 0x4f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, + 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, + 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x70, 0x68, 0x65, + 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x70, 0x68, + 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x22, 0x30, 0x0a, 0x09, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x00, 0x12, + 0x09, 0x0a, 0x05, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4f, + 0x52, 0x5f, 0x45, 0x41, 0x43, 0x48, 0x10, 0x02, 0x22, 0x8c, 0x01, 0x0a, 0x0e, 0x4f, 0x70, 0x65, + 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x4b, 0x0a, 0x0b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x3c, 0x0a, 0x03, 0x72, 0x61, + 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, + 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x52, 0x03, 0x72, 0x61, 0x77, 0x1a, 0x2d, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x4b, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x73, 0x65, + 0x53, 0x74, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x2c, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x68, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x07, 0x0a, 0x10, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, + 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x1a, 0xa2, 0x05, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, + 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, + 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12, + 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, + 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, + 0x32, 0x0a, 0x15, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, + 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x12, 0x69, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, + 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x36, + 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, + 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, + 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, + 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x5f, 0x0a, 0x0c, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, + 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x56, 0x0a, 0x12, 0x50, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x69, 0x0a, 0x10, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xe1, + 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x0e, 0x70, 0x6c, 0x61, 0x6e, + 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, + 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x48, + 0x00, 0x52, 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x44, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x03, + 0x10, 0x0a, 0x22, 0x73, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, + 0x6c, 0x61, 0x6e, 0x1a, 0x35, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, + 0x65, 0x6d, 0x12, 0x26, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x03, 0x72, 0x61, 0x77, 0x1a, 0x2b, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x68, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x6c, 0x61, + 0x6e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x48, 0x0a, 0x0e, 0x43, 0x6c, 0x6f, 0x73, 0x65, + 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, 0x6c, 0x61, 0x6e, 0x1a, 0x2a, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x68, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x6e, 0x48, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x86, 0x06, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x1a, 0x92, 0x04, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x14, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, + 0x6e, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, + 0x70, 0x6c, 0x61, 0x6e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x70, 0x6c, + 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, 0x70, + 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x36, 0x0a, + 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, + 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x60, 0x0a, 0x0c, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x3d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, + 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x69, 0x0a, 0x10, 0x49, + 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x1a, 0xdb, 0x01, 0x0a, + 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, + 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x48, 0x00, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x48, 0x00, 0x52, + 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x44, 0x0a, 0x08, 0x70, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0xa6, 0x05, 0x0a, 0x12, 0x4f, + 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x1a, 0x93, 0x04, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, + 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, + 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x4e, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x36, 0x0a, + 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, + 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, + 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, + 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x61, 0x0a, 0x0c, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x3e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, + 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, + 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x4e, 0x0a, 0x0a, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, + 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x69, 0x0a, 0x10, + 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x7a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x73, + 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x14, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, + 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x22, 0xa0, 0x02, 0x0a, 0x17, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x45, + 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x1a, + 0x85, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x68, + 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c, + 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, + 0x73, 0x72, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x72, 0x63, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x7d, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x38, 0x0a, 0x0b, + 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, + 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, + 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x68, 0x0a, 0x0c, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, + 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, + 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, + 0x12, 0x3e, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, + 0x22, 0x7a, 0x0a, 0x12, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x31, 0x0a, 0x03, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x6f, 0x6c, 0x64, 0x12, 0x31, 0x0a, 0x03, 0x6e, 0x65, 0x77, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x6e, 0x65, 0x77, 0x22, 0x8b, 0x01, 0x0a, + 0x16, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, 0x69, 0x74, + 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3a, + 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0b, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x22, 0xe4, 0x01, 0x0a, 0x0d, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x3b, 0x0a, 0x05, + 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x2e, 0x53, 0x74, + 0x65, 0x70, 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x1a, 0x95, 0x01, 0x0a, 0x04, 0x53, 0x74, + 0x65, 0x70, 0x12, 0x27, 0x0a, 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x65, + 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x65, 0x6c, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a, 0x0f, 0x65, + 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, + 0x65, 0x79, 0x49, 0x6e, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x22, 0x7d, 0x0a, 0x1c, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, + 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, + 0x22, 0x8b, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, + 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x22, 0xb2, + 0x01, 0x0a, 0x21, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x41, 0x64, 0x64, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x34, 0x0a, 0x16, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, + 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x65, 0x64, 0x5f, 0x6b, 0x65, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x65, 0x64, + 0x4b, 0x65, 0x79, 0x22, 0x8a, 0x14, 0x0a, 0x0d, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x26, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12, 0x56, 0x0a, + 0x0c, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x85, 0x05, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x72, 0x0a, 0x1a, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x18, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x12, + 0x6f, 0x0a, 0x19, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x17, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, + 0x12, 0x60, 0x0a, 0x14, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x12, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, + 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x79, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x6c, + 0x61, 0x6e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x79, 0x0a, 0x1a, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x5f, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x39, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x48, 0x00, 0x52, 0x18, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x65, + 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x76, 0x0a, 0x19, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, + 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x41, + 0x70, 0x70, 0x6c, 0x79, 0x48, 0x00, 0x52, 0x16, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x54, 0x69, 0x6d, + 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0d, + 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xb6, 0x01, + 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, + 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x37, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x43, 0x6f, + 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x1a, 0xaf, 0x09, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x61, + 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, + 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x37, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, + 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x4d, 0x0a, + 0x05, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, + 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x52, 0x05, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x56, 0x0a, 0x08, + 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x08, 0x69, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0c, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x41, 0x64, 0x64, 0x72, 0x12, 0x4d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, + 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x10, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x75, 0x6e, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x6e, 0x6f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x73, 0x69, 0x64, 0x65, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x14, 0x6e, 0x6f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x4f, 0x75, 0x74, 0x73, 0x69, 0x64, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x72, 0x65, 0x70, + 0x6c, 0x61, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, + 0x74, 0x68, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x73, + 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x05, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x1a, 0x58, 0x0a, 0x05, 0x49, 0x6e, + 0x64, 0x65, 0x78, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, + 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x6e, 0x6b, + 0x6e, 0x6f, 0x77, 0x6e, 0x1a, 0x54, 0x0a, 0x05, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x4b, 0x0a, + 0x09, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, + 0x52, 0x08, 0x70, 0x72, 0x65, 0x76, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x6c, 0x0a, 0x08, 0x49, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x70, 0x6f, 0x72, + 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x29, 0x0a, + 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x99, 0x01, 0x0a, 0x0b, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1d, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, + 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x1a, 0xb3, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, + 0x64, 0x12, 0x5e, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, + 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x1a, 0x2e, 0x0a, 0x18, 0x49, 0x6e, + 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x69, 0x6e, + 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x07, + 0x22, 0xdc, 0x01, 0x0a, 0x08, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x3a, 0x0a, + 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x06, 0x52, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, + 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x43, 0x4f, + 0x55, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, + 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, + 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, + 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x42, 0x53, 0x45, 0x4e, + 0x54, 0x5f, 0x50, 0x52, 0x45, 0x52, 0x45, 0x51, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x45, + 0x46, 0x45, 0x52, 0x52, 0x45, 0x44, 0x5f, 0x50, 0x52, 0x45, 0x52, 0x45, 0x51, 0x10, 0x05, 0x22, + 0xc8, 0x0b, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x12, 0x3c, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12, + 0x56, 0x0a, 0x0c, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, + 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x49, 0x0a, 0x09, 0x52, 0x61, 0x77, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x1a, 0xe0, 0x03, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x44, 0x0a, 0x07, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4e, 0x6f, + 0x74, 0x68, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, + 0x12, 0x40, 0x0a, 0x05, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x28, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, + 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x2e, 0x4e, 0x6f, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x05, 0x6d, 0x6f, 0x76, + 0x65, 0x64, 0x12, 0x60, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x48, 0x00, 0x52, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x12, 0x51, 0x0a, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, + 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x63, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x0d, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x08, 0x08, 0xa0, 0x9c, + 0x01, 0x10, 0xa1, 0x9c, 0x01, 0x1a, 0xc4, 0x02, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x61, 0x64, + 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, + 0x61, 0x64, 0x64, 0x72, 0x12, 0x3c, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, + 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, + 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x69, 0x6d, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x69, 0x6d, 0x1a, 0xbf, 0x02, 0x0a, + 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, + 0x72, 0x12, 0x69, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, + 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x60, 0x0a, 0x11, + 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x5f, + 0x0a, 0x0b, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, + 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x22, 0xbf, 0x19, 0x0a, 0x13, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x7c, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x43, 0x6f, + 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x79, 0x0a, 0x18, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, + 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x48, 0x00, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x20, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, + 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x1d, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x69, 0x0a, + 0x12, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, + 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x69, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x48, 0x00, + 0x52, 0x11, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x12, 0x7f, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, + 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x48, 0x00, 0x52, 0x18, 0x63, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x73, 0x12, 0x6c, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x39, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, + 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x48, 0x00, 0x52, 0x12, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x73, 0x12, 0xa8, 0x01, 0x0a, 0x29, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x44, + 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x25, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xb2, 0x02, + 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x43, 0x0a, 0x04, 0x61, 0x64, 0x64, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, + 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x5d, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x45, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, + 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x73, 0x0a, + 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, + 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x4c, 0x41, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, + 0x0b, 0x0a, 0x07, 0x50, 0x4c, 0x41, 0x4e, 0x4e, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, + 0x41, 0x50, 0x50, 0x4c, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x50, + 0x50, 0x4c, 0x49, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x45, 0x44, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x46, 0x45, 0x52, 0x52, 0x45, 0x44, + 0x10, 0x07, 0x1a, 0xec, 0x02, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x48, 0x0a, + 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, + 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x5c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x44, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x22, 0x84, 0x01, 0x0a, 0x06, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, + 0x0e, 0x0a, 0x0a, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, + 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0c, + 0x0a, 0x08, 0x50, 0x4c, 0x41, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, + 0x50, 0x4c, 0x41, 0x4e, 0x4e, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, + 0x4c, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x50, 0x50, 0x4c, 0x49, + 0x45, 0x44, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x45, 0x44, 0x10, + 0x08, 0x1a, 0xad, 0x04, 0x0a, 0x1d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, + 0x6e, 0x67, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, + 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x37, 0x0a, + 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1d, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x60, 0x0a, 0x05, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, + 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x76, 0x65, + 0x64, 0x52, 0x05, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x69, 0x0a, 0x08, 0x69, 0x6d, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4d, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x08, 0x69, 0x6d, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x54, 0x0a, 0x05, 0x4d, 0x6f, 0x76, 0x65, + 0x64, 0x12, 0x4b, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x41, 0x64, 0x64, 0x72, 0x52, 0x08, 0x70, 0x72, 0x65, 0x76, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x41, + 0x0a, 0x08, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, + 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, + 0x77, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, + 0x6e, 0x1a, 0xbe, 0x01, 0x0a, 0x25, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, + 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, + 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, + 0x72, 0x72, 0x65, 0x64, 0x12, 0x5c, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, + 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x1a, 0x8a, 0x02, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x48, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, + 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, + 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, 0x47, 0x10, + 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x45, 0x44, + 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x45, 0x44, 0x10, 0x03, 0x1a, + 0x89, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x4f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, + 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x1a, 0x91, 0x02, 0x0a, 0x18, + 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, + 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, + 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x03, 0x61, 0x64, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x69, + 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x64, 0x65, 0x66, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x64, 0x65, + 0x66, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x76, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x67, 0x65, + 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x67, 0x65, 0x74, 0x1a, + 0x62, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, + 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x25, 0x0a, 0x0e, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x73, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, + 0x64, 0x72, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2a, 0x32, 0x0a, 0x0c, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x41, 0x4e, + 0x41, 0x47, 0x45, 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x02, + 0x2a, 0x35, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0a, 0x0a, 0x06, + 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x45, 0x46, 0x52, + 0x45, 0x53, 0x48, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, + 0x53, 0x54, 0x52, 0x4f, 0x59, 0x10, 0x02, 0x2a, 0x50, 0x0a, 0x0a, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4f, 0x50, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x52, 0x45, 0x41, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x45, + 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, + 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x04, 0x12, 0x0a, 0x0a, + 0x06, 0x46, 0x4f, 0x52, 0x47, 0x45, 0x54, 0x10, 0x05, 0x32, 0xb1, 0x0b, 0x0a, 0x06, 0x53, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x12, 0x7f, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, + 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, + 0x6b, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x17, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8b, 0x01, 0x0a, 0x1a, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x36, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, + 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9d, 0x01, 0x0a, 0x20, 0x46, 0x69, 0x6e, + 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, + 0x74, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x2d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, + 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x49, 0x74, 0x65, 0x6d, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, + 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x28, 0x01, 0x12, 0x65, 0x0a, 0x0a, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, + 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, + 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x10, 0x50, 0x6c, 0x61, + 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x2b, 0x2e, + 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x50, + 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x30, 0x01, 0x12, 0x65, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x6e, 0x50, + 0x6c, 0x61, 0x6e, 0x12, 0x2c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, + 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, + 0x6b, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, + 0x6d, 0x1a, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, + 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, + 0x6c, 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x12, 0x62, + 0x0a, 0x09, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x29, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, + 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, + 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, + 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, + 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, + 0x79, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, + 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, + 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x30, 0x01, 0x12, 0x73, 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, + 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x2d, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x4f, 0x70, + 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x4f, 0x70, 0x65, + 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x17, 0x49, 0x6e, 0x73, + 0x70, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x12, 0x32, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, + 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, + 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x2e, 0x49, 0x6e, 0x73, + 0x70, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_stacks_proto_rawDescOnce sync.Once + file_stacks_proto_rawDescData = file_stacks_proto_rawDesc +) + +func file_stacks_proto_rawDescGZIP() []byte { + file_stacks_proto_rawDescOnce.Do(func() { + file_stacks_proto_rawDescData = protoimpl.X.CompressGZIP(file_stacks_proto_rawDescData) + }) + return file_stacks_proto_rawDescData +} + +var file_stacks_proto_enumTypes = make([]protoimpl.EnumInfo, 8) +var file_stacks_proto_msgTypes = make([]protoimpl.MessageInfo, 88) +var file_stacks_proto_goTypes = []interface{}{ + (ResourceMode)(0), // 0: terraform1.stacks.ResourceMode + (PlanMode)(0), // 1: terraform1.stacks.PlanMode + (ChangeType)(0), // 2: terraform1.stacks.ChangeType + (FindStackConfigurationComponents_Instances)(0), // 3: terraform1.stacks.FindStackConfigurationComponents.Instances + (Deferred_Reason)(0), // 4: terraform1.stacks.Deferred.Reason + (StackChangeProgress_ComponentInstanceStatus_Status)(0), // 5: terraform1.stacks.StackChangeProgress.ComponentInstanceStatus.Status + (StackChangeProgress_ResourceInstanceStatus_Status)(0), // 6: terraform1.stacks.StackChangeProgress.ResourceInstanceStatus.Status + (StackChangeProgress_ProvisionerStatus_Status)(0), // 7: terraform1.stacks.StackChangeProgress.ProvisionerStatus.Status + (*OpenStackConfiguration)(nil), // 8: terraform1.stacks.OpenStackConfiguration + (*CloseStackConfiguration)(nil), // 9: terraform1.stacks.CloseStackConfiguration + (*ValidateStackConfiguration)(nil), // 10: terraform1.stacks.ValidateStackConfiguration + (*FindStackConfigurationComponents)(nil), // 11: terraform1.stacks.FindStackConfigurationComponents + (*OpenStackState)(nil), // 12: terraform1.stacks.OpenStackState + (*CloseStackState)(nil), // 13: terraform1.stacks.CloseStackState + (*PlanStackChanges)(nil), // 14: terraform1.stacks.PlanStackChanges + (*OpenStackPlan)(nil), // 15: terraform1.stacks.OpenStackPlan + (*CloseStackPlan)(nil), // 16: terraform1.stacks.CloseStackPlan + (*ApplyStackChanges)(nil), // 17: terraform1.stacks.ApplyStackChanges + (*OpenStackInspector)(nil), // 18: terraform1.stacks.OpenStackInspector + (*InspectExpressionResult)(nil), // 19: terraform1.stacks.InspectExpressionResult + (*DynamicValue)(nil), // 20: terraform1.stacks.DynamicValue + (*DynamicValueChange)(nil), // 21: terraform1.stacks.DynamicValueChange + (*DynamicValueWithSource)(nil), // 22: terraform1.stacks.DynamicValueWithSource + (*AttributePath)(nil), // 23: terraform1.stacks.AttributePath + (*ComponentInstanceInStackAddr)(nil), // 24: terraform1.stacks.ComponentInstanceInStackAddr + (*ResourceInstanceInStackAddr)(nil), // 25: terraform1.stacks.ResourceInstanceInStackAddr + (*ResourceInstanceObjectInStackAddr)(nil), // 26: terraform1.stacks.ResourceInstanceObjectInStackAddr + (*PlannedChange)(nil), // 27: terraform1.stacks.PlannedChange + (*Deferred)(nil), // 28: terraform1.stacks.Deferred + (*AppliedChange)(nil), // 29: terraform1.stacks.AppliedChange + (*StackChangeProgress)(nil), // 30: terraform1.stacks.StackChangeProgress + (*OpenStackConfiguration_Request)(nil), // 31: terraform1.stacks.OpenStackConfiguration.Request + (*OpenStackConfiguration_Response)(nil), // 32: terraform1.stacks.OpenStackConfiguration.Response + (*CloseStackConfiguration_Request)(nil), // 33: terraform1.stacks.CloseStackConfiguration.Request + (*CloseStackConfiguration_Response)(nil), // 34: terraform1.stacks.CloseStackConfiguration.Response + (*ValidateStackConfiguration_Request)(nil), // 35: terraform1.stacks.ValidateStackConfiguration.Request + (*ValidateStackConfiguration_Response)(nil), // 36: terraform1.stacks.ValidateStackConfiguration.Response + (*FindStackConfigurationComponents_Request)(nil), // 37: terraform1.stacks.FindStackConfigurationComponents.Request + (*FindStackConfigurationComponents_Response)(nil), // 38: terraform1.stacks.FindStackConfigurationComponents.Response + (*FindStackConfigurationComponents_StackConfig)(nil), // 39: terraform1.stacks.FindStackConfigurationComponents.StackConfig + (*FindStackConfigurationComponents_EmbeddedStack)(nil), // 40: terraform1.stacks.FindStackConfigurationComponents.EmbeddedStack + (*FindStackConfigurationComponents_Component)(nil), // 41: terraform1.stacks.FindStackConfigurationComponents.Component + (*FindStackConfigurationComponents_InputVariable)(nil), // 42: terraform1.stacks.FindStackConfigurationComponents.InputVariable + (*FindStackConfigurationComponents_OutputValue)(nil), // 43: terraform1.stacks.FindStackConfigurationComponents.OutputValue + nil, // 44: terraform1.stacks.FindStackConfigurationComponents.StackConfig.ComponentsEntry + nil, // 45: terraform1.stacks.FindStackConfigurationComponents.StackConfig.EmbeddedStacksEntry + nil, // 46: terraform1.stacks.FindStackConfigurationComponents.StackConfig.InputVariablesEntry + nil, // 47: terraform1.stacks.FindStackConfigurationComponents.StackConfig.OutputValuesEntry + (*OpenStackState_RequestItem)(nil), // 48: terraform1.stacks.OpenStackState.RequestItem + (*OpenStackState_Response)(nil), // 49: terraform1.stacks.OpenStackState.Response + (*CloseStackState_Request)(nil), // 50: terraform1.stacks.CloseStackState.Request + (*CloseStackState_Response)(nil), // 51: terraform1.stacks.CloseStackState.Response + (*PlanStackChanges_Request)(nil), // 52: terraform1.stacks.PlanStackChanges.Request + (*PlanStackChanges_Event)(nil), // 53: terraform1.stacks.PlanStackChanges.Event + nil, // 54: terraform1.stacks.PlanStackChanges.Request.PreviousStateEntry + nil, // 55: terraform1.stacks.PlanStackChanges.Request.InputValuesEntry + (*OpenStackPlan_RequestItem)(nil), // 56: terraform1.stacks.OpenStackPlan.RequestItem + (*OpenStackPlan_Response)(nil), // 57: terraform1.stacks.OpenStackPlan.Response + (*CloseStackPlan_Request)(nil), // 58: terraform1.stacks.CloseStackPlan.Request + (*CloseStackPlan_Response)(nil), // 59: terraform1.stacks.CloseStackPlan.Response + (*ApplyStackChanges_Request)(nil), // 60: terraform1.stacks.ApplyStackChanges.Request + (*ApplyStackChanges_Event)(nil), // 61: terraform1.stacks.ApplyStackChanges.Event + nil, // 62: terraform1.stacks.ApplyStackChanges.Request.InputValuesEntry + (*OpenStackInspector_Request)(nil), // 63: terraform1.stacks.OpenStackInspector.Request + (*OpenStackInspector_Response)(nil), // 64: terraform1.stacks.OpenStackInspector.Response + nil, // 65: terraform1.stacks.OpenStackInspector.Request.StateEntry + nil, // 66: terraform1.stacks.OpenStackInspector.Request.InputValuesEntry + (*InspectExpressionResult_Request)(nil), // 67: terraform1.stacks.InspectExpressionResult.Request + (*InspectExpressionResult_Response)(nil), // 68: terraform1.stacks.InspectExpressionResult.Response + (*AttributePath_Step)(nil), // 69: terraform1.stacks.AttributePath.Step + (*PlannedChange_ChangeDescription)(nil), // 70: terraform1.stacks.PlannedChange.ChangeDescription + (*PlannedChange_ComponentInstance)(nil), // 71: terraform1.stacks.PlannedChange.ComponentInstance + (*PlannedChange_ResourceInstance)(nil), // 72: terraform1.stacks.PlannedChange.ResourceInstance + (*PlannedChange_OutputValue)(nil), // 73: terraform1.stacks.PlannedChange.OutputValue + (*PlannedChange_ResourceInstanceDeferred)(nil), // 74: terraform1.stacks.PlannedChange.ResourceInstanceDeferred + (*PlannedChange_InputVariableDuringApply)(nil), // 75: terraform1.stacks.PlannedChange.InputVariableDuringApply + (*PlannedChange_ResourceInstance_Index)(nil), // 76: terraform1.stacks.PlannedChange.ResourceInstance.Index + (*PlannedChange_ResourceInstance_Moved)(nil), // 77: terraform1.stacks.PlannedChange.ResourceInstance.Moved + (*PlannedChange_ResourceInstance_Imported)(nil), // 78: terraform1.stacks.PlannedChange.ResourceInstance.Imported + (*AppliedChange_RawChange)(nil), // 79: terraform1.stacks.AppliedChange.RawChange + (*AppliedChange_ChangeDescription)(nil), // 80: terraform1.stacks.AppliedChange.ChangeDescription + (*AppliedChange_ResourceInstance)(nil), // 81: terraform1.stacks.AppliedChange.ResourceInstance + (*AppliedChange_ComponentInstance)(nil), // 82: terraform1.stacks.AppliedChange.ComponentInstance + (*AppliedChange_OutputValue)(nil), // 83: terraform1.stacks.AppliedChange.OutputValue + (*AppliedChange_Nothing)(nil), // 84: terraform1.stacks.AppliedChange.Nothing + nil, // 85: terraform1.stacks.AppliedChange.ComponentInstance.OutputValuesEntry + (*StackChangeProgress_ComponentInstanceStatus)(nil), // 86: terraform1.stacks.StackChangeProgress.ComponentInstanceStatus + (*StackChangeProgress_ResourceInstanceStatus)(nil), // 87: terraform1.stacks.StackChangeProgress.ResourceInstanceStatus + (*StackChangeProgress_ResourceInstancePlannedChange)(nil), // 88: terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange + (*StackChangeProgress_DeferredResourceInstancePlannedChange)(nil), // 89: terraform1.stacks.StackChangeProgress.DeferredResourceInstancePlannedChange + (*StackChangeProgress_ProvisionerStatus)(nil), // 90: terraform1.stacks.StackChangeProgress.ProvisionerStatus + (*StackChangeProgress_ProvisionerOutput)(nil), // 91: terraform1.stacks.StackChangeProgress.ProvisionerOutput + (*StackChangeProgress_ComponentInstanceChanges)(nil), // 92: terraform1.stacks.StackChangeProgress.ComponentInstanceChanges + (*StackChangeProgress_ComponentInstances)(nil), // 93: terraform1.stacks.StackChangeProgress.ComponentInstances + (*StackChangeProgress_ResourceInstancePlannedChange_Moved)(nil), // 94: terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.Moved + (*StackChangeProgress_ResourceInstancePlannedChange_Imported)(nil), // 95: terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.Imported + (*terraform1.SourceRange)(nil), // 96: terraform1.SourceRange + (*anypb.Any)(nil), // 97: google.protobuf.Any + (*terraform1.SourceAddress)(nil), // 98: terraform1.SourceAddress + (*terraform1.Diagnostic)(nil), // 99: terraform1.Diagnostic +} +var file_stacks_proto_depIdxs = []int32{ + 23, // 0: terraform1.stacks.DynamicValue.sensitive:type_name -> terraform1.stacks.AttributePath + 20, // 1: terraform1.stacks.DynamicValueChange.old:type_name -> terraform1.stacks.DynamicValue + 20, // 2: terraform1.stacks.DynamicValueChange.new:type_name -> terraform1.stacks.DynamicValue + 20, // 3: terraform1.stacks.DynamicValueWithSource.value:type_name -> terraform1.stacks.DynamicValue + 96, // 4: terraform1.stacks.DynamicValueWithSource.source_range:type_name -> terraform1.SourceRange + 69, // 5: terraform1.stacks.AttributePath.steps:type_name -> terraform1.stacks.AttributePath.Step + 97, // 6: terraform1.stacks.PlannedChange.raw:type_name -> google.protobuf.Any + 70, // 7: terraform1.stacks.PlannedChange.descriptions:type_name -> terraform1.stacks.PlannedChange.ChangeDescription + 4, // 8: terraform1.stacks.Deferred.reason:type_name -> terraform1.stacks.Deferred.Reason + 79, // 9: terraform1.stacks.AppliedChange.raw:type_name -> terraform1.stacks.AppliedChange.RawChange + 80, // 10: terraform1.stacks.AppliedChange.descriptions:type_name -> terraform1.stacks.AppliedChange.ChangeDescription + 86, // 11: terraform1.stacks.StackChangeProgress.component_instance_status:type_name -> terraform1.stacks.StackChangeProgress.ComponentInstanceStatus + 87, // 12: terraform1.stacks.StackChangeProgress.resource_instance_status:type_name -> terraform1.stacks.StackChangeProgress.ResourceInstanceStatus + 88, // 13: terraform1.stacks.StackChangeProgress.resource_instance_planned_change:type_name -> terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange + 90, // 14: terraform1.stacks.StackChangeProgress.provisioner_status:type_name -> terraform1.stacks.StackChangeProgress.ProvisionerStatus + 91, // 15: terraform1.stacks.StackChangeProgress.provisioner_output:type_name -> terraform1.stacks.StackChangeProgress.ProvisionerOutput + 92, // 16: terraform1.stacks.StackChangeProgress.component_instance_changes:type_name -> terraform1.stacks.StackChangeProgress.ComponentInstanceChanges + 93, // 17: terraform1.stacks.StackChangeProgress.component_instances:type_name -> terraform1.stacks.StackChangeProgress.ComponentInstances + 89, // 18: terraform1.stacks.StackChangeProgress.deferred_resource_instance_planned_change:type_name -> terraform1.stacks.StackChangeProgress.DeferredResourceInstancePlannedChange + 98, // 19: terraform1.stacks.OpenStackConfiguration.Request.source_address:type_name -> terraform1.SourceAddress + 99, // 20: terraform1.stacks.OpenStackConfiguration.Response.diagnostics:type_name -> terraform1.Diagnostic + 99, // 21: terraform1.stacks.ValidateStackConfiguration.Response.diagnostics:type_name -> terraform1.Diagnostic + 39, // 22: terraform1.stacks.FindStackConfigurationComponents.Response.config:type_name -> terraform1.stacks.FindStackConfigurationComponents.StackConfig + 44, // 23: terraform1.stacks.FindStackConfigurationComponents.StackConfig.components:type_name -> terraform1.stacks.FindStackConfigurationComponents.StackConfig.ComponentsEntry + 45, // 24: terraform1.stacks.FindStackConfigurationComponents.StackConfig.embedded_stacks:type_name -> terraform1.stacks.FindStackConfigurationComponents.StackConfig.EmbeddedStacksEntry + 46, // 25: terraform1.stacks.FindStackConfigurationComponents.StackConfig.input_variables:type_name -> terraform1.stacks.FindStackConfigurationComponents.StackConfig.InputVariablesEntry + 47, // 26: terraform1.stacks.FindStackConfigurationComponents.StackConfig.output_values:type_name -> terraform1.stacks.FindStackConfigurationComponents.StackConfig.OutputValuesEntry + 3, // 27: terraform1.stacks.FindStackConfigurationComponents.EmbeddedStack.instances:type_name -> terraform1.stacks.FindStackConfigurationComponents.Instances + 39, // 28: terraform1.stacks.FindStackConfigurationComponents.EmbeddedStack.config:type_name -> terraform1.stacks.FindStackConfigurationComponents.StackConfig + 3, // 29: terraform1.stacks.FindStackConfigurationComponents.Component.instances:type_name -> terraform1.stacks.FindStackConfigurationComponents.Instances + 41, // 30: terraform1.stacks.FindStackConfigurationComponents.StackConfig.ComponentsEntry.value:type_name -> terraform1.stacks.FindStackConfigurationComponents.Component + 40, // 31: terraform1.stacks.FindStackConfigurationComponents.StackConfig.EmbeddedStacksEntry.value:type_name -> terraform1.stacks.FindStackConfigurationComponents.EmbeddedStack + 42, // 32: terraform1.stacks.FindStackConfigurationComponents.StackConfig.InputVariablesEntry.value:type_name -> terraform1.stacks.FindStackConfigurationComponents.InputVariable + 43, // 33: terraform1.stacks.FindStackConfigurationComponents.StackConfig.OutputValuesEntry.value:type_name -> terraform1.stacks.FindStackConfigurationComponents.OutputValue + 79, // 34: terraform1.stacks.OpenStackState.RequestItem.raw:type_name -> terraform1.stacks.AppliedChange.RawChange + 1, // 35: terraform1.stacks.PlanStackChanges.Request.plan_mode:type_name -> terraform1.stacks.PlanMode + 54, // 36: terraform1.stacks.PlanStackChanges.Request.previous_state:type_name -> terraform1.stacks.PlanStackChanges.Request.PreviousStateEntry + 55, // 37: terraform1.stacks.PlanStackChanges.Request.input_values:type_name -> terraform1.stacks.PlanStackChanges.Request.InputValuesEntry + 27, // 38: terraform1.stacks.PlanStackChanges.Event.planned_change:type_name -> terraform1.stacks.PlannedChange + 99, // 39: terraform1.stacks.PlanStackChanges.Event.diagnostic:type_name -> terraform1.Diagnostic + 30, // 40: terraform1.stacks.PlanStackChanges.Event.progress:type_name -> terraform1.stacks.StackChangeProgress + 97, // 41: terraform1.stacks.PlanStackChanges.Request.PreviousStateEntry.value:type_name -> google.protobuf.Any + 22, // 42: terraform1.stacks.PlanStackChanges.Request.InputValuesEntry.value:type_name -> terraform1.stacks.DynamicValueWithSource + 97, // 43: terraform1.stacks.OpenStackPlan.RequestItem.raw:type_name -> google.protobuf.Any + 97, // 44: terraform1.stacks.ApplyStackChanges.Request.planned_changes:type_name -> google.protobuf.Any + 62, // 45: terraform1.stacks.ApplyStackChanges.Request.input_values:type_name -> terraform1.stacks.ApplyStackChanges.Request.InputValuesEntry + 29, // 46: terraform1.stacks.ApplyStackChanges.Event.applied_change:type_name -> terraform1.stacks.AppliedChange + 99, // 47: terraform1.stacks.ApplyStackChanges.Event.diagnostic:type_name -> terraform1.Diagnostic + 30, // 48: terraform1.stacks.ApplyStackChanges.Event.progress:type_name -> terraform1.stacks.StackChangeProgress + 22, // 49: terraform1.stacks.ApplyStackChanges.Request.InputValuesEntry.value:type_name -> terraform1.stacks.DynamicValueWithSource + 65, // 50: terraform1.stacks.OpenStackInspector.Request.state:type_name -> terraform1.stacks.OpenStackInspector.Request.StateEntry + 66, // 51: terraform1.stacks.OpenStackInspector.Request.input_values:type_name -> terraform1.stacks.OpenStackInspector.Request.InputValuesEntry + 99, // 52: terraform1.stacks.OpenStackInspector.Response.diagnostics:type_name -> terraform1.Diagnostic + 97, // 53: terraform1.stacks.OpenStackInspector.Request.StateEntry.value:type_name -> google.protobuf.Any + 22, // 54: terraform1.stacks.OpenStackInspector.Request.InputValuesEntry.value:type_name -> terraform1.stacks.DynamicValueWithSource + 20, // 55: terraform1.stacks.InspectExpressionResult.Response.result:type_name -> terraform1.stacks.DynamicValue + 99, // 56: terraform1.stacks.InspectExpressionResult.Response.diagnostics:type_name -> terraform1.Diagnostic + 71, // 57: terraform1.stacks.PlannedChange.ChangeDescription.component_instance_planned:type_name -> terraform1.stacks.PlannedChange.ComponentInstance + 72, // 58: terraform1.stacks.PlannedChange.ChangeDescription.resource_instance_planned:type_name -> terraform1.stacks.PlannedChange.ResourceInstance + 73, // 59: terraform1.stacks.PlannedChange.ChangeDescription.output_value_planned:type_name -> terraform1.stacks.PlannedChange.OutputValue + 74, // 60: terraform1.stacks.PlannedChange.ChangeDescription.resource_instance_deferred:type_name -> terraform1.stacks.PlannedChange.ResourceInstanceDeferred + 75, // 61: terraform1.stacks.PlannedChange.ChangeDescription.apply_time_input_variable:type_name -> terraform1.stacks.PlannedChange.InputVariableDuringApply + 24, // 62: terraform1.stacks.PlannedChange.ComponentInstance.addr:type_name -> terraform1.stacks.ComponentInstanceInStackAddr + 2, // 63: terraform1.stacks.PlannedChange.ComponentInstance.actions:type_name -> terraform1.stacks.ChangeType + 26, // 64: terraform1.stacks.PlannedChange.ResourceInstance.addr:type_name -> terraform1.stacks.ResourceInstanceObjectInStackAddr + 2, // 65: terraform1.stacks.PlannedChange.ResourceInstance.actions:type_name -> terraform1.stacks.ChangeType + 21, // 66: terraform1.stacks.PlannedChange.ResourceInstance.values:type_name -> terraform1.stacks.DynamicValueChange + 77, // 67: terraform1.stacks.PlannedChange.ResourceInstance.moved:type_name -> terraform1.stacks.PlannedChange.ResourceInstance.Moved + 78, // 68: terraform1.stacks.PlannedChange.ResourceInstance.imported:type_name -> terraform1.stacks.PlannedChange.ResourceInstance.Imported + 0, // 69: terraform1.stacks.PlannedChange.ResourceInstance.resource_mode:type_name -> terraform1.stacks.ResourceMode + 20, // 70: terraform1.stacks.PlannedChange.ResourceInstance.previous_run_value:type_name -> terraform1.stacks.DynamicValue + 23, // 71: terraform1.stacks.PlannedChange.ResourceInstance.replace_paths:type_name -> terraform1.stacks.AttributePath + 76, // 72: terraform1.stacks.PlannedChange.ResourceInstance.index:type_name -> terraform1.stacks.PlannedChange.ResourceInstance.Index + 2, // 73: terraform1.stacks.PlannedChange.OutputValue.actions:type_name -> terraform1.stacks.ChangeType + 21, // 74: terraform1.stacks.PlannedChange.OutputValue.values:type_name -> terraform1.stacks.DynamicValueChange + 72, // 75: terraform1.stacks.PlannedChange.ResourceInstanceDeferred.resource_instance:type_name -> terraform1.stacks.PlannedChange.ResourceInstance + 28, // 76: terraform1.stacks.PlannedChange.ResourceInstanceDeferred.deferred:type_name -> terraform1.stacks.Deferred + 20, // 77: terraform1.stacks.PlannedChange.ResourceInstance.Index.value:type_name -> terraform1.stacks.DynamicValue + 25, // 78: terraform1.stacks.PlannedChange.ResourceInstance.Moved.prev_addr:type_name -> terraform1.stacks.ResourceInstanceInStackAddr + 97, // 79: terraform1.stacks.AppliedChange.RawChange.value:type_name -> google.protobuf.Any + 84, // 80: terraform1.stacks.AppliedChange.ChangeDescription.deleted:type_name -> terraform1.stacks.AppliedChange.Nothing + 84, // 81: terraform1.stacks.AppliedChange.ChangeDescription.moved:type_name -> terraform1.stacks.AppliedChange.Nothing + 81, // 82: terraform1.stacks.AppliedChange.ChangeDescription.resource_instance:type_name -> terraform1.stacks.AppliedChange.ResourceInstance + 83, // 83: terraform1.stacks.AppliedChange.ChangeDescription.output_value:type_name -> terraform1.stacks.AppliedChange.OutputValue + 82, // 84: terraform1.stacks.AppliedChange.ChangeDescription.component_instance:type_name -> terraform1.stacks.AppliedChange.ComponentInstance + 26, // 85: terraform1.stacks.AppliedChange.ResourceInstance.addr:type_name -> terraform1.stacks.ResourceInstanceObjectInStackAddr + 20, // 86: terraform1.stacks.AppliedChange.ResourceInstance.new_value:type_name -> terraform1.stacks.DynamicValue + 0, // 87: terraform1.stacks.AppliedChange.ResourceInstance.resource_mode:type_name -> terraform1.stacks.ResourceMode + 85, // 88: terraform1.stacks.AppliedChange.ComponentInstance.output_values:type_name -> terraform1.stacks.AppliedChange.ComponentInstance.OutputValuesEntry + 20, // 89: terraform1.stacks.AppliedChange.OutputValue.new_value:type_name -> terraform1.stacks.DynamicValue + 20, // 90: terraform1.stacks.AppliedChange.ComponentInstance.OutputValuesEntry.value:type_name -> terraform1.stacks.DynamicValue + 24, // 91: terraform1.stacks.StackChangeProgress.ComponentInstanceStatus.addr:type_name -> terraform1.stacks.ComponentInstanceInStackAddr + 5, // 92: terraform1.stacks.StackChangeProgress.ComponentInstanceStatus.status:type_name -> terraform1.stacks.StackChangeProgress.ComponentInstanceStatus.Status + 26, // 93: terraform1.stacks.StackChangeProgress.ResourceInstanceStatus.addr:type_name -> terraform1.stacks.ResourceInstanceObjectInStackAddr + 6, // 94: terraform1.stacks.StackChangeProgress.ResourceInstanceStatus.status:type_name -> terraform1.stacks.StackChangeProgress.ResourceInstanceStatus.Status + 26, // 95: terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.addr:type_name -> terraform1.stacks.ResourceInstanceObjectInStackAddr + 2, // 96: terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.actions:type_name -> terraform1.stacks.ChangeType + 94, // 97: terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.moved:type_name -> terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.Moved + 95, // 98: terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.imported:type_name -> terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.Imported + 28, // 99: terraform1.stacks.StackChangeProgress.DeferredResourceInstancePlannedChange.deferred:type_name -> terraform1.stacks.Deferred + 88, // 100: terraform1.stacks.StackChangeProgress.DeferredResourceInstancePlannedChange.change:type_name -> terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange + 26, // 101: terraform1.stacks.StackChangeProgress.ProvisionerStatus.addr:type_name -> terraform1.stacks.ResourceInstanceObjectInStackAddr + 90, // 102: terraform1.stacks.StackChangeProgress.ProvisionerStatus.status:type_name -> terraform1.stacks.StackChangeProgress.ProvisionerStatus + 26, // 103: terraform1.stacks.StackChangeProgress.ProvisionerOutput.addr:type_name -> terraform1.stacks.ResourceInstanceObjectInStackAddr + 24, // 104: terraform1.stacks.StackChangeProgress.ComponentInstanceChanges.addr:type_name -> terraform1.stacks.ComponentInstanceInStackAddr + 25, // 105: terraform1.stacks.StackChangeProgress.ResourceInstancePlannedChange.Moved.prev_addr:type_name -> terraform1.stacks.ResourceInstanceInStackAddr + 31, // 106: terraform1.stacks.Stacks.OpenStackConfiguration:input_type -> terraform1.stacks.OpenStackConfiguration.Request + 33, // 107: terraform1.stacks.Stacks.CloseStackConfiguration:input_type -> terraform1.stacks.CloseStackConfiguration.Request + 35, // 108: terraform1.stacks.Stacks.ValidateStackConfiguration:input_type -> terraform1.stacks.ValidateStackConfiguration.Request + 37, // 109: terraform1.stacks.Stacks.FindStackConfigurationComponents:input_type -> terraform1.stacks.FindStackConfigurationComponents.Request + 48, // 110: terraform1.stacks.Stacks.OpenState:input_type -> terraform1.stacks.OpenStackState.RequestItem + 50, // 111: terraform1.stacks.Stacks.CloseState:input_type -> terraform1.stacks.CloseStackState.Request + 52, // 112: terraform1.stacks.Stacks.PlanStackChanges:input_type -> terraform1.stacks.PlanStackChanges.Request + 56, // 113: terraform1.stacks.Stacks.OpenPlan:input_type -> terraform1.stacks.OpenStackPlan.RequestItem + 58, // 114: terraform1.stacks.Stacks.ClosePlan:input_type -> terraform1.stacks.CloseStackPlan.Request + 60, // 115: terraform1.stacks.Stacks.ApplyStackChanges:input_type -> terraform1.stacks.ApplyStackChanges.Request + 63, // 116: terraform1.stacks.Stacks.OpenStackInspector:input_type -> terraform1.stacks.OpenStackInspector.Request + 67, // 117: terraform1.stacks.Stacks.InspectExpressionResult:input_type -> terraform1.stacks.InspectExpressionResult.Request + 32, // 118: terraform1.stacks.Stacks.OpenStackConfiguration:output_type -> terraform1.stacks.OpenStackConfiguration.Response + 34, // 119: terraform1.stacks.Stacks.CloseStackConfiguration:output_type -> terraform1.stacks.CloseStackConfiguration.Response + 36, // 120: terraform1.stacks.Stacks.ValidateStackConfiguration:output_type -> terraform1.stacks.ValidateStackConfiguration.Response + 38, // 121: terraform1.stacks.Stacks.FindStackConfigurationComponents:output_type -> terraform1.stacks.FindStackConfigurationComponents.Response + 49, // 122: terraform1.stacks.Stacks.OpenState:output_type -> terraform1.stacks.OpenStackState.Response + 51, // 123: terraform1.stacks.Stacks.CloseState:output_type -> terraform1.stacks.CloseStackState.Response + 53, // 124: terraform1.stacks.Stacks.PlanStackChanges:output_type -> terraform1.stacks.PlanStackChanges.Event + 57, // 125: terraform1.stacks.Stacks.OpenPlan:output_type -> terraform1.stacks.OpenStackPlan.Response + 59, // 126: terraform1.stacks.Stacks.ClosePlan:output_type -> terraform1.stacks.CloseStackPlan.Response + 61, // 127: terraform1.stacks.Stacks.ApplyStackChanges:output_type -> terraform1.stacks.ApplyStackChanges.Event + 64, // 128: terraform1.stacks.Stacks.OpenStackInspector:output_type -> terraform1.stacks.OpenStackInspector.Response + 68, // 129: terraform1.stacks.Stacks.InspectExpressionResult:output_type -> terraform1.stacks.InspectExpressionResult.Response + 118, // [118:130] is the sub-list for method output_type + 106, // [106:118] is the sub-list for method input_type + 106, // [106:106] is the sub-list for extension type_name + 106, // [106:106] is the sub-list for extension extendee + 0, // [0:106] is the sub-list for field type_name +} + +func init() { file_stacks_proto_init() } +func file_stacks_proto_init() { + if File_stacks_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_stacks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateStackConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindStackConfigurationComponents); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlanStackChanges); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackPlan); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackPlan); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyStackChanges); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackInspector); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InspectExpressionResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DynamicValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DynamicValueChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DynamicValueWithSource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AttributePath); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComponentInstanceInStackAddr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceInstanceInStackAddr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceInstanceObjectInStackAddr); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Deferred); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppliedChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackConfiguration_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackConfiguration_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackConfiguration_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackConfiguration_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateStackConfiguration_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateStackConfiguration_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindStackConfigurationComponents_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindStackConfigurationComponents_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindStackConfigurationComponents_StackConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindStackConfigurationComponents_EmbeddedStack); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindStackConfigurationComponents_Component); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindStackConfigurationComponents_InputVariable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindStackConfigurationComponents_OutputValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackState_RequestItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackState_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackState_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackState_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlanStackChanges_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlanStackChanges_Event); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackPlan_RequestItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackPlan_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackPlan_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloseStackPlan_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyStackChanges_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyStackChanges_Event); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackInspector_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OpenStackInspector_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InspectExpressionResult_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InspectExpressionResult_Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AttributePath_Step); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_ChangeDescription); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_ComponentInstance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_ResourceInstance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_OutputValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_ResourceInstanceDeferred); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_InputVariableDuringApply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_ResourceInstance_Index); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_ResourceInstance_Moved); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlannedChange_ResourceInstance_Imported); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppliedChange_RawChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppliedChange_ChangeDescription); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppliedChange_ResourceInstance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppliedChange_ComponentInstance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppliedChange_OutputValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppliedChange_Nothing); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ComponentInstanceStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ResourceInstanceStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ResourceInstancePlannedChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_DeferredResourceInstancePlannedChange); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ProvisionerStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ProvisionerOutput); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ComponentInstanceChanges); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ComponentInstances); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ResourceInstancePlannedChange_Moved); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_stacks_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StackChangeProgress_ResourceInstancePlannedChange_Imported); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_stacks_proto_msgTypes[22].OneofWrappers = []interface{}{ + (*StackChangeProgress_ComponentInstanceStatus_)(nil), + (*StackChangeProgress_ResourceInstanceStatus_)(nil), + (*StackChangeProgress_ResourceInstancePlannedChange_)(nil), + (*StackChangeProgress_ProvisionerStatus_)(nil), + (*StackChangeProgress_ProvisionerOutput_)(nil), + (*StackChangeProgress_ComponentInstanceChanges_)(nil), + (*StackChangeProgress_ComponentInstances_)(nil), + (*StackChangeProgress_DeferredResourceInstancePlannedChange_)(nil), + } + file_stacks_proto_msgTypes[45].OneofWrappers = []interface{}{ + (*PlanStackChanges_Event_PlannedChange)(nil), + (*PlanStackChanges_Event_Diagnostic)(nil), + (*PlanStackChanges_Event_Progress)(nil), + } + file_stacks_proto_msgTypes[53].OneofWrappers = []interface{}{ + (*ApplyStackChanges_Event_AppliedChange)(nil), + (*ApplyStackChanges_Event_Diagnostic)(nil), + (*ApplyStackChanges_Event_Progress)(nil), + } + file_stacks_proto_msgTypes[61].OneofWrappers = []interface{}{ + (*AttributePath_Step_AttributeName)(nil), + (*AttributePath_Step_ElementKeyString)(nil), + (*AttributePath_Step_ElementKeyInt)(nil), + } + file_stacks_proto_msgTypes[62].OneofWrappers = []interface{}{ + (*PlannedChange_ChangeDescription_ComponentInstancePlanned)(nil), + (*PlannedChange_ChangeDescription_ResourceInstancePlanned)(nil), + (*PlannedChange_ChangeDescription_OutputValuePlanned)(nil), + (*PlannedChange_ChangeDescription_PlanApplyable)(nil), + (*PlannedChange_ChangeDescription_ResourceInstanceDeferred)(nil), + (*PlannedChange_ChangeDescription_ApplyTimeInputVariable)(nil), + } + file_stacks_proto_msgTypes[72].OneofWrappers = []interface{}{ + (*AppliedChange_ChangeDescription_Deleted)(nil), + (*AppliedChange_ChangeDescription_Moved)(nil), + (*AppliedChange_ChangeDescription_ResourceInstance)(nil), + (*AppliedChange_ChangeDescription_OutputValue)(nil), + (*AppliedChange_ChangeDescription_ComponentInstance)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_stacks_proto_rawDesc, + NumEnums: 8, + NumMessages: 88, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_stacks_proto_goTypes, + DependencyIndexes: file_stacks_proto_depIdxs, + EnumInfos: file_stacks_proto_enumTypes, + MessageInfos: file_stacks_proto_msgTypes, + }.Build() + File_stacks_proto = out.File + file_stacks_proto_rawDesc = nil + file_stacks_proto_goTypes = nil + file_stacks_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// StacksClient is the client API for Stacks service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type StacksClient interface { + // Load and perform initial static validation of a stack configuration + // in a previously-opened source bundle. If successful, returns a + // stack configuration handle that can be used with other operations. + OpenStackConfiguration(ctx context.Context, in *OpenStackConfiguration_Request, opts ...grpc.CallOption) (*OpenStackConfiguration_Response, error) + // Close a previously-opened stack configuration using its handle. + CloseStackConfiguration(ctx context.Context, in *CloseStackConfiguration_Request, opts ...grpc.CallOption) (*CloseStackConfiguration_Response, error) + // Validate an open stack configuration. + ValidateStackConfiguration(ctx context.Context, in *ValidateStackConfiguration_Request, opts ...grpc.CallOption) (*ValidateStackConfiguration_Response, error) + // Analyze a stack configuration to find all of the components it declares. + // This is static analysis only, so it cannot produce dynamic information + // such as the number of instances of each component. + FindStackConfigurationComponents(ctx context.Context, in *FindStackConfigurationComponents_Request, opts ...grpc.CallOption) (*FindStackConfigurationComponents_Response, error) + // Load a stack state by sending a stream of raw state objects that were + // streamed from a previous ApplyStackChanges response. + OpenState(ctx context.Context, opts ...grpc.CallOption) (Stacks_OpenStateClient, error) + // Close a stack state handle, discarding the associated state. + CloseState(ctx context.Context, in *CloseStackState_Request, opts ...grpc.CallOption) (*CloseStackState_Response, error) + // Calculate a desired state from the given configuration and compare it + // with the current state to propose a set of changes to converge the + // current state with the desired state, at least in part. + PlanStackChanges(ctx context.Context, in *PlanStackChanges_Request, opts ...grpc.CallOption) (Stacks_PlanStackChangesClient, error) + // Load a previously-created plan by sending a stream of raw change objects + // that were streamed from a previous PlanStackChanges response. + OpenPlan(ctx context.Context, opts ...grpc.CallOption) (Stacks_OpenPlanClient, error) + // Close a saved plan handle, discarding the associated saved plan. + ClosePlan(ctx context.Context, in *CloseStackPlan_Request, opts ...grpc.CallOption) (*CloseStackPlan_Response, error) + // Execute the changes proposed by an earlier call to PlanStackChanges. + ApplyStackChanges(ctx context.Context, in *ApplyStackChanges_Request, opts ...grpc.CallOption) (Stacks_ApplyStackChangesClient, error) + // OpenStackInspector creates a stack inspector handle that can be used + // with subsequent calls to the "Inspect"-prefixed functions. + OpenStackInspector(ctx context.Context, in *OpenStackInspector_Request, opts ...grpc.CallOption) (*OpenStackInspector_Response, error) + // InspectExpressionResult evaluates an arbitrary expression in the context + // of a stack inspector handle. + InspectExpressionResult(ctx context.Context, in *InspectExpressionResult_Request, opts ...grpc.CallOption) (*InspectExpressionResult_Response, error) +} + +type stacksClient struct { + cc grpc.ClientConnInterface +} + +func NewStacksClient(cc grpc.ClientConnInterface) StacksClient { + return &stacksClient{cc} +} + +func (c *stacksClient) OpenStackConfiguration(ctx context.Context, in *OpenStackConfiguration_Request, opts ...grpc.CallOption) (*OpenStackConfiguration_Response, error) { + out := new(OpenStackConfiguration_Response) + err := c.cc.Invoke(ctx, "/terraform1.stacks.Stacks/OpenStackConfiguration", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stacksClient) CloseStackConfiguration(ctx context.Context, in *CloseStackConfiguration_Request, opts ...grpc.CallOption) (*CloseStackConfiguration_Response, error) { + out := new(CloseStackConfiguration_Response) + err := c.cc.Invoke(ctx, "/terraform1.stacks.Stacks/CloseStackConfiguration", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stacksClient) ValidateStackConfiguration(ctx context.Context, in *ValidateStackConfiguration_Request, opts ...grpc.CallOption) (*ValidateStackConfiguration_Response, error) { + out := new(ValidateStackConfiguration_Response) + err := c.cc.Invoke(ctx, "/terraform1.stacks.Stacks/ValidateStackConfiguration", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stacksClient) FindStackConfigurationComponents(ctx context.Context, in *FindStackConfigurationComponents_Request, opts ...grpc.CallOption) (*FindStackConfigurationComponents_Response, error) { + out := new(FindStackConfigurationComponents_Response) + err := c.cc.Invoke(ctx, "/terraform1.stacks.Stacks/FindStackConfigurationComponents", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stacksClient) OpenState(ctx context.Context, opts ...grpc.CallOption) (Stacks_OpenStateClient, error) { + stream, err := c.cc.NewStream(ctx, &_Stacks_serviceDesc.Streams[0], "/terraform1.stacks.Stacks/OpenState", opts...) + if err != nil { + return nil, err + } + x := &stacksOpenStateClient{stream} + return x, nil +} + +type Stacks_OpenStateClient interface { + Send(*OpenStackState_RequestItem) error + CloseAndRecv() (*OpenStackState_Response, error) + grpc.ClientStream +} + +type stacksOpenStateClient struct { + grpc.ClientStream +} + +func (x *stacksOpenStateClient) Send(m *OpenStackState_RequestItem) error { + return x.ClientStream.SendMsg(m) +} + +func (x *stacksOpenStateClient) CloseAndRecv() (*OpenStackState_Response, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(OpenStackState_Response) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *stacksClient) CloseState(ctx context.Context, in *CloseStackState_Request, opts ...grpc.CallOption) (*CloseStackState_Response, error) { + out := new(CloseStackState_Response) + err := c.cc.Invoke(ctx, "/terraform1.stacks.Stacks/CloseState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stacksClient) PlanStackChanges(ctx context.Context, in *PlanStackChanges_Request, opts ...grpc.CallOption) (Stacks_PlanStackChangesClient, error) { + stream, err := c.cc.NewStream(ctx, &_Stacks_serviceDesc.Streams[1], "/terraform1.stacks.Stacks/PlanStackChanges", opts...) + if err != nil { + return nil, err + } + x := &stacksPlanStackChangesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Stacks_PlanStackChangesClient interface { + Recv() (*PlanStackChanges_Event, error) + grpc.ClientStream +} + +type stacksPlanStackChangesClient struct { + grpc.ClientStream +} + +func (x *stacksPlanStackChangesClient) Recv() (*PlanStackChanges_Event, error) { + m := new(PlanStackChanges_Event) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *stacksClient) OpenPlan(ctx context.Context, opts ...grpc.CallOption) (Stacks_OpenPlanClient, error) { + stream, err := c.cc.NewStream(ctx, &_Stacks_serviceDesc.Streams[2], "/terraform1.stacks.Stacks/OpenPlan", opts...) + if err != nil { + return nil, err + } + x := &stacksOpenPlanClient{stream} + return x, nil +} + +type Stacks_OpenPlanClient interface { + Send(*OpenStackPlan_RequestItem) error + CloseAndRecv() (*OpenStackPlan_Response, error) + grpc.ClientStream +} + +type stacksOpenPlanClient struct { + grpc.ClientStream +} + +func (x *stacksOpenPlanClient) Send(m *OpenStackPlan_RequestItem) error { + return x.ClientStream.SendMsg(m) +} + +func (x *stacksOpenPlanClient) CloseAndRecv() (*OpenStackPlan_Response, error) { + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + m := new(OpenStackPlan_Response) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *stacksClient) ClosePlan(ctx context.Context, in *CloseStackPlan_Request, opts ...grpc.CallOption) (*CloseStackPlan_Response, error) { + out := new(CloseStackPlan_Response) + err := c.cc.Invoke(ctx, "/terraform1.stacks.Stacks/ClosePlan", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stacksClient) ApplyStackChanges(ctx context.Context, in *ApplyStackChanges_Request, opts ...grpc.CallOption) (Stacks_ApplyStackChangesClient, error) { + stream, err := c.cc.NewStream(ctx, &_Stacks_serviceDesc.Streams[3], "/terraform1.stacks.Stacks/ApplyStackChanges", opts...) + if err != nil { + return nil, err + } + x := &stacksApplyStackChangesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type Stacks_ApplyStackChangesClient interface { + Recv() (*ApplyStackChanges_Event, error) + grpc.ClientStream +} + +type stacksApplyStackChangesClient struct { + grpc.ClientStream +} + +func (x *stacksApplyStackChangesClient) Recv() (*ApplyStackChanges_Event, error) { + m := new(ApplyStackChanges_Event) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *stacksClient) OpenStackInspector(ctx context.Context, in *OpenStackInspector_Request, opts ...grpc.CallOption) (*OpenStackInspector_Response, error) { + out := new(OpenStackInspector_Response) + err := c.cc.Invoke(ctx, "/terraform1.stacks.Stacks/OpenStackInspector", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *stacksClient) InspectExpressionResult(ctx context.Context, in *InspectExpressionResult_Request, opts ...grpc.CallOption) (*InspectExpressionResult_Response, error) { + out := new(InspectExpressionResult_Response) + err := c.cc.Invoke(ctx, "/terraform1.stacks.Stacks/InspectExpressionResult", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// StacksServer is the server API for Stacks service. +type StacksServer interface { + // Load and perform initial static validation of a stack configuration + // in a previously-opened source bundle. If successful, returns a + // stack configuration handle that can be used with other operations. + OpenStackConfiguration(context.Context, *OpenStackConfiguration_Request) (*OpenStackConfiguration_Response, error) + // Close a previously-opened stack configuration using its handle. + CloseStackConfiguration(context.Context, *CloseStackConfiguration_Request) (*CloseStackConfiguration_Response, error) + // Validate an open stack configuration. + ValidateStackConfiguration(context.Context, *ValidateStackConfiguration_Request) (*ValidateStackConfiguration_Response, error) + // Analyze a stack configuration to find all of the components it declares. + // This is static analysis only, so it cannot produce dynamic information + // such as the number of instances of each component. + FindStackConfigurationComponents(context.Context, *FindStackConfigurationComponents_Request) (*FindStackConfigurationComponents_Response, error) + // Load a stack state by sending a stream of raw state objects that were + // streamed from a previous ApplyStackChanges response. + OpenState(Stacks_OpenStateServer) error + // Close a stack state handle, discarding the associated state. + CloseState(context.Context, *CloseStackState_Request) (*CloseStackState_Response, error) + // Calculate a desired state from the given configuration and compare it + // with the current state to propose a set of changes to converge the + // current state with the desired state, at least in part. + PlanStackChanges(*PlanStackChanges_Request, Stacks_PlanStackChangesServer) error + // Load a previously-created plan by sending a stream of raw change objects + // that were streamed from a previous PlanStackChanges response. + OpenPlan(Stacks_OpenPlanServer) error + // Close a saved plan handle, discarding the associated saved plan. + ClosePlan(context.Context, *CloseStackPlan_Request) (*CloseStackPlan_Response, error) + // Execute the changes proposed by an earlier call to PlanStackChanges. + ApplyStackChanges(*ApplyStackChanges_Request, Stacks_ApplyStackChangesServer) error + // OpenStackInspector creates a stack inspector handle that can be used + // with subsequent calls to the "Inspect"-prefixed functions. + OpenStackInspector(context.Context, *OpenStackInspector_Request) (*OpenStackInspector_Response, error) + // InspectExpressionResult evaluates an arbitrary expression in the context + // of a stack inspector handle. + InspectExpressionResult(context.Context, *InspectExpressionResult_Request) (*InspectExpressionResult_Response, error) +} + +// UnimplementedStacksServer can be embedded to have forward compatible implementations. +type UnimplementedStacksServer struct { +} + +func (*UnimplementedStacksServer) OpenStackConfiguration(context.Context, *OpenStackConfiguration_Request) (*OpenStackConfiguration_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenStackConfiguration not implemented") +} +func (*UnimplementedStacksServer) CloseStackConfiguration(context.Context, *CloseStackConfiguration_Request) (*CloseStackConfiguration_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseStackConfiguration not implemented") +} +func (*UnimplementedStacksServer) ValidateStackConfiguration(context.Context, *ValidateStackConfiguration_Request) (*ValidateStackConfiguration_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ValidateStackConfiguration not implemented") +} +func (*UnimplementedStacksServer) FindStackConfigurationComponents(context.Context, *FindStackConfigurationComponents_Request) (*FindStackConfigurationComponents_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindStackConfigurationComponents not implemented") +} +func (*UnimplementedStacksServer) OpenState(Stacks_OpenStateServer) error { + return status.Errorf(codes.Unimplemented, "method OpenState not implemented") +} +func (*UnimplementedStacksServer) CloseState(context.Context, *CloseStackState_Request) (*CloseStackState_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method CloseState not implemented") +} +func (*UnimplementedStacksServer) PlanStackChanges(*PlanStackChanges_Request, Stacks_PlanStackChangesServer) error { + return status.Errorf(codes.Unimplemented, "method PlanStackChanges not implemented") +} +func (*UnimplementedStacksServer) OpenPlan(Stacks_OpenPlanServer) error { + return status.Errorf(codes.Unimplemented, "method OpenPlan not implemented") +} +func (*UnimplementedStacksServer) ClosePlan(context.Context, *CloseStackPlan_Request) (*CloseStackPlan_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method ClosePlan not implemented") +} +func (*UnimplementedStacksServer) ApplyStackChanges(*ApplyStackChanges_Request, Stacks_ApplyStackChangesServer) error { + return status.Errorf(codes.Unimplemented, "method ApplyStackChanges not implemented") +} +func (*UnimplementedStacksServer) OpenStackInspector(context.Context, *OpenStackInspector_Request) (*OpenStackInspector_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method OpenStackInspector not implemented") +} +func (*UnimplementedStacksServer) InspectExpressionResult(context.Context, *InspectExpressionResult_Request) (*InspectExpressionResult_Response, error) { + return nil, status.Errorf(codes.Unimplemented, "method InspectExpressionResult not implemented") +} + +func RegisterStacksServer(s *grpc.Server, srv StacksServer) { + s.RegisterService(&_Stacks_serviceDesc, srv) +} + +func _Stacks_OpenStackConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenStackConfiguration_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StacksServer).OpenStackConfiguration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.stacks.Stacks/OpenStackConfiguration", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StacksServer).OpenStackConfiguration(ctx, req.(*OpenStackConfiguration_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Stacks_CloseStackConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseStackConfiguration_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StacksServer).CloseStackConfiguration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.stacks.Stacks/CloseStackConfiguration", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StacksServer).CloseStackConfiguration(ctx, req.(*CloseStackConfiguration_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Stacks_ValidateStackConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ValidateStackConfiguration_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StacksServer).ValidateStackConfiguration(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.stacks.Stacks/ValidateStackConfiguration", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StacksServer).ValidateStackConfiguration(ctx, req.(*ValidateStackConfiguration_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Stacks_FindStackConfigurationComponents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindStackConfigurationComponents_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StacksServer).FindStackConfigurationComponents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.stacks.Stacks/FindStackConfigurationComponents", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StacksServer).FindStackConfigurationComponents(ctx, req.(*FindStackConfigurationComponents_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Stacks_OpenState_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(StacksServer).OpenState(&stacksOpenStateServer{stream}) +} + +type Stacks_OpenStateServer interface { + SendAndClose(*OpenStackState_Response) error + Recv() (*OpenStackState_RequestItem, error) + grpc.ServerStream +} + +type stacksOpenStateServer struct { + grpc.ServerStream +} + +func (x *stacksOpenStateServer) SendAndClose(m *OpenStackState_Response) error { + return x.ServerStream.SendMsg(m) +} + +func (x *stacksOpenStateServer) Recv() (*OpenStackState_RequestItem, error) { + m := new(OpenStackState_RequestItem) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _Stacks_CloseState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseStackState_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StacksServer).CloseState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.stacks.Stacks/CloseState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StacksServer).CloseState(ctx, req.(*CloseStackState_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Stacks_PlanStackChanges_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(PlanStackChanges_Request) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(StacksServer).PlanStackChanges(m, &stacksPlanStackChangesServer{stream}) +} + +type Stacks_PlanStackChangesServer interface { + Send(*PlanStackChanges_Event) error + grpc.ServerStream +} + +type stacksPlanStackChangesServer struct { + grpc.ServerStream +} + +func (x *stacksPlanStackChangesServer) Send(m *PlanStackChanges_Event) error { + return x.ServerStream.SendMsg(m) +} + +func _Stacks_OpenPlan_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(StacksServer).OpenPlan(&stacksOpenPlanServer{stream}) +} + +type Stacks_OpenPlanServer interface { + SendAndClose(*OpenStackPlan_Response) error + Recv() (*OpenStackPlan_RequestItem, error) + grpc.ServerStream +} + +type stacksOpenPlanServer struct { + grpc.ServerStream +} + +func (x *stacksOpenPlanServer) SendAndClose(m *OpenStackPlan_Response) error { + return x.ServerStream.SendMsg(m) +} + +func (x *stacksOpenPlanServer) Recv() (*OpenStackPlan_RequestItem, error) { + m := new(OpenStackPlan_RequestItem) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func _Stacks_ClosePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloseStackPlan_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StacksServer).ClosePlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.stacks.Stacks/ClosePlan", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StacksServer).ClosePlan(ctx, req.(*CloseStackPlan_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Stacks_ApplyStackChanges_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ApplyStackChanges_Request) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(StacksServer).ApplyStackChanges(m, &stacksApplyStackChangesServer{stream}) +} + +type Stacks_ApplyStackChangesServer interface { + Send(*ApplyStackChanges_Event) error + grpc.ServerStream +} + +type stacksApplyStackChangesServer struct { + grpc.ServerStream +} + +func (x *stacksApplyStackChangesServer) Send(m *ApplyStackChanges_Event) error { + return x.ServerStream.SendMsg(m) +} + +func _Stacks_OpenStackInspector_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OpenStackInspector_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StacksServer).OpenStackInspector(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.stacks.Stacks/OpenStackInspector", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StacksServer).OpenStackInspector(ctx, req.(*OpenStackInspector_Request)) + } + return interceptor(ctx, in, info, handler) +} + +func _Stacks_InspectExpressionResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InspectExpressionResult_Request) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StacksServer).InspectExpressionResult(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/terraform1.stacks.Stacks/InspectExpressionResult", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StacksServer).InspectExpressionResult(ctx, req.(*InspectExpressionResult_Request)) + } + return interceptor(ctx, in, info, handler) +} + +var _Stacks_serviceDesc = grpc.ServiceDesc{ + ServiceName: "terraform1.stacks.Stacks", + HandlerType: (*StacksServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "OpenStackConfiguration", + Handler: _Stacks_OpenStackConfiguration_Handler, + }, + { + MethodName: "CloseStackConfiguration", + Handler: _Stacks_CloseStackConfiguration_Handler, + }, + { + MethodName: "ValidateStackConfiguration", + Handler: _Stacks_ValidateStackConfiguration_Handler, + }, + { + MethodName: "FindStackConfigurationComponents", + Handler: _Stacks_FindStackConfigurationComponents_Handler, + }, + { + MethodName: "CloseState", + Handler: _Stacks_CloseState_Handler, + }, + { + MethodName: "ClosePlan", + Handler: _Stacks_ClosePlan_Handler, + }, + { + MethodName: "OpenStackInspector", + Handler: _Stacks_OpenStackInspector_Handler, + }, + { + MethodName: "InspectExpressionResult", + Handler: _Stacks_InspectExpressionResult_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "OpenState", + Handler: _Stacks_OpenState_Handler, + ClientStreams: true, + }, + { + StreamName: "PlanStackChanges", + Handler: _Stacks_PlanStackChanges_Handler, + ServerStreams: true, + }, + { + StreamName: "OpenPlan", + Handler: _Stacks_OpenPlan_Handler, + ClientStreams: true, + }, + { + StreamName: "ApplyStackChanges", + Handler: _Stacks_ApplyStackChanges_Handler, + ServerStreams: true, + }, + }, + Metadata: "stacks.proto", +} diff --git a/internal/rpcapi/terraform1/stacks/stacks.proto b/internal/rpcapi/terraform1/stacks/stacks.proto new file mode 100644 index 0000000000..0c29235585 --- /dev/null +++ b/internal/rpcapi/terraform1/stacks/stacks.proto @@ -0,0 +1,802 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: BUSL-1.1 + +syntax = "proto3"; +package terraform1.stacks; + +import "google/protobuf/any.proto"; +import "terraform1.proto"; + + +service Stacks { + // Load and perform initial static validation of a stack configuration + // in a previously-opened source bundle. If successful, returns a + // stack configuration handle that can be used with other operations. + rpc OpenStackConfiguration(OpenStackConfiguration.Request) + returns (OpenStackConfiguration.Response); + // Close a previously-opened stack configuration using its handle. + rpc CloseStackConfiguration(CloseStackConfiguration.Request) + returns (CloseStackConfiguration.Response); + // Validate an open stack configuration. + rpc ValidateStackConfiguration(ValidateStackConfiguration.Request) + returns (ValidateStackConfiguration.Response); + // Analyze a stack configuration to find all of the components it declares. + // This is static analysis only, so it cannot produce dynamic information + // such as the number of instances of each component. + rpc FindStackConfigurationComponents(FindStackConfigurationComponents.Request) + returns (FindStackConfigurationComponents.Response); + // Load a stack state by sending a stream of raw state objects that were + // streamed from a previous ApplyStackChanges response. + rpc OpenState(stream OpenStackState.RequestItem) returns (OpenStackState.Response); + // Close a stack state handle, discarding the associated state. + rpc CloseState(CloseStackState.Request) returns (CloseStackState.Response); + // Calculate a desired state from the given configuration and compare it + // with the current state to propose a set of changes to converge the + // current state with the desired state, at least in part. + rpc PlanStackChanges(PlanStackChanges.Request) + returns (stream PlanStackChanges.Event); + // Load a previously-created plan by sending a stream of raw change objects + // that were streamed from a previous PlanStackChanges response. + rpc OpenPlan(stream OpenStackPlan.RequestItem) returns (OpenStackPlan.Response); + // Close a saved plan handle, discarding the associated saved plan. + rpc ClosePlan(CloseStackPlan.Request) returns (CloseStackPlan.Response); + // Execute the changes proposed by an earlier call to PlanStackChanges. + rpc ApplyStackChanges(ApplyStackChanges.Request) + returns (stream ApplyStackChanges.Event); + // OpenStackInspector creates a stack inspector handle that can be used + // with subsequent calls to the "Inspect"-prefixed functions. + rpc OpenStackInspector(OpenStackInspector.Request) + returns (OpenStackInspector.Response); + // InspectExpressionResult evaluates an arbitrary expression in the context + // of a stack inspector handle. + rpc InspectExpressionResult(InspectExpressionResult.Request) + returns (InspectExpressionResult.Response); +} + +message OpenStackConfiguration { + message Request { + int64 source_bundle_handle = 1; + terraform1.SourceAddress source_address = 2; + } + message Response { + int64 stack_config_handle = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } +} + +message CloseStackConfiguration { + message Request { + int64 stack_config_handle = 1; + } + message Response { + } +} + +message ValidateStackConfiguration { + message Request { + int64 stack_config_handle = 1; + int64 dependency_locks_handle = 2; + int64 provider_cache_handle = 3; + } + message Response { + repeated terraform1.Diagnostic diagnostics = 1; + } +} + +message FindStackConfigurationComponents { + message Request { + int64 stack_config_handle = 1; + } + message Response { + StackConfig config = 1; + } + + enum Instances { + SINGLE = 0; + COUNT = 1; + FOR_EACH = 2; + } + message StackConfig { + map components = 1; + map embedded_stacks = 2; + map input_variables = 3; + map output_values = 4; + } + message EmbeddedStack { + string source_addr = 1; + Instances instances = 2; + StackConfig config = 3; + } + message Component { + string source_addr = 1; + Instances instances = 2; + string component_addr = 3; + } + message InputVariable { + bool optional = 1; + bool sensitive = 2; + bool ephemeral = 3; + } + message OutputValue { + bool sensitive = 1; + bool ephemeral = 2; + } +} + +message OpenStackState { + message RequestItem { + AppliedChange.RawChange raw = 1; + } + message Response { + int64 state_handle = 1; + } +} + +message CloseStackState { + message Request { + int64 state_handle = 1; + } + message Response { + } +} + +message PlanStackChanges { + message Request { + PlanMode plan_mode = 1; + int64 stack_config_handle = 2; + int64 previous_state_handle = 7; + map previous_state = 3 [deprecated = true]; + int64 dependency_locks_handle = 4; + int64 provider_cache_handle = 5; + map input_values = 6; + // TODO: Various other planning options + } + message Event { + oneof event { + PlannedChange planned_change = 1; + terraform1.Diagnostic diagnostic = 2; + StackChangeProgress progress = 10; + } + reserved 3 to 9; // formerly used for individual progress events + } +} + +message OpenStackPlan { + message RequestItem { + google.protobuf.Any raw = 1; + } + message Response { + int64 plan_handle = 1; + } +} + +message CloseStackPlan { + message Request { + int64 plan_handle = 1; + } + message Response { + } +} + +message ApplyStackChanges { + message Request { + // This must refer to exactly the same configuration that was + // passed to PlanStackChanges when creating this plan, or the + // results will be unpredictable. + int64 stack_config_handle = 1; + // The caller should send all of the keys present in the previous + // apply's description map. Terraform Core will use this for + // situations such as updating existing descriptions to newer + // formats even if no change is being made to the corresponding + // real objects. + repeated string known_description_keys = 3; + // The handle for a saved plan previously loaded using the + // Stacks.OpenPlan function. + // Applying a plan immediately invalidates it, so the handle will + // be automatically closed. + int64 plan_handle = 8; + // This must include all of the "raw" values emitted through + // PlannedChange events during the PlanStackChanges operation + // that created this plan, concatenated together in the same + // order they were written to the PlanStackChanges event stream. + // + // Use plan_handle instead. This will be removed in future. + repeated google.protobuf.Any planned_changes = 4 [deprecated = true]; + // This must be equivalent to the argument of the same name + // passed to PlanStackChanges when creating this plan. + int64 dependency_locks_handle = 5; + // This must be equivalent to the argument of the same name + // passed to PlanStackChanges when creating this plan. + int64 provider_cache_handle = 6; + + // Any input variables identified as an "apply-time input variable" + // in the plan must have values provided here. + // + // Callers may also optionally include values for other declared input + // variables, but if so their values must exactly match those used when + // creating the plan. + map input_values = 7; + + reserved 2; // (formerly the previous state, but we now propagate that as part of planned_changes as an implementation detail) + } + message Event { + oneof event { + AppliedChange applied_change = 1; + terraform1.Diagnostic diagnostic = 2; + StackChangeProgress progress = 3; + } + } +} + +message OpenStackInspector { + message Request { + int64 stack_config_handle = 1; + map state = 2; + int64 dependency_locks_handle = 3; + int64 provider_cache_handle = 4; + map input_values = 5; + } + message Response { + int64 stack_inspector_handle = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } +} + +message InspectExpressionResult { + message Request { + int64 stack_inspector_handle = 1; + bytes expression_src = 2; + string stack_addr = 3; + } + message Response { + // The result of evaluating the expression, if successful enough to + // produce a result. Unpopulated if the expression was too invalid + // to produce a result, with the problem then described in the + // associated diagnostics. + // + // Uses a MessagePack encoding with in-band type information. + DynamicValue result = 1; + repeated terraform1.Diagnostic diagnostics = 2; + } +} + +// Represents dynamically-typed data from within the Terraform language. +// Typically only one of the available serialization formats will be populated, +// depending on what serializations are appropriate for a particular context +// and what capabilities the client and the server negotiated during Handshake. +message DynamicValue { + bytes msgpack = 1; // The default serialization format + repeated AttributePath sensitive = 2; // Paths to any sensitive-marked values. +} + +// Represents a change of some object from one dynamic value to another. +message DynamicValueChange { + DynamicValue old = 1; + DynamicValue new = 2; +} + +// Represents a DynamicValue accompanied by a source location where it was +// presumably defined, for values that originated in configuration files for +// situations such as returning error messages. +message DynamicValueWithSource { + DynamicValue value = 1; + terraform1.SourceRange source_range = 2; +} + +message AttributePath { + message Step { + oneof selector { + // Set "attribute_name" to represent looking up an attribute + // in the current object value. + string attribute_name = 1; + // Set "element_key_*" to represent looking up an element in + // an indexable collection type. + string element_key_string = 2; + int64 element_key_int = 3; + } + } + repeated Step steps = 1; +} + +// Represents the address of a specific component instance within a stack. +message ComponentInstanceInStackAddr { + // The address of the static component that this is an instance of. + string component_addr = 1; + // The address of the instance that's being announced. For + // multi-instance components this could have any combination of + // instance keys on the component itself or instance keys on any + // of the containing embedded stacks. + string component_instance_addr = 2; +} + +// Represents the address of a specific resource instance inside a specific +// component instance within the containing stack. +message ResourceInstanceInStackAddr { + // Unique address of the component instance that this resource instance + // belongs to. This is comparable with + string component_instance_addr = 1; + // Unique address of the resource instance within the given component + // instance. Each component instance has a separate namespace of + // resource instance addresses, so callers must take both fields together + // to produce a key that's unique throughout the entire plan. + string resource_instance_addr = 2; +} + +// Represents the address of a specific resource instance object inside a +// specific component instance within the containing stack. +message ResourceInstanceObjectInStackAddr { + // Unique address of the component instance that this resource instance + // belongs to. This is comparable with + string component_instance_addr = 1; + // Unique address of the resource instance within the given component + // instance. Each component instance has a separate namespace of + // resource instance addresses, so callers must take both fields together + // to produce a key that's unique throughout the entire plan. + string resource_instance_addr = 2; + // Optional "deposed key" populated only for non-current (deposed) objects, + // which can appear for "create before destroy" replacements where the + // create succeeds but then the destroy fails, leaving us with two different + // objects to track for the same resource instance. + string deposed_key = 3; +} + +enum ResourceMode { + UNKNOWN = 0; + MANAGED = 1; + DATA = 2; +} + +enum PlanMode { + NORMAL = 0; + REFRESH_ONLY = 1; + DESTROY = 2; +} + +enum ChangeType { + NOOP = 0; + READ = 1; + CREATE = 2; + UPDATE = 3; + DELETE = 4; + FORGET = 5; +} + +// Describes one item in a stack plan. The overall plan is the concatentation +// of all messages of this type emitted as events during the plan; splitting +// this information over multiple messages just allows the individual events +// to double as progress notifications for an interactive UI. +message PlannedChange { + // Terraform Core's internal representation(s) of this change. Callers + // must provide the messages in this field, if any, verbatim to the + // ApplyStackChanges RPC in order to apply this change, and must not + // attempt to decode or analyze the contents because they are subject + // to change in future versions of Terraform Core. + // + // This might be unpopulated if this message represents only information + // for the caller and Terraform Core doesn't actually need to recall this + // information during the apply step. Callers must append each raw item + // to the raw plan in the order specified, and provide them all together + // in the same order to ApplyStackChanges. + repeated google.protobuf.Any raw = 1; + + // Caller-facing descriptions of this change, to use for presenting + // information to end-users in the UI and for other subsystems such as + // imposing policy rules on the resulting plan. + // + // There can be zero or more description objects associated with each + // change. More than one is not common, but should be supported by clients + // by treating them the same way as if each description had arrived in + // a separate PlannedChange message. Clients should not treat the grouping + // or not-grouping of change description objects as meaningful information, + // since it's subject to change in future Terraform Core versions. + // + // DO NOT attempt to use this to surgically filter particular changes + // from a larger plan. Although external descriptions often match with + // the raw representations in field "raw", that is not guaranteed and + // Terraform Core assumes that it will always be provided with the full + // set of raw messages -- in the same order they were emitted -- during + // the apply step. For example, some raw messages might omit information + // that is implied by earlier raw messages and would therefore be + // incomplete if isolated. + repeated ChangeDescription descriptions = 2; + reserved 3 to 6; // formerly used for an inline "oneof description", now factored out into a separate message type + + // Represents a single caller-facing description of a change, to use for + // presenting information to end users in the UI and for other subsystems + // such as imposing policy rules on the resulting plan. + // + // New description types might be added in future versions of Terraform + // Core, and so clients should tolerate description messages that appear + // to have none of the oneof fields set, and should just ignore those + // messages entirely. + message ChangeDescription { + oneof description { + ComponentInstance component_instance_planned = 1; + ResourceInstance resource_instance_planned = 2; + OutputValue output_value_planned = 3; + bool plan_applyable = 4; + ResourceInstanceDeferred resource_instance_deferred = 5; + InputVariableDuringApply apply_time_input_variable = 6; + } + } + + // Reports the existence of a particular instance of a component, + // once Terraform has resolved arguments such as "for_each" that + // might make the set of instances dynamic. + message ComponentInstance { + ComponentInstanceInStackAddr addr = 1; + // The changes to the existence of this instance relative to the + // prior state. This only considers the component instance directly, + // and doesn't take into account what actions are planned for any + // resource instances inside. + repeated ChangeType actions = 2; + // A flag for whether applying this plan is expected to cause the + // desired state and actual state to become converged. + // + // If this field is false, that means Terraform expects that at least + // one more plan/apply round will be needed to reach convergence. + // + // If this field is true then Terraform hopes to be able to converge + // after this plan is applied, but callers should ideally still check + // anyway by running one more plan to confirm that there aren't any + // unexpected differences caused by such situations as contradictory + // configuration or provider bugs. + bool plan_complete = 3; + } + message ResourceInstance { + ResourceInstanceObjectInStackAddr addr = 1; + repeated ChangeType actions = 2; + DynamicValueChange values = 3; + Moved moved = 4; + Imported imported = 5; + ResourceMode resource_mode = 6; + string resource_type = 7; + string provider_addr = 8; + + // previous_run_value is included only if it would be + // different from values.old, which typically means that + // Terraform detected some changes made outside of Terraform + // since the previous run. In that case, this field is + // the un-refreshed (but still upgraded) value from + // the previous run and values.old is the refreshed version. + // + // If this isn't set then values.old should be used as the + // previous run value, if needed. + DynamicValue previous_run_value = 9; + + // This flag is set if Terraform Core considers the difference + // between previous_run_value and values.old to be "notable", + // which is a heuristic subject to change over time but is + // broadly intended to mean that it would be worth mentioning + // the difference between the two in the UI as a + // "change outside of Terraform". If this isn't set then the + // difference is probably not worth mentioning to the user + // by default, although it could still be shown behind an + // optional disclosure in UI contexts where such things are possible. + bool notable_change_outside = 10; + + repeated AttributePath replace_paths = 11; + + string resource_name = 12; + Index index = 13; + string module_addr = 14; + string action_reason = 15; + + message Index { + DynamicValue value = 1; + bool unknown = 2; + } + + message Moved { + ResourceInstanceInStackAddr prev_addr = 1; + } + message Imported { + string import_id = 1; + bool unknown = 2; + string generated_config = 3; + } + } + // Note: this is only for output values from the topmost + // stack configuration, because all other output values are + // internal to the configuration and not part of its public API. + message OutputValue { + string name = 1; + repeated ChangeType actions = 2; + DynamicValueChange values = 3; + } + + message ResourceInstanceDeferred { + ResourceInstance resource_instance = 1; + Deferred deferred = 2; + } + + // Describes an input variable that must have a value provided + // during the apply phase. + // + // This currently arises only when the variable was declared + // as ephemeral and was set to a non-null value during the planning + // phase. + message InputVariableDuringApply { + string name = 1; + } +} + +// Deferred contains all the metadata about a the deferral of a resource +// instance change. +message Deferred { + // Reason describes the reason why a resource instance change was + // deferred. + enum Reason { + INVALID = 0; + INSTANCE_COUNT_UNKNOWN = 1; + RESOURCE_CONFIG_UNKNOWN = 2; + PROVIDER_CONFIG_UNKNOWN = 3; + ABSENT_PREREQ = 4; + DEFERRED_PREREQ = 5; + } + Reason reason = 1; +} + +// Describes a change made during a Stacks.ApplyStackChanges call. +// +// All of the events of this type taken together represent a sort of "patch" +// modifying the two data structures that the caller must maintain: the +// raw state map, and the description map. Callers must apply these changes +// in the order of the emission of the messages and then retain the entirety +// of both data structures to populate fields in the next PlanStackChanges call. +message AppliedChange { + // Terraform Core's internal representation of the change, presented as + // a sequence of modifications to the raw state data structure. + // + // For each element, in order: + // - If both key and value are set and the key matches an element + // already in the raw state map, the new value replaces the existing one. + // - If both key and value are set but the key does not match an + // element in the raw state map, this represents inserting a new element + // into the map. + // - If key is set and value is not, this represents removing any existing + // element from the raw state map which has the given key, or a no-op + // if no such element exists. + // - No other situation is legal. + // + // This sequence can potentially be zero-length if a particular event only + // has a external-facing "description" component and no raw equivalent. In + // that case the raw state map is unmodified. + repeated RawChange raw = 1; + + // Caller-facing description of this change, to use for presenting + // information to end-users in the UI and for other subsystems such as + // billing. + // + // Callers are expected to maintain a map of description objects that + // gets updated piecemeal by messages in this field. Callers must treat + // the keys as entirely opaque and thus treat the resulting data structure + // as if it were an unsorted set of ChangeDescription objects; the keys + // exist only to allow patching the data structure over time. + // + // For each element, in order: + // - If both key and description are set and the key matches an element + // from the previous apply's description map, the new value replaces + // the existing one. + // - If both key and value are set but the key does not match an + // element in the previous apply's description map, this represents + // inserting a new element into the map. + // - If key is set and description is "deleted", this represents removing + // any existing element from the previous apply's description map which + // has the given key, or a no-op if no such element exists. + // - If a description field is set that the caller doesn't understand, + // the caller should still write it to the updated description map + // but ignore it in further processing. + // - No other situation is legal. + // + // Callers MUST preserve the verbatim description message in the + // description map, even if it contains fields that are not present in + // the caller's current protobuf stubs. In other words, callers must use + // a protocol buffers implementation that is able to preserve unknown + // fields and store them so that future versions of the caller might + // use an updated set of stubs to interact with the previously-stored + // description. + // + // DO NOT attempt to use this to surgically filter particular raw state + // updates from a larger plan. Although external descriptions often match + // with the raw representations in field "raw", that is not guaranteed and + // Terraform Core assumes that it will always be provided with the full + // raw state map during the next plan step. + repeated ChangeDescription descriptions = 2; + + message RawChange { + string key = 1; + google.protobuf.Any value = 2; + } + message ChangeDescription { + string key = 1; + oneof description { + Nothing deleted = 4; // explicitly represents the absence of a description + Nothing moved = 6; // explicitly represents the absence of a description + ResourceInstance resource_instance = 2; + OutputValue output_value = 3; + ComponentInstance component_instance = 5; + } + // Field number 20000 is reserved as a field number that will + // always be unknown to any client, to allow clients to test + // whether they correctly preserve unexpected fields. + reserved 20000; + } + message ResourceInstance { + ResourceInstanceObjectInStackAddr addr = 1; + DynamicValue new_value = 2; + ResourceMode resource_mode = 4; + string resource_type = 5; + string provider_addr = 6; + + // Sometimes Terraform needs to make changes to a resource in + // multiple steps during the apply phase, with each step + // changing something about the state. This flag will be set + // for such interim updates, and left unset for whatever + // description Terraform Core considers to be "final", at + // which point the new value should be converged with the + // desired state. + // + // The intended use for this is when presenting updated values + // to users in the UI, where it might be best to ignore or + // present differently interim updates to avoid creating + // confusion by showing the not-yet-converged intermediate + // states. + // + // If Terraform encounters a problem during the apply phase + // and needs to stop partway through then a "final" change + // description might never arrive. In that case, callers + // should save the most recent interim object as the final + // description, since it would represent the most accurate + // description of the state the remote system has been left + // in. + bool interim = 3; + } + message ComponentInstance { + string component_addr = 3; + string component_instance_addr = 1; + map output_values = 2; + } + message OutputValue { + string name = 1; + DynamicValue new_value = 2; + } + message Nothing {} +} + +// A container for "progress report" events in both Stacks.PlanStackChanges +// and Stacks.ApplyStackChanges, which share this message type to allow +// clients to share event-handling code between the two phases. +message StackChangeProgress { + // Some event types are relevant only to one of the two operations, while + // others are common across both but will include different status codes, + // etc in different phases. + oneof event { + ComponentInstanceStatus component_instance_status = 1; + ResourceInstanceStatus resource_instance_status = 2; + ResourceInstancePlannedChange resource_instance_planned_change = 3; + ProvisionerStatus provisioner_status = 4; + ProvisionerOutput provisioner_output = 5; + ComponentInstanceChanges component_instance_changes = 6; + ComponentInstances component_instances = 7; + DeferredResourceInstancePlannedChange deferred_resource_instance_planned_change = 8; + } + + // ComponentInstanceStatus describes the current status of a component instance + // undergoing a plan or apply operation. + message ComponentInstanceStatus { + ComponentInstanceInStackAddr addr = 1; + Status status = 2; + + enum Status { + INVALID = 0; + PENDING = 1; + PLANNING = 2; + PLANNED = 3; + APPLYING = 4; + APPLIED = 5; + ERRORED = 6; + DEFERRED = 7; + } + } + + // ComponentInstanceStatus describes the current status of a resource instance + // undergoing a plan or apply operation. + message ResourceInstanceStatus { + ResourceInstanceObjectInStackAddr addr = 1; + Status status = 2; + string provider_addr = 3; + + enum Status { + INVALID = 0; + PENDING = 1; + REFRESHING = 2; + REFRESHED = 3; + PLANNING = 4; + PLANNED = 5; + APPLYING = 6; + APPLIED = 7; + ERRORED = 8; + } + } + + // ResourceInstancePlannedChange describes summary information about a planned + // change for a resource instance. This does not include the full object change, + // which is described in PlannedChange.ResourceChange. The information in this + // message is intended for the event stream and need not include the instance's + // full object values. + message ResourceInstancePlannedChange { + ResourceInstanceObjectInStackAddr addr = 1; + repeated ChangeType actions = 2; + Moved moved = 3; + Imported imported = 4; + string provider_addr = 5; + + message Moved { + ResourceInstanceInStackAddr prev_addr = 1; + } + message Imported { + string import_id = 1; + bool unknown = 2; + } + } + + // DeferredResourceInstancePlannedChange represents a planned change for a + // resource instance that is deferred due to the reason provided. + message DeferredResourceInstancePlannedChange { + Deferred deferred = 1; + ResourceInstancePlannedChange change = 2; + } + + // ProvisionerStatus represents the progress of a given provisioner during its + // resource instance's apply operation. + message ProvisionerStatus { + ResourceInstanceObjectInStackAddr addr = 1; + string name = 2; + ProvisionerStatus status = 3; + + enum Status { + INVALID = 0; + PROVISIONING = 1; + PROVISIONED = 2; + ERRORED = 3; + } + } + + // ProvisionerOutput represents recorded output data emitted by a provisioner + // during a resource instance's apply operation. + message ProvisionerOutput { + ResourceInstanceObjectInStackAddr addr = 1; + string name = 2; + string output = 3; + } + + // ComponentInstanceChanges represents a roll-up of change counts for a + // component instance plan or apply operation. + message ComponentInstanceChanges { + ComponentInstanceInStackAddr addr = 1; + + // total is the sum of all of the other count fields. + // + // Clients should sum all of the other count fields they know about + // and compare to total. If the sum is less than total then the + // difference should be treated as an "other change types" category, + // for forward-compatibility when the Terraform Core RPC server is + // using a newer version of this protocol than the client. + int32 total = 2; + int32 add = 3; + int32 change = 4; + int32 import = 5; + int32 remove = 6; + int32 defer = 7; + int32 move = 8; + int32 forget = 9; + } + + // ComponentInstances represents the result of expanding a component into zero + // or more instances. + message ComponentInstances { + string component_addr = 1; + repeated string instance_addrs = 2; + } +} diff --git a/internal/rpcapi/terraform1/terraform1.pb.go b/internal/rpcapi/terraform1/terraform1.pb.go index 57a7ee6149..b7e7d8bf95 100644 --- a/internal/rpcapi/terraform1/terraform1.pb.go +++ b/internal/rpcapi/terraform1/terraform1.pb.go @@ -10,13 +10,8 @@ package terraform1 import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" sync "sync" ) @@ -28,509 +23,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type ResourceMode int32 - -const ( - ResourceMode_UNKNOWN ResourceMode = 0 - ResourceMode_MANAGED ResourceMode = 1 - ResourceMode_DATA ResourceMode = 2 -) - -// Enum value maps for ResourceMode. -var ( - ResourceMode_name = map[int32]string{ - 0: "UNKNOWN", - 1: "MANAGED", - 2: "DATA", - } - ResourceMode_value = map[string]int32{ - "UNKNOWN": 0, - "MANAGED": 1, - "DATA": 2, - } -) - -func (x ResourceMode) Enum() *ResourceMode { - p := new(ResourceMode) - *p = x - return p -} - -func (x ResourceMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ResourceMode) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[0].Descriptor() -} - -func (ResourceMode) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[0] -} - -func (x ResourceMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ResourceMode.Descriptor instead. -func (ResourceMode) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{0} -} - -type PlanMode int32 - -const ( - PlanMode_NORMAL PlanMode = 0 - PlanMode_REFRESH_ONLY PlanMode = 1 - PlanMode_DESTROY PlanMode = 2 -) - -// Enum value maps for PlanMode. -var ( - PlanMode_name = map[int32]string{ - 0: "NORMAL", - 1: "REFRESH_ONLY", - 2: "DESTROY", - } - PlanMode_value = map[string]int32{ - "NORMAL": 0, - "REFRESH_ONLY": 1, - "DESTROY": 2, - } -) - -func (x PlanMode) Enum() *PlanMode { - p := new(PlanMode) - *p = x - return p -} - -func (x PlanMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PlanMode) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[1].Descriptor() -} - -func (PlanMode) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[1] -} - -func (x PlanMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PlanMode.Descriptor instead. -func (PlanMode) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{1} -} - -type ChangeType int32 - -const ( - ChangeType_NOOP ChangeType = 0 - ChangeType_READ ChangeType = 1 - ChangeType_CREATE ChangeType = 2 - ChangeType_UPDATE ChangeType = 3 - ChangeType_DELETE ChangeType = 4 - ChangeType_FORGET ChangeType = 5 -) - -// Enum value maps for ChangeType. -var ( - ChangeType_name = map[int32]string{ - 0: "NOOP", - 1: "READ", - 2: "CREATE", - 3: "UPDATE", - 4: "DELETE", - 5: "FORGET", - } - ChangeType_value = map[string]int32{ - "NOOP": 0, - "READ": 1, - "CREATE": 2, - "UPDATE": 3, - "DELETE": 4, - "FORGET": 5, - } -) - -func (x ChangeType) Enum() *ChangeType { - p := new(ChangeType) - *p = x - return p -} - -func (x ChangeType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ChangeType) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[2].Descriptor() -} - -func (ChangeType) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[2] -} - -func (x ChangeType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ChangeType.Descriptor instead. -func (ChangeType) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{2} -} - -type BuildProviderPluginCache_Event_FetchComplete_AuthResult int32 - -const ( - BuildProviderPluginCache_Event_FetchComplete_UNKNOWN BuildProviderPluginCache_Event_FetchComplete_AuthResult = 0 - BuildProviderPluginCache_Event_FetchComplete_VERIFIED_CHECKSUM BuildProviderPluginCache_Event_FetchComplete_AuthResult = 1 - BuildProviderPluginCache_Event_FetchComplete_OFFICIAL_SIGNED BuildProviderPluginCache_Event_FetchComplete_AuthResult = 2 - BuildProviderPluginCache_Event_FetchComplete_PARTNER_SIGNED BuildProviderPluginCache_Event_FetchComplete_AuthResult = 3 - BuildProviderPluginCache_Event_FetchComplete_SELF_SIGNED BuildProviderPluginCache_Event_FetchComplete_AuthResult = 4 -) - -// Enum value maps for BuildProviderPluginCache_Event_FetchComplete_AuthResult. -var ( - BuildProviderPluginCache_Event_FetchComplete_AuthResult_name = map[int32]string{ - 0: "UNKNOWN", - 1: "VERIFIED_CHECKSUM", - 2: "OFFICIAL_SIGNED", - 3: "PARTNER_SIGNED", - 4: "SELF_SIGNED", - } - BuildProviderPluginCache_Event_FetchComplete_AuthResult_value = map[string]int32{ - "UNKNOWN": 0, - "VERIFIED_CHECKSUM": 1, - "OFFICIAL_SIGNED": 2, - "PARTNER_SIGNED": 3, - "SELF_SIGNED": 4, - } -) - -func (x BuildProviderPluginCache_Event_FetchComplete_AuthResult) Enum() *BuildProviderPluginCache_Event_FetchComplete_AuthResult { - p := new(BuildProviderPluginCache_Event_FetchComplete_AuthResult) - *p = x - return p -} - -func (x BuildProviderPluginCache_Event_FetchComplete_AuthResult) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (BuildProviderPluginCache_Event_FetchComplete_AuthResult) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[3].Descriptor() -} - -func (BuildProviderPluginCache_Event_FetchComplete_AuthResult) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[3] -} - -func (x BuildProviderPluginCache_Event_FetchComplete_AuthResult) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use BuildProviderPluginCache_Event_FetchComplete_AuthResult.Descriptor instead. -func (BuildProviderPluginCache_Event_FetchComplete_AuthResult) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 1, 5, 0} -} - -type FindStackConfigurationComponents_Instances int32 - -const ( - FindStackConfigurationComponents_SINGLE FindStackConfigurationComponents_Instances = 0 - FindStackConfigurationComponents_COUNT FindStackConfigurationComponents_Instances = 1 - FindStackConfigurationComponents_FOR_EACH FindStackConfigurationComponents_Instances = 2 -) - -// Enum value maps for FindStackConfigurationComponents_Instances. -var ( - FindStackConfigurationComponents_Instances_name = map[int32]string{ - 0: "SINGLE", - 1: "COUNT", - 2: "FOR_EACH", - } - FindStackConfigurationComponents_Instances_value = map[string]int32{ - "SINGLE": 0, - "COUNT": 1, - "FOR_EACH": 2, - } -) - -func (x FindStackConfigurationComponents_Instances) Enum() *FindStackConfigurationComponents_Instances { - p := new(FindStackConfigurationComponents_Instances) - *p = x - return p -} - -func (x FindStackConfigurationComponents_Instances) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (FindStackConfigurationComponents_Instances) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[4].Descriptor() -} - -func (FindStackConfigurationComponents_Instances) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[4] -} - -func (x FindStackConfigurationComponents_Instances) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use FindStackConfigurationComponents_Instances.Descriptor instead. -func (FindStackConfigurationComponents_Instances) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23, 0} -} - -// Reason describes the reason why a resource instance change was -// deferred. -type Deferred_Reason int32 - -const ( - Deferred_INVALID Deferred_Reason = 0 - Deferred_INSTANCE_COUNT_UNKNOWN Deferred_Reason = 1 - Deferred_RESOURCE_CONFIG_UNKNOWN Deferred_Reason = 2 - Deferred_PROVIDER_CONFIG_UNKNOWN Deferred_Reason = 3 - Deferred_ABSENT_PREREQ Deferred_Reason = 4 - Deferred_DEFERRED_PREREQ Deferred_Reason = 5 -) - -// Enum value maps for Deferred_Reason. -var ( - Deferred_Reason_name = map[int32]string{ - 0: "INVALID", - 1: "INSTANCE_COUNT_UNKNOWN", - 2: "RESOURCE_CONFIG_UNKNOWN", - 3: "PROVIDER_CONFIG_UNKNOWN", - 4: "ABSENT_PREREQ", - 5: "DEFERRED_PREREQ", - } - Deferred_Reason_value = map[string]int32{ - "INVALID": 0, - "INSTANCE_COUNT_UNKNOWN": 1, - "RESOURCE_CONFIG_UNKNOWN": 2, - "PROVIDER_CONFIG_UNKNOWN": 3, - "ABSENT_PREREQ": 4, - "DEFERRED_PREREQ": 5, - } -) - -func (x Deferred_Reason) Enum() *Deferred_Reason { - p := new(Deferred_Reason) - *p = x - return p -} - -func (x Deferred_Reason) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Deferred_Reason) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[5].Descriptor() -} - -func (Deferred_Reason) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[5] -} - -func (x Deferred_Reason) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Deferred_Reason.Descriptor instead. -func (Deferred_Reason) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{41, 0} -} - -type StackChangeProgress_ComponentInstanceStatus_Status int32 - -const ( - StackChangeProgress_ComponentInstanceStatus_INVALID StackChangeProgress_ComponentInstanceStatus_Status = 0 - StackChangeProgress_ComponentInstanceStatus_PENDING StackChangeProgress_ComponentInstanceStatus_Status = 1 - StackChangeProgress_ComponentInstanceStatus_PLANNING StackChangeProgress_ComponentInstanceStatus_Status = 2 - StackChangeProgress_ComponentInstanceStatus_PLANNED StackChangeProgress_ComponentInstanceStatus_Status = 3 - StackChangeProgress_ComponentInstanceStatus_APPLYING StackChangeProgress_ComponentInstanceStatus_Status = 4 - StackChangeProgress_ComponentInstanceStatus_APPLIED StackChangeProgress_ComponentInstanceStatus_Status = 5 - StackChangeProgress_ComponentInstanceStatus_ERRORED StackChangeProgress_ComponentInstanceStatus_Status = 6 - StackChangeProgress_ComponentInstanceStatus_DEFERRED StackChangeProgress_ComponentInstanceStatus_Status = 7 -) - -// Enum value maps for StackChangeProgress_ComponentInstanceStatus_Status. -var ( - StackChangeProgress_ComponentInstanceStatus_Status_name = map[int32]string{ - 0: "INVALID", - 1: "PENDING", - 2: "PLANNING", - 3: "PLANNED", - 4: "APPLYING", - 5: "APPLIED", - 6: "ERRORED", - 7: "DEFERRED", - } - StackChangeProgress_ComponentInstanceStatus_Status_value = map[string]int32{ - "INVALID": 0, - "PENDING": 1, - "PLANNING": 2, - "PLANNED": 3, - "APPLYING": 4, - "APPLIED": 5, - "ERRORED": 6, - "DEFERRED": 7, - } -) - -func (x StackChangeProgress_ComponentInstanceStatus_Status) Enum() *StackChangeProgress_ComponentInstanceStatus_Status { - p := new(StackChangeProgress_ComponentInstanceStatus_Status) - *p = x - return p -} - -func (x StackChangeProgress_ComponentInstanceStatus_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (StackChangeProgress_ComponentInstanceStatus_Status) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[6].Descriptor() -} - -func (StackChangeProgress_ComponentInstanceStatus_Status) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[6] -} - -func (x StackChangeProgress_ComponentInstanceStatus_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StackChangeProgress_ComponentInstanceStatus_Status.Descriptor instead. -func (StackChangeProgress_ComponentInstanceStatus_Status) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 0, 0} -} - -type StackChangeProgress_ResourceInstanceStatus_Status int32 - -const ( - StackChangeProgress_ResourceInstanceStatus_INVALID StackChangeProgress_ResourceInstanceStatus_Status = 0 - StackChangeProgress_ResourceInstanceStatus_PENDING StackChangeProgress_ResourceInstanceStatus_Status = 1 - StackChangeProgress_ResourceInstanceStatus_REFRESHING StackChangeProgress_ResourceInstanceStatus_Status = 2 - StackChangeProgress_ResourceInstanceStatus_REFRESHED StackChangeProgress_ResourceInstanceStatus_Status = 3 - StackChangeProgress_ResourceInstanceStatus_PLANNING StackChangeProgress_ResourceInstanceStatus_Status = 4 - StackChangeProgress_ResourceInstanceStatus_PLANNED StackChangeProgress_ResourceInstanceStatus_Status = 5 - StackChangeProgress_ResourceInstanceStatus_APPLYING StackChangeProgress_ResourceInstanceStatus_Status = 6 - StackChangeProgress_ResourceInstanceStatus_APPLIED StackChangeProgress_ResourceInstanceStatus_Status = 7 - StackChangeProgress_ResourceInstanceStatus_ERRORED StackChangeProgress_ResourceInstanceStatus_Status = 8 -) - -// Enum value maps for StackChangeProgress_ResourceInstanceStatus_Status. -var ( - StackChangeProgress_ResourceInstanceStatus_Status_name = map[int32]string{ - 0: "INVALID", - 1: "PENDING", - 2: "REFRESHING", - 3: "REFRESHED", - 4: "PLANNING", - 5: "PLANNED", - 6: "APPLYING", - 7: "APPLIED", - 8: "ERRORED", - } - StackChangeProgress_ResourceInstanceStatus_Status_value = map[string]int32{ - "INVALID": 0, - "PENDING": 1, - "REFRESHING": 2, - "REFRESHED": 3, - "PLANNING": 4, - "PLANNED": 5, - "APPLYING": 6, - "APPLIED": 7, - "ERRORED": 8, - } -) - -func (x StackChangeProgress_ResourceInstanceStatus_Status) Enum() *StackChangeProgress_ResourceInstanceStatus_Status { - p := new(StackChangeProgress_ResourceInstanceStatus_Status) - *p = x - return p -} - -func (x StackChangeProgress_ResourceInstanceStatus_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (StackChangeProgress_ResourceInstanceStatus_Status) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[7].Descriptor() -} - -func (StackChangeProgress_ResourceInstanceStatus_Status) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[7] -} - -func (x StackChangeProgress_ResourceInstanceStatus_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StackChangeProgress_ResourceInstanceStatus_Status.Descriptor instead. -func (StackChangeProgress_ResourceInstanceStatus_Status) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 1, 0} -} - -type StackChangeProgress_ProvisionerStatus_Status int32 - -const ( - StackChangeProgress_ProvisionerStatus_INVALID StackChangeProgress_ProvisionerStatus_Status = 0 - StackChangeProgress_ProvisionerStatus_PROVISIONING StackChangeProgress_ProvisionerStatus_Status = 1 - StackChangeProgress_ProvisionerStatus_PROVISIONED StackChangeProgress_ProvisionerStatus_Status = 2 - StackChangeProgress_ProvisionerStatus_ERRORED StackChangeProgress_ProvisionerStatus_Status = 3 -) - -// Enum value maps for StackChangeProgress_ProvisionerStatus_Status. -var ( - StackChangeProgress_ProvisionerStatus_Status_name = map[int32]string{ - 0: "INVALID", - 1: "PROVISIONING", - 2: "PROVISIONED", - 3: "ERRORED", - } - StackChangeProgress_ProvisionerStatus_Status_value = map[string]int32{ - "INVALID": 0, - "PROVISIONING": 1, - "PROVISIONED": 2, - "ERRORED": 3, - } -) - -func (x StackChangeProgress_ProvisionerStatus_Status) Enum() *StackChangeProgress_ProvisionerStatus_Status { - p := new(StackChangeProgress_ProvisionerStatus_Status) - *p = x - return p -} - -func (x StackChangeProgress_ProvisionerStatus_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (StackChangeProgress_ProvisionerStatus_Status) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[8].Descriptor() -} - -func (StackChangeProgress_ProvisionerStatus_Status) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[8] -} - -func (x StackChangeProgress_ProvisionerStatus_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use StackChangeProgress_ProvisionerStatus_Status.Descriptor instead. -func (StackChangeProgress_ProvisionerStatus_Status) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 4, 0} -} - type Diagnostic_Severity int32 const ( @@ -564,11 +56,11 @@ func (x Diagnostic_Severity) String() string { } func (Diagnostic_Severity) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[9].Descriptor() + return file_terraform1_proto_enumTypes[0].Descriptor() } func (Diagnostic_Severity) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[9] + return &file_terraform1_proto_enumTypes[0] } func (x Diagnostic_Severity) Number() protoreflect.EnumNumber { @@ -577,875 +69,7 @@ func (x Diagnostic_Severity) Number() protoreflect.EnumNumber { // Deprecated: Use Diagnostic_Severity.Descriptor instead. func (Diagnostic_Severity) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{44, 0} -} - -type Schema_NestedBlock_NestingMode int32 - -const ( - Schema_NestedBlock_INVALID Schema_NestedBlock_NestingMode = 0 - Schema_NestedBlock_SINGLE Schema_NestedBlock_NestingMode = 1 - Schema_NestedBlock_LIST Schema_NestedBlock_NestingMode = 2 - Schema_NestedBlock_SET Schema_NestedBlock_NestingMode = 3 - Schema_NestedBlock_MAP Schema_NestedBlock_NestingMode = 4 - Schema_NestedBlock_GROUP Schema_NestedBlock_NestingMode = 5 -) - -// Enum value maps for Schema_NestedBlock_NestingMode. -var ( - Schema_NestedBlock_NestingMode_name = map[int32]string{ - 0: "INVALID", - 1: "SINGLE", - 2: "LIST", - 3: "SET", - 4: "MAP", - 5: "GROUP", - } - Schema_NestedBlock_NestingMode_value = map[string]int32{ - "INVALID": 0, - "SINGLE": 1, - "LIST": 2, - "SET": 3, - "MAP": 4, - "GROUP": 5, - } -) - -func (x Schema_NestedBlock_NestingMode) Enum() *Schema_NestedBlock_NestingMode { - p := new(Schema_NestedBlock_NestingMode) - *p = x - return p -} - -func (x Schema_NestedBlock_NestingMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Schema_NestedBlock_NestingMode) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[10].Descriptor() -} - -func (Schema_NestedBlock_NestingMode) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[10] -} - -func (x Schema_NestedBlock_NestingMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Schema_NestedBlock_NestingMode.Descriptor instead. -func (Schema_NestedBlock_NestingMode) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47, 2, 0} -} - -type Schema_Object_NestingMode int32 - -const ( - Schema_Object_INVALID Schema_Object_NestingMode = 0 - Schema_Object_SINGLE Schema_Object_NestingMode = 1 - Schema_Object_LIST Schema_Object_NestingMode = 2 - Schema_Object_SET Schema_Object_NestingMode = 3 - Schema_Object_MAP Schema_Object_NestingMode = 4 -) - -// Enum value maps for Schema_Object_NestingMode. -var ( - Schema_Object_NestingMode_name = map[int32]string{ - 0: "INVALID", - 1: "SINGLE", - 2: "LIST", - 3: "SET", - 4: "MAP", - } - Schema_Object_NestingMode_value = map[string]int32{ - "INVALID": 0, - "SINGLE": 1, - "LIST": 2, - "SET": 3, - "MAP": 4, - } -) - -func (x Schema_Object_NestingMode) Enum() *Schema_Object_NestingMode { - p := new(Schema_Object_NestingMode) - *p = x - return p -} - -func (x Schema_Object_NestingMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Schema_Object_NestingMode) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[11].Descriptor() -} - -func (Schema_Object_NestingMode) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[11] -} - -func (x Schema_Object_NestingMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Schema_Object_NestingMode.Descriptor instead. -func (Schema_Object_NestingMode) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47, 3, 0} -} - -type Schema_DocString_Format int32 - -const ( - Schema_DocString_PLAIN Schema_DocString_Format = 0 - Schema_DocString_MARKDOWN Schema_DocString_Format = 1 -) - -// Enum value maps for Schema_DocString_Format. -var ( - Schema_DocString_Format_name = map[int32]string{ - 0: "PLAIN", - 1: "MARKDOWN", - } - Schema_DocString_Format_value = map[string]int32{ - "PLAIN": 0, - "MARKDOWN": 1, - } -) - -func (x Schema_DocString_Format) Enum() *Schema_DocString_Format { - p := new(Schema_DocString_Format) - *p = x - return p -} - -func (x Schema_DocString_Format) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Schema_DocString_Format) Descriptor() protoreflect.EnumDescriptor { - return file_terraform1_proto_enumTypes[12].Descriptor() -} - -func (Schema_DocString_Format) Type() protoreflect.EnumType { - return &file_terraform1_proto_enumTypes[12] -} - -func (x Schema_DocString_Format) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Schema_DocString_Format.Descriptor instead. -func (Schema_DocString_Format) EnumDescriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47, 4, 0} -} - -type Handshake struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Handshake) Reset() { - *x = Handshake{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Handshake) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Handshake) ProtoMessage() {} - -func (x *Handshake) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Handshake.ProtoReflect.Descriptor instead. -func (*Handshake) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{0} -} - -type Stop struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Stop) Reset() { - *x = Stop{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Stop) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Stop) ProtoMessage() {} - -func (x *Stop) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Stop.ProtoReflect.Descriptor instead. -func (*Stop) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{1} -} - -// The capabilities that the client wishes to advertise to the server during -// handshake. -type ClientCapabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ClientCapabilities) Reset() { - *x = ClientCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClientCapabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClientCapabilities) ProtoMessage() {} - -func (x *ClientCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClientCapabilities.ProtoReflect.Descriptor instead. -func (*ClientCapabilities) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{2} -} - -// The capabilities that the server wishes to advertise to the client during -// handshake. Fields in this message can also be used to acknowledge and -// confirm support for client capabilities advertised in ClientCapabilities, -// in situations where the client must vary its behavior based on the server's -// level of support. -type ServerCapabilities struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ServerCapabilities) Reset() { - *x = ServerCapabilities{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ServerCapabilities) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ServerCapabilities) ProtoMessage() {} - -func (x *ServerCapabilities) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ServerCapabilities.ProtoReflect.Descriptor instead. -func (*ServerCapabilities) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{3} -} - -type Config struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Credentials map[string]*HostCredential `protobuf:"bytes,1,rep,name=credentials,proto3" json:"credentials,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *Config) Reset() { - *x = Config{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Config) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Config) ProtoMessage() {} - -func (x *Config) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Config.ProtoReflect.Descriptor instead. -func (*Config) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{4} -} - -func (x *Config) GetCredentials() map[string]*HostCredential { - if x != nil { - return x.Credentials - } - return nil -} - -type HostCredential struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *HostCredential) Reset() { - *x = HostCredential{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HostCredential) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HostCredential) ProtoMessage() {} - -func (x *HostCredential) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HostCredential.ProtoReflect.Descriptor instead. -func (*HostCredential) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{5} -} - -func (x *HostCredential) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -type OpenSourceBundle struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OpenSourceBundle) Reset() { - *x = OpenSourceBundle{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenSourceBundle) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenSourceBundle) ProtoMessage() {} - -func (x *OpenSourceBundle) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenSourceBundle.ProtoReflect.Descriptor instead. -func (*OpenSourceBundle) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{6} -} - -type CloseSourceBundle struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseSourceBundle) Reset() { - *x = CloseSourceBundle{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseSourceBundle) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseSourceBundle) ProtoMessage() {} - -func (x *CloseSourceBundle) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseSourceBundle.ProtoReflect.Descriptor instead. -func (*CloseSourceBundle) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{7} -} - -type OpenDependencyLockFile struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OpenDependencyLockFile) Reset() { - *x = OpenDependencyLockFile{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenDependencyLockFile) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenDependencyLockFile) ProtoMessage() {} - -func (x *OpenDependencyLockFile) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenDependencyLockFile.ProtoReflect.Descriptor instead. -func (*OpenDependencyLockFile) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{8} -} - -type CreateDependencyLocks struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CreateDependencyLocks) Reset() { - *x = CreateDependencyLocks{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDependencyLocks) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDependencyLocks) ProtoMessage() {} - -func (x *CreateDependencyLocks) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDependencyLocks.ProtoReflect.Descriptor instead. -func (*CreateDependencyLocks) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{9} -} - -type CloseDependencyLocks struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseDependencyLocks) Reset() { - *x = CloseDependencyLocks{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseDependencyLocks) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseDependencyLocks) ProtoMessage() {} - -func (x *CloseDependencyLocks) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseDependencyLocks.ProtoReflect.Descriptor instead. -func (*CloseDependencyLocks) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{10} -} - -type GetLockedProviderDependencies struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetLockedProviderDependencies) Reset() { - *x = GetLockedProviderDependencies{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLockedProviderDependencies) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLockedProviderDependencies) ProtoMessage() {} - -func (x *GetLockedProviderDependencies) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLockedProviderDependencies.ProtoReflect.Descriptor instead. -func (*GetLockedProviderDependencies) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{11} -} - -type BuildProviderPluginCache struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *BuildProviderPluginCache) Reset() { - *x = BuildProviderPluginCache{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache) ProtoMessage() {} - -func (x *BuildProviderPluginCache) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12} -} - -type OpenProviderPluginCache struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OpenProviderPluginCache) Reset() { - *x = OpenProviderPluginCache{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenProviderPluginCache) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenProviderPluginCache) ProtoMessage() {} - -func (x *OpenProviderPluginCache) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenProviderPluginCache.ProtoReflect.Descriptor instead. -func (*OpenProviderPluginCache) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{13} -} - -type CloseProviderPluginCache struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseProviderPluginCache) Reset() { - *x = CloseProviderPluginCache{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseProviderPluginCache) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseProviderPluginCache) ProtoMessage() {} - -func (x *CloseProviderPluginCache) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseProviderPluginCache.ProtoReflect.Descriptor instead. -func (*CloseProviderPluginCache) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{14} -} - -type GetCachedProviders struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetCachedProviders) Reset() { - *x = GetCachedProviders{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetCachedProviders) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCachedProviders) ProtoMessage() {} - -func (x *GetCachedProviders) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCachedProviders.ProtoReflect.Descriptor instead. -func (*GetCachedProviders) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{15} -} - -type GetBuiltInProviders struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetBuiltInProviders) Reset() { - *x = GetBuiltInProviders{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBuiltInProviders) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBuiltInProviders) ProtoMessage() {} - -func (x *GetBuiltInProviders) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBuiltInProviders.ProtoReflect.Descriptor instead. -func (*GetBuiltInProviders) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{16} -} - -type GetProviderSchema struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetProviderSchema) Reset() { - *x = GetProviderSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProviderSchema) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProviderSchema) ProtoMessage() {} - -func (x *GetProviderSchema) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProviderSchema.ProtoReflect.Descriptor instead. -func (*GetProviderSchema) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{17} + return file_terraform1_proto_rawDescGZIP(), []int{2, 0} } // Represents a selected or available version of a provider, from either a @@ -1488,7 +112,7 @@ type ProviderPackage struct { func (x *ProviderPackage) Reset() { *x = ProviderPackage{} if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[18] + mi := &file_terraform1_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1501,7 +125,7 @@ func (x *ProviderPackage) String() string { func (*ProviderPackage) ProtoMessage() {} func (x *ProviderPackage) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[18] + mi := &file_terraform1_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1514,7 +138,7 @@ func (x *ProviderPackage) ProtoReflect() protoreflect.Message { // Deprecated: Use ProviderPackage.ProtoReflect.Descriptor instead. func (*ProviderPackage) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{18} + return file_terraform1_proto_rawDescGZIP(), []int{0} } func (x *ProviderPackage) GetSourceAddr() string { @@ -1538,945 +162,6 @@ func (x *ProviderPackage) GetHashes() []string { return nil } -// ProviderSchema describes the full schema for a particular provider. -type ProviderSchema struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProviderConfig *Schema `protobuf:"bytes,1,opt,name=provider_config,json=providerConfig,proto3" json:"provider_config,omitempty"` - ManagedResourceTypes map[string]*Schema `protobuf:"bytes,2,rep,name=managed_resource_types,json=managedResourceTypes,proto3" json:"managed_resource_types,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - DataResourceTypes map[string]*Schema `protobuf:"bytes,3,rep,name=data_resource_types,json=dataResourceTypes,proto3" json:"data_resource_types,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ProviderSchema) Reset() { - *x = ProviderSchema{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderSchema) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderSchema) ProtoMessage() {} - -func (x *ProviderSchema) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProviderSchema.ProtoReflect.Descriptor instead. -func (*ProviderSchema) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{19} -} - -func (x *ProviderSchema) GetProviderConfig() *Schema { - if x != nil { - return x.ProviderConfig - } - return nil -} - -func (x *ProviderSchema) GetManagedResourceTypes() map[string]*Schema { - if x != nil { - return x.ManagedResourceTypes - } - return nil -} - -func (x *ProviderSchema) GetDataResourceTypes() map[string]*Schema { - if x != nil { - return x.DataResourceTypes - } - return nil -} - -type OpenStackConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OpenStackConfiguration) Reset() { - *x = OpenStackConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackConfiguration) ProtoMessage() {} - -func (x *OpenStackConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackConfiguration.ProtoReflect.Descriptor instead. -func (*OpenStackConfiguration) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{20} -} - -type CloseStackConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseStackConfiguration) Reset() { - *x = CloseStackConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackConfiguration) ProtoMessage() {} - -func (x *CloseStackConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackConfiguration.ProtoReflect.Descriptor instead. -func (*CloseStackConfiguration) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{21} -} - -type ValidateStackConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ValidateStackConfiguration) Reset() { - *x = ValidateStackConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidateStackConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidateStackConfiguration) ProtoMessage() {} - -func (x *ValidateStackConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ValidateStackConfiguration.ProtoReflect.Descriptor instead. -func (*ValidateStackConfiguration) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{22} -} - -type FindStackConfigurationComponents struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *FindStackConfigurationComponents) Reset() { - *x = FindStackConfigurationComponents{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindStackConfigurationComponents) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindStackConfigurationComponents) ProtoMessage() {} - -func (x *FindStackConfigurationComponents) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindStackConfigurationComponents.ProtoReflect.Descriptor instead. -func (*FindStackConfigurationComponents) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23} -} - -type OpenStackState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OpenStackState) Reset() { - *x = OpenStackState{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackState) ProtoMessage() {} - -func (x *OpenStackState) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackState.ProtoReflect.Descriptor instead. -func (*OpenStackState) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{24} -} - -type CloseStackState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseStackState) Reset() { - *x = CloseStackState{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackState) ProtoMessage() {} - -func (x *CloseStackState) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackState.ProtoReflect.Descriptor instead. -func (*CloseStackState) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{25} -} - -type PlanStackChanges struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PlanStackChanges) Reset() { - *x = PlanStackChanges{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlanStackChanges) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlanStackChanges) ProtoMessage() {} - -func (x *PlanStackChanges) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlanStackChanges.ProtoReflect.Descriptor instead. -func (*PlanStackChanges) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{26} -} - -type OpenStackPlan struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OpenStackPlan) Reset() { - *x = OpenStackPlan{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackPlan) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackPlan) ProtoMessage() {} - -func (x *OpenStackPlan) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackPlan.ProtoReflect.Descriptor instead. -func (*OpenStackPlan) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{27} -} - -type CloseStackPlan struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseStackPlan) Reset() { - *x = CloseStackPlan{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackPlan) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackPlan) ProtoMessage() {} - -func (x *CloseStackPlan) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackPlan.ProtoReflect.Descriptor instead. -func (*CloseStackPlan) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{28} -} - -type ApplyStackChanges struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ApplyStackChanges) Reset() { - *x = ApplyStackChanges{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplyStackChanges) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplyStackChanges) ProtoMessage() {} - -func (x *ApplyStackChanges) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplyStackChanges.ProtoReflect.Descriptor instead. -func (*ApplyStackChanges) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{29} -} - -type OpenStackInspector struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OpenStackInspector) Reset() { - *x = OpenStackInspector{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackInspector) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackInspector) ProtoMessage() {} - -func (x *OpenStackInspector) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackInspector.ProtoReflect.Descriptor instead. -func (*OpenStackInspector) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{30} -} - -type InspectExpressionResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *InspectExpressionResult) Reset() { - *x = InspectExpressionResult{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InspectExpressionResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InspectExpressionResult) ProtoMessage() {} - -func (x *InspectExpressionResult) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InspectExpressionResult.ProtoReflect.Descriptor instead. -func (*InspectExpressionResult) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{31} -} - -// Represents dynamically-typed data from within the Terraform language. -// Typically only one of the available serialization formats will be populated, -// depending on what serializations are appropriate for a particular context -// and what capabilities the client and the server negotiated during Handshake. -type DynamicValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Msgpack []byte `protobuf:"bytes,1,opt,name=msgpack,proto3" json:"msgpack,omitempty"` // The default serialization format - Sensitive []*AttributePath `protobuf:"bytes,2,rep,name=sensitive,proto3" json:"sensitive,omitempty"` // Paths to any sensitive-marked values. -} - -func (x *DynamicValue) Reset() { - *x = DynamicValue{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DynamicValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DynamicValue) ProtoMessage() {} - -func (x *DynamicValue) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DynamicValue.ProtoReflect.Descriptor instead. -func (*DynamicValue) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{32} -} - -func (x *DynamicValue) GetMsgpack() []byte { - if x != nil { - return x.Msgpack - } - return nil -} - -func (x *DynamicValue) GetSensitive() []*AttributePath { - if x != nil { - return x.Sensitive - } - return nil -} - -// Represents a change of some object from one dynamic value to another. -type DynamicValueChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Old *DynamicValue `protobuf:"bytes,1,opt,name=old,proto3" json:"old,omitempty"` - New *DynamicValue `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"` -} - -func (x *DynamicValueChange) Reset() { - *x = DynamicValueChange{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DynamicValueChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DynamicValueChange) ProtoMessage() {} - -func (x *DynamicValueChange) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DynamicValueChange.ProtoReflect.Descriptor instead. -func (*DynamicValueChange) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{33} -} - -func (x *DynamicValueChange) GetOld() *DynamicValue { - if x != nil { - return x.Old - } - return nil -} - -func (x *DynamicValueChange) GetNew() *DynamicValue { - if x != nil { - return x.New - } - return nil -} - -// Represents a DynamicValue accompanied by a source location where it was -// presumably defined, for values that originated in configuration files for -// situations such as returning error messages. -type DynamicValueWithSource struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value *DynamicValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - SourceRange *SourceRange `protobuf:"bytes,2,opt,name=source_range,json=sourceRange,proto3" json:"source_range,omitempty"` -} - -func (x *DynamicValueWithSource) Reset() { - *x = DynamicValueWithSource{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DynamicValueWithSource) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DynamicValueWithSource) ProtoMessage() {} - -func (x *DynamicValueWithSource) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DynamicValueWithSource.ProtoReflect.Descriptor instead. -func (*DynamicValueWithSource) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{34} -} - -func (x *DynamicValueWithSource) GetValue() *DynamicValue { - if x != nil { - return x.Value - } - return nil -} - -func (x *DynamicValueWithSource) GetSourceRange() *SourceRange { - if x != nil { - return x.SourceRange - } - return nil -} - -type AttributePath struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Steps []*AttributePath_Step `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"` -} - -func (x *AttributePath) Reset() { - *x = AttributePath{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AttributePath) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AttributePath) ProtoMessage() {} - -func (x *AttributePath) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AttributePath.ProtoReflect.Descriptor instead. -func (*AttributePath) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{35} -} - -func (x *AttributePath) GetSteps() []*AttributePath_Step { - if x != nil { - return x.Steps - } - return nil -} - -// Represents the address of a specific component instance within a stack. -type ComponentInstanceInStackAddr struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The address of the static component that this is an instance of. - ComponentAddr string `protobuf:"bytes,1,opt,name=component_addr,json=componentAddr,proto3" json:"component_addr,omitempty"` - // The address of the instance that's being announced. For - // multi-instance components this could have any combination of - // instance keys on the component itself or instance keys on any - // of the containing embedded stacks. - ComponentInstanceAddr string `protobuf:"bytes,2,opt,name=component_instance_addr,json=componentInstanceAddr,proto3" json:"component_instance_addr,omitempty"` -} - -func (x *ComponentInstanceInStackAddr) Reset() { - *x = ComponentInstanceInStackAddr{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ComponentInstanceInStackAddr) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ComponentInstanceInStackAddr) ProtoMessage() {} - -func (x *ComponentInstanceInStackAddr) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ComponentInstanceInStackAddr.ProtoReflect.Descriptor instead. -func (*ComponentInstanceInStackAddr) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{36} -} - -func (x *ComponentInstanceInStackAddr) GetComponentAddr() string { - if x != nil { - return x.ComponentAddr - } - return "" -} - -func (x *ComponentInstanceInStackAddr) GetComponentInstanceAddr() string { - if x != nil { - return x.ComponentInstanceAddr - } - return "" -} - -// Represents the address of a specific resource instance inside a specific -// component instance within the containing stack. -type ResourceInstanceInStackAddr struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique address of the component instance that this resource instance - // belongs to. This is comparable with - ComponentInstanceAddr string `protobuf:"bytes,1,opt,name=component_instance_addr,json=componentInstanceAddr,proto3" json:"component_instance_addr,omitempty"` - // Unique address of the resource instance within the given component - // instance. Each component instance has a separate namespace of - // resource instance addresses, so callers must take both fields together - // to produce a key that's unique throughout the entire plan. - ResourceInstanceAddr string `protobuf:"bytes,2,opt,name=resource_instance_addr,json=resourceInstanceAddr,proto3" json:"resource_instance_addr,omitempty"` -} - -func (x *ResourceInstanceInStackAddr) Reset() { - *x = ResourceInstanceInStackAddr{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceInstanceInStackAddr) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceInstanceInStackAddr) ProtoMessage() {} - -func (x *ResourceInstanceInStackAddr) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResourceInstanceInStackAddr.ProtoReflect.Descriptor instead. -func (*ResourceInstanceInStackAddr) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{37} -} - -func (x *ResourceInstanceInStackAddr) GetComponentInstanceAddr() string { - if x != nil { - return x.ComponentInstanceAddr - } - return "" -} - -func (x *ResourceInstanceInStackAddr) GetResourceInstanceAddr() string { - if x != nil { - return x.ResourceInstanceAddr - } - return "" -} - -// Represents the address of a specific resource instance object inside a -// specific component instance within the containing stack. -type ResourceInstanceObjectInStackAddr struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique address of the component instance that this resource instance - // belongs to. This is comparable with - ComponentInstanceAddr string `protobuf:"bytes,1,opt,name=component_instance_addr,json=componentInstanceAddr,proto3" json:"component_instance_addr,omitempty"` - // Unique address of the resource instance within the given component - // instance. Each component instance has a separate namespace of - // resource instance addresses, so callers must take both fields together - // to produce a key that's unique throughout the entire plan. - ResourceInstanceAddr string `protobuf:"bytes,2,opt,name=resource_instance_addr,json=resourceInstanceAddr,proto3" json:"resource_instance_addr,omitempty"` - // Optional "deposed key" populated only for non-current (deposed) objects, - // which can appear for "create before destroy" replacements where the - // create succeeds but then the destroy fails, leaving us with two different - // objects to track for the same resource instance. - DeposedKey string `protobuf:"bytes,3,opt,name=deposed_key,json=deposedKey,proto3" json:"deposed_key,omitempty"` -} - -func (x *ResourceInstanceObjectInStackAddr) Reset() { - *x = ResourceInstanceObjectInStackAddr{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceInstanceObjectInStackAddr) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceInstanceObjectInStackAddr) ProtoMessage() {} - -func (x *ResourceInstanceObjectInStackAddr) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResourceInstanceObjectInStackAddr.ProtoReflect.Descriptor instead. -func (*ResourceInstanceObjectInStackAddr) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{38} -} - -func (x *ResourceInstanceObjectInStackAddr) GetComponentInstanceAddr() string { - if x != nil { - return x.ComponentInstanceAddr - } - return "" -} - -func (x *ResourceInstanceObjectInStackAddr) GetResourceInstanceAddr() string { - if x != nil { - return x.ResourceInstanceAddr - } - return "" -} - -func (x *ResourceInstanceObjectInStackAddr) GetDeposedKey() string { - if x != nil { - return x.DeposedKey - } - return "" -} - // A source address in the same form as it would appear in a Terraform // configuration: a source string combined with an optional version constraint // string, where the latter is valid only for registry module addresses. @@ -2496,7 +181,7 @@ type SourceAddress struct { func (x *SourceAddress) Reset() { *x = SourceAddress{} if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[39] + mi := &file_terraform1_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2509,7 +194,7 @@ func (x *SourceAddress) String() string { func (*SourceAddress) ProtoMessage() {} func (x *SourceAddress) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[39] + mi := &file_terraform1_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2522,7 +207,7 @@ func (x *SourceAddress) ProtoReflect() protoreflect.Message { // Deprecated: Use SourceAddress.ProtoReflect.Descriptor instead. func (*SourceAddress) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{39} + return file_terraform1_proto_rawDescGZIP(), []int{1} } func (x *SourceAddress) GetSource() string { @@ -2539,433 +224,6 @@ func (x *SourceAddress) GetVersions() string { return "" } -// Describes one item in a stack plan. The overall plan is the concatentation -// of all messages of this type emitted as events during the plan; splitting -// this information over multiple messages just allows the individual events -// to double as progress notifications for an interactive UI. -type PlannedChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Terraform Core's internal representation(s) of this change. Callers - // must provide the messages in this field, if any, verbatim to the - // ApplyStackChanges RPC in order to apply this change, and must not - // attempt to decode or analyze the contents because they are subject - // to change in future versions of Terraform Core. - // - // This might be unpopulated if this message represents only information - // for the caller and Terraform Core doesn't actually need to recall this - // information during the apply step. Callers must append each raw item - // to the raw plan in the order specified, and provide them all together - // in the same order to ApplyStackChanges. - Raw []*anypb.Any `protobuf:"bytes,1,rep,name=raw,proto3" json:"raw,omitempty"` - // Caller-facing descriptions of this change, to use for presenting - // information to end-users in the UI and for other subsystems such as - // imposing policy rules on the resulting plan. - // - // There can be zero or more description objects associated with each - // change. More than one is not common, but should be supported by clients - // by treating them the same way as if each description had arrived in - // a separate PlannedChange message. Clients should not treat the grouping - // or not-grouping of change description objects as meaningful information, - // since it's subject to change in future Terraform Core versions. - // - // DO NOT attempt to use this to surgically filter particular changes - // from a larger plan. Although external descriptions often match with - // the raw representations in field "raw", that is not guaranteed and - // Terraform Core assumes that it will always be provided with the full - // set of raw messages -- in the same order they were emitted -- during - // the apply step. For example, some raw messages might omit information - // that is implied by earlier raw messages and would therefore be - // incomplete if isolated. - Descriptions []*PlannedChange_ChangeDescription `protobuf:"bytes,2,rep,name=descriptions,proto3" json:"descriptions,omitempty"` -} - -func (x *PlannedChange) Reset() { - *x = PlannedChange{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange) ProtoMessage() {} - -func (x *PlannedChange) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange.ProtoReflect.Descriptor instead. -func (*PlannedChange) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40} -} - -func (x *PlannedChange) GetRaw() []*anypb.Any { - if x != nil { - return x.Raw - } - return nil -} - -func (x *PlannedChange) GetDescriptions() []*PlannedChange_ChangeDescription { - if x != nil { - return x.Descriptions - } - return nil -} - -// Deferred contains all the metadata about a the deferral of a resource -// instance change. -type Deferred struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Reason Deferred_Reason `protobuf:"varint,1,opt,name=reason,proto3,enum=terraform1.Deferred_Reason" json:"reason,omitempty"` -} - -func (x *Deferred) Reset() { - *x = Deferred{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Deferred) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Deferred) ProtoMessage() {} - -func (x *Deferred) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Deferred.ProtoReflect.Descriptor instead. -func (*Deferred) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{41} -} - -func (x *Deferred) GetReason() Deferred_Reason { - if x != nil { - return x.Reason - } - return Deferred_INVALID -} - -// Describes a change made during a Stacks.ApplyStackChanges call. -// -// All of the events of this type taken together represent a sort of "patch" -// modifying the two data structures that the caller must maintain: the -// raw state map, and the description map. Callers must apply these changes -// in the order of the emission of the messages and then retain the entirety -// of both data structures to populate fields in the next PlanStackChanges call. -type AppliedChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Terraform Core's internal representation of the change, presented as - // a sequence of modifications to the raw state data structure. - // - // For each element, in order: - // - If both key and value are set and the key matches an element - // already in the raw state map, the new value replaces the existing one. - // - If both key and value are set but the key does not match an - // element in the raw state map, this represents inserting a new element - // into the map. - // - If key is set and value is not, this represents removing any existing - // element from the raw state map which has the given key, or a no-op - // if no such element exists. - // - No other situation is legal. - // - // This sequence can potentially be zero-length if a particular event only - // has a external-facing "description" component and no raw equivalent. In - // that case the raw state map is unmodified. - Raw []*AppliedChange_RawChange `protobuf:"bytes,1,rep,name=raw,proto3" json:"raw,omitempty"` - // Caller-facing description of this change, to use for presenting - // information to end-users in the UI and for other subsystems such as - // billing. - // - // Callers are expected to maintain a map of description objects that - // gets updated piecemeal by messages in this field. Callers must treat - // the keys as entirely opaque and thus treat the resulting data structure - // as if it were an unsorted set of ChangeDescription objects; the keys - // exist only to allow patching the data structure over time. - // - // For each element, in order: - // - If both key and description are set and the key matches an element - // from the previous apply's description map, the new value replaces - // the existing one. - // - If both key and value are set but the key does not match an - // element in the previous apply's description map, this represents - // inserting a new element into the map. - // - If key is set and description is "deleted", this represents removing - // any existing element from the previous apply's description map which - // has the given key, or a no-op if no such element exists. - // - If a description field is set that the caller doesn't understand, - // the caller should still write it to the updated description map - // but ignore it in further processing. - // - No other situation is legal. - // - // Callers MUST preserve the verbatim description message in the - // description map, even if it contains fields that are not present in - // the caller's current protobuf stubs. In other words, callers must use - // a protocol buffers implementation that is able to preserve unknown - // fields and store them so that future versions of the caller might - // use an updated set of stubs to interact with the previously-stored - // description. - // - // DO NOT attempt to use this to surgically filter particular raw state - // updates from a larger plan. Although external descriptions often match - // with the raw representations in field "raw", that is not guaranteed and - // Terraform Core assumes that it will always be provided with the full - // raw state map during the next plan step. - Descriptions []*AppliedChange_ChangeDescription `protobuf:"bytes,2,rep,name=descriptions,proto3" json:"descriptions,omitempty"` -} - -func (x *AppliedChange) Reset() { - *x = AppliedChange{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppliedChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppliedChange) ProtoMessage() {} - -func (x *AppliedChange) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppliedChange.ProtoReflect.Descriptor instead. -func (*AppliedChange) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{42} -} - -func (x *AppliedChange) GetRaw() []*AppliedChange_RawChange { - if x != nil { - return x.Raw - } - return nil -} - -func (x *AppliedChange) GetDescriptions() []*AppliedChange_ChangeDescription { - if x != nil { - return x.Descriptions - } - return nil -} - -// A container for "progress report" events in both Stacks.PlanStackChanges -// and Stacks.ApplyStackChanges, which share this message type to allow -// clients to share event-handling code between the two phases. -type StackChangeProgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Some event types are relevant only to one of the two operations, while - // others are common across both but will include different status codes, - // etc in different phases. - // - // Types that are assignable to Event: - // - // *StackChangeProgress_ComponentInstanceStatus_ - // *StackChangeProgress_ResourceInstanceStatus_ - // *StackChangeProgress_ResourceInstancePlannedChange_ - // *StackChangeProgress_ProvisionerStatus_ - // *StackChangeProgress_ProvisionerOutput_ - // *StackChangeProgress_ComponentInstanceChanges_ - // *StackChangeProgress_ComponentInstances_ - // *StackChangeProgress_DeferredResourceInstancePlannedChange_ - Event isStackChangeProgress_Event `protobuf_oneof:"event"` -} - -func (x *StackChangeProgress) Reset() { - *x = StackChangeProgress{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress) ProtoMessage() {} - -func (x *StackChangeProgress) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress.ProtoReflect.Descriptor instead. -func (*StackChangeProgress) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43} -} - -func (m *StackChangeProgress) GetEvent() isStackChangeProgress_Event { - if m != nil { - return m.Event - } - return nil -} - -func (x *StackChangeProgress) GetComponentInstanceStatus() *StackChangeProgress_ComponentInstanceStatus { - if x, ok := x.GetEvent().(*StackChangeProgress_ComponentInstanceStatus_); ok { - return x.ComponentInstanceStatus - } - return nil -} - -func (x *StackChangeProgress) GetResourceInstanceStatus() *StackChangeProgress_ResourceInstanceStatus { - if x, ok := x.GetEvent().(*StackChangeProgress_ResourceInstanceStatus_); ok { - return x.ResourceInstanceStatus - } - return nil -} - -func (x *StackChangeProgress) GetResourceInstancePlannedChange() *StackChangeProgress_ResourceInstancePlannedChange { - if x, ok := x.GetEvent().(*StackChangeProgress_ResourceInstancePlannedChange_); ok { - return x.ResourceInstancePlannedChange - } - return nil -} - -func (x *StackChangeProgress) GetProvisionerStatus() *StackChangeProgress_ProvisionerStatus { - if x, ok := x.GetEvent().(*StackChangeProgress_ProvisionerStatus_); ok { - return x.ProvisionerStatus - } - return nil -} - -func (x *StackChangeProgress) GetProvisionerOutput() *StackChangeProgress_ProvisionerOutput { - if x, ok := x.GetEvent().(*StackChangeProgress_ProvisionerOutput_); ok { - return x.ProvisionerOutput - } - return nil -} - -func (x *StackChangeProgress) GetComponentInstanceChanges() *StackChangeProgress_ComponentInstanceChanges { - if x, ok := x.GetEvent().(*StackChangeProgress_ComponentInstanceChanges_); ok { - return x.ComponentInstanceChanges - } - return nil -} - -func (x *StackChangeProgress) GetComponentInstances() *StackChangeProgress_ComponentInstances { - if x, ok := x.GetEvent().(*StackChangeProgress_ComponentInstances_); ok { - return x.ComponentInstances - } - return nil -} - -func (x *StackChangeProgress) GetDeferredResourceInstancePlannedChange() *StackChangeProgress_DeferredResourceInstancePlannedChange { - if x, ok := x.GetEvent().(*StackChangeProgress_DeferredResourceInstancePlannedChange_); ok { - return x.DeferredResourceInstancePlannedChange - } - return nil -} - -type isStackChangeProgress_Event interface { - isStackChangeProgress_Event() -} - -type StackChangeProgress_ComponentInstanceStatus_ struct { - ComponentInstanceStatus *StackChangeProgress_ComponentInstanceStatus `protobuf:"bytes,1,opt,name=component_instance_status,json=componentInstanceStatus,proto3,oneof"` -} - -type StackChangeProgress_ResourceInstanceStatus_ struct { - ResourceInstanceStatus *StackChangeProgress_ResourceInstanceStatus `protobuf:"bytes,2,opt,name=resource_instance_status,json=resourceInstanceStatus,proto3,oneof"` -} - -type StackChangeProgress_ResourceInstancePlannedChange_ struct { - ResourceInstancePlannedChange *StackChangeProgress_ResourceInstancePlannedChange `protobuf:"bytes,3,opt,name=resource_instance_planned_change,json=resourceInstancePlannedChange,proto3,oneof"` -} - -type StackChangeProgress_ProvisionerStatus_ struct { - ProvisionerStatus *StackChangeProgress_ProvisionerStatus `protobuf:"bytes,4,opt,name=provisioner_status,json=provisionerStatus,proto3,oneof"` -} - -type StackChangeProgress_ProvisionerOutput_ struct { - ProvisionerOutput *StackChangeProgress_ProvisionerOutput `protobuf:"bytes,5,opt,name=provisioner_output,json=provisionerOutput,proto3,oneof"` -} - -type StackChangeProgress_ComponentInstanceChanges_ struct { - ComponentInstanceChanges *StackChangeProgress_ComponentInstanceChanges `protobuf:"bytes,6,opt,name=component_instance_changes,json=componentInstanceChanges,proto3,oneof"` -} - -type StackChangeProgress_ComponentInstances_ struct { - ComponentInstances *StackChangeProgress_ComponentInstances `protobuf:"bytes,7,opt,name=component_instances,json=componentInstances,proto3,oneof"` -} - -type StackChangeProgress_DeferredResourceInstancePlannedChange_ struct { - DeferredResourceInstancePlannedChange *StackChangeProgress_DeferredResourceInstancePlannedChange `protobuf:"bytes,8,opt,name=deferred_resource_instance_planned_change,json=deferredResourceInstancePlannedChange,proto3,oneof"` -} - -func (*StackChangeProgress_ComponentInstanceStatus_) isStackChangeProgress_Event() {} - -func (*StackChangeProgress_ResourceInstanceStatus_) isStackChangeProgress_Event() {} - -func (*StackChangeProgress_ResourceInstancePlannedChange_) isStackChangeProgress_Event() {} - -func (*StackChangeProgress_ProvisionerStatus_) isStackChangeProgress_Event() {} - -func (*StackChangeProgress_ProvisionerOutput_) isStackChangeProgress_Event() {} - -func (*StackChangeProgress_ComponentInstanceChanges_) isStackChangeProgress_Event() {} - -func (*StackChangeProgress_ComponentInstances_) isStackChangeProgress_Event() {} - -func (*StackChangeProgress_DeferredResourceInstancePlannedChange_) isStackChangeProgress_Event() {} - type Diagnostic struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2981,7 +239,7 @@ type Diagnostic struct { func (x *Diagnostic) Reset() { *x = Diagnostic{} if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[44] + mi := &file_terraform1_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2994,7 +252,7 @@ func (x *Diagnostic) String() string { func (*Diagnostic) ProtoMessage() {} func (x *Diagnostic) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[44] + mi := &file_terraform1_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3007,7 +265,7 @@ func (x *Diagnostic) ProtoReflect() protoreflect.Message { // Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead. func (*Diagnostic) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{44} + return file_terraform1_proto_rawDescGZIP(), []int{2} } func (x *Diagnostic) GetSeverity() Diagnostic_Severity { @@ -3058,7 +316,7 @@ type SourceRange struct { func (x *SourceRange) Reset() { *x = SourceRange{} if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[45] + mi := &file_terraform1_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3071,7 +329,7 @@ func (x *SourceRange) String() string { func (*SourceRange) ProtoMessage() {} func (x *SourceRange) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[45] + mi := &file_terraform1_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3084,7 +342,7 @@ func (x *SourceRange) ProtoReflect() protoreflect.Message { // Deprecated: Use SourceRange.ProtoReflect.Descriptor instead. func (*SourceRange) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{45} + return file_terraform1_proto_rawDescGZIP(), []int{3} } func (x *SourceRange) GetSourceAddr() string { @@ -3121,7 +379,7 @@ type SourcePos struct { func (x *SourcePos) Reset() { *x = SourcePos{} if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[46] + mi := &file_terraform1_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3134,7 +392,7 @@ func (x *SourcePos) String() string { func (*SourcePos) ProtoMessage() {} func (x *SourcePos) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[46] + mi := &file_terraform1_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3147,7 +405,7 @@ func (x *SourcePos) ProtoReflect() protoreflect.Message { // Deprecated: Use SourcePos.ProtoReflect.Descriptor instead. func (*SourcePos) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{46} + return file_terraform1_proto_rawDescGZIP(), []int{4} } func (x *SourcePos) GetByte() int64 { @@ -3171,8463 +429,53 @@ func (x *SourcePos) GetColumn() int64 { return 0 } -// Schema describes a schema for an instance of a particular object, such as -// a resource type or a provider's overall configuration. -type Schema struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Block is the top level configuration block for this schema. - Block *Schema_Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` -} - -func (x *Schema) Reset() { - *x = Schema{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schema) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schema) ProtoMessage() {} - -func (x *Schema) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schema.ProtoReflect.Descriptor instead. -func (*Schema) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47} -} - -func (x *Schema) GetBlock() *Schema_Block { - if x != nil { - return x.Block - } - return nil -} - -type ProviderPackageVersions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProviderPackageVersions) Reset() { - *x = ProviderPackageVersions{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderPackageVersions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderPackageVersions) ProtoMessage() {} - -func (x *ProviderPackageVersions) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProviderPackageVersions.ProtoReflect.Descriptor instead. -func (*ProviderPackageVersions) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{48} -} - -type FetchProviderPackage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *FetchProviderPackage) Reset() { - *x = FetchProviderPackage{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchProviderPackage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchProviderPackage) ProtoMessage() {} - -func (x *FetchProviderPackage) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchProviderPackage.ProtoReflect.Descriptor instead. -func (*FetchProviderPackage) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{49} -} - -type ModulePackageVersions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ModulePackageVersions) Reset() { - *x = ModulePackageVersions{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ModulePackageVersions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ModulePackageVersions) ProtoMessage() {} - -func (x *ModulePackageVersions) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ModulePackageVersions.ProtoReflect.Descriptor instead. -func (*ModulePackageVersions) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{50} -} - -type ModulePackageSourceAddr struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ModulePackageSourceAddr) Reset() { - *x = ModulePackageSourceAddr{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ModulePackageSourceAddr) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ModulePackageSourceAddr) ProtoMessage() {} - -func (x *ModulePackageSourceAddr) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ModulePackageSourceAddr.ProtoReflect.Descriptor instead. -func (*ModulePackageSourceAddr) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{51} -} - -type FetchModulePackage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *FetchModulePackage) Reset() { - *x = FetchModulePackage{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchModulePackage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchModulePackage) ProtoMessage() {} - -func (x *FetchModulePackage) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchModulePackage.ProtoReflect.Descriptor instead. -func (*FetchModulePackage) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{52} -} - -type Handshake_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Capabilities *ClientCapabilities `protobuf:"bytes,1,opt,name=capabilities,proto3" json:"capabilities,omitempty"` - Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` -} - -func (x *Handshake_Request) Reset() { - *x = Handshake_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Handshake_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Handshake_Request) ProtoMessage() {} - -func (x *Handshake_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Handshake_Request.ProtoReflect.Descriptor instead. -func (*Handshake_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *Handshake_Request) GetCapabilities() *ClientCapabilities { - if x != nil { - return x.Capabilities - } - return nil -} - -func (x *Handshake_Request) GetConfig() *Config { - if x != nil { - return x.Config - } - return nil -} - -type Handshake_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Capabilities *ServerCapabilities `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"` -} - -func (x *Handshake_Response) Reset() { - *x = Handshake_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Handshake_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Handshake_Response) ProtoMessage() {} - -func (x *Handshake_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Handshake_Response.ProtoReflect.Descriptor instead. -func (*Handshake_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{0, 1} -} - -func (x *Handshake_Response) GetCapabilities() *ServerCapabilities { - if x != nil { - return x.Capabilities - } - return nil -} - -type Stop_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Stop_Request) Reset() { - *x = Stop_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Stop_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Stop_Request) ProtoMessage() {} - -func (x *Stop_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Stop_Request.ProtoReflect.Descriptor instead. -func (*Stop_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{1, 0} -} - -type Stop_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Stop_Response) Reset() { - *x = Stop_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Stop_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Stop_Response) ProtoMessage() {} - -func (x *Stop_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Stop_Response.ProtoReflect.Descriptor instead. -func (*Stop_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{1, 1} -} - -type OpenSourceBundle_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LocalPath string `protobuf:"bytes,1,opt,name=local_path,json=localPath,proto3" json:"local_path,omitempty"` -} - -func (x *OpenSourceBundle_Request) Reset() { - *x = OpenSourceBundle_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenSourceBundle_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenSourceBundle_Request) ProtoMessage() {} - -func (x *OpenSourceBundle_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenSourceBundle_Request.ProtoReflect.Descriptor instead. -func (*OpenSourceBundle_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{6, 0} -} - -func (x *OpenSourceBundle_Request) GetLocalPath() string { - if x != nil { - return x.LocalPath - } - return "" -} - -type OpenSourceBundle_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceBundleHandle int64 `protobuf:"varint,1,opt,name=source_bundle_handle,json=sourceBundleHandle,proto3" json:"source_bundle_handle,omitempty"` -} - -func (x *OpenSourceBundle_Response) Reset() { - *x = OpenSourceBundle_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenSourceBundle_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenSourceBundle_Response) ProtoMessage() {} - -func (x *OpenSourceBundle_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenSourceBundle_Response.ProtoReflect.Descriptor instead. -func (*OpenSourceBundle_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{6, 1} -} - -func (x *OpenSourceBundle_Response) GetSourceBundleHandle() int64 { - if x != nil { - return x.SourceBundleHandle - } - return 0 -} - -type CloseSourceBundle_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceBundleHandle int64 `protobuf:"varint,1,opt,name=source_bundle_handle,json=sourceBundleHandle,proto3" json:"source_bundle_handle,omitempty"` -} - -func (x *CloseSourceBundle_Request) Reset() { - *x = CloseSourceBundle_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseSourceBundle_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseSourceBundle_Request) ProtoMessage() {} - -func (x *CloseSourceBundle_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseSourceBundle_Request.ProtoReflect.Descriptor instead. -func (*CloseSourceBundle_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{7, 0} -} - -func (x *CloseSourceBundle_Request) GetSourceBundleHandle() int64 { - if x != nil { - return x.SourceBundleHandle - } - return 0 -} - -type CloseSourceBundle_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseSourceBundle_Response) Reset() { - *x = CloseSourceBundle_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseSourceBundle_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseSourceBundle_Response) ProtoMessage() {} - -func (x *CloseSourceBundle_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseSourceBundle_Response.ProtoReflect.Descriptor instead. -func (*CloseSourceBundle_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{7, 1} -} - -type OpenDependencyLockFile_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceBundleHandle int64 `protobuf:"varint,1,opt,name=source_bundle_handle,json=sourceBundleHandle,proto3" json:"source_bundle_handle,omitempty"` - SourceAddress *SourceAddress `protobuf:"bytes,2,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` -} - -func (x *OpenDependencyLockFile_Request) Reset() { - *x = OpenDependencyLockFile_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenDependencyLockFile_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenDependencyLockFile_Request) ProtoMessage() {} - -func (x *OpenDependencyLockFile_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenDependencyLockFile_Request.ProtoReflect.Descriptor instead. -func (*OpenDependencyLockFile_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{8, 0} -} - -func (x *OpenDependencyLockFile_Request) GetSourceBundleHandle() int64 { - if x != nil { - return x.SourceBundleHandle - } - return 0 -} - -func (x *OpenDependencyLockFile_Request) GetSourceAddress() *SourceAddress { - if x != nil { - return x.SourceAddress - } - return nil -} - -type OpenDependencyLockFile_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DependencyLocksHandle int64 `protobuf:"varint,1,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *OpenDependencyLockFile_Response) Reset() { - *x = OpenDependencyLockFile_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenDependencyLockFile_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenDependencyLockFile_Response) ProtoMessage() {} - -func (x *OpenDependencyLockFile_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenDependencyLockFile_Response.ProtoReflect.Descriptor instead. -func (*OpenDependencyLockFile_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{8, 1} -} - -func (x *OpenDependencyLockFile_Response) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -func (x *OpenDependencyLockFile_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type CreateDependencyLocks_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The provider selections to include in the locks object. - // - // A typical value would be the result of an earlier call to - // GetLockedProviderDependencies on some other locks object, - // e.g. if a caller needs to propagate a set of locks from one - // Terraform Core RPC server to another. - ProviderSelections []*ProviderPackage `protobuf:"bytes,1,rep,name=provider_selections,json=providerSelections,proto3" json:"provider_selections,omitempty"` -} - -func (x *CreateDependencyLocks_Request) Reset() { - *x = CreateDependencyLocks_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDependencyLocks_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDependencyLocks_Request) ProtoMessage() {} - -func (x *CreateDependencyLocks_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDependencyLocks_Request.ProtoReflect.Descriptor instead. -func (*CreateDependencyLocks_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{9, 0} -} - -func (x *CreateDependencyLocks_Request) GetProviderSelections() []*ProviderPackage { - if x != nil { - return x.ProviderSelections - } - return nil -} - -type CreateDependencyLocks_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DependencyLocksHandle int64 `protobuf:"varint,1,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` -} - -func (x *CreateDependencyLocks_Response) Reset() { - *x = CreateDependencyLocks_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDependencyLocks_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDependencyLocks_Response) ProtoMessage() {} - -func (x *CreateDependencyLocks_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDependencyLocks_Response.ProtoReflect.Descriptor instead. -func (*CreateDependencyLocks_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{9, 1} -} - -func (x *CreateDependencyLocks_Response) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -type CloseDependencyLocks_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DependencyLocksHandle int64 `protobuf:"varint,1,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` -} - -func (x *CloseDependencyLocks_Request) Reset() { - *x = CloseDependencyLocks_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseDependencyLocks_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseDependencyLocks_Request) ProtoMessage() {} - -func (x *CloseDependencyLocks_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseDependencyLocks_Request.ProtoReflect.Descriptor instead. -func (*CloseDependencyLocks_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{10, 0} -} - -func (x *CloseDependencyLocks_Request) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -type CloseDependencyLocks_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseDependencyLocks_Response) Reset() { - *x = CloseDependencyLocks_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseDependencyLocks_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseDependencyLocks_Response) ProtoMessage() {} - -func (x *CloseDependencyLocks_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseDependencyLocks_Response.ProtoReflect.Descriptor instead. -func (*CloseDependencyLocks_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{10, 1} -} - -type GetLockedProviderDependencies_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DependencyLocksHandle int64 `protobuf:"varint,1,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` -} - -func (x *GetLockedProviderDependencies_Request) Reset() { - *x = GetLockedProviderDependencies_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLockedProviderDependencies_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLockedProviderDependencies_Request) ProtoMessage() {} - -func (x *GetLockedProviderDependencies_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLockedProviderDependencies_Request.ProtoReflect.Descriptor instead. -func (*GetLockedProviderDependencies_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{11, 0} -} - -func (x *GetLockedProviderDependencies_Request) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -type GetLockedProviderDependencies_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SelectedProviders []*ProviderPackage `protobuf:"bytes,1,rep,name=selected_providers,json=selectedProviders,proto3" json:"selected_providers,omitempty"` -} - -func (x *GetLockedProviderDependencies_Response) Reset() { - *x = GetLockedProviderDependencies_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetLockedProviderDependencies_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetLockedProviderDependencies_Response) ProtoMessage() {} - -func (x *GetLockedProviderDependencies_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetLockedProviderDependencies_Response.ProtoReflect.Descriptor instead. -func (*GetLockedProviderDependencies_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{11, 1} -} - -func (x *GetLockedProviderDependencies_Response) GetSelectedProviders() []*ProviderPackage { - if x != nil { - return x.SelectedProviders - } - return nil -} - -type BuildProviderPluginCache_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CacheDir string `protobuf:"bytes,1,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` - DependencyLocksHandle int64 `protobuf:"varint,2,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` - InstallationMethods []*BuildProviderPluginCache_Request_InstallMethod `protobuf:"bytes,3,rep,name=installation_methods,json=installationMethods,proto3" json:"installation_methods,omitempty"` - // If set, this populates the cache with plugins for a different - // platform than the one the Terraform Core RPC server is running on. - // If unset (empty) then the cache will be populated with packages - // for the same platform as Terraform Core was built for, if available. - // - // If this is set to a different platform than the Terraform Core RPC - // server's then the generated cache directory will appear empty to - // other operations on this server. - OverridePlatform string `protobuf:"bytes,4,opt,name=override_platform,json=overridePlatform,proto3" json:"override_platform,omitempty"` -} - -func (x *BuildProviderPluginCache_Request) Reset() { - *x = BuildProviderPluginCache_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Request) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Request.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 0} -} - -func (x *BuildProviderPluginCache_Request) GetCacheDir() string { - if x != nil { - return x.CacheDir - } - return "" -} - -func (x *BuildProviderPluginCache_Request) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -func (x *BuildProviderPluginCache_Request) GetInstallationMethods() []*BuildProviderPluginCache_Request_InstallMethod { - if x != nil { - return x.InstallationMethods - } - return nil -} - -func (x *BuildProviderPluginCache_Request) GetOverridePlatform() string { - if x != nil { - return x.OverridePlatform - } - return "" -} - -type BuildProviderPluginCache_Event struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Event: - // - // *BuildProviderPluginCache_Event_Pending_ - // *BuildProviderPluginCache_Event_AlreadyInstalled - // *BuildProviderPluginCache_Event_BuiltIn - // *BuildProviderPluginCache_Event_QueryBegin - // *BuildProviderPluginCache_Event_QuerySuccess - // *BuildProviderPluginCache_Event_QueryWarnings - // *BuildProviderPluginCache_Event_FetchBegin_ - // *BuildProviderPluginCache_Event_FetchComplete_ - // *BuildProviderPluginCache_Event_Diagnostic - Event isBuildProviderPluginCache_Event_Event `protobuf_oneof:"event"` -} - -func (x *BuildProviderPluginCache_Event) Reset() { - *x = BuildProviderPluginCache_Event{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Event) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Event) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Event) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Event.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Event) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 1} -} - -func (m *BuildProviderPluginCache_Event) GetEvent() isBuildProviderPluginCache_Event_Event { - if m != nil { - return m.Event - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetPending() *BuildProviderPluginCache_Event_Pending { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_Pending_); ok { - return x.Pending - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetAlreadyInstalled() *BuildProviderPluginCache_Event_ProviderVersion { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_AlreadyInstalled); ok { - return x.AlreadyInstalled - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetBuiltIn() *BuildProviderPluginCache_Event_ProviderVersion { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_BuiltIn); ok { - return x.BuiltIn - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetQueryBegin() *BuildProviderPluginCache_Event_ProviderConstraints { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_QueryBegin); ok { - return x.QueryBegin - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetQuerySuccess() *BuildProviderPluginCache_Event_ProviderVersion { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_QuerySuccess); ok { - return x.QuerySuccess - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetQueryWarnings() *BuildProviderPluginCache_Event_ProviderWarnings { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_QueryWarnings); ok { - return x.QueryWarnings - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetFetchBegin() *BuildProviderPluginCache_Event_FetchBegin { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_FetchBegin_); ok { - return x.FetchBegin - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetFetchComplete() *BuildProviderPluginCache_Event_FetchComplete { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_FetchComplete_); ok { - return x.FetchComplete - } - return nil -} - -func (x *BuildProviderPluginCache_Event) GetDiagnostic() *Diagnostic { - if x, ok := x.GetEvent().(*BuildProviderPluginCache_Event_Diagnostic); ok { - return x.Diagnostic - } - return nil -} - -type isBuildProviderPluginCache_Event_Event interface { - isBuildProviderPluginCache_Event_Event() -} - -type BuildProviderPluginCache_Event_Pending_ struct { - Pending *BuildProviderPluginCache_Event_Pending `protobuf:"bytes,1,opt,name=pending,proto3,oneof"` -} - -type BuildProviderPluginCache_Event_AlreadyInstalled struct { - AlreadyInstalled *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,2,opt,name=already_installed,json=alreadyInstalled,proto3,oneof"` -} - -type BuildProviderPluginCache_Event_BuiltIn struct { - BuiltIn *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,3,opt,name=built_in,json=builtIn,proto3,oneof"` -} - -type BuildProviderPluginCache_Event_QueryBegin struct { - QueryBegin *BuildProviderPluginCache_Event_ProviderConstraints `protobuf:"bytes,4,opt,name=query_begin,json=queryBegin,proto3,oneof"` -} - -type BuildProviderPluginCache_Event_QuerySuccess struct { - QuerySuccess *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,5,opt,name=query_success,json=querySuccess,proto3,oneof"` -} - -type BuildProviderPluginCache_Event_QueryWarnings struct { - QueryWarnings *BuildProviderPluginCache_Event_ProviderWarnings `protobuf:"bytes,6,opt,name=query_warnings,json=queryWarnings,proto3,oneof"` -} - -type BuildProviderPluginCache_Event_FetchBegin_ struct { - FetchBegin *BuildProviderPluginCache_Event_FetchBegin `protobuf:"bytes,7,opt,name=fetch_begin,json=fetchBegin,proto3,oneof"` -} - -type BuildProviderPluginCache_Event_FetchComplete_ struct { - FetchComplete *BuildProviderPluginCache_Event_FetchComplete `protobuf:"bytes,8,opt,name=fetch_complete,json=fetchComplete,proto3,oneof"` -} - -type BuildProviderPluginCache_Event_Diagnostic struct { - Diagnostic *Diagnostic `protobuf:"bytes,9,opt,name=diagnostic,proto3,oneof"` -} - -func (*BuildProviderPluginCache_Event_Pending_) isBuildProviderPluginCache_Event_Event() {} - -func (*BuildProviderPluginCache_Event_AlreadyInstalled) isBuildProviderPluginCache_Event_Event() {} - -func (*BuildProviderPluginCache_Event_BuiltIn) isBuildProviderPluginCache_Event_Event() {} - -func (*BuildProviderPluginCache_Event_QueryBegin) isBuildProviderPluginCache_Event_Event() {} - -func (*BuildProviderPluginCache_Event_QuerySuccess) isBuildProviderPluginCache_Event_Event() {} - -func (*BuildProviderPluginCache_Event_QueryWarnings) isBuildProviderPluginCache_Event_Event() {} - -func (*BuildProviderPluginCache_Event_FetchBegin_) isBuildProviderPluginCache_Event_Event() {} - -func (*BuildProviderPluginCache_Event_FetchComplete_) isBuildProviderPluginCache_Event_Event() {} - -func (*BuildProviderPluginCache_Event_Diagnostic) isBuildProviderPluginCache_Event_Event() {} - -type BuildProviderPluginCache_Request_InstallMethod struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Source: - // - // *BuildProviderPluginCache_Request_InstallMethod_Direct - // *BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir - // *BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl - Source isBuildProviderPluginCache_Request_InstallMethod_Source `protobuf_oneof:"source"` - Include []string `protobuf:"bytes,4,rep,name=include,proto3" json:"include,omitempty"` - Exclude []string `protobuf:"bytes,5,rep,name=exclude,proto3" json:"exclude,omitempty"` -} - -func (x *BuildProviderPluginCache_Request_InstallMethod) Reset() { - *x = BuildProviderPluginCache_Request_InstallMethod{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Request_InstallMethod) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Request_InstallMethod) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Request_InstallMethod) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Request_InstallMethod.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Request_InstallMethod) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 0, 0} -} - -func (m *BuildProviderPluginCache_Request_InstallMethod) GetSource() isBuildProviderPluginCache_Request_InstallMethod_Source { - if m != nil { - return m.Source - } - return nil -} - -func (x *BuildProviderPluginCache_Request_InstallMethod) GetDirect() bool { - if x, ok := x.GetSource().(*BuildProviderPluginCache_Request_InstallMethod_Direct); ok { - return x.Direct - } - return false -} - -func (x *BuildProviderPluginCache_Request_InstallMethod) GetLocalMirrorDir() string { - if x, ok := x.GetSource().(*BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir); ok { - return x.LocalMirrorDir - } - return "" -} - -func (x *BuildProviderPluginCache_Request_InstallMethod) GetNetworkMirrorUrl() string { - if x, ok := x.GetSource().(*BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl); ok { - return x.NetworkMirrorUrl - } - return "" -} - -func (x *BuildProviderPluginCache_Request_InstallMethod) GetInclude() []string { - if x != nil { - return x.Include - } - return nil -} - -func (x *BuildProviderPluginCache_Request_InstallMethod) GetExclude() []string { - if x != nil { - return x.Exclude - } - return nil -} - -type isBuildProviderPluginCache_Request_InstallMethod_Source interface { - isBuildProviderPluginCache_Request_InstallMethod_Source() -} - -type BuildProviderPluginCache_Request_InstallMethod_Direct struct { - Direct bool `protobuf:"varint,1,opt,name=direct,proto3,oneof"` -} - -type BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir struct { - LocalMirrorDir string `protobuf:"bytes,2,opt,name=local_mirror_dir,json=localMirrorDir,proto3,oneof"` -} - -type BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl struct { - NetworkMirrorUrl string `protobuf:"bytes,3,opt,name=network_mirror_url,json=networkMirrorUrl,proto3,oneof"` -} - -func (*BuildProviderPluginCache_Request_InstallMethod_Direct) isBuildProviderPluginCache_Request_InstallMethod_Source() { -} - -func (*BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir) isBuildProviderPluginCache_Request_InstallMethod_Source() { -} - -func (*BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl) isBuildProviderPluginCache_Request_InstallMethod_Source() { -} - -type BuildProviderPluginCache_Event_Pending struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Expected []*BuildProviderPluginCache_Event_ProviderConstraints `protobuf:"bytes,1,rep,name=expected,proto3" json:"expected,omitempty"` -} - -func (x *BuildProviderPluginCache_Event_Pending) Reset() { - *x = BuildProviderPluginCache_Event_Pending{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Event_Pending) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Event_Pending) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Event_Pending) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Event_Pending.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Event_Pending) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 1, 0} -} - -func (x *BuildProviderPluginCache_Event_Pending) GetExpected() []*BuildProviderPluginCache_Event_ProviderConstraints { - if x != nil { - return x.Expected - } - return nil -} - -type BuildProviderPluginCache_Event_ProviderConstraints struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` - Versions string `protobuf:"bytes,2,opt,name=versions,proto3" json:"versions,omitempty"` -} - -func (x *BuildProviderPluginCache_Event_ProviderConstraints) Reset() { - *x = BuildProviderPluginCache_Event_ProviderConstraints{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Event_ProviderConstraints) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Event_ProviderConstraints) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Event_ProviderConstraints) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Event_ProviderConstraints.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Event_ProviderConstraints) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 1, 1} -} - -func (x *BuildProviderPluginCache_Event_ProviderConstraints) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -func (x *BuildProviderPluginCache_Event_ProviderConstraints) GetVersions() string { - if x != nil { - return x.Versions - } - return "" -} - -type BuildProviderPluginCache_Event_ProviderVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *BuildProviderPluginCache_Event_ProviderVersion) Reset() { - *x = BuildProviderPluginCache_Event_ProviderVersion{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Event_ProviderVersion) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Event_ProviderVersion) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Event_ProviderVersion) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Event_ProviderVersion.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Event_ProviderVersion) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 1, 2} -} - -func (x *BuildProviderPluginCache_Event_ProviderVersion) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -func (x *BuildProviderPluginCache_Event_ProviderVersion) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -type BuildProviderPluginCache_Event_ProviderWarnings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` - Warnings []string `protobuf:"bytes,2,rep,name=warnings,proto3" json:"warnings,omitempty"` -} - -func (x *BuildProviderPluginCache_Event_ProviderWarnings) Reset() { - *x = BuildProviderPluginCache_Event_ProviderWarnings{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Event_ProviderWarnings) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Event_ProviderWarnings) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Event_ProviderWarnings) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Event_ProviderWarnings.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Event_ProviderWarnings) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 1, 3} -} - -func (x *BuildProviderPluginCache_Event_ProviderWarnings) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -func (x *BuildProviderPluginCache_Event_ProviderWarnings) GetWarnings() []string { - if x != nil { - return x.Warnings - } - return nil -} - -type BuildProviderPluginCache_Event_FetchBegin struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProviderVersion *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,1,opt,name=provider_version,json=providerVersion,proto3" json:"provider_version,omitempty"` - Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` -} - -func (x *BuildProviderPluginCache_Event_FetchBegin) Reset() { - *x = BuildProviderPluginCache_Event_FetchBegin{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Event_FetchBegin) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Event_FetchBegin) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Event_FetchBegin) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Event_FetchBegin.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Event_FetchBegin) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 1, 4} -} - -func (x *BuildProviderPluginCache_Event_FetchBegin) GetProviderVersion() *BuildProviderPluginCache_Event_ProviderVersion { - if x != nil { - return x.ProviderVersion - } - return nil -} - -func (x *BuildProviderPluginCache_Event_FetchBegin) GetLocation() string { - if x != nil { - return x.Location - } - return "" -} - -type BuildProviderPluginCache_Event_FetchComplete struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProviderVersion *BuildProviderPluginCache_Event_ProviderVersion `protobuf:"bytes,1,opt,name=provider_version,json=providerVersion,proto3" json:"provider_version,omitempty"` - AuthResult BuildProviderPluginCache_Event_FetchComplete_AuthResult `protobuf:"varint,2,opt,name=auth_result,json=authResult,proto3,enum=terraform1.BuildProviderPluginCache_Event_FetchComplete_AuthResult" json:"auth_result,omitempty"` - // If auth_result is one of the "_SIGNED" variants then this - // might contain a UI-oriented identifier for the key that - // signed the package. The exact format of this string is not - // guaranteed; do not attempt to parse it or make automated - // decisions based on it. - KeyIdForDisplay string `protobuf:"bytes,3,opt,name=key_id_for_display,json=keyIdForDisplay,proto3" json:"key_id_for_display,omitempty"` -} - -func (x *BuildProviderPluginCache_Event_FetchComplete) Reset() { - *x = BuildProviderPluginCache_Event_FetchComplete{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BuildProviderPluginCache_Event_FetchComplete) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BuildProviderPluginCache_Event_FetchComplete) ProtoMessage() {} - -func (x *BuildProviderPluginCache_Event_FetchComplete) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BuildProviderPluginCache_Event_FetchComplete.ProtoReflect.Descriptor instead. -func (*BuildProviderPluginCache_Event_FetchComplete) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{12, 1, 5} -} - -func (x *BuildProviderPluginCache_Event_FetchComplete) GetProviderVersion() *BuildProviderPluginCache_Event_ProviderVersion { - if x != nil { - return x.ProviderVersion - } - return nil -} - -func (x *BuildProviderPluginCache_Event_FetchComplete) GetAuthResult() BuildProviderPluginCache_Event_FetchComplete_AuthResult { - if x != nil { - return x.AuthResult - } - return BuildProviderPluginCache_Event_FetchComplete_UNKNOWN -} - -func (x *BuildProviderPluginCache_Event_FetchComplete) GetKeyIdForDisplay() string { - if x != nil { - return x.KeyIdForDisplay - } - return "" -} - -type OpenProviderPluginCache_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CacheDir string `protobuf:"bytes,1,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` - // As with the field of the same name in BuildProviderPluginCache.Request. - // - // If this is set to anything other than this RPC server's native - // platform then any operations that require executing the provider - // plugin are likely to fail due to executable format errors or - // similar. However, it's valid to use the returned handle with - // GetCachedProviders, since it only analyzes the cache metadata - // and doesn't actually run the plugins inside. - OverridePlatform string `protobuf:"bytes,2,opt,name=override_platform,json=overridePlatform,proto3" json:"override_platform,omitempty"` -} - -func (x *OpenProviderPluginCache_Request) Reset() { - *x = OpenProviderPluginCache_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenProviderPluginCache_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenProviderPluginCache_Request) ProtoMessage() {} - -func (x *OpenProviderPluginCache_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[79] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenProviderPluginCache_Request.ProtoReflect.Descriptor instead. -func (*OpenProviderPluginCache_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{13, 0} -} - -func (x *OpenProviderPluginCache_Request) GetCacheDir() string { - if x != nil { - return x.CacheDir - } - return "" -} - -func (x *OpenProviderPluginCache_Request) GetOverridePlatform() string { - if x != nil { - return x.OverridePlatform - } - return "" -} - -type OpenProviderPluginCache_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProviderCacheHandle int64 `protobuf:"varint,1,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` -} - -func (x *OpenProviderPluginCache_Response) Reset() { - *x = OpenProviderPluginCache_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenProviderPluginCache_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenProviderPluginCache_Response) ProtoMessage() {} - -func (x *OpenProviderPluginCache_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenProviderPluginCache_Response.ProtoReflect.Descriptor instead. -func (*OpenProviderPluginCache_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{13, 1} -} - -func (x *OpenProviderPluginCache_Response) GetProviderCacheHandle() int64 { - if x != nil { - return x.ProviderCacheHandle - } - return 0 -} - -type CloseProviderPluginCache_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProviderCacheHandle int64 `protobuf:"varint,1,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` -} - -func (x *CloseProviderPluginCache_Request) Reset() { - *x = CloseProviderPluginCache_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseProviderPluginCache_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseProviderPluginCache_Request) ProtoMessage() {} - -func (x *CloseProviderPluginCache_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseProviderPluginCache_Request.ProtoReflect.Descriptor instead. -func (*CloseProviderPluginCache_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{14, 0} -} - -func (x *CloseProviderPluginCache_Request) GetProviderCacheHandle() int64 { - if x != nil { - return x.ProviderCacheHandle - } - return 0 -} - -type CloseProviderPluginCache_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseProviderPluginCache_Response) Reset() { - *x = CloseProviderPluginCache_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseProviderPluginCache_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseProviderPluginCache_Response) ProtoMessage() {} - -func (x *CloseProviderPluginCache_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[82] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseProviderPluginCache_Response.ProtoReflect.Descriptor instead. -func (*CloseProviderPluginCache_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{14, 1} -} - -type GetCachedProviders_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ProviderCacheHandle int64 `protobuf:"varint,1,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` -} - -func (x *GetCachedProviders_Request) Reset() { - *x = GetCachedProviders_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetCachedProviders_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCachedProviders_Request) ProtoMessage() {} - -func (x *GetCachedProviders_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[83] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCachedProviders_Request.ProtoReflect.Descriptor instead. -func (*GetCachedProviders_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{15, 0} -} - -func (x *GetCachedProviders_Request) GetProviderCacheHandle() int64 { - if x != nil { - return x.ProviderCacheHandle - } - return 0 -} - -type GetCachedProviders_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AvailableProviders []*ProviderPackage `protobuf:"bytes,1,rep,name=available_providers,json=availableProviders,proto3" json:"available_providers,omitempty"` -} - -func (x *GetCachedProviders_Response) Reset() { - *x = GetCachedProviders_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetCachedProviders_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCachedProviders_Response) ProtoMessage() {} - -func (x *GetCachedProviders_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[84] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCachedProviders_Response.ProtoReflect.Descriptor instead. -func (*GetCachedProviders_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{15, 1} -} - -func (x *GetCachedProviders_Response) GetAvailableProviders() []*ProviderPackage { - if x != nil { - return x.AvailableProviders - } - return nil -} - -type GetBuiltInProviders_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetBuiltInProviders_Request) Reset() { - *x = GetBuiltInProviders_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBuiltInProviders_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBuiltInProviders_Request) ProtoMessage() {} - -func (x *GetBuiltInProviders_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[85] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBuiltInProviders_Request.ProtoReflect.Descriptor instead. -func (*GetBuiltInProviders_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{16, 0} -} - -type GetBuiltInProviders_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The built-in providers that are compiled in to this Terraform Core - // server. - // - // This uses ProviderPackage messages for consistency with the other - // operations which list providers, but built-in providers do not - // have version numbers nor hashes so those fields will always be - // unset in the result. - AvailableProviders []*ProviderPackage `protobuf:"bytes,1,rep,name=available_providers,json=availableProviders,proto3" json:"available_providers,omitempty"` -} - -func (x *GetBuiltInProviders_Response) Reset() { - *x = GetBuiltInProviders_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetBuiltInProviders_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetBuiltInProviders_Response) ProtoMessage() {} - -func (x *GetBuiltInProviders_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[86] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetBuiltInProviders_Response.ProtoReflect.Descriptor instead. -func (*GetBuiltInProviders_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{16, 1} -} - -func (x *GetBuiltInProviders_Response) GetAvailableProviders() []*ProviderPackage { - if x != nil { - return x.AvailableProviders - } - return nil -} - -type GetProviderSchema_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The address of the provider to retrieve schema for, using the - // typical provider source address syntax. - // - // When requesting schema based on a ProviderPackage message, populate - // this with its "source_addr" field. - ProviderAddr string `protobuf:"bytes,1,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` - // The version number of the given provider to retrieve the schema - // of, which must have already been populated into the cache directory. - // - // Not supported for built-in providers because we can only access the - // single "version" of the provider that's compiled into this Terraform - // Core server, and so must be left unset or empty for those. - // - // When requesting schema based on a ProviderPackage message, populate - // this with its "version" field. - ProviderVersion string `protobuf:"bytes,2,opt,name=provider_version,json=providerVersion,proto3" json:"provider_version,omitempty"` - // The handle for the previously-opened provider plugin cache to - // load the provider plugin from. - // - // Optional for built-in providers, but can still be specified in that - // case if desired so that callers can safely just send the handle they - // have in all cases and be naive about which providers are and are - // not built in. - ProviderCacheHandle int64 `protobuf:"varint,3,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` -} - -func (x *GetProviderSchema_Request) Reset() { - *x = GetProviderSchema_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProviderSchema_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProviderSchema_Request) ProtoMessage() {} - -func (x *GetProviderSchema_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[87] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProviderSchema_Request.ProtoReflect.Descriptor instead. -func (*GetProviderSchema_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{17, 0} -} - -func (x *GetProviderSchema_Request) GetProviderAddr() string { - if x != nil { - return x.ProviderAddr - } - return "" -} - -func (x *GetProviderSchema_Request) GetProviderVersion() string { - if x != nil { - return x.ProviderVersion - } - return "" -} - -func (x *GetProviderSchema_Request) GetProviderCacheHandle() int64 { - if x != nil { - return x.ProviderCacheHandle - } - return 0 -} - -type GetProviderSchema_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Schema *ProviderSchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` -} - -func (x *GetProviderSchema_Response) Reset() { - *x = GetProviderSchema_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetProviderSchema_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetProviderSchema_Response) ProtoMessage() {} - -func (x *GetProviderSchema_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[88] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetProviderSchema_Response.ProtoReflect.Descriptor instead. -func (*GetProviderSchema_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{17, 1} -} - -func (x *GetProviderSchema_Response) GetSchema() *ProviderSchema { - if x != nil { - return x.Schema - } - return nil -} - -type OpenStackConfiguration_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceBundleHandle int64 `protobuf:"varint,1,opt,name=source_bundle_handle,json=sourceBundleHandle,proto3" json:"source_bundle_handle,omitempty"` - SourceAddress *SourceAddress `protobuf:"bytes,2,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` -} - -func (x *OpenStackConfiguration_Request) Reset() { - *x = OpenStackConfiguration_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackConfiguration_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackConfiguration_Request) ProtoMessage() {} - -func (x *OpenStackConfiguration_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[91] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackConfiguration_Request.ProtoReflect.Descriptor instead. -func (*OpenStackConfiguration_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{20, 0} -} - -func (x *OpenStackConfiguration_Request) GetSourceBundleHandle() int64 { - if x != nil { - return x.SourceBundleHandle - } - return 0 -} - -func (x *OpenStackConfiguration_Request) GetSourceAddress() *SourceAddress { - if x != nil { - return x.SourceAddress - } - return nil -} - -type OpenStackConfiguration_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *OpenStackConfiguration_Response) Reset() { - *x = OpenStackConfiguration_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackConfiguration_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackConfiguration_Response) ProtoMessage() {} - -func (x *OpenStackConfiguration_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[92] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackConfiguration_Response.ProtoReflect.Descriptor instead. -func (*OpenStackConfiguration_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{20, 1} -} - -func (x *OpenStackConfiguration_Response) GetStackConfigHandle() int64 { - if x != nil { - return x.StackConfigHandle - } - return 0 -} - -func (x *OpenStackConfiguration_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type CloseStackConfiguration_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` -} - -func (x *CloseStackConfiguration_Request) Reset() { - *x = CloseStackConfiguration_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackConfiguration_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackConfiguration_Request) ProtoMessage() {} - -func (x *CloseStackConfiguration_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[93] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackConfiguration_Request.ProtoReflect.Descriptor instead. -func (*CloseStackConfiguration_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{21, 0} -} - -func (x *CloseStackConfiguration_Request) GetStackConfigHandle() int64 { - if x != nil { - return x.StackConfigHandle - } - return 0 -} - -type CloseStackConfiguration_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseStackConfiguration_Response) Reset() { - *x = CloseStackConfiguration_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackConfiguration_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackConfiguration_Response) ProtoMessage() {} - -func (x *CloseStackConfiguration_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[94] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackConfiguration_Response.ProtoReflect.Descriptor instead. -func (*CloseStackConfiguration_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{21, 1} -} - -type ValidateStackConfiguration_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` - DependencyLocksHandle int64 `protobuf:"varint,2,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` - ProviderCacheHandle int64 `protobuf:"varint,3,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` -} - -func (x *ValidateStackConfiguration_Request) Reset() { - *x = ValidateStackConfiguration_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[95] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidateStackConfiguration_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidateStackConfiguration_Request) ProtoMessage() {} - -func (x *ValidateStackConfiguration_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[95] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ValidateStackConfiguration_Request.ProtoReflect.Descriptor instead. -func (*ValidateStackConfiguration_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{22, 0} -} - -func (x *ValidateStackConfiguration_Request) GetStackConfigHandle() int64 { - if x != nil { - return x.StackConfigHandle - } - return 0 -} - -func (x *ValidateStackConfiguration_Request) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -func (x *ValidateStackConfiguration_Request) GetProviderCacheHandle() int64 { - if x != nil { - return x.ProviderCacheHandle - } - return 0 -} - -type ValidateStackConfiguration_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *ValidateStackConfiguration_Response) Reset() { - *x = ValidateStackConfiguration_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[96] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidateStackConfiguration_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidateStackConfiguration_Response) ProtoMessage() {} - -func (x *ValidateStackConfiguration_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[96] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ValidateStackConfiguration_Response.ProtoReflect.Descriptor instead. -func (*ValidateStackConfiguration_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{22, 1} -} - -func (x *ValidateStackConfiguration_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type FindStackConfigurationComponents_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` -} - -func (x *FindStackConfigurationComponents_Request) Reset() { - *x = FindStackConfigurationComponents_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindStackConfigurationComponents_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindStackConfigurationComponents_Request) ProtoMessage() {} - -func (x *FindStackConfigurationComponents_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[97] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindStackConfigurationComponents_Request.ProtoReflect.Descriptor instead. -func (*FindStackConfigurationComponents_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23, 0} -} - -func (x *FindStackConfigurationComponents_Request) GetStackConfigHandle() int64 { - if x != nil { - return x.StackConfigHandle - } - return 0 -} - -type FindStackConfigurationComponents_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Config *FindStackConfigurationComponents_StackConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` -} - -func (x *FindStackConfigurationComponents_Response) Reset() { - *x = FindStackConfigurationComponents_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[98] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindStackConfigurationComponents_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindStackConfigurationComponents_Response) ProtoMessage() {} - -func (x *FindStackConfigurationComponents_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[98] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindStackConfigurationComponents_Response.ProtoReflect.Descriptor instead. -func (*FindStackConfigurationComponents_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23, 1} -} - -func (x *FindStackConfigurationComponents_Response) GetConfig() *FindStackConfigurationComponents_StackConfig { - if x != nil { - return x.Config - } - return nil -} - -type FindStackConfigurationComponents_StackConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Components map[string]*FindStackConfigurationComponents_Component `protobuf:"bytes,1,rep,name=components,proto3" json:"components,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - EmbeddedStacks map[string]*FindStackConfigurationComponents_EmbeddedStack `protobuf:"bytes,2,rep,name=embedded_stacks,json=embeddedStacks,proto3" json:"embedded_stacks,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - InputVariables map[string]*FindStackConfigurationComponents_InputVariable `protobuf:"bytes,3,rep,name=input_variables,json=inputVariables,proto3" json:"input_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - OutputValues map[string]*FindStackConfigurationComponents_OutputValue `protobuf:"bytes,4,rep,name=output_values,json=outputValues,proto3" json:"output_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *FindStackConfigurationComponents_StackConfig) Reset() { - *x = FindStackConfigurationComponents_StackConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[99] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindStackConfigurationComponents_StackConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindStackConfigurationComponents_StackConfig) ProtoMessage() {} - -func (x *FindStackConfigurationComponents_StackConfig) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[99] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindStackConfigurationComponents_StackConfig.ProtoReflect.Descriptor instead. -func (*FindStackConfigurationComponents_StackConfig) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23, 2} -} - -func (x *FindStackConfigurationComponents_StackConfig) GetComponents() map[string]*FindStackConfigurationComponents_Component { - if x != nil { - return x.Components - } - return nil -} - -func (x *FindStackConfigurationComponents_StackConfig) GetEmbeddedStacks() map[string]*FindStackConfigurationComponents_EmbeddedStack { - if x != nil { - return x.EmbeddedStacks - } - return nil -} - -func (x *FindStackConfigurationComponents_StackConfig) GetInputVariables() map[string]*FindStackConfigurationComponents_InputVariable { - if x != nil { - return x.InputVariables - } - return nil -} - -func (x *FindStackConfigurationComponents_StackConfig) GetOutputValues() map[string]*FindStackConfigurationComponents_OutputValue { - if x != nil { - return x.OutputValues - } - return nil -} - -type FindStackConfigurationComponents_EmbeddedStack struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` - Instances FindStackConfigurationComponents_Instances `protobuf:"varint,2,opt,name=instances,proto3,enum=terraform1.FindStackConfigurationComponents_Instances" json:"instances,omitempty"` - Config *FindStackConfigurationComponents_StackConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` -} - -func (x *FindStackConfigurationComponents_EmbeddedStack) Reset() { - *x = FindStackConfigurationComponents_EmbeddedStack{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[100] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindStackConfigurationComponents_EmbeddedStack) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindStackConfigurationComponents_EmbeddedStack) ProtoMessage() {} - -func (x *FindStackConfigurationComponents_EmbeddedStack) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[100] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindStackConfigurationComponents_EmbeddedStack.ProtoReflect.Descriptor instead. -func (*FindStackConfigurationComponents_EmbeddedStack) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23, 3} -} - -func (x *FindStackConfigurationComponents_EmbeddedStack) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -func (x *FindStackConfigurationComponents_EmbeddedStack) GetInstances() FindStackConfigurationComponents_Instances { - if x != nil { - return x.Instances - } - return FindStackConfigurationComponents_SINGLE -} - -func (x *FindStackConfigurationComponents_EmbeddedStack) GetConfig() *FindStackConfigurationComponents_StackConfig { - if x != nil { - return x.Config - } - return nil -} - -type FindStackConfigurationComponents_Component struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` - Instances FindStackConfigurationComponents_Instances `protobuf:"varint,2,opt,name=instances,proto3,enum=terraform1.FindStackConfigurationComponents_Instances" json:"instances,omitempty"` - ComponentAddr string `protobuf:"bytes,3,opt,name=component_addr,json=componentAddr,proto3" json:"component_addr,omitempty"` -} - -func (x *FindStackConfigurationComponents_Component) Reset() { - *x = FindStackConfigurationComponents_Component{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[101] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindStackConfigurationComponents_Component) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindStackConfigurationComponents_Component) ProtoMessage() {} - -func (x *FindStackConfigurationComponents_Component) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[101] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindStackConfigurationComponents_Component.ProtoReflect.Descriptor instead. -func (*FindStackConfigurationComponents_Component) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23, 4} -} - -func (x *FindStackConfigurationComponents_Component) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -func (x *FindStackConfigurationComponents_Component) GetInstances() FindStackConfigurationComponents_Instances { - if x != nil { - return x.Instances - } - return FindStackConfigurationComponents_SINGLE -} - -func (x *FindStackConfigurationComponents_Component) GetComponentAddr() string { - if x != nil { - return x.ComponentAddr - } - return "" -} - -type FindStackConfigurationComponents_InputVariable struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Optional bool `protobuf:"varint,1,opt,name=optional,proto3" json:"optional,omitempty"` - Sensitive bool `protobuf:"varint,2,opt,name=sensitive,proto3" json:"sensitive,omitempty"` - Ephemeral bool `protobuf:"varint,3,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` -} - -func (x *FindStackConfigurationComponents_InputVariable) Reset() { - *x = FindStackConfigurationComponents_InputVariable{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindStackConfigurationComponents_InputVariable) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindStackConfigurationComponents_InputVariable) ProtoMessage() {} - -func (x *FindStackConfigurationComponents_InputVariable) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[102] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindStackConfigurationComponents_InputVariable.ProtoReflect.Descriptor instead. -func (*FindStackConfigurationComponents_InputVariable) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23, 5} -} - -func (x *FindStackConfigurationComponents_InputVariable) GetOptional() bool { - if x != nil { - return x.Optional - } - return false -} - -func (x *FindStackConfigurationComponents_InputVariable) GetSensitive() bool { - if x != nil { - return x.Sensitive - } - return false -} - -func (x *FindStackConfigurationComponents_InputVariable) GetEphemeral() bool { - if x != nil { - return x.Ephemeral - } - return false -} - -type FindStackConfigurationComponents_OutputValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sensitive bool `protobuf:"varint,1,opt,name=sensitive,proto3" json:"sensitive,omitempty"` - Ephemeral bool `protobuf:"varint,2,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` -} - -func (x *FindStackConfigurationComponents_OutputValue) Reset() { - *x = FindStackConfigurationComponents_OutputValue{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindStackConfigurationComponents_OutputValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindStackConfigurationComponents_OutputValue) ProtoMessage() {} - -func (x *FindStackConfigurationComponents_OutputValue) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[103] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FindStackConfigurationComponents_OutputValue.ProtoReflect.Descriptor instead. -func (*FindStackConfigurationComponents_OutputValue) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{23, 6} -} - -func (x *FindStackConfigurationComponents_OutputValue) GetSensitive() bool { - if x != nil { - return x.Sensitive - } - return false -} - -func (x *FindStackConfigurationComponents_OutputValue) GetEphemeral() bool { - if x != nil { - return x.Ephemeral - } - return false -} - -type OpenStackState_RequestItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Raw *AppliedChange_RawChange `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"` -} - -func (x *OpenStackState_RequestItem) Reset() { - *x = OpenStackState_RequestItem{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[108] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackState_RequestItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackState_RequestItem) ProtoMessage() {} - -func (x *OpenStackState_RequestItem) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[108] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackState_RequestItem.ProtoReflect.Descriptor instead. -func (*OpenStackState_RequestItem) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{24, 0} -} - -func (x *OpenStackState_RequestItem) GetRaw() *AppliedChange_RawChange { - if x != nil { - return x.Raw - } - return nil -} - -type OpenStackState_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StateHandle int64 `protobuf:"varint,1,opt,name=state_handle,json=stateHandle,proto3" json:"state_handle,omitempty"` -} - -func (x *OpenStackState_Response) Reset() { - *x = OpenStackState_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[109] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackState_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackState_Response) ProtoMessage() {} - -func (x *OpenStackState_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[109] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackState_Response.ProtoReflect.Descriptor instead. -func (*OpenStackState_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{24, 1} -} - -func (x *OpenStackState_Response) GetStateHandle() int64 { - if x != nil { - return x.StateHandle - } - return 0 -} - -type CloseStackState_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StateHandle int64 `protobuf:"varint,1,opt,name=state_handle,json=stateHandle,proto3" json:"state_handle,omitempty"` -} - -func (x *CloseStackState_Request) Reset() { - *x = CloseStackState_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[110] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackState_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackState_Request) ProtoMessage() {} - -func (x *CloseStackState_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[110] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackState_Request.ProtoReflect.Descriptor instead. -func (*CloseStackState_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{25, 0} -} - -func (x *CloseStackState_Request) GetStateHandle() int64 { - if x != nil { - return x.StateHandle - } - return 0 -} - -type CloseStackState_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseStackState_Response) Reset() { - *x = CloseStackState_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[111] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackState_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackState_Response) ProtoMessage() {} - -func (x *CloseStackState_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[111] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackState_Response.ProtoReflect.Descriptor instead. -func (*CloseStackState_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{25, 1} -} - -type PlanStackChanges_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PlanMode PlanMode `protobuf:"varint,1,opt,name=plan_mode,json=planMode,proto3,enum=terraform1.PlanMode" json:"plan_mode,omitempty"` - StackConfigHandle int64 `protobuf:"varint,2,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` - PreviousStateHandle int64 `protobuf:"varint,7,opt,name=previous_state_handle,json=previousStateHandle,proto3" json:"previous_state_handle,omitempty"` - // Deprecated: Marked as deprecated in terraform1.proto. - PreviousState map[string]*anypb.Any `protobuf:"bytes,3,rep,name=previous_state,json=previousState,proto3" json:"previous_state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - DependencyLocksHandle int64 `protobuf:"varint,4,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` - ProviderCacheHandle int64 `protobuf:"varint,5,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` - InputValues map[string]*DynamicValueWithSource `protobuf:"bytes,6,rep,name=input_values,json=inputValues,proto3" json:"input_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // TODO: Various other planning options -} - -func (x *PlanStackChanges_Request) Reset() { - *x = PlanStackChanges_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[112] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlanStackChanges_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlanStackChanges_Request) ProtoMessage() {} - -func (x *PlanStackChanges_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[112] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlanStackChanges_Request.ProtoReflect.Descriptor instead. -func (*PlanStackChanges_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{26, 0} -} - -func (x *PlanStackChanges_Request) GetPlanMode() PlanMode { - if x != nil { - return x.PlanMode - } - return PlanMode_NORMAL -} - -func (x *PlanStackChanges_Request) GetStackConfigHandle() int64 { - if x != nil { - return x.StackConfigHandle - } - return 0 -} - -func (x *PlanStackChanges_Request) GetPreviousStateHandle() int64 { - if x != nil { - return x.PreviousStateHandle - } - return 0 -} - -// Deprecated: Marked as deprecated in terraform1.proto. -func (x *PlanStackChanges_Request) GetPreviousState() map[string]*anypb.Any { - if x != nil { - return x.PreviousState - } - return nil -} - -func (x *PlanStackChanges_Request) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -func (x *PlanStackChanges_Request) GetProviderCacheHandle() int64 { - if x != nil { - return x.ProviderCacheHandle - } - return 0 -} - -func (x *PlanStackChanges_Request) GetInputValues() map[string]*DynamicValueWithSource { - if x != nil { - return x.InputValues - } - return nil -} - -type PlanStackChanges_Event struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Event: - // - // *PlanStackChanges_Event_PlannedChange - // *PlanStackChanges_Event_Diagnostic - // *PlanStackChanges_Event_Progress - Event isPlanStackChanges_Event_Event `protobuf_oneof:"event"` -} - -func (x *PlanStackChanges_Event) Reset() { - *x = PlanStackChanges_Event{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[113] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlanStackChanges_Event) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlanStackChanges_Event) ProtoMessage() {} - -func (x *PlanStackChanges_Event) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[113] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlanStackChanges_Event.ProtoReflect.Descriptor instead. -func (*PlanStackChanges_Event) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{26, 1} -} - -func (m *PlanStackChanges_Event) GetEvent() isPlanStackChanges_Event_Event { - if m != nil { - return m.Event - } - return nil -} - -func (x *PlanStackChanges_Event) GetPlannedChange() *PlannedChange { - if x, ok := x.GetEvent().(*PlanStackChanges_Event_PlannedChange); ok { - return x.PlannedChange - } - return nil -} - -func (x *PlanStackChanges_Event) GetDiagnostic() *Diagnostic { - if x, ok := x.GetEvent().(*PlanStackChanges_Event_Diagnostic); ok { - return x.Diagnostic - } - return nil -} - -func (x *PlanStackChanges_Event) GetProgress() *StackChangeProgress { - if x, ok := x.GetEvent().(*PlanStackChanges_Event_Progress); ok { - return x.Progress - } - return nil -} - -type isPlanStackChanges_Event_Event interface { - isPlanStackChanges_Event_Event() -} - -type PlanStackChanges_Event_PlannedChange struct { - PlannedChange *PlannedChange `protobuf:"bytes,1,opt,name=planned_change,json=plannedChange,proto3,oneof"` -} - -type PlanStackChanges_Event_Diagnostic struct { - Diagnostic *Diagnostic `protobuf:"bytes,2,opt,name=diagnostic,proto3,oneof"` -} - -type PlanStackChanges_Event_Progress struct { - Progress *StackChangeProgress `protobuf:"bytes,10,opt,name=progress,proto3,oneof"` -} - -func (*PlanStackChanges_Event_PlannedChange) isPlanStackChanges_Event_Event() {} - -func (*PlanStackChanges_Event_Diagnostic) isPlanStackChanges_Event_Event() {} - -func (*PlanStackChanges_Event_Progress) isPlanStackChanges_Event_Event() {} - -type OpenStackPlan_RequestItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Raw *anypb.Any `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"` -} - -func (x *OpenStackPlan_RequestItem) Reset() { - *x = OpenStackPlan_RequestItem{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[116] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackPlan_RequestItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackPlan_RequestItem) ProtoMessage() {} - -func (x *OpenStackPlan_RequestItem) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[116] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackPlan_RequestItem.ProtoReflect.Descriptor instead. -func (*OpenStackPlan_RequestItem) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{27, 0} -} - -func (x *OpenStackPlan_RequestItem) GetRaw() *anypb.Any { - if x != nil { - return x.Raw - } - return nil -} - -type OpenStackPlan_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PlanHandle int64 `protobuf:"varint,1,opt,name=plan_handle,json=planHandle,proto3" json:"plan_handle,omitempty"` -} - -func (x *OpenStackPlan_Response) Reset() { - *x = OpenStackPlan_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[117] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackPlan_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackPlan_Response) ProtoMessage() {} - -func (x *OpenStackPlan_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[117] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackPlan_Response.ProtoReflect.Descriptor instead. -func (*OpenStackPlan_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{27, 1} -} - -func (x *OpenStackPlan_Response) GetPlanHandle() int64 { - if x != nil { - return x.PlanHandle - } - return 0 -} - -type CloseStackPlan_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PlanHandle int64 `protobuf:"varint,1,opt,name=plan_handle,json=planHandle,proto3" json:"plan_handle,omitempty"` -} - -func (x *CloseStackPlan_Request) Reset() { - *x = CloseStackPlan_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[118] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackPlan_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackPlan_Request) ProtoMessage() {} - -func (x *CloseStackPlan_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[118] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackPlan_Request.ProtoReflect.Descriptor instead. -func (*CloseStackPlan_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{28, 0} -} - -func (x *CloseStackPlan_Request) GetPlanHandle() int64 { - if x != nil { - return x.PlanHandle - } - return 0 -} - -type CloseStackPlan_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CloseStackPlan_Response) Reset() { - *x = CloseStackPlan_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[119] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloseStackPlan_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloseStackPlan_Response) ProtoMessage() {} - -func (x *CloseStackPlan_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[119] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloseStackPlan_Response.ProtoReflect.Descriptor instead. -func (*CloseStackPlan_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{28, 1} -} - -type ApplyStackChanges_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // This must refer to exactly the same configuration that was - // passed to PlanStackChanges when creating this plan, or the - // results will be unpredictable. - StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` - // The caller should send all of the keys present in the previous - // apply's description map. Terraform Core will use this for - // situations such as updating existing descriptions to newer - // formats even if no change is being made to the corresponding - // real objects. - KnownDescriptionKeys []string `protobuf:"bytes,3,rep,name=known_description_keys,json=knownDescriptionKeys,proto3" json:"known_description_keys,omitempty"` - // The handle for a saved plan previously loaded using the - // Stacks.OpenPlan function. - // Applying a plan immediately invalidates it, so the handle will - // be automatically closed. - PlanHandle int64 `protobuf:"varint,8,opt,name=plan_handle,json=planHandle,proto3" json:"plan_handle,omitempty"` - // This must include all of the "raw" values emitted through - // PlannedChange events during the PlanStackChanges operation - // that created this plan, concatenated together in the same - // order they were written to the PlanStackChanges event stream. - // - // Use plan_handle instead. This will be removed in future. - // - // Deprecated: Marked as deprecated in terraform1.proto. - PlannedChanges []*anypb.Any `protobuf:"bytes,4,rep,name=planned_changes,json=plannedChanges,proto3" json:"planned_changes,omitempty"` - // This must be equivalent to the argument of the same name - // passed to PlanStackChanges when creating this plan. - DependencyLocksHandle int64 `protobuf:"varint,5,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` - // This must be equivalent to the argument of the same name - // passed to PlanStackChanges when creating this plan. - ProviderCacheHandle int64 `protobuf:"varint,6,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` - // Any input variables identified as an "apply-time input variable" - // in the plan must have values provided here. - // - // Callers may also optionally include values for other declared input - // variables, but if so their values must exactly match those used when - // creating the plan. - InputValues map[string]*DynamicValueWithSource `protobuf:"bytes,7,rep,name=input_values,json=inputValues,proto3" json:"input_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ApplyStackChanges_Request) Reset() { - *x = ApplyStackChanges_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[120] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplyStackChanges_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplyStackChanges_Request) ProtoMessage() {} - -func (x *ApplyStackChanges_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[120] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplyStackChanges_Request.ProtoReflect.Descriptor instead. -func (*ApplyStackChanges_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{29, 0} -} - -func (x *ApplyStackChanges_Request) GetStackConfigHandle() int64 { - if x != nil { - return x.StackConfigHandle - } - return 0 -} - -func (x *ApplyStackChanges_Request) GetKnownDescriptionKeys() []string { - if x != nil { - return x.KnownDescriptionKeys - } - return nil -} - -func (x *ApplyStackChanges_Request) GetPlanHandle() int64 { - if x != nil { - return x.PlanHandle - } - return 0 -} - -// Deprecated: Marked as deprecated in terraform1.proto. -func (x *ApplyStackChanges_Request) GetPlannedChanges() []*anypb.Any { - if x != nil { - return x.PlannedChanges - } - return nil -} - -func (x *ApplyStackChanges_Request) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -func (x *ApplyStackChanges_Request) GetProviderCacheHandle() int64 { - if x != nil { - return x.ProviderCacheHandle - } - return 0 -} - -func (x *ApplyStackChanges_Request) GetInputValues() map[string]*DynamicValueWithSource { - if x != nil { - return x.InputValues - } - return nil -} - -type ApplyStackChanges_Event struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Event: - // - // *ApplyStackChanges_Event_AppliedChange - // *ApplyStackChanges_Event_Diagnostic - // *ApplyStackChanges_Event_Progress - Event isApplyStackChanges_Event_Event `protobuf_oneof:"event"` -} - -func (x *ApplyStackChanges_Event) Reset() { - *x = ApplyStackChanges_Event{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[121] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApplyStackChanges_Event) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApplyStackChanges_Event) ProtoMessage() {} - -func (x *ApplyStackChanges_Event) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[121] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApplyStackChanges_Event.ProtoReflect.Descriptor instead. -func (*ApplyStackChanges_Event) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{29, 1} -} - -func (m *ApplyStackChanges_Event) GetEvent() isApplyStackChanges_Event_Event { - if m != nil { - return m.Event - } - return nil -} - -func (x *ApplyStackChanges_Event) GetAppliedChange() *AppliedChange { - if x, ok := x.GetEvent().(*ApplyStackChanges_Event_AppliedChange); ok { - return x.AppliedChange - } - return nil -} - -func (x *ApplyStackChanges_Event) GetDiagnostic() *Diagnostic { - if x, ok := x.GetEvent().(*ApplyStackChanges_Event_Diagnostic); ok { - return x.Diagnostic - } - return nil -} - -func (x *ApplyStackChanges_Event) GetProgress() *StackChangeProgress { - if x, ok := x.GetEvent().(*ApplyStackChanges_Event_Progress); ok { - return x.Progress - } - return nil -} - -type isApplyStackChanges_Event_Event interface { - isApplyStackChanges_Event_Event() -} - -type ApplyStackChanges_Event_AppliedChange struct { - AppliedChange *AppliedChange `protobuf:"bytes,1,opt,name=applied_change,json=appliedChange,proto3,oneof"` -} - -type ApplyStackChanges_Event_Diagnostic struct { - Diagnostic *Diagnostic `protobuf:"bytes,2,opt,name=diagnostic,proto3,oneof"` -} - -type ApplyStackChanges_Event_Progress struct { - Progress *StackChangeProgress `protobuf:"bytes,3,opt,name=progress,proto3,oneof"` -} - -func (*ApplyStackChanges_Event_AppliedChange) isApplyStackChanges_Event_Event() {} - -func (*ApplyStackChanges_Event_Diagnostic) isApplyStackChanges_Event_Event() {} - -func (*ApplyStackChanges_Event_Progress) isApplyStackChanges_Event_Event() {} - -type OpenStackInspector_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StackConfigHandle int64 `protobuf:"varint,1,opt,name=stack_config_handle,json=stackConfigHandle,proto3" json:"stack_config_handle,omitempty"` - State map[string]*anypb.Any `protobuf:"bytes,2,rep,name=state,proto3" json:"state,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - DependencyLocksHandle int64 `protobuf:"varint,3,opt,name=dependency_locks_handle,json=dependencyLocksHandle,proto3" json:"dependency_locks_handle,omitempty"` - ProviderCacheHandle int64 `protobuf:"varint,4,opt,name=provider_cache_handle,json=providerCacheHandle,proto3" json:"provider_cache_handle,omitempty"` - InputValues map[string]*DynamicValueWithSource `protobuf:"bytes,5,rep,name=input_values,json=inputValues,proto3" json:"input_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *OpenStackInspector_Request) Reset() { - *x = OpenStackInspector_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[123] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackInspector_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackInspector_Request) ProtoMessage() {} - -func (x *OpenStackInspector_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[123] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackInspector_Request.ProtoReflect.Descriptor instead. -func (*OpenStackInspector_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{30, 0} -} - -func (x *OpenStackInspector_Request) GetStackConfigHandle() int64 { - if x != nil { - return x.StackConfigHandle - } - return 0 -} - -func (x *OpenStackInspector_Request) GetState() map[string]*anypb.Any { - if x != nil { - return x.State - } - return nil -} - -func (x *OpenStackInspector_Request) GetDependencyLocksHandle() int64 { - if x != nil { - return x.DependencyLocksHandle - } - return 0 -} - -func (x *OpenStackInspector_Request) GetProviderCacheHandle() int64 { - if x != nil { - return x.ProviderCacheHandle - } - return 0 -} - -func (x *OpenStackInspector_Request) GetInputValues() map[string]*DynamicValueWithSource { - if x != nil { - return x.InputValues - } - return nil -} - -type OpenStackInspector_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StackInspectorHandle int64 `protobuf:"varint,1,opt,name=stack_inspector_handle,json=stackInspectorHandle,proto3" json:"stack_inspector_handle,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *OpenStackInspector_Response) Reset() { - *x = OpenStackInspector_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[124] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OpenStackInspector_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OpenStackInspector_Response) ProtoMessage() {} - -func (x *OpenStackInspector_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[124] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OpenStackInspector_Response.ProtoReflect.Descriptor instead. -func (*OpenStackInspector_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{30, 1} -} - -func (x *OpenStackInspector_Response) GetStackInspectorHandle() int64 { - if x != nil { - return x.StackInspectorHandle - } - return 0 -} - -func (x *OpenStackInspector_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type InspectExpressionResult_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StackInspectorHandle int64 `protobuf:"varint,1,opt,name=stack_inspector_handle,json=stackInspectorHandle,proto3" json:"stack_inspector_handle,omitempty"` - ExpressionSrc []byte `protobuf:"bytes,2,opt,name=expression_src,json=expressionSrc,proto3" json:"expression_src,omitempty"` - StackAddr string `protobuf:"bytes,3,opt,name=stack_addr,json=stackAddr,proto3" json:"stack_addr,omitempty"` -} - -func (x *InspectExpressionResult_Request) Reset() { - *x = InspectExpressionResult_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[127] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InspectExpressionResult_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InspectExpressionResult_Request) ProtoMessage() {} - -func (x *InspectExpressionResult_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[127] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InspectExpressionResult_Request.ProtoReflect.Descriptor instead. -func (*InspectExpressionResult_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{31, 0} -} - -func (x *InspectExpressionResult_Request) GetStackInspectorHandle() int64 { - if x != nil { - return x.StackInspectorHandle - } - return 0 -} - -func (x *InspectExpressionResult_Request) GetExpressionSrc() []byte { - if x != nil { - return x.ExpressionSrc - } - return nil -} - -func (x *InspectExpressionResult_Request) GetStackAddr() string { - if x != nil { - return x.StackAddr - } - return "" -} - -type InspectExpressionResult_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The result of evaluating the expression, if successful enough to - // produce a result. Unpopulated if the expression was too invalid - // to produce a result, with the problem then described in the - // associated diagnostics. - // - // Uses a MessagePack encoding with in-band type information. - Result *DynamicValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *InspectExpressionResult_Response) Reset() { - *x = InspectExpressionResult_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[128] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InspectExpressionResult_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InspectExpressionResult_Response) ProtoMessage() {} - -func (x *InspectExpressionResult_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[128] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InspectExpressionResult_Response.ProtoReflect.Descriptor instead. -func (*InspectExpressionResult_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{31, 1} -} - -func (x *InspectExpressionResult_Response) GetResult() *DynamicValue { - if x != nil { - return x.Result - } - return nil -} - -func (x *InspectExpressionResult_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type AttributePath_Step struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Selector: - // - // *AttributePath_Step_AttributeName - // *AttributePath_Step_ElementKeyString - // *AttributePath_Step_ElementKeyInt - Selector isAttributePath_Step_Selector `protobuf_oneof:"selector"` -} - -func (x *AttributePath_Step) Reset() { - *x = AttributePath_Step{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[129] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AttributePath_Step) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AttributePath_Step) ProtoMessage() {} - -func (x *AttributePath_Step) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[129] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AttributePath_Step.ProtoReflect.Descriptor instead. -func (*AttributePath_Step) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{35, 0} -} - -func (m *AttributePath_Step) GetSelector() isAttributePath_Step_Selector { - if m != nil { - return m.Selector - } - return nil -} - -func (x *AttributePath_Step) GetAttributeName() string { - if x, ok := x.GetSelector().(*AttributePath_Step_AttributeName); ok { - return x.AttributeName - } - return "" -} - -func (x *AttributePath_Step) GetElementKeyString() string { - if x, ok := x.GetSelector().(*AttributePath_Step_ElementKeyString); ok { - return x.ElementKeyString - } - return "" -} - -func (x *AttributePath_Step) GetElementKeyInt() int64 { - if x, ok := x.GetSelector().(*AttributePath_Step_ElementKeyInt); ok { - return x.ElementKeyInt - } - return 0 -} - -type isAttributePath_Step_Selector interface { - isAttributePath_Step_Selector() -} - -type AttributePath_Step_AttributeName struct { - // Set "attribute_name" to represent looking up an attribute - // in the current object value. - AttributeName string `protobuf:"bytes,1,opt,name=attribute_name,json=attributeName,proto3,oneof"` -} - -type AttributePath_Step_ElementKeyString struct { - // Set "element_key_*" to represent looking up an element in - // an indexable collection type. - ElementKeyString string `protobuf:"bytes,2,opt,name=element_key_string,json=elementKeyString,proto3,oneof"` -} - -type AttributePath_Step_ElementKeyInt struct { - ElementKeyInt int64 `protobuf:"varint,3,opt,name=element_key_int,json=elementKeyInt,proto3,oneof"` -} - -func (*AttributePath_Step_AttributeName) isAttributePath_Step_Selector() {} - -func (*AttributePath_Step_ElementKeyString) isAttributePath_Step_Selector() {} - -func (*AttributePath_Step_ElementKeyInt) isAttributePath_Step_Selector() {} - -// Represents a single caller-facing description of a change, to use for -// presenting information to end users in the UI and for other subsystems -// such as imposing policy rules on the resulting plan. -// -// New description types might be added in future versions of Terraform -// Core, and so clients should tolerate description messages that appear -// to have none of the oneof fields set, and should just ignore those -// messages entirely. -type PlannedChange_ChangeDescription struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Description: - // - // *PlannedChange_ChangeDescription_ComponentInstancePlanned - // *PlannedChange_ChangeDescription_ResourceInstancePlanned - // *PlannedChange_ChangeDescription_OutputValuePlanned - // *PlannedChange_ChangeDescription_PlanApplyable - // *PlannedChange_ChangeDescription_ResourceInstanceDeferred - // *PlannedChange_ChangeDescription_ApplyTimeInputVariable - Description isPlannedChange_ChangeDescription_Description `protobuf_oneof:"description"` -} - -func (x *PlannedChange_ChangeDescription) Reset() { - *x = PlannedChange_ChangeDescription{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[130] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_ChangeDescription) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_ChangeDescription) ProtoMessage() {} - -func (x *PlannedChange_ChangeDescription) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[130] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_ChangeDescription.ProtoReflect.Descriptor instead. -func (*PlannedChange_ChangeDescription) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 0} -} - -func (m *PlannedChange_ChangeDescription) GetDescription() isPlannedChange_ChangeDescription_Description { - if m != nil { - return m.Description - } - return nil -} - -func (x *PlannedChange_ChangeDescription) GetComponentInstancePlanned() *PlannedChange_ComponentInstance { - if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_ComponentInstancePlanned); ok { - return x.ComponentInstancePlanned - } - return nil -} - -func (x *PlannedChange_ChangeDescription) GetResourceInstancePlanned() *PlannedChange_ResourceInstance { - if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_ResourceInstancePlanned); ok { - return x.ResourceInstancePlanned - } - return nil -} - -func (x *PlannedChange_ChangeDescription) GetOutputValuePlanned() *PlannedChange_OutputValue { - if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_OutputValuePlanned); ok { - return x.OutputValuePlanned - } - return nil -} - -func (x *PlannedChange_ChangeDescription) GetPlanApplyable() bool { - if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_PlanApplyable); ok { - return x.PlanApplyable - } - return false -} - -func (x *PlannedChange_ChangeDescription) GetResourceInstanceDeferred() *PlannedChange_ResourceInstanceDeferred { - if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_ResourceInstanceDeferred); ok { - return x.ResourceInstanceDeferred - } - return nil -} - -func (x *PlannedChange_ChangeDescription) GetApplyTimeInputVariable() *PlannedChange_InputVariableDuringApply { - if x, ok := x.GetDescription().(*PlannedChange_ChangeDescription_ApplyTimeInputVariable); ok { - return x.ApplyTimeInputVariable - } - return nil -} - -type isPlannedChange_ChangeDescription_Description interface { - isPlannedChange_ChangeDescription_Description() -} - -type PlannedChange_ChangeDescription_ComponentInstancePlanned struct { - ComponentInstancePlanned *PlannedChange_ComponentInstance `protobuf:"bytes,1,opt,name=component_instance_planned,json=componentInstancePlanned,proto3,oneof"` -} - -type PlannedChange_ChangeDescription_ResourceInstancePlanned struct { - ResourceInstancePlanned *PlannedChange_ResourceInstance `protobuf:"bytes,2,opt,name=resource_instance_planned,json=resourceInstancePlanned,proto3,oneof"` -} - -type PlannedChange_ChangeDescription_OutputValuePlanned struct { - OutputValuePlanned *PlannedChange_OutputValue `protobuf:"bytes,3,opt,name=output_value_planned,json=outputValuePlanned,proto3,oneof"` -} - -type PlannedChange_ChangeDescription_PlanApplyable struct { - PlanApplyable bool `protobuf:"varint,4,opt,name=plan_applyable,json=planApplyable,proto3,oneof"` -} - -type PlannedChange_ChangeDescription_ResourceInstanceDeferred struct { - ResourceInstanceDeferred *PlannedChange_ResourceInstanceDeferred `protobuf:"bytes,5,opt,name=resource_instance_deferred,json=resourceInstanceDeferred,proto3,oneof"` -} - -type PlannedChange_ChangeDescription_ApplyTimeInputVariable struct { - ApplyTimeInputVariable *PlannedChange_InputVariableDuringApply `protobuf:"bytes,6,opt,name=apply_time_input_variable,json=applyTimeInputVariable,proto3,oneof"` -} - -func (*PlannedChange_ChangeDescription_ComponentInstancePlanned) isPlannedChange_ChangeDescription_Description() { -} - -func (*PlannedChange_ChangeDescription_ResourceInstancePlanned) isPlannedChange_ChangeDescription_Description() { -} - -func (*PlannedChange_ChangeDescription_OutputValuePlanned) isPlannedChange_ChangeDescription_Description() { -} - -func (*PlannedChange_ChangeDescription_PlanApplyable) isPlannedChange_ChangeDescription_Description() { -} - -func (*PlannedChange_ChangeDescription_ResourceInstanceDeferred) isPlannedChange_ChangeDescription_Description() { -} - -func (*PlannedChange_ChangeDescription_ApplyTimeInputVariable) isPlannedChange_ChangeDescription_Description() { -} - -// Reports the existence of a particular instance of a component, -// once Terraform has resolved arguments such as "for_each" that -// might make the set of instances dynamic. -type PlannedChange_ComponentInstance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ComponentInstanceInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - // The changes to the existence of this instance relative to the - // prior state. This only considers the component instance directly, - // and doesn't take into account what actions are planned for any - // resource instances inside. - Actions []ChangeType `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=terraform1.ChangeType" json:"actions,omitempty"` - // A flag for whether applying this plan is expected to cause the - // desired state and actual state to become converged. - // - // If this field is false, that means Terraform expects that at least - // one more plan/apply round will be needed to reach convergence. - // - // If this field is true then Terraform hopes to be able to converge - // after this plan is applied, but callers should ideally still check - // anyway by running one more plan to confirm that there aren't any - // unexpected differences caused by such situations as contradictory - // configuration or provider bugs. - PlanComplete bool `protobuf:"varint,3,opt,name=plan_complete,json=planComplete,proto3" json:"plan_complete,omitempty"` -} - -func (x *PlannedChange_ComponentInstance) Reset() { - *x = PlannedChange_ComponentInstance{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[131] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_ComponentInstance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_ComponentInstance) ProtoMessage() {} - -func (x *PlannedChange_ComponentInstance) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[131] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_ComponentInstance.ProtoReflect.Descriptor instead. -func (*PlannedChange_ComponentInstance) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 1} -} - -func (x *PlannedChange_ComponentInstance) GetAddr() *ComponentInstanceInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *PlannedChange_ComponentInstance) GetActions() []ChangeType { - if x != nil { - return x.Actions - } - return nil -} - -func (x *PlannedChange_ComponentInstance) GetPlanComplete() bool { - if x != nil { - return x.PlanComplete - } - return false -} - -type PlannedChange_ResourceInstance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - Actions []ChangeType `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=terraform1.ChangeType" json:"actions,omitempty"` - Values *DynamicValueChange `protobuf:"bytes,3,opt,name=values,proto3" json:"values,omitempty"` - Moved *PlannedChange_ResourceInstance_Moved `protobuf:"bytes,4,opt,name=moved,proto3" json:"moved,omitempty"` - Imported *PlannedChange_ResourceInstance_Imported `protobuf:"bytes,5,opt,name=imported,proto3" json:"imported,omitempty"` - ResourceMode ResourceMode `protobuf:"varint,6,opt,name=resource_mode,json=resourceMode,proto3,enum=terraform1.ResourceMode" json:"resource_mode,omitempty"` - ResourceType string `protobuf:"bytes,7,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` - ProviderAddr string `protobuf:"bytes,8,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` - // previous_run_value is included only if it would be - // different from values.old, which typically means that - // Terraform detected some changes made outside of Terraform - // since the previous run. In that case, this field is - // the un-refreshed (but still upgraded) value from - // the previous run and values.old is the refreshed version. - // - // If this isn't set then values.old should be used as the - // previous run value, if needed. - PreviousRunValue *DynamicValue `protobuf:"bytes,9,opt,name=previous_run_value,json=previousRunValue,proto3" json:"previous_run_value,omitempty"` - // This flag is set if Terraform Core considers the difference - // between previous_run_value and values.old to be "notable", - // which is a heuristic subject to change over time but is - // broadly intended to mean that it would be worth mentioning - // the difference between the two in the UI as a - // "change outside of Terraform". If this isn't set then the - // difference is probably not worth mentioning to the user - // by default, although it could still be shown behind an - // optional disclosure in UI contexts where such things are possible. - NotableChangeOutside bool `protobuf:"varint,10,opt,name=notable_change_outside,json=notableChangeOutside,proto3" json:"notable_change_outside,omitempty"` - ReplacePaths []*AttributePath `protobuf:"bytes,11,rep,name=replace_paths,json=replacePaths,proto3" json:"replace_paths,omitempty"` - ResourceName string `protobuf:"bytes,12,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` - Index *PlannedChange_ResourceInstance_Index `protobuf:"bytes,13,opt,name=index,proto3" json:"index,omitempty"` - ModuleAddr string `protobuf:"bytes,14,opt,name=module_addr,json=moduleAddr,proto3" json:"module_addr,omitempty"` - ActionReason string `protobuf:"bytes,15,opt,name=action_reason,json=actionReason,proto3" json:"action_reason,omitempty"` -} - -func (x *PlannedChange_ResourceInstance) Reset() { - *x = PlannedChange_ResourceInstance{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[132] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_ResourceInstance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_ResourceInstance) ProtoMessage() {} - -func (x *PlannedChange_ResourceInstance) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[132] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_ResourceInstance.ProtoReflect.Descriptor instead. -func (*PlannedChange_ResourceInstance) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 2} -} - -func (x *PlannedChange_ResourceInstance) GetAddr() *ResourceInstanceObjectInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *PlannedChange_ResourceInstance) GetActions() []ChangeType { - if x != nil { - return x.Actions - } - return nil -} - -func (x *PlannedChange_ResourceInstance) GetValues() *DynamicValueChange { - if x != nil { - return x.Values - } - return nil -} - -func (x *PlannedChange_ResourceInstance) GetMoved() *PlannedChange_ResourceInstance_Moved { - if x != nil { - return x.Moved - } - return nil -} - -func (x *PlannedChange_ResourceInstance) GetImported() *PlannedChange_ResourceInstance_Imported { - if x != nil { - return x.Imported - } - return nil -} - -func (x *PlannedChange_ResourceInstance) GetResourceMode() ResourceMode { - if x != nil { - return x.ResourceMode - } - return ResourceMode_UNKNOWN -} - -func (x *PlannedChange_ResourceInstance) GetResourceType() string { - if x != nil { - return x.ResourceType - } - return "" -} - -func (x *PlannedChange_ResourceInstance) GetProviderAddr() string { - if x != nil { - return x.ProviderAddr - } - return "" -} - -func (x *PlannedChange_ResourceInstance) GetPreviousRunValue() *DynamicValue { - if x != nil { - return x.PreviousRunValue - } - return nil -} - -func (x *PlannedChange_ResourceInstance) GetNotableChangeOutside() bool { - if x != nil { - return x.NotableChangeOutside - } - return false -} - -func (x *PlannedChange_ResourceInstance) GetReplacePaths() []*AttributePath { - if x != nil { - return x.ReplacePaths - } - return nil -} - -func (x *PlannedChange_ResourceInstance) GetResourceName() string { - if x != nil { - return x.ResourceName - } - return "" -} - -func (x *PlannedChange_ResourceInstance) GetIndex() *PlannedChange_ResourceInstance_Index { - if x != nil { - return x.Index - } - return nil -} - -func (x *PlannedChange_ResourceInstance) GetModuleAddr() string { - if x != nil { - return x.ModuleAddr - } - return "" -} - -func (x *PlannedChange_ResourceInstance) GetActionReason() string { - if x != nil { - return x.ActionReason - } - return "" -} - -// Note: this is only for output values from the topmost -// stack configuration, because all other output values are -// internal to the configuration and not part of its public API. -type PlannedChange_OutputValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Actions []ChangeType `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=terraform1.ChangeType" json:"actions,omitempty"` - Values *DynamicValueChange `protobuf:"bytes,3,opt,name=values,proto3" json:"values,omitempty"` -} - -func (x *PlannedChange_OutputValue) Reset() { - *x = PlannedChange_OutputValue{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[133] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_OutputValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_OutputValue) ProtoMessage() {} - -func (x *PlannedChange_OutputValue) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[133] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_OutputValue.ProtoReflect.Descriptor instead. -func (*PlannedChange_OutputValue) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 3} -} - -func (x *PlannedChange_OutputValue) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *PlannedChange_OutputValue) GetActions() []ChangeType { - if x != nil { - return x.Actions - } - return nil -} - -func (x *PlannedChange_OutputValue) GetValues() *DynamicValueChange { - if x != nil { - return x.Values - } - return nil -} - -type PlannedChange_ResourceInstanceDeferred struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ResourceInstance *PlannedChange_ResourceInstance `protobuf:"bytes,1,opt,name=resource_instance,json=resourceInstance,proto3" json:"resource_instance,omitempty"` - Deferred *Deferred `protobuf:"bytes,2,opt,name=deferred,proto3" json:"deferred,omitempty"` -} - -func (x *PlannedChange_ResourceInstanceDeferred) Reset() { - *x = PlannedChange_ResourceInstanceDeferred{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[134] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_ResourceInstanceDeferred) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_ResourceInstanceDeferred) ProtoMessage() {} - -func (x *PlannedChange_ResourceInstanceDeferred) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[134] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_ResourceInstanceDeferred.ProtoReflect.Descriptor instead. -func (*PlannedChange_ResourceInstanceDeferred) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 4} -} - -func (x *PlannedChange_ResourceInstanceDeferred) GetResourceInstance() *PlannedChange_ResourceInstance { - if x != nil { - return x.ResourceInstance - } - return nil -} - -func (x *PlannedChange_ResourceInstanceDeferred) GetDeferred() *Deferred { - if x != nil { - return x.Deferred - } - return nil -} - -// Describes an input variable that must have a value provided -// during the apply phase. -// -// This currently arises only when the variable was declared -// as ephemeral and was set to a non-null value during the planning -// phase. -type PlannedChange_InputVariableDuringApply struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *PlannedChange_InputVariableDuringApply) Reset() { - *x = PlannedChange_InputVariableDuringApply{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[135] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_InputVariableDuringApply) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_InputVariableDuringApply) ProtoMessage() {} - -func (x *PlannedChange_InputVariableDuringApply) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[135] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_InputVariableDuringApply.ProtoReflect.Descriptor instead. -func (*PlannedChange_InputVariableDuringApply) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 5} -} - -func (x *PlannedChange_InputVariableDuringApply) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type PlannedChange_ResourceInstance_Index struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value *DynamicValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Unknown bool `protobuf:"varint,2,opt,name=unknown,proto3" json:"unknown,omitempty"` -} - -func (x *PlannedChange_ResourceInstance_Index) Reset() { - *x = PlannedChange_ResourceInstance_Index{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[136] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_ResourceInstance_Index) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_ResourceInstance_Index) ProtoMessage() {} - -func (x *PlannedChange_ResourceInstance_Index) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[136] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_ResourceInstance_Index.ProtoReflect.Descriptor instead. -func (*PlannedChange_ResourceInstance_Index) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 2, 0} -} - -func (x *PlannedChange_ResourceInstance_Index) GetValue() *DynamicValue { - if x != nil { - return x.Value - } - return nil -} - -func (x *PlannedChange_ResourceInstance_Index) GetUnknown() bool { - if x != nil { - return x.Unknown - } - return false -} - -type PlannedChange_ResourceInstance_Moved struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PrevAddr *ResourceInstanceInStackAddr `protobuf:"bytes,1,opt,name=prev_addr,json=prevAddr,proto3" json:"prev_addr,omitempty"` -} - -func (x *PlannedChange_ResourceInstance_Moved) Reset() { - *x = PlannedChange_ResourceInstance_Moved{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[137] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_ResourceInstance_Moved) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_ResourceInstance_Moved) ProtoMessage() {} - -func (x *PlannedChange_ResourceInstance_Moved) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[137] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_ResourceInstance_Moved.ProtoReflect.Descriptor instead. -func (*PlannedChange_ResourceInstance_Moved) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 2, 1} -} - -func (x *PlannedChange_ResourceInstance_Moved) GetPrevAddr() *ResourceInstanceInStackAddr { - if x != nil { - return x.PrevAddr - } - return nil -} - -type PlannedChange_ResourceInstance_Imported struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ImportId string `protobuf:"bytes,1,opt,name=import_id,json=importId,proto3" json:"import_id,omitempty"` - Unknown bool `protobuf:"varint,2,opt,name=unknown,proto3" json:"unknown,omitempty"` - GeneratedConfig string `protobuf:"bytes,3,opt,name=generated_config,json=generatedConfig,proto3" json:"generated_config,omitempty"` -} - -func (x *PlannedChange_ResourceInstance_Imported) Reset() { - *x = PlannedChange_ResourceInstance_Imported{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[138] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlannedChange_ResourceInstance_Imported) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlannedChange_ResourceInstance_Imported) ProtoMessage() {} - -func (x *PlannedChange_ResourceInstance_Imported) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[138] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlannedChange_ResourceInstance_Imported.ProtoReflect.Descriptor instead. -func (*PlannedChange_ResourceInstance_Imported) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{40, 2, 2} -} - -func (x *PlannedChange_ResourceInstance_Imported) GetImportId() string { - if x != nil { - return x.ImportId - } - return "" -} - -func (x *PlannedChange_ResourceInstance_Imported) GetUnknown() bool { - if x != nil { - return x.Unknown - } - return false -} - -func (x *PlannedChange_ResourceInstance_Imported) GetGeneratedConfig() string { - if x != nil { - return x.GeneratedConfig - } - return "" -} - -type AppliedChange_RawChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value *anypb.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *AppliedChange_RawChange) Reset() { - *x = AppliedChange_RawChange{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[139] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppliedChange_RawChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppliedChange_RawChange) ProtoMessage() {} - -func (x *AppliedChange_RawChange) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[139] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppliedChange_RawChange.ProtoReflect.Descriptor instead. -func (*AppliedChange_RawChange) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{42, 0} -} - -func (x *AppliedChange_RawChange) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *AppliedChange_RawChange) GetValue() *anypb.Any { - if x != nil { - return x.Value - } - return nil -} - -type AppliedChange_ChangeDescription struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // Types that are assignable to Description: - // - // *AppliedChange_ChangeDescription_Deleted - // *AppliedChange_ChangeDescription_Moved - // *AppliedChange_ChangeDescription_ResourceInstance - // *AppliedChange_ChangeDescription_OutputValue - // *AppliedChange_ChangeDescription_ComponentInstance - Description isAppliedChange_ChangeDescription_Description `protobuf_oneof:"description"` -} - -func (x *AppliedChange_ChangeDescription) Reset() { - *x = AppliedChange_ChangeDescription{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[140] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppliedChange_ChangeDescription) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppliedChange_ChangeDescription) ProtoMessage() {} - -func (x *AppliedChange_ChangeDescription) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[140] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppliedChange_ChangeDescription.ProtoReflect.Descriptor instead. -func (*AppliedChange_ChangeDescription) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{42, 1} -} - -func (x *AppliedChange_ChangeDescription) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (m *AppliedChange_ChangeDescription) GetDescription() isAppliedChange_ChangeDescription_Description { - if m != nil { - return m.Description - } - return nil -} - -func (x *AppliedChange_ChangeDescription) GetDeleted() *AppliedChange_Nothing { - if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_Deleted); ok { - return x.Deleted - } - return nil -} - -func (x *AppliedChange_ChangeDescription) GetMoved() *AppliedChange_Nothing { - if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_Moved); ok { - return x.Moved - } - return nil -} - -func (x *AppliedChange_ChangeDescription) GetResourceInstance() *AppliedChange_ResourceInstance { - if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_ResourceInstance); ok { - return x.ResourceInstance - } - return nil -} - -func (x *AppliedChange_ChangeDescription) GetOutputValue() *AppliedChange_OutputValue { - if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_OutputValue); ok { - return x.OutputValue - } - return nil -} - -func (x *AppliedChange_ChangeDescription) GetComponentInstance() *AppliedChange_ComponentInstance { - if x, ok := x.GetDescription().(*AppliedChange_ChangeDescription_ComponentInstance); ok { - return x.ComponentInstance - } - return nil -} - -type isAppliedChange_ChangeDescription_Description interface { - isAppliedChange_ChangeDescription_Description() -} - -type AppliedChange_ChangeDescription_Deleted struct { - Deleted *AppliedChange_Nothing `protobuf:"bytes,4,opt,name=deleted,proto3,oneof"` // explicitly represents the absence of a description -} - -type AppliedChange_ChangeDescription_Moved struct { - Moved *AppliedChange_Nothing `protobuf:"bytes,6,opt,name=moved,proto3,oneof"` // explicitly represents the absence of a description -} - -type AppliedChange_ChangeDescription_ResourceInstance struct { - ResourceInstance *AppliedChange_ResourceInstance `protobuf:"bytes,2,opt,name=resource_instance,json=resourceInstance,proto3,oneof"` -} - -type AppliedChange_ChangeDescription_OutputValue struct { - OutputValue *AppliedChange_OutputValue `protobuf:"bytes,3,opt,name=output_value,json=outputValue,proto3,oneof"` -} - -type AppliedChange_ChangeDescription_ComponentInstance struct { - ComponentInstance *AppliedChange_ComponentInstance `protobuf:"bytes,5,opt,name=component_instance,json=componentInstance,proto3,oneof"` -} - -func (*AppliedChange_ChangeDescription_Deleted) isAppliedChange_ChangeDescription_Description() {} - -func (*AppliedChange_ChangeDescription_Moved) isAppliedChange_ChangeDescription_Description() {} - -func (*AppliedChange_ChangeDescription_ResourceInstance) isAppliedChange_ChangeDescription_Description() { -} - -func (*AppliedChange_ChangeDescription_OutputValue) isAppliedChange_ChangeDescription_Description() {} - -func (*AppliedChange_ChangeDescription_ComponentInstance) isAppliedChange_ChangeDescription_Description() { -} - -type AppliedChange_ResourceInstance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - NewValue *DynamicValue `protobuf:"bytes,2,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` - ResourceMode ResourceMode `protobuf:"varint,4,opt,name=resource_mode,json=resourceMode,proto3,enum=terraform1.ResourceMode" json:"resource_mode,omitempty"` - ResourceType string `protobuf:"bytes,5,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` - ProviderAddr string `protobuf:"bytes,6,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` - // Sometimes Terraform needs to make changes to a resource in - // multiple steps during the apply phase, with each step - // changing something about the state. This flag will be set - // for such interim updates, and left unset for whatever - // description Terraform Core considers to be "final", at - // which point the new value should be converged with the - // desired state. - // - // The intended use for this is when presenting updated values - // to users in the UI, where it might be best to ignore or - // present differently interim updates to avoid creating - // confusion by showing the not-yet-converged intermediate - // states. - // - // If Terraform encounters a problem during the apply phase - // and needs to stop partway through then a "final" change - // description might never arrive. In that case, callers - // should save the most recent interim object as the final - // description, since it would represent the most accurate - // description of the state the remote system has been left - // in. - Interim bool `protobuf:"varint,3,opt,name=interim,proto3" json:"interim,omitempty"` -} - -func (x *AppliedChange_ResourceInstance) Reset() { - *x = AppliedChange_ResourceInstance{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[141] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppliedChange_ResourceInstance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppliedChange_ResourceInstance) ProtoMessage() {} - -func (x *AppliedChange_ResourceInstance) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[141] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppliedChange_ResourceInstance.ProtoReflect.Descriptor instead. -func (*AppliedChange_ResourceInstance) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{42, 2} -} - -func (x *AppliedChange_ResourceInstance) GetAddr() *ResourceInstanceObjectInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *AppliedChange_ResourceInstance) GetNewValue() *DynamicValue { - if x != nil { - return x.NewValue - } - return nil -} - -func (x *AppliedChange_ResourceInstance) GetResourceMode() ResourceMode { - if x != nil { - return x.ResourceMode - } - return ResourceMode_UNKNOWN -} - -func (x *AppliedChange_ResourceInstance) GetResourceType() string { - if x != nil { - return x.ResourceType - } - return "" -} - -func (x *AppliedChange_ResourceInstance) GetProviderAddr() string { - if x != nil { - return x.ProviderAddr - } - return "" -} - -func (x *AppliedChange_ResourceInstance) GetInterim() bool { - if x != nil { - return x.Interim - } - return false -} - -type AppliedChange_ComponentInstance struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ComponentAddr string `protobuf:"bytes,3,opt,name=component_addr,json=componentAddr,proto3" json:"component_addr,omitempty"` - ComponentInstanceAddr string `protobuf:"bytes,1,opt,name=component_instance_addr,json=componentInstanceAddr,proto3" json:"component_instance_addr,omitempty"` - OutputValues map[string]*DynamicValue `protobuf:"bytes,2,rep,name=output_values,json=outputValues,proto3" json:"output_values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *AppliedChange_ComponentInstance) Reset() { - *x = AppliedChange_ComponentInstance{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[142] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppliedChange_ComponentInstance) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppliedChange_ComponentInstance) ProtoMessage() {} - -func (x *AppliedChange_ComponentInstance) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[142] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppliedChange_ComponentInstance.ProtoReflect.Descriptor instead. -func (*AppliedChange_ComponentInstance) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{42, 3} -} - -func (x *AppliedChange_ComponentInstance) GetComponentAddr() string { - if x != nil { - return x.ComponentAddr - } - return "" -} - -func (x *AppliedChange_ComponentInstance) GetComponentInstanceAddr() string { - if x != nil { - return x.ComponentInstanceAddr - } - return "" -} - -func (x *AppliedChange_ComponentInstance) GetOutputValues() map[string]*DynamicValue { - if x != nil { - return x.OutputValues - } - return nil -} - -type AppliedChange_OutputValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - NewValue *DynamicValue `protobuf:"bytes,2,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` -} - -func (x *AppliedChange_OutputValue) Reset() { - *x = AppliedChange_OutputValue{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[143] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppliedChange_OutputValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppliedChange_OutputValue) ProtoMessage() {} - -func (x *AppliedChange_OutputValue) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[143] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppliedChange_OutputValue.ProtoReflect.Descriptor instead. -func (*AppliedChange_OutputValue) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{42, 4} -} - -func (x *AppliedChange_OutputValue) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *AppliedChange_OutputValue) GetNewValue() *DynamicValue { - if x != nil { - return x.NewValue - } - return nil -} - -type AppliedChange_Nothing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *AppliedChange_Nothing) Reset() { - *x = AppliedChange_Nothing{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[144] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AppliedChange_Nothing) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AppliedChange_Nothing) ProtoMessage() {} - -func (x *AppliedChange_Nothing) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[144] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AppliedChange_Nothing.ProtoReflect.Descriptor instead. -func (*AppliedChange_Nothing) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{42, 5} -} - -// ComponentInstanceStatus describes the current status of a component instance -// undergoing a plan or apply operation. -type StackChangeProgress_ComponentInstanceStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ComponentInstanceInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - Status StackChangeProgress_ComponentInstanceStatus_Status `protobuf:"varint,2,opt,name=status,proto3,enum=terraform1.StackChangeProgress_ComponentInstanceStatus_Status" json:"status,omitempty"` -} - -func (x *StackChangeProgress_ComponentInstanceStatus) Reset() { - *x = StackChangeProgress_ComponentInstanceStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[146] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ComponentInstanceStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ComponentInstanceStatus) ProtoMessage() {} - -func (x *StackChangeProgress_ComponentInstanceStatus) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[146] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ComponentInstanceStatus.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ComponentInstanceStatus) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 0} -} - -func (x *StackChangeProgress_ComponentInstanceStatus) GetAddr() *ComponentInstanceInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *StackChangeProgress_ComponentInstanceStatus) GetStatus() StackChangeProgress_ComponentInstanceStatus_Status { - if x != nil { - return x.Status - } - return StackChangeProgress_ComponentInstanceStatus_INVALID -} - -// ComponentInstanceStatus describes the current status of a resource instance -// undergoing a plan or apply operation. -type StackChangeProgress_ResourceInstanceStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - Status StackChangeProgress_ResourceInstanceStatus_Status `protobuf:"varint,2,opt,name=status,proto3,enum=terraform1.StackChangeProgress_ResourceInstanceStatus_Status" json:"status,omitempty"` - ProviderAddr string `protobuf:"bytes,3,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` -} - -func (x *StackChangeProgress_ResourceInstanceStatus) Reset() { - *x = StackChangeProgress_ResourceInstanceStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[147] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ResourceInstanceStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ResourceInstanceStatus) ProtoMessage() {} - -func (x *StackChangeProgress_ResourceInstanceStatus) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[147] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ResourceInstanceStatus.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ResourceInstanceStatus) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 1} -} - -func (x *StackChangeProgress_ResourceInstanceStatus) GetAddr() *ResourceInstanceObjectInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *StackChangeProgress_ResourceInstanceStatus) GetStatus() StackChangeProgress_ResourceInstanceStatus_Status { - if x != nil { - return x.Status - } - return StackChangeProgress_ResourceInstanceStatus_INVALID -} - -func (x *StackChangeProgress_ResourceInstanceStatus) GetProviderAddr() string { - if x != nil { - return x.ProviderAddr - } - return "" -} - -// ResourceInstancePlannedChange describes summary information about a planned -// change for a resource instance. This does not include the full object change, -// which is described in PlannedChange.ResourceChange. The information in this -// message is intended for the event stream and need not include the instance's -// full object values. -type StackChangeProgress_ResourceInstancePlannedChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - Actions []ChangeType `protobuf:"varint,2,rep,packed,name=actions,proto3,enum=terraform1.ChangeType" json:"actions,omitempty"` - Moved *StackChangeProgress_ResourceInstancePlannedChange_Moved `protobuf:"bytes,3,opt,name=moved,proto3" json:"moved,omitempty"` - Imported *StackChangeProgress_ResourceInstancePlannedChange_Imported `protobuf:"bytes,4,opt,name=imported,proto3" json:"imported,omitempty"` - ProviderAddr string `protobuf:"bytes,5,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"` -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange) Reset() { - *x = StackChangeProgress_ResourceInstancePlannedChange{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[148] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ResourceInstancePlannedChange) ProtoMessage() {} - -func (x *StackChangeProgress_ResourceInstancePlannedChange) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[148] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ResourceInstancePlannedChange.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ResourceInstancePlannedChange) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 2} -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange) GetAddr() *ResourceInstanceObjectInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange) GetActions() []ChangeType { - if x != nil { - return x.Actions - } - return nil -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange) GetMoved() *StackChangeProgress_ResourceInstancePlannedChange_Moved { - if x != nil { - return x.Moved - } - return nil -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange) GetImported() *StackChangeProgress_ResourceInstancePlannedChange_Imported { - if x != nil { - return x.Imported - } - return nil -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange) GetProviderAddr() string { - if x != nil { - return x.ProviderAddr - } - return "" -} - -// DeferredResourceInstancePlannedChange represents a planned change for a -// resource instance that is deferred due to the reason provided. -type StackChangeProgress_DeferredResourceInstancePlannedChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Deferred *Deferred `protobuf:"bytes,1,opt,name=deferred,proto3" json:"deferred,omitempty"` - Change *StackChangeProgress_ResourceInstancePlannedChange `protobuf:"bytes,2,opt,name=change,proto3" json:"change,omitempty"` -} - -func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) Reset() { - *x = StackChangeProgress_DeferredResourceInstancePlannedChange{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[149] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_DeferredResourceInstancePlannedChange) ProtoMessage() {} - -func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[149] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_DeferredResourceInstancePlannedChange.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_DeferredResourceInstancePlannedChange) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 3} -} - -func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) GetDeferred() *Deferred { - if x != nil { - return x.Deferred - } - return nil -} - -func (x *StackChangeProgress_DeferredResourceInstancePlannedChange) GetChange() *StackChangeProgress_ResourceInstancePlannedChange { - if x != nil { - return x.Change - } - return nil -} - -// ProvisionerStatus represents the progress of a given provisioner during its -// resource instance's apply operation. -type StackChangeProgress_ProvisionerStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Status *StackChangeProgress_ProvisionerStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *StackChangeProgress_ProvisionerStatus) Reset() { - *x = StackChangeProgress_ProvisionerStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[150] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ProvisionerStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ProvisionerStatus) ProtoMessage() {} - -func (x *StackChangeProgress_ProvisionerStatus) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[150] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ProvisionerStatus.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ProvisionerStatus) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 4} -} - -func (x *StackChangeProgress_ProvisionerStatus) GetAddr() *ResourceInstanceObjectInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *StackChangeProgress_ProvisionerStatus) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *StackChangeProgress_ProvisionerStatus) GetStatus() *StackChangeProgress_ProvisionerStatus { - if x != nil { - return x.Status - } - return nil -} - -// ProvisionerOutput represents recorded output data emitted by a provisioner -// during a resource instance's apply operation. -type StackChangeProgress_ProvisionerOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ResourceInstanceObjectInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Output string `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` -} - -func (x *StackChangeProgress_ProvisionerOutput) Reset() { - *x = StackChangeProgress_ProvisionerOutput{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[151] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ProvisionerOutput) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ProvisionerOutput) ProtoMessage() {} - -func (x *StackChangeProgress_ProvisionerOutput) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[151] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ProvisionerOutput.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ProvisionerOutput) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 5} -} - -func (x *StackChangeProgress_ProvisionerOutput) GetAddr() *ResourceInstanceObjectInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *StackChangeProgress_ProvisionerOutput) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *StackChangeProgress_ProvisionerOutput) GetOutput() string { - if x != nil { - return x.Output - } - return "" -} - -// ComponentInstanceChanges represents a roll-up of change counts for a -// component instance plan or apply operation. -type StackChangeProgress_ComponentInstanceChanges struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Addr *ComponentInstanceInStackAddr `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` - // total is the sum of all of the other count fields. - // - // Clients should sum all of the other count fields they know about - // and compare to total. If the sum is less than total then the - // difference should be treated as an "other change types" category, - // for forward-compatibility when the Terraform Core RPC server is - // using a newer version of this protocol than the client. - Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - Add int32 `protobuf:"varint,3,opt,name=add,proto3" json:"add,omitempty"` - Change int32 `protobuf:"varint,4,opt,name=change,proto3" json:"change,omitempty"` - Import int32 `protobuf:"varint,5,opt,name=import,proto3" json:"import,omitempty"` - Remove int32 `protobuf:"varint,6,opt,name=remove,proto3" json:"remove,omitempty"` - Defer int32 `protobuf:"varint,7,opt,name=defer,proto3" json:"defer,omitempty"` - Move int32 `protobuf:"varint,8,opt,name=move,proto3" json:"move,omitempty"` - Forget int32 `protobuf:"varint,9,opt,name=forget,proto3" json:"forget,omitempty"` -} - -func (x *StackChangeProgress_ComponentInstanceChanges) Reset() { - *x = StackChangeProgress_ComponentInstanceChanges{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[152] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ComponentInstanceChanges) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ComponentInstanceChanges) ProtoMessage() {} - -func (x *StackChangeProgress_ComponentInstanceChanges) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[152] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ComponentInstanceChanges.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ComponentInstanceChanges) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 6} -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetAddr() *ComponentInstanceInStackAddr { - if x != nil { - return x.Addr - } - return nil -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetTotal() int32 { - if x != nil { - return x.Total - } - return 0 -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetAdd() int32 { - if x != nil { - return x.Add - } - return 0 -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetChange() int32 { - if x != nil { - return x.Change - } - return 0 -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetImport() int32 { - if x != nil { - return x.Import - } - return 0 -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetRemove() int32 { - if x != nil { - return x.Remove - } - return 0 -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetDefer() int32 { - if x != nil { - return x.Defer - } - return 0 -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetMove() int32 { - if x != nil { - return x.Move - } - return 0 -} - -func (x *StackChangeProgress_ComponentInstanceChanges) GetForget() int32 { - if x != nil { - return x.Forget - } - return 0 -} - -// ComponentInstances represents the result of expanding a component into zero -// or more instances. -type StackChangeProgress_ComponentInstances struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ComponentAddr string `protobuf:"bytes,1,opt,name=component_addr,json=componentAddr,proto3" json:"component_addr,omitempty"` - InstanceAddrs []string `protobuf:"bytes,2,rep,name=instance_addrs,json=instanceAddrs,proto3" json:"instance_addrs,omitempty"` -} - -func (x *StackChangeProgress_ComponentInstances) Reset() { - *x = StackChangeProgress_ComponentInstances{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[153] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ComponentInstances) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ComponentInstances) ProtoMessage() {} - -func (x *StackChangeProgress_ComponentInstances) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[153] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ComponentInstances.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ComponentInstances) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 7} -} - -func (x *StackChangeProgress_ComponentInstances) GetComponentAddr() string { - if x != nil { - return x.ComponentAddr - } - return "" -} - -func (x *StackChangeProgress_ComponentInstances) GetInstanceAddrs() []string { - if x != nil { - return x.InstanceAddrs - } - return nil -} - -type StackChangeProgress_ResourceInstancePlannedChange_Moved struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PrevAddr *ResourceInstanceInStackAddr `protobuf:"bytes,1,opt,name=prev_addr,json=prevAddr,proto3" json:"prev_addr,omitempty"` -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Moved) Reset() { - *x = StackChangeProgress_ResourceInstancePlannedChange_Moved{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[154] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Moved) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ResourceInstancePlannedChange_Moved) ProtoMessage() {} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Moved) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[154] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ResourceInstancePlannedChange_Moved.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ResourceInstancePlannedChange_Moved) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 2, 0} -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Moved) GetPrevAddr() *ResourceInstanceInStackAddr { - if x != nil { - return x.PrevAddr - } - return nil -} - -type StackChangeProgress_ResourceInstancePlannedChange_Imported struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ImportId string `protobuf:"bytes,1,opt,name=import_id,json=importId,proto3" json:"import_id,omitempty"` - Unknown bool `protobuf:"varint,2,opt,name=unknown,proto3" json:"unknown,omitempty"` -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) Reset() { - *x = StackChangeProgress_ResourceInstancePlannedChange_Imported{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[155] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StackChangeProgress_ResourceInstancePlannedChange_Imported) ProtoMessage() {} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[155] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StackChangeProgress_ResourceInstancePlannedChange_Imported.ProtoReflect.Descriptor instead. -func (*StackChangeProgress_ResourceInstancePlannedChange_Imported) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{43, 2, 1} -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) GetImportId() string { - if x != nil { - return x.ImportId - } - return "" -} - -func (x *StackChangeProgress_ResourceInstancePlannedChange_Imported) GetUnknown() bool { - if x != nil { - return x.Unknown - } - return false -} - -type Schema_Block struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Attributes []*Schema_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` - BlockTypes []*Schema_NestedBlock `protobuf:"bytes,2,rep,name=block_types,json=blockTypes,proto3" json:"block_types,omitempty"` - Description *Schema_DocString `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Deprecated bool `protobuf:"varint,4,opt,name=deprecated,proto3" json:"deprecated,omitempty"` -} - -func (x *Schema_Block) Reset() { - *x = Schema_Block{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[156] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schema_Block) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schema_Block) ProtoMessage() {} - -func (x *Schema_Block) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[156] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schema_Block.ProtoReflect.Descriptor instead. -func (*Schema_Block) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47, 0} -} - -func (x *Schema_Block) GetAttributes() []*Schema_Attribute { - if x != nil { - return x.Attributes - } - return nil -} - -func (x *Schema_Block) GetBlockTypes() []*Schema_NestedBlock { - if x != nil { - return x.BlockTypes - } - return nil -} - -func (x *Schema_Block) GetDescription() *Schema_DocString { - if x != nil { - return x.Description - } - return nil -} - -func (x *Schema_Block) GetDeprecated() bool { - if x != nil { - return x.Deprecated - } - return false -} - -type Schema_Attribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Type []byte `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - NestedType *Schema_Object `protobuf:"bytes,10,opt,name=nested_type,json=nestedType,proto3" json:"nested_type,omitempty"` - Description *Schema_DocString `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Required bool `protobuf:"varint,4,opt,name=required,proto3" json:"required,omitempty"` - Optional bool `protobuf:"varint,5,opt,name=optional,proto3" json:"optional,omitempty"` - Computed bool `protobuf:"varint,6,opt,name=computed,proto3" json:"computed,omitempty"` - Sensitive bool `protobuf:"varint,7,opt,name=sensitive,proto3" json:"sensitive,omitempty"` - Deprecated bool `protobuf:"varint,8,opt,name=deprecated,proto3" json:"deprecated,omitempty"` -} - -func (x *Schema_Attribute) Reset() { - *x = Schema_Attribute{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[157] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schema_Attribute) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schema_Attribute) ProtoMessage() {} - -func (x *Schema_Attribute) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[157] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schema_Attribute.ProtoReflect.Descriptor instead. -func (*Schema_Attribute) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47, 1} -} - -func (x *Schema_Attribute) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Schema_Attribute) GetType() []byte { - if x != nil { - return x.Type - } - return nil -} - -func (x *Schema_Attribute) GetNestedType() *Schema_Object { - if x != nil { - return x.NestedType - } - return nil -} - -func (x *Schema_Attribute) GetDescription() *Schema_DocString { - if x != nil { - return x.Description - } - return nil -} - -func (x *Schema_Attribute) GetRequired() bool { - if x != nil { - return x.Required - } - return false -} - -func (x *Schema_Attribute) GetOptional() bool { - if x != nil { - return x.Optional - } - return false -} - -func (x *Schema_Attribute) GetComputed() bool { - if x != nil { - return x.Computed - } - return false -} - -func (x *Schema_Attribute) GetSensitive() bool { - if x != nil { - return x.Sensitive - } - return false -} - -func (x *Schema_Attribute) GetDeprecated() bool { - if x != nil { - return x.Deprecated - } - return false -} - -type Schema_NestedBlock struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` - Block *Schema_Block `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` - Nesting Schema_NestedBlock_NestingMode `protobuf:"varint,3,opt,name=nesting,proto3,enum=terraform1.Schema_NestedBlock_NestingMode" json:"nesting,omitempty"` -} - -func (x *Schema_NestedBlock) Reset() { - *x = Schema_NestedBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[158] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schema_NestedBlock) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schema_NestedBlock) ProtoMessage() {} - -func (x *Schema_NestedBlock) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[158] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schema_NestedBlock.ProtoReflect.Descriptor instead. -func (*Schema_NestedBlock) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47, 2} -} - -func (x *Schema_NestedBlock) GetTypeName() string { - if x != nil { - return x.TypeName - } - return "" -} - -func (x *Schema_NestedBlock) GetBlock() *Schema_Block { - if x != nil { - return x.Block - } - return nil -} - -func (x *Schema_NestedBlock) GetNesting() Schema_NestedBlock_NestingMode { - if x != nil { - return x.Nesting - } - return Schema_NestedBlock_INVALID -} - -type Schema_Object struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Attributes []*Schema_Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` - Nesting Schema_Object_NestingMode `protobuf:"varint,3,opt,name=nesting,proto3,enum=terraform1.Schema_Object_NestingMode" json:"nesting,omitempty"` -} - -func (x *Schema_Object) Reset() { - *x = Schema_Object{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[159] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schema_Object) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schema_Object) ProtoMessage() {} - -func (x *Schema_Object) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[159] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schema_Object.ProtoReflect.Descriptor instead. -func (*Schema_Object) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47, 3} -} - -func (x *Schema_Object) GetAttributes() []*Schema_Attribute { - if x != nil { - return x.Attributes - } - return nil -} - -func (x *Schema_Object) GetNesting() Schema_Object_NestingMode { - if x != nil { - return x.Nesting - } - return Schema_Object_INVALID -} - -type Schema_DocString struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - Format Schema_DocString_Format `protobuf:"varint,2,opt,name=format,proto3,enum=terraform1.Schema_DocString_Format" json:"format,omitempty"` -} - -func (x *Schema_DocString) Reset() { - *x = Schema_DocString{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[160] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schema_DocString) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schema_DocString) ProtoMessage() {} - -func (x *Schema_DocString) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[160] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schema_DocString.ProtoReflect.Descriptor instead. -func (*Schema_DocString) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{47, 4} -} - -func (x *Schema_DocString) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *Schema_DocString) GetFormat() Schema_DocString_Format { - if x != nil { - return x.Format - } - return Schema_DocString_PLAIN -} - -type ProviderPackageVersions_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` -} - -func (x *ProviderPackageVersions_Request) Reset() { - *x = ProviderPackageVersions_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[161] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderPackageVersions_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderPackageVersions_Request) ProtoMessage() {} - -func (x *ProviderPackageVersions_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[161] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProviderPackageVersions_Request.ProtoReflect.Descriptor instead. -func (*ProviderPackageVersions_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{48, 0} -} - -func (x *ProviderPackageVersions_Request) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -type ProviderPackageVersions_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *ProviderPackageVersions_Response) Reset() { - *x = ProviderPackageVersions_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[162] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProviderPackageVersions_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProviderPackageVersions_Response) ProtoMessage() {} - -func (x *ProviderPackageVersions_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[162] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProviderPackageVersions_Response.ProtoReflect.Descriptor instead. -func (*ProviderPackageVersions_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{48, 1} -} - -func (x *ProviderPackageVersions_Response) GetVersions() []string { - if x != nil { - return x.Versions - } - return nil -} - -func (x *ProviderPackageVersions_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type FetchProviderPackage_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CacheDir string `protobuf:"bytes,1,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` - SourceAddr string `protobuf:"bytes,2,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Platforms []string `protobuf:"bytes,4,rep,name=platforms,proto3" json:"platforms,omitempty"` - Hashes []string `protobuf:"bytes,5,rep,name=hashes,proto3" json:"hashes,omitempty"` -} - -func (x *FetchProviderPackage_Request) Reset() { - *x = FetchProviderPackage_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[163] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchProviderPackage_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchProviderPackage_Request) ProtoMessage() {} - -func (x *FetchProviderPackage_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[163] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchProviderPackage_Request.ProtoReflect.Descriptor instead. -func (*FetchProviderPackage_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{49, 0} -} - -func (x *FetchProviderPackage_Request) GetCacheDir() string { - if x != nil { - return x.CacheDir - } - return "" -} - -func (x *FetchProviderPackage_Request) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -func (x *FetchProviderPackage_Request) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *FetchProviderPackage_Request) GetPlatforms() []string { - if x != nil { - return x.Platforms - } - return nil -} - -func (x *FetchProviderPackage_Request) GetHashes() []string { - if x != nil { - return x.Hashes - } - return nil -} - -type FetchProviderPackage_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Each requested platform will return a result in this list. The order - // of the returned results will match the order of the requested - // platforms. If the binary for a given platform could not be downloaded - // there will still be an entry in the results with diagnostics - // explaining why. - Results []*FetchProviderPackage_PlatformResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *FetchProviderPackage_Response) Reset() { - *x = FetchProviderPackage_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[164] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchProviderPackage_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchProviderPackage_Response) ProtoMessage() {} - -func (x *FetchProviderPackage_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[164] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchProviderPackage_Response.ProtoReflect.Descriptor instead. -func (*FetchProviderPackage_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{49, 1} -} - -func (x *FetchProviderPackage_Response) GetResults() []*FetchProviderPackage_PlatformResult { - if x != nil { - return x.Results - } - return nil -} - -func (x *FetchProviderPackage_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type FetchProviderPackage_PlatformResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Provider *ProviderPackage `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *FetchProviderPackage_PlatformResult) Reset() { - *x = FetchProviderPackage_PlatformResult{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[165] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchProviderPackage_PlatformResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchProviderPackage_PlatformResult) ProtoMessage() {} - -func (x *FetchProviderPackage_PlatformResult) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[165] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchProviderPackage_PlatformResult.ProtoReflect.Descriptor instead. -func (*FetchProviderPackage_PlatformResult) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{49, 2} -} - -func (x *FetchProviderPackage_PlatformResult) GetProvider() *ProviderPackage { - if x != nil { - return x.Provider - } - return nil -} - -func (x *FetchProviderPackage_PlatformResult) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type ModulePackageVersions_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceAddr string `protobuf:"bytes,2,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` -} - -func (x *ModulePackageVersions_Request) Reset() { - *x = ModulePackageVersions_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[166] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ModulePackageVersions_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ModulePackageVersions_Request) ProtoMessage() {} - -func (x *ModulePackageVersions_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[166] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ModulePackageVersions_Request.ProtoReflect.Descriptor instead. -func (*ModulePackageVersions_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{50, 0} -} - -func (x *ModulePackageVersions_Request) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -type ModulePackageVersions_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *ModulePackageVersions_Response) Reset() { - *x = ModulePackageVersions_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[167] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ModulePackageVersions_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ModulePackageVersions_Response) ProtoMessage() {} - -func (x *ModulePackageVersions_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[167] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ModulePackageVersions_Response.ProtoReflect.Descriptor instead. -func (*ModulePackageVersions_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{50, 1} -} - -func (x *ModulePackageVersions_Response) GetVersions() []string { - if x != nil { - return x.Versions - } - return nil -} - -func (x *ModulePackageVersions_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type ModulePackageSourceAddr_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SourceAddr string `protobuf:"bytes,1,opt,name=source_addr,json=sourceAddr,proto3" json:"source_addr,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *ModulePackageSourceAddr_Request) Reset() { - *x = ModulePackageSourceAddr_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[168] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ModulePackageSourceAddr_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ModulePackageSourceAddr_Request) ProtoMessage() {} - -func (x *ModulePackageSourceAddr_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[168] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ModulePackageSourceAddr_Request.ProtoReflect.Descriptor instead. -func (*ModulePackageSourceAddr_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{51, 0} -} - -func (x *ModulePackageSourceAddr_Request) GetSourceAddr() string { - if x != nil { - return x.SourceAddr - } - return "" -} - -func (x *ModulePackageSourceAddr_Request) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -type ModulePackageSourceAddr_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - Diagnostics []*Diagnostic `protobuf:"bytes,2,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *ModulePackageSourceAddr_Response) Reset() { - *x = ModulePackageSourceAddr_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[169] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ModulePackageSourceAddr_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ModulePackageSourceAddr_Response) ProtoMessage() {} - -func (x *ModulePackageSourceAddr_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[169] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ModulePackageSourceAddr_Response.ProtoReflect.Descriptor instead. -func (*ModulePackageSourceAddr_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{51, 1} -} - -func (x *ModulePackageSourceAddr_Response) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *ModulePackageSourceAddr_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - -type FetchModulePackage_Request struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CacheDir string `protobuf:"bytes,1,opt,name=cache_dir,json=cacheDir,proto3" json:"cache_dir,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` -} - -func (x *FetchModulePackage_Request) Reset() { - *x = FetchModulePackage_Request{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[170] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchModulePackage_Request) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchModulePackage_Request) ProtoMessage() {} - -func (x *FetchModulePackage_Request) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[170] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchModulePackage_Request.ProtoReflect.Descriptor instead. -func (*FetchModulePackage_Request) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{52, 0} -} - -func (x *FetchModulePackage_Request) GetCacheDir() string { - if x != nil { - return x.CacheDir - } - return "" -} - -func (x *FetchModulePackage_Request) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -type FetchModulePackage_Response struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` -} - -func (x *FetchModulePackage_Response) Reset() { - *x = FetchModulePackage_Response{} - if protoimpl.UnsafeEnabled { - mi := &file_terraform1_proto_msgTypes[171] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchModulePackage_Response) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchModulePackage_Response) ProtoMessage() {} - -func (x *FetchModulePackage_Response) ProtoReflect() protoreflect.Message { - mi := &file_terraform1_proto_msgTypes[171] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchModulePackage_Response.ProtoReflect.Descriptor instead. -func (*FetchModulePackage_Response) Descriptor() ([]byte, []int) { - return file_terraform1_proto_rawDescGZIP(), []int{52, 1} -} - -func (x *FetchModulePackage_Response) GetDiagnostics() []*Diagnostic { - if x != nil { - return x.Diagnostics - } - return nil -} - var File_terraform1_proto protoreflect.FileDescriptor var file_terraform1_proto_rawDesc = []byte{ 0x0a, 0x10, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x1a, 0x19, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd6, 0x01, 0x0a, 0x09, 0x48, 0x61, - 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x1a, 0x79, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x1a, 0x4e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, - 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x22, 0x1d, 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x61, 0x70, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0xab, 0x01, - 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x1a, - 0x5a, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x0e, 0x48, - 0x6f, 0x73, 0x74, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x7a, 0x0a, 0x10, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x28, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x61, 0x74, - 0x68, 0x1a, 0x3c, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, - 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x68, - 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, - 0x5c, 0x0a, 0x11, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x3b, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x30, 0x0a, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x95, 0x02, - 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x6e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, - 0x4c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x65, 0x1a, 0x7d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x48, - 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x7c, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, - 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, - 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb4, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x1a, - 0x57, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x13, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, - 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x42, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, - 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, - 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x65, 0x0a, 0x14, - 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, - 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, - 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, - 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xba, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x65, - 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, - 0x6e, 0x63, 0x69, 0x65, 0x73, 0x1a, 0x41, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, - 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, - 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x56, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x12, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, - 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x11, 0x73, - 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, - 0x22, 0x8b, 0x11, 0x0a, 0x18, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x1a, 0xc0, 0x03, - 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, 0x63, - 0x68, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, - 0x63, 0x68, 0x65, 0x44, 0x69, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, - 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, - 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x6d, - 0x0a, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6c, 0x6c, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x2b, 0x0a, - 0x11, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, - 0x64, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x1a, 0xc3, 0x01, 0x0a, 0x0d, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x18, 0x0a, 0x06, - 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, - 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, - 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x44, - 0x69, 0x72, 0x12, 0x2e, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6d, 0x69, - 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x10, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x55, - 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x65, - 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x1a, 0xab, 0x0d, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4e, 0x0a, 0x07, 0x70, 0x65, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x48, - 0x00, 0x52, 0x07, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x69, 0x0a, 0x11, 0x61, 0x6c, - 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x48, 0x00, 0x52, 0x10, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x57, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x5f, 0x69, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x12, 0x61, - 0x0a, 0x0b, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, - 0x6e, 0x74, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0x65, 0x67, 0x69, - 0x6e, 0x12, 0x61, 0x0a, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, - 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x12, 0x64, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x77, 0x61, - 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x66, 0x65, - 0x74, 0x63, 0x68, 0x5f, 0x62, 0x65, 0x67, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x35, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, - 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x65, 0x74, 0x63, - 0x68, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x65, 0x74, 0x63, 0x68, 0x42, - 0x65, 0x67, 0x69, 0x6e, 0x12, 0x61, 0x0a, 0x0e, 0x66, 0x65, 0x74, 0x63, 0x68, 0x5f, 0x63, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x66, 0x65, 0x74, 0x63, 0x68, 0x43, - 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x1a, 0x65, 0x0a, 0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x5a, 0x0a, 0x08, - 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, - 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, - 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x52, 0x08, - 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x1a, 0x52, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, - 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x4c, 0x0a, 0x0f, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x4f, 0x0a, 0x10, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1f, + 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x22, 0x64, + 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, + 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, + 0x73, 0x68, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x0d, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x92, 0x02, 0x0a, 0x0a, 0x44, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, + 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, + 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, + 0x69, 0x63, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, + 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, + 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x31, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, + 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, + 0x65, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x31, 0x0a, 0x07, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, + 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x61, 0x6e, 0x67, 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x2f, 0x0a, + 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, + 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, + 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x22, 0x84, + 0x01, 0x0a, 0x0b, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, - 0x1a, 0x0a, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x08, 0x77, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x73, 0x1a, 0x8f, 0x01, 0x0a, 0x0a, - 0x46, 0x65, 0x74, 0x63, 0x68, 0x42, 0x65, 0x67, 0x69, 0x6e, 0x12, 0x65, 0x0a, 0x10, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xf5, 0x02, - 0x0a, 0x0d, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, - 0x65, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x64, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x43, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x6d, - 0x70, 0x6c, 0x65, 0x74, 0x65, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x52, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x0a, 0x12, - 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, - 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x46, - 0x6f, 0x72, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x22, 0x6a, 0x0a, 0x0a, 0x41, 0x75, 0x74, - 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x4f, - 0x46, 0x46, 0x49, 0x43, 0x49, 0x41, 0x4c, 0x5f, 0x53, 0x49, 0x47, 0x4e, 0x45, 0x44, 0x10, 0x02, - 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x41, 0x52, 0x54, 0x4e, 0x45, 0x52, 0x5f, 0x53, 0x49, 0x47, 0x4e, - 0x45, 0x44, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x53, 0x49, 0x47, - 0x4e, 0x45, 0x44, 0x10, 0x04, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0xae, - 0x01, 0x0a, 0x17, 0x4f, 0x70, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x1a, 0x53, 0x0a, 0x07, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x64, - 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, - 0x69, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, - 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x1a, - 0x3e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, - 0x65, 0x0a, 0x18, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x1a, 0x3d, 0x0a, 0x07, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, - 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x61, - 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x3d, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x58, 0x0a, 0x08, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, - 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x52, 0x12, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x7a, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, - 0x6c, 0x74, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x09, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x58, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x13, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x12, - 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x73, 0x22, 0xe3, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x1a, 0x8d, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x3e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x64, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x22, 0xd3, - 0x03, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x12, 0x3b, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x0e, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x6a, - 0x0a, 0x16, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x14, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x61, 0x0a, 0x13, 0x64, 0x61, - 0x74, 0x61, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x5b, 0x0a, - 0x19, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x58, 0x0a, 0x16, 0x44, 0x61, - 0x74, 0x61, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0x8d, 0x02, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, - 0x7d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, - 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x40, 0x0a, 0x0e, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, - 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x74, - 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x73, 0x22, 0x60, 0x0a, 0x17, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, - 0x39, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8a, 0x02, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xa5, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, - 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, - 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, - 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x1a, 0x44, 0x0a, - 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x22, 0xf1, 0x0d, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x39, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x11, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x1a, 0x5c, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x50, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, - 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, - 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x1a, 0xc6, 0x07, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x68, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x75, 0x0a, 0x0f, 0x65, - 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, - 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0e, 0x65, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x73, 0x12, 0x75, 0x0a, 0x0f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4c, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, - 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x6f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x4a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, - 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x75, 0x0a, 0x0f, 0x43, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x4c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x1a, 0x7d, 0x0a, 0x13, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x50, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0x7d, 0x0a, 0x13, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, - 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x50, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, - 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, - 0x79, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x73, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xd8, 0x01, 0x0a, 0x0d, 0x45, - 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x54, 0x0a, - 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x36, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x73, 0x12, 0x50, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x73, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0xa9, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x41, 0x64, 0x64, 0x72, 0x12, 0x54, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, - 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, - 0x72, 0x1a, 0x67, 0x0a, 0x0d, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, - 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x1c, - 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x0a, 0x09, - 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x09, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x1a, 0x49, 0x0a, 0x0b, 0x4f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6e, - 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, - 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x70, 0x68, 0x65, 0x6d, - 0x65, 0x72, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x70, 0x68, 0x65, - 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x22, 0x30, 0x0a, 0x09, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x00, 0x12, 0x09, - 0x0a, 0x05, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4f, 0x52, - 0x5f, 0x45, 0x41, 0x43, 0x48, 0x10, 0x02, 0x22, 0x85, 0x01, 0x0a, 0x0e, 0x4f, 0x70, 0x65, 0x6e, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x44, 0x0a, 0x0b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x35, 0x0a, 0x03, 0x72, 0x61, 0x77, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x03, 0x72, 0x61, 0x77, - 0x1a, 0x2d, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, - 0x4b, 0x0a, 0x0f, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x1a, 0x2c, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, - 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, - 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf1, 0x06, 0x0a, - 0x10, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x73, 0x1a, 0x86, 0x05, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, - 0x09, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x14, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, - 0x61, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x6e, 0x4d, 0x6f, 0x64, 0x65, - 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, - 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x13, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x62, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, - 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x76, 0x69, - 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, - 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, - 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, - 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, - 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x58, 0x0a, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x56, - 0x0a, 0x12, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x62, 0x0a, 0x10, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xd3, 0x01, 0x0a, 0x05, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, - 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x6e, - 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x64, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x12, 0x3d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, - 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x0a, - 0x22, 0x73, 0x0a, 0x0d, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, 0x6c, 0x61, - 0x6e, 0x1a, 0x35, 0x0a, 0x0b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, - 0x12, 0x26, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x03, 0x72, 0x61, 0x77, 0x1a, 0x2b, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x68, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x6e, 0x48, - 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x48, 0x0a, 0x0e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, - 0x61, 0x63, 0x6b, 0x50, 0x6c, 0x61, 0x6e, 0x1a, 0x2a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x6e, 0x48, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x1a, 0x0a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0xea, 0x05, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x73, 0x1a, 0x84, 0x04, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x12, 0x34, 0x0a, 0x16, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x14, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x6e, 0x5f, - 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x70, 0x6c, - 0x61, 0x6e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x70, 0x6c, 0x61, 0x6e, - 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, 0x70, 0x6c, 0x61, - 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x64, - 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, - 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, - 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, - 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x59, 0x0a, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x1a, 0x62, 0x0a, 0x10, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x1a, 0xcd, 0x01, 0x0a, - 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x65, - 0x64, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x64, 0x69, - 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, - 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x12, 0x3d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x91, 0x05, 0x0a, - 0x12, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x1a, 0xfe, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x2e, 0x0a, 0x13, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, - 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, - 0x47, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x36, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x65, - 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x5f, 0x68, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x64, 0x65, 0x70, 0x65, 0x6e, - 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, - 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x61, 0x63, - 0x68, 0x65, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x61, 0x63, 0x68, 0x65, 0x48, 0x61, - 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x5a, 0x0a, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x1a, 0x4e, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x1a, 0x62, 0x0a, 0x10, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, - 0x69, 0x74, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x7a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x14, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x22, 0x99, 0x02, 0x0a, 0x17, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x1a, 0x85, 0x01, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x5f, 0x69, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x68, 0x61, 0x6e, 0x64, - 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x49, - 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x25, - 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x72, 0x63, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x53, 0x72, 0x63, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x63, 0x6b, - 0x41, 0x64, 0x64, 0x72, 0x1a, 0x76, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, - 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x61, 0x0a, 0x0c, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, - 0x6d, 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, - 0x73, 0x67, 0x70, 0x61, 0x63, 0x6b, 0x12, 0x37, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, - 0x69, 0x76, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x50, 0x61, 0x74, 0x68, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x22, - 0x6c, 0x0a, 0x12, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x03, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x6f, 0x6c, - 0x64, 0x12, 0x2a, 0x0a, 0x03, 0x6e, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x6e, 0x65, 0x77, 0x22, 0x84, 0x01, - 0x0a, 0x16, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x57, 0x69, - 0x74, 0x68, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, - 0x61, 0x6e, 0x67, 0x65, 0x22, 0xdd, 0x01, 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, - 0x2e, 0x53, 0x74, 0x65, 0x70, 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x1a, 0x95, 0x01, 0x0a, - 0x04, 0x53, 0x74, 0x65, 0x70, 0x12, 0x27, 0x0a, 0x0e, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x0d, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, - 0x0a, 0x12, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x10, 0x65, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x28, - 0x0a, 0x0f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x65, 0x6c, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x49, 0x6e, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x22, 0x7d, 0x0a, 0x1c, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, - 0x41, 0x64, 0x64, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x63, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, - 0x64, 0x64, 0x72, 0x22, 0x8b, 0x01, 0x0a, 0x1b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, - 0x64, 0x64, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, - 0x72, 0x22, 0xb2, 0x01, 0x0a, 0x21, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, - 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, - 0x34, 0x0a, 0x16, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x14, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x65, 0x64, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x6f, - 0x73, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x22, 0x43, 0x0a, 0x0d, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xe9, 0x12, 0x0a, 0x0d, - 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x26, 0x0a, - 0x03, 0x72, 0x61, 0x77, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x03, 0x72, 0x61, 0x77, 0x12, 0x4f, 0x0a, 0x0c, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xe2, 0x04, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6b, 0x0a, 0x1a, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, - 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, - 0x18, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x12, 0x68, 0x0a, 0x19, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, - 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, - 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x17, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, - 0x6e, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x14, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, - 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x12, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x12, 0x27, - 0x0a, 0x0e, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x61, 0x62, 0x6c, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x41, 0x70, - 0x70, 0x6c, 0x79, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x72, 0x0a, 0x1a, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x66, - 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x48, - 0x00, 0x52, 0x18, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x6f, 0x0a, 0x19, 0x61, - 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, - 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, - 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, - 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x41, 0x70, 0x70, - 0x6c, 0x79, 0x48, 0x00, 0x52, 0x16, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x49, - 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0d, 0x0a, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xa8, 0x01, 0x0a, 0x11, - 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x12, 0x3c, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x28, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, - 0x30, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, - 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x6e, 0x43, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x1a, 0xe2, 0x08, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x04, 0x61, - 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, - 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x30, - 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, - 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x36, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x46, 0x0a, 0x05, 0x6d, 0x6f, 0x76, 0x65, - 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x52, 0x05, 0x6d, 0x6f, 0x76, 0x65, 0x64, - 0x12, 0x4f, 0x0a, 0x08, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x49, - 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x08, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x64, 0x12, 0x3d, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x6f, - 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, - 0x64, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, - 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x46, 0x0a, 0x12, 0x70, 0x72, - 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x72, 0x75, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x10, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x75, 0x6e, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x34, 0x0a, 0x16, 0x6e, 0x6f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x73, 0x69, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x14, 0x6e, 0x6f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x4f, 0x75, 0x74, 0x73, 0x69, 0x64, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x6c, - 0x61, 0x63, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x50, 0x61, 0x74, 0x68, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6c, - 0x61, 0x63, 0x65, 0x50, 0x61, 0x74, 0x68, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, - 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x05, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x1a, 0x51, 0x0a, 0x05, 0x49, - 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x1a, 0x4d, - 0x0a, 0x05, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x76, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, - 0x64, 0x64, 0x72, 0x52, 0x08, 0x70, 0x72, 0x65, 0x76, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x6c, 0x0a, - 0x08, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, - 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, - 0x12, 0x29, 0x0a, 0x10, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x67, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x8b, 0x01, 0x0a, 0x0b, - 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x30, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, - 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x36, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, - 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0xa5, 0x01, 0x0a, 0x18, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x44, 0x65, - 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x57, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, - 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x10, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, - 0x30, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, - 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, - 0x64, 0x1a, 0x2e, 0x0a, 0x18, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, - 0x6c, 0x65, 0x44, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x07, 0x22, 0xd5, 0x01, 0x0a, 0x08, 0x44, 0x65, 0x66, 0x65, - 0x72, 0x72, 0x65, 0x64, 0x12, 0x33, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x06, 0x52, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, - 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x43, 0x4f, - 0x55, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, - 0x17, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, - 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, - 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x55, 0x4e, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x42, 0x53, 0x45, 0x4e, - 0x54, 0x5f, 0x50, 0x52, 0x45, 0x52, 0x45, 0x51, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x45, - 0x46, 0x45, 0x52, 0x52, 0x45, 0x44, 0x5f, 0x50, 0x52, 0x45, 0x52, 0x45, 0x51, 0x10, 0x05, 0x22, - 0xed, 0x0a, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x12, 0x35, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x61, 0x77, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12, 0x4f, 0x0a, 0x0c, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, - 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x49, 0x0a, 0x09, 0x52, 0x61, 0x77, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x1a, 0xbd, 0x03, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x07, - 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, - 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4e, 0x6f, 0x74, 0x68, 0x69, 0x6e, 0x67, - 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x6d, - 0x6f, 0x76, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4e, 0x6f, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, - 0x05, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, - 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, - 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x12, 0x4a, 0x0a, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, - 0x52, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x5c, 0x0a, - 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, - 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x08, 0x08, 0xa0, 0x9c, 0x01, - 0x10, 0xa1, 0x9c, 0x01, 0x1a, 0xaf, 0x02, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x04, 0x61, 0x64, 0x64, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x35, 0x0a, 0x09, - 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, 0x6e, - 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, - 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x69, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x69, 0x6d, 0x1a, 0xb1, 0x02, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, - 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x41, - 0x64, 0x64, 0x72, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x62, 0x0a, 0x0d, 0x6f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x43, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, - 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, - 0x59, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x58, 0x0a, 0x0b, 0x4f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, - 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x22, - 0x9e, 0x18, 0x0a, 0x13, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x75, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x17, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x72, - 0x0a, 0x18, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x36, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, - 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x16, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x88, 0x01, 0x0a, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, - 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, - 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x00, 0x52, 0x1d, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x62, 0x0a, - 0x12, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x11, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x62, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, - 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x48, 0x00, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x4f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x78, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, - 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x73, 0x48, 0x00, 0x52, 0x18, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, - 0x65, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x43, 0x6f, - 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, - 0x48, 0x00, 0x52, 0x12, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xa1, 0x01, 0x0a, 0x29, 0x64, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x44, 0x65, 0x66, 0x65, - 0x72, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x48, 0x00, 0x52, 0x25, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, - 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xa4, 0x02, 0x0a, 0x17, 0x43, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, - 0x61, 0x64, 0x64, 0x72, 0x12, 0x56, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, - 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x73, 0x0a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, - 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x4c, 0x41, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, - 0x0a, 0x07, 0x50, 0x4c, 0x41, 0x4e, 0x4e, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x41, - 0x50, 0x50, 0x4c, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x50, 0x50, - 0x4c, 0x49, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x45, - 0x44, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x46, 0x45, 0x52, 0x52, 0x45, 0x44, 0x10, - 0x07, 0x1a, 0xde, 0x02, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x41, 0x0a, 0x04, - 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, - 0x55, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x3d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x22, 0x84, 0x01, 0x0a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, - 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, - 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x49, 0x4e, 0x47, 0x10, 0x02, - 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x45, 0x44, 0x10, 0x03, 0x12, - 0x0c, 0x0a, 0x08, 0x50, 0x4c, 0x41, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0b, 0x0a, - 0x07, 0x50, 0x4c, 0x41, 0x4e, 0x4e, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, - 0x50, 0x4c, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x50, 0x50, 0x4c, - 0x49, 0x45, 0x44, 0x10, 0x07, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x45, 0x44, - 0x10, 0x08, 0x1a, 0x8a, 0x04, 0x0a, 0x1d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x12, 0x41, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, - 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x30, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x07, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x05, 0x6d, 0x6f, 0x76, - 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, - 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x52, 0x05, 0x6d, - 0x6f, 0x76, 0x65, 0x64, 0x12, 0x62, 0x0a, 0x08, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x46, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, - 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x52, 0x08, - 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x4d, 0x0a, - 0x05, 0x4d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x44, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, - 0x64, 0x72, 0x52, 0x08, 0x70, 0x72, 0x65, 0x76, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x41, 0x0a, 0x08, - 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6d, 0x70, 0x6f, - 0x72, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6d, 0x70, - 0x6f, 0x72, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x1a, - 0xb0, 0x01, 0x0a, 0x25, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, 0x6e, - 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x64, 0x65, 0x66, - 0x65, 0x72, 0x72, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, - 0x64, 0x52, 0x08, 0x64, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x12, 0x55, 0x0a, 0x06, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x6c, 0x61, - 0x6e, 0x6e, 0x65, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x1a, 0xfc, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x41, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x49, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x31, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x45, 0x0a, 0x06, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, - 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, - 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, - 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x45, 0x44, 0x10, - 0x03, 0x1a, 0x82, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, - 0x72, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, - 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x1a, 0x8a, 0x02, 0x0a, 0x18, 0x43, 0x6f, 0x6d, 0x70, 0x6f, - 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, - 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x49, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x52, 0x04, 0x61, 0x64, 0x64, - 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x64, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x61, 0x64, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x06, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x66, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x05, 0x64, 0x65, 0x66, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x76, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, - 0x6f, 0x72, 0x67, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x66, 0x6f, 0x72, - 0x67, 0x65, 0x74, 0x1a, 0x62, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, - 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, - 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72, - 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, - 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, - 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x22, 0x92, 0x02, 0x0a, 0x0a, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x12, - 0x3b, 0x0a, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x1f, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, - 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, - 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, - 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x31, - 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x12, 0x31, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x07, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x78, 0x74, 0x22, 0x2f, 0x0a, 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, - 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, - 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, - 0x49, 0x4e, 0x47, 0x10, 0x02, 0x22, 0x84, 0x01, 0x0a, 0x0b, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x2b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x73, 0x52, 0x05, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x12, 0x27, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x73, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0x4b, 0x0a, 0x09, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x79, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x62, 0x79, 0x74, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6c, 0x69, 0x6e, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0xb5, 0x09, 0x0a, 0x06, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x12, 0x2e, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, - 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0xe6, 0x01, 0x0a, 0x05, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3c, - 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x0b, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x52, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x3e, 0x0a, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, - 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x1a, 0xc1, 0x02, - 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4f, 0x62, 0x6a, - 0x65, 0x63, 0x74, 0x52, 0x0a, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x3e, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, - 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x75, - 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, - 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x1a, 0xef, 0x01, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, - 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, - 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x44, - 0x0a, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, - 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x67, 0x22, 0x4d, 0x0a, 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, - 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, - 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, - 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, - 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x47, 0x52, 0x4f, 0x55, - 0x50, 0x10, 0x05, 0x1a, 0xcb, 0x01, 0x0a, 0x06, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3c, - 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x07, - 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x42, 0x0a, - 0x0b, 0x4e, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, - 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, - 0x47, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, - 0x07, 0x0a, 0x03, 0x53, 0x45, 0x54, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x41, 0x50, 0x10, - 0x04, 0x1a, 0x8d, 0x01, 0x0a, 0x09, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, - 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x3b, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x23, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x44, 0x6f, 0x63, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, - 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x22, 0x21, - 0x0a, 0x06, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4c, 0x41, 0x49, - 0x4e, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4d, 0x41, 0x52, 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, - 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x2a, 0x0a, - 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x60, 0x0a, 0x08, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, - 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xc8, 0x03, 0x0a, 0x14, - 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x1a, 0x97, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x63, 0x68, 0x65, 0x44, 0x69, 0x72, 0x12, 0x1f, 0x0a, - 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x1a, 0x8f, - 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x07, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x50, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, - 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, - 0x1a, 0x83, 0x01, 0x0a, 0x0e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x0b, - 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, - 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, - 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xa5, 0x01, 0x0a, 0x15, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x1a, 0x2a, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x60, 0x0a, 0x08, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, - 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xb7, - 0x01, 0x0a, 0x17, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x1a, 0x44, 0x0a, 0x07, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x1a, 0x56, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x38, - 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, - 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x12, 0x46, 0x65, 0x74, - 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x1a, - 0x38, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x61, - 0x63, 0x68, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, - 0x61, 0x63, 0x68, 0x65, 0x44, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x44, 0x0a, 0x08, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, - 0x74, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, - 0x69, 0x63, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2a, - 0x32, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, - 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, - 0x4d, 0x41, 0x4e, 0x41, 0x47, 0x45, 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, - 0x41, 0x10, 0x02, 0x2a, 0x35, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x12, - 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 0x4c, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x52, - 0x45, 0x46, 0x52, 0x45, 0x53, 0x48, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x0b, 0x0a, - 0x07, 0x44, 0x45, 0x53, 0x54, 0x52, 0x4f, 0x59, 0x10, 0x02, 0x2a, 0x50, 0x0a, 0x0a, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4f, 0x50, - 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x52, 0x45, 0x41, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, - 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x50, 0x44, 0x41, - 0x54, 0x45, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x04, - 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x4f, 0x52, 0x47, 0x45, 0x54, 0x10, 0x05, 0x32, 0x90, 0x01, 0x0a, - 0x05, 0x53, 0x65, 0x74, 0x75, 0x70, 0x12, 0x4a, 0x0a, 0x09, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, - 0x61, 0x6b, 0x65, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x04, 0x53, 0x74, 0x6f, 0x70, 0x12, 0x18, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, - 0xc8, 0x0a, 0x0a, 0x0c, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, - 0x12, 0x5f, 0x0a, 0x10, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x62, 0x0a, 0x11, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, - 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x6e, 0x44, 0x65, 0x70, - 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x65, 0x12, - 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, - 0x6e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x46, - 0x69, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x44, 0x65, 0x70, - 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x46, 0x69, 0x6c, 0x65, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, - 0x73, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, - 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x14, 0x43, 0x6c, 0x6f, 0x73, - 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, - 0x12, 0x28, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, - 0x6f, 0x73, 0x65, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, - 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x44, 0x65, 0x70, - 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, - 0x6b, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x44, 0x65, 0x70, 0x65, 0x6e, - 0x64, 0x65, 0x6e, 0x63, 0x69, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x69, - 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x65, - 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, - 0x6e, 0x63, 0x69, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, - 0x0a, 0x18, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x2c, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x30, 0x01, 0x12, 0x74, 0x0a, 0x17, 0x4f, 0x70, 0x65, 0x6e, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, - 0x70, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, - 0x63, 0x68, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x18, - 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x2c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, - 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x26, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x13, - 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x73, 0x12, 0x27, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x74, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, - 0x6c, 0x74, 0x49, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x86, 0x0a, 0x0a, 0x06, 0x53, - 0x74, 0x61, 0x63, 0x6b, 0x73, 0x12, 0x71, 0x0a, 0x16, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, - 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x17, 0x43, 0x6c, 0x6f, 0x73, - 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, - 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, - 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7d, - 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x8f, 0x01, - 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x73, 0x12, 0x34, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6d, 0x70, - 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x5a, 0x0a, 0x09, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, - 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x49, 0x74, 0x65, 0x6d, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x12, 0x57, 0x0a, 0x0a, 0x43, - 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x23, 0x2e, 0x74, 0x65, 0x72, 0x72, - 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, - 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x10, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x6e, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x30, 0x01, 0x12, 0x57, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x6e, 0x50, 0x6c, 0x61, 0x6e, - 0x12, 0x25, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, - 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x1a, 0x22, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, 0x6c, - 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01, 0x12, 0x54, 0x0a, - 0x09, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x72, - 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x43, 0x6c, 0x6f, 0x73, - 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x50, 0x6c, 0x61, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x11, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x63, - 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x63, 0x6b, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x23, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x41, 0x70, 0x70, - 0x6c, 0x79, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x2e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x30, 0x01, 0x12, 0x65, 0x0a, 0x12, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, - 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x26, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, - 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, - 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x73, 0x70, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, - 0x17, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, - 0x6d, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0xba, 0x04, 0x0a, 0x08, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, - 0x12, 0x74, 0x0a, 0x17, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2b, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, - 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x14, 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x28, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, - 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, - 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x15, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x2e, 0x74, - 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x17, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, - 0x6b, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x12, 0x2b, - 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, - 0x64, 0x64, 0x72, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x65, - 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, - 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x12, 0x46, 0x65, 0x74, - 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, - 0x26, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x65, 0x74, - 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x74, 0x65, 0x72, 0x72, 0x61, 0x66, - 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x63, 0x65, 0x50, 0x6f, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x27, 0x0a, 0x03, + 0x65, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x74, 0x65, 0x72, 0x72, + 0x61, 0x66, 0x6f, 0x72, 0x6d, 0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x73, + 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0x4b, 0x0a, 0x09, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, + 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x79, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x62, 0x79, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -11642,425 +490,27 @@ func file_terraform1_proto_rawDescGZIP() []byte { return file_terraform1_proto_rawDescData } -var file_terraform1_proto_enumTypes = make([]protoimpl.EnumInfo, 13) -var file_terraform1_proto_msgTypes = make([]protoimpl.MessageInfo, 172) +var file_terraform1_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_terraform1_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_terraform1_proto_goTypes = []interface{}{ - (ResourceMode)(0), // 0: terraform1.ResourceMode - (PlanMode)(0), // 1: terraform1.PlanMode - (ChangeType)(0), // 2: terraform1.ChangeType - (BuildProviderPluginCache_Event_FetchComplete_AuthResult)(0), // 3: terraform1.BuildProviderPluginCache.Event.FetchComplete.AuthResult - (FindStackConfigurationComponents_Instances)(0), // 4: terraform1.FindStackConfigurationComponents.Instances - (Deferred_Reason)(0), // 5: terraform1.Deferred.Reason - (StackChangeProgress_ComponentInstanceStatus_Status)(0), // 6: terraform1.StackChangeProgress.ComponentInstanceStatus.Status - (StackChangeProgress_ResourceInstanceStatus_Status)(0), // 7: terraform1.StackChangeProgress.ResourceInstanceStatus.Status - (StackChangeProgress_ProvisionerStatus_Status)(0), // 8: terraform1.StackChangeProgress.ProvisionerStatus.Status - (Diagnostic_Severity)(0), // 9: terraform1.Diagnostic.Severity - (Schema_NestedBlock_NestingMode)(0), // 10: terraform1.Schema.NestedBlock.NestingMode - (Schema_Object_NestingMode)(0), // 11: terraform1.Schema.Object.NestingMode - (Schema_DocString_Format)(0), // 12: terraform1.Schema.DocString.Format - (*Handshake)(nil), // 13: terraform1.Handshake - (*Stop)(nil), // 14: terraform1.Stop - (*ClientCapabilities)(nil), // 15: terraform1.ClientCapabilities - (*ServerCapabilities)(nil), // 16: terraform1.ServerCapabilities - (*Config)(nil), // 17: terraform1.Config - (*HostCredential)(nil), // 18: terraform1.HostCredential - (*OpenSourceBundle)(nil), // 19: terraform1.OpenSourceBundle - (*CloseSourceBundle)(nil), // 20: terraform1.CloseSourceBundle - (*OpenDependencyLockFile)(nil), // 21: terraform1.OpenDependencyLockFile - (*CreateDependencyLocks)(nil), // 22: terraform1.CreateDependencyLocks - (*CloseDependencyLocks)(nil), // 23: terraform1.CloseDependencyLocks - (*GetLockedProviderDependencies)(nil), // 24: terraform1.GetLockedProviderDependencies - (*BuildProviderPluginCache)(nil), // 25: terraform1.BuildProviderPluginCache - (*OpenProviderPluginCache)(nil), // 26: terraform1.OpenProviderPluginCache - (*CloseProviderPluginCache)(nil), // 27: terraform1.CloseProviderPluginCache - (*GetCachedProviders)(nil), // 28: terraform1.GetCachedProviders - (*GetBuiltInProviders)(nil), // 29: terraform1.GetBuiltInProviders - (*GetProviderSchema)(nil), // 30: terraform1.GetProviderSchema - (*ProviderPackage)(nil), // 31: terraform1.ProviderPackage - (*ProviderSchema)(nil), // 32: terraform1.ProviderSchema - (*OpenStackConfiguration)(nil), // 33: terraform1.OpenStackConfiguration - (*CloseStackConfiguration)(nil), // 34: terraform1.CloseStackConfiguration - (*ValidateStackConfiguration)(nil), // 35: terraform1.ValidateStackConfiguration - (*FindStackConfigurationComponents)(nil), // 36: terraform1.FindStackConfigurationComponents - (*OpenStackState)(nil), // 37: terraform1.OpenStackState - (*CloseStackState)(nil), // 38: terraform1.CloseStackState - (*PlanStackChanges)(nil), // 39: terraform1.PlanStackChanges - (*OpenStackPlan)(nil), // 40: terraform1.OpenStackPlan - (*CloseStackPlan)(nil), // 41: terraform1.CloseStackPlan - (*ApplyStackChanges)(nil), // 42: terraform1.ApplyStackChanges - (*OpenStackInspector)(nil), // 43: terraform1.OpenStackInspector - (*InspectExpressionResult)(nil), // 44: terraform1.InspectExpressionResult - (*DynamicValue)(nil), // 45: terraform1.DynamicValue - (*DynamicValueChange)(nil), // 46: terraform1.DynamicValueChange - (*DynamicValueWithSource)(nil), // 47: terraform1.DynamicValueWithSource - (*AttributePath)(nil), // 48: terraform1.AttributePath - (*ComponentInstanceInStackAddr)(nil), // 49: terraform1.ComponentInstanceInStackAddr - (*ResourceInstanceInStackAddr)(nil), // 50: terraform1.ResourceInstanceInStackAddr - (*ResourceInstanceObjectInStackAddr)(nil), // 51: terraform1.ResourceInstanceObjectInStackAddr - (*SourceAddress)(nil), // 52: terraform1.SourceAddress - (*PlannedChange)(nil), // 53: terraform1.PlannedChange - (*Deferred)(nil), // 54: terraform1.Deferred - (*AppliedChange)(nil), // 55: terraform1.AppliedChange - (*StackChangeProgress)(nil), // 56: terraform1.StackChangeProgress - (*Diagnostic)(nil), // 57: terraform1.Diagnostic - (*SourceRange)(nil), // 58: terraform1.SourceRange - (*SourcePos)(nil), // 59: terraform1.SourcePos - (*Schema)(nil), // 60: terraform1.Schema - (*ProviderPackageVersions)(nil), // 61: terraform1.ProviderPackageVersions - (*FetchProviderPackage)(nil), // 62: terraform1.FetchProviderPackage - (*ModulePackageVersions)(nil), // 63: terraform1.ModulePackageVersions - (*ModulePackageSourceAddr)(nil), // 64: terraform1.ModulePackageSourceAddr - (*FetchModulePackage)(nil), // 65: terraform1.FetchModulePackage - (*Handshake_Request)(nil), // 66: terraform1.Handshake.Request - (*Handshake_Response)(nil), // 67: terraform1.Handshake.Response - (*Stop_Request)(nil), // 68: terraform1.Stop.Request - (*Stop_Response)(nil), // 69: terraform1.Stop.Response - nil, // 70: terraform1.Config.CredentialsEntry - (*OpenSourceBundle_Request)(nil), // 71: terraform1.OpenSourceBundle.Request - (*OpenSourceBundle_Response)(nil), // 72: terraform1.OpenSourceBundle.Response - (*CloseSourceBundle_Request)(nil), // 73: terraform1.CloseSourceBundle.Request - (*CloseSourceBundle_Response)(nil), // 74: terraform1.CloseSourceBundle.Response - (*OpenDependencyLockFile_Request)(nil), // 75: terraform1.OpenDependencyLockFile.Request - (*OpenDependencyLockFile_Response)(nil), // 76: terraform1.OpenDependencyLockFile.Response - (*CreateDependencyLocks_Request)(nil), // 77: terraform1.CreateDependencyLocks.Request - (*CreateDependencyLocks_Response)(nil), // 78: terraform1.CreateDependencyLocks.Response - (*CloseDependencyLocks_Request)(nil), // 79: terraform1.CloseDependencyLocks.Request - (*CloseDependencyLocks_Response)(nil), // 80: terraform1.CloseDependencyLocks.Response - (*GetLockedProviderDependencies_Request)(nil), // 81: terraform1.GetLockedProviderDependencies.Request - (*GetLockedProviderDependencies_Response)(nil), // 82: terraform1.GetLockedProviderDependencies.Response - (*BuildProviderPluginCache_Request)(nil), // 83: terraform1.BuildProviderPluginCache.Request - (*BuildProviderPluginCache_Event)(nil), // 84: terraform1.BuildProviderPluginCache.Event - (*BuildProviderPluginCache_Request_InstallMethod)(nil), // 85: terraform1.BuildProviderPluginCache.Request.InstallMethod - (*BuildProviderPluginCache_Event_Pending)(nil), // 86: terraform1.BuildProviderPluginCache.Event.Pending - (*BuildProviderPluginCache_Event_ProviderConstraints)(nil), // 87: terraform1.BuildProviderPluginCache.Event.ProviderConstraints - (*BuildProviderPluginCache_Event_ProviderVersion)(nil), // 88: terraform1.BuildProviderPluginCache.Event.ProviderVersion - (*BuildProviderPluginCache_Event_ProviderWarnings)(nil), // 89: terraform1.BuildProviderPluginCache.Event.ProviderWarnings - (*BuildProviderPluginCache_Event_FetchBegin)(nil), // 90: terraform1.BuildProviderPluginCache.Event.FetchBegin - (*BuildProviderPluginCache_Event_FetchComplete)(nil), // 91: terraform1.BuildProviderPluginCache.Event.FetchComplete - (*OpenProviderPluginCache_Request)(nil), // 92: terraform1.OpenProviderPluginCache.Request - (*OpenProviderPluginCache_Response)(nil), // 93: terraform1.OpenProviderPluginCache.Response - (*CloseProviderPluginCache_Request)(nil), // 94: terraform1.CloseProviderPluginCache.Request - (*CloseProviderPluginCache_Response)(nil), // 95: terraform1.CloseProviderPluginCache.Response - (*GetCachedProviders_Request)(nil), // 96: terraform1.GetCachedProviders.Request - (*GetCachedProviders_Response)(nil), // 97: terraform1.GetCachedProviders.Response - (*GetBuiltInProviders_Request)(nil), // 98: terraform1.GetBuiltInProviders.Request - (*GetBuiltInProviders_Response)(nil), // 99: terraform1.GetBuiltInProviders.Response - (*GetProviderSchema_Request)(nil), // 100: terraform1.GetProviderSchema.Request - (*GetProviderSchema_Response)(nil), // 101: terraform1.GetProviderSchema.Response - nil, // 102: terraform1.ProviderSchema.ManagedResourceTypesEntry - nil, // 103: terraform1.ProviderSchema.DataResourceTypesEntry - (*OpenStackConfiguration_Request)(nil), // 104: terraform1.OpenStackConfiguration.Request - (*OpenStackConfiguration_Response)(nil), // 105: terraform1.OpenStackConfiguration.Response - (*CloseStackConfiguration_Request)(nil), // 106: terraform1.CloseStackConfiguration.Request - (*CloseStackConfiguration_Response)(nil), // 107: terraform1.CloseStackConfiguration.Response - (*ValidateStackConfiguration_Request)(nil), // 108: terraform1.ValidateStackConfiguration.Request - (*ValidateStackConfiguration_Response)(nil), // 109: terraform1.ValidateStackConfiguration.Response - (*FindStackConfigurationComponents_Request)(nil), // 110: terraform1.FindStackConfigurationComponents.Request - (*FindStackConfigurationComponents_Response)(nil), // 111: terraform1.FindStackConfigurationComponents.Response - (*FindStackConfigurationComponents_StackConfig)(nil), // 112: terraform1.FindStackConfigurationComponents.StackConfig - (*FindStackConfigurationComponents_EmbeddedStack)(nil), // 113: terraform1.FindStackConfigurationComponents.EmbeddedStack - (*FindStackConfigurationComponents_Component)(nil), // 114: terraform1.FindStackConfigurationComponents.Component - (*FindStackConfigurationComponents_InputVariable)(nil), // 115: terraform1.FindStackConfigurationComponents.InputVariable - (*FindStackConfigurationComponents_OutputValue)(nil), // 116: terraform1.FindStackConfigurationComponents.OutputValue - nil, // 117: terraform1.FindStackConfigurationComponents.StackConfig.ComponentsEntry - nil, // 118: terraform1.FindStackConfigurationComponents.StackConfig.EmbeddedStacksEntry - nil, // 119: terraform1.FindStackConfigurationComponents.StackConfig.InputVariablesEntry - nil, // 120: terraform1.FindStackConfigurationComponents.StackConfig.OutputValuesEntry - (*OpenStackState_RequestItem)(nil), // 121: terraform1.OpenStackState.RequestItem - (*OpenStackState_Response)(nil), // 122: terraform1.OpenStackState.Response - (*CloseStackState_Request)(nil), // 123: terraform1.CloseStackState.Request - (*CloseStackState_Response)(nil), // 124: terraform1.CloseStackState.Response - (*PlanStackChanges_Request)(nil), // 125: terraform1.PlanStackChanges.Request - (*PlanStackChanges_Event)(nil), // 126: terraform1.PlanStackChanges.Event - nil, // 127: terraform1.PlanStackChanges.Request.PreviousStateEntry - nil, // 128: terraform1.PlanStackChanges.Request.InputValuesEntry - (*OpenStackPlan_RequestItem)(nil), // 129: terraform1.OpenStackPlan.RequestItem - (*OpenStackPlan_Response)(nil), // 130: terraform1.OpenStackPlan.Response - (*CloseStackPlan_Request)(nil), // 131: terraform1.CloseStackPlan.Request - (*CloseStackPlan_Response)(nil), // 132: terraform1.CloseStackPlan.Response - (*ApplyStackChanges_Request)(nil), // 133: terraform1.ApplyStackChanges.Request - (*ApplyStackChanges_Event)(nil), // 134: terraform1.ApplyStackChanges.Event - nil, // 135: terraform1.ApplyStackChanges.Request.InputValuesEntry - (*OpenStackInspector_Request)(nil), // 136: terraform1.OpenStackInspector.Request - (*OpenStackInspector_Response)(nil), // 137: terraform1.OpenStackInspector.Response - nil, // 138: terraform1.OpenStackInspector.Request.StateEntry - nil, // 139: terraform1.OpenStackInspector.Request.InputValuesEntry - (*InspectExpressionResult_Request)(nil), // 140: terraform1.InspectExpressionResult.Request - (*InspectExpressionResult_Response)(nil), // 141: terraform1.InspectExpressionResult.Response - (*AttributePath_Step)(nil), // 142: terraform1.AttributePath.Step - (*PlannedChange_ChangeDescription)(nil), // 143: terraform1.PlannedChange.ChangeDescription - (*PlannedChange_ComponentInstance)(nil), // 144: terraform1.PlannedChange.ComponentInstance - (*PlannedChange_ResourceInstance)(nil), // 145: terraform1.PlannedChange.ResourceInstance - (*PlannedChange_OutputValue)(nil), // 146: terraform1.PlannedChange.OutputValue - (*PlannedChange_ResourceInstanceDeferred)(nil), // 147: terraform1.PlannedChange.ResourceInstanceDeferred - (*PlannedChange_InputVariableDuringApply)(nil), // 148: terraform1.PlannedChange.InputVariableDuringApply - (*PlannedChange_ResourceInstance_Index)(nil), // 149: terraform1.PlannedChange.ResourceInstance.Index - (*PlannedChange_ResourceInstance_Moved)(nil), // 150: terraform1.PlannedChange.ResourceInstance.Moved - (*PlannedChange_ResourceInstance_Imported)(nil), // 151: terraform1.PlannedChange.ResourceInstance.Imported - (*AppliedChange_RawChange)(nil), // 152: terraform1.AppliedChange.RawChange - (*AppliedChange_ChangeDescription)(nil), // 153: terraform1.AppliedChange.ChangeDescription - (*AppliedChange_ResourceInstance)(nil), // 154: terraform1.AppliedChange.ResourceInstance - (*AppliedChange_ComponentInstance)(nil), // 155: terraform1.AppliedChange.ComponentInstance - (*AppliedChange_OutputValue)(nil), // 156: terraform1.AppliedChange.OutputValue - (*AppliedChange_Nothing)(nil), // 157: terraform1.AppliedChange.Nothing - nil, // 158: terraform1.AppliedChange.ComponentInstance.OutputValuesEntry - (*StackChangeProgress_ComponentInstanceStatus)(nil), // 159: terraform1.StackChangeProgress.ComponentInstanceStatus - (*StackChangeProgress_ResourceInstanceStatus)(nil), // 160: terraform1.StackChangeProgress.ResourceInstanceStatus - (*StackChangeProgress_ResourceInstancePlannedChange)(nil), // 161: terraform1.StackChangeProgress.ResourceInstancePlannedChange - (*StackChangeProgress_DeferredResourceInstancePlannedChange)(nil), // 162: terraform1.StackChangeProgress.DeferredResourceInstancePlannedChange - (*StackChangeProgress_ProvisionerStatus)(nil), // 163: terraform1.StackChangeProgress.ProvisionerStatus - (*StackChangeProgress_ProvisionerOutput)(nil), // 164: terraform1.StackChangeProgress.ProvisionerOutput - (*StackChangeProgress_ComponentInstanceChanges)(nil), // 165: terraform1.StackChangeProgress.ComponentInstanceChanges - (*StackChangeProgress_ComponentInstances)(nil), // 166: terraform1.StackChangeProgress.ComponentInstances - (*StackChangeProgress_ResourceInstancePlannedChange_Moved)(nil), // 167: terraform1.StackChangeProgress.ResourceInstancePlannedChange.Moved - (*StackChangeProgress_ResourceInstancePlannedChange_Imported)(nil), // 168: terraform1.StackChangeProgress.ResourceInstancePlannedChange.Imported - (*Schema_Block)(nil), // 169: terraform1.Schema.Block - (*Schema_Attribute)(nil), // 170: terraform1.Schema.Attribute - (*Schema_NestedBlock)(nil), // 171: terraform1.Schema.NestedBlock - (*Schema_Object)(nil), // 172: terraform1.Schema.Object - (*Schema_DocString)(nil), // 173: terraform1.Schema.DocString - (*ProviderPackageVersions_Request)(nil), // 174: terraform1.ProviderPackageVersions.Request - (*ProviderPackageVersions_Response)(nil), // 175: terraform1.ProviderPackageVersions.Response - (*FetchProviderPackage_Request)(nil), // 176: terraform1.FetchProviderPackage.Request - (*FetchProviderPackage_Response)(nil), // 177: terraform1.FetchProviderPackage.Response - (*FetchProviderPackage_PlatformResult)(nil), // 178: terraform1.FetchProviderPackage.PlatformResult - (*ModulePackageVersions_Request)(nil), // 179: terraform1.ModulePackageVersions.Request - (*ModulePackageVersions_Response)(nil), // 180: terraform1.ModulePackageVersions.Response - (*ModulePackageSourceAddr_Request)(nil), // 181: terraform1.ModulePackageSourceAddr.Request - (*ModulePackageSourceAddr_Response)(nil), // 182: terraform1.ModulePackageSourceAddr.Response - (*FetchModulePackage_Request)(nil), // 183: terraform1.FetchModulePackage.Request - (*FetchModulePackage_Response)(nil), // 184: terraform1.FetchModulePackage.Response - (*anypb.Any)(nil), // 185: google.protobuf.Any + (Diagnostic_Severity)(0), // 0: terraform1.Diagnostic.Severity + (*ProviderPackage)(nil), // 1: terraform1.ProviderPackage + (*SourceAddress)(nil), // 2: terraform1.SourceAddress + (*Diagnostic)(nil), // 3: terraform1.Diagnostic + (*SourceRange)(nil), // 4: terraform1.SourceRange + (*SourcePos)(nil), // 5: terraform1.SourcePos } var file_terraform1_proto_depIdxs = []int32{ - 70, // 0: terraform1.Config.credentials:type_name -> terraform1.Config.CredentialsEntry - 60, // 1: terraform1.ProviderSchema.provider_config:type_name -> terraform1.Schema - 102, // 2: terraform1.ProviderSchema.managed_resource_types:type_name -> terraform1.ProviderSchema.ManagedResourceTypesEntry - 103, // 3: terraform1.ProviderSchema.data_resource_types:type_name -> terraform1.ProviderSchema.DataResourceTypesEntry - 48, // 4: terraform1.DynamicValue.sensitive:type_name -> terraform1.AttributePath - 45, // 5: terraform1.DynamicValueChange.old:type_name -> terraform1.DynamicValue - 45, // 6: terraform1.DynamicValueChange.new:type_name -> terraform1.DynamicValue - 45, // 7: terraform1.DynamicValueWithSource.value:type_name -> terraform1.DynamicValue - 58, // 8: terraform1.DynamicValueWithSource.source_range:type_name -> terraform1.SourceRange - 142, // 9: terraform1.AttributePath.steps:type_name -> terraform1.AttributePath.Step - 185, // 10: terraform1.PlannedChange.raw:type_name -> google.protobuf.Any - 143, // 11: terraform1.PlannedChange.descriptions:type_name -> terraform1.PlannedChange.ChangeDescription - 5, // 12: terraform1.Deferred.reason:type_name -> terraform1.Deferred.Reason - 152, // 13: terraform1.AppliedChange.raw:type_name -> terraform1.AppliedChange.RawChange - 153, // 14: terraform1.AppliedChange.descriptions:type_name -> terraform1.AppliedChange.ChangeDescription - 159, // 15: terraform1.StackChangeProgress.component_instance_status:type_name -> terraform1.StackChangeProgress.ComponentInstanceStatus - 160, // 16: terraform1.StackChangeProgress.resource_instance_status:type_name -> terraform1.StackChangeProgress.ResourceInstanceStatus - 161, // 17: terraform1.StackChangeProgress.resource_instance_planned_change:type_name -> terraform1.StackChangeProgress.ResourceInstancePlannedChange - 163, // 18: terraform1.StackChangeProgress.provisioner_status:type_name -> terraform1.StackChangeProgress.ProvisionerStatus - 164, // 19: terraform1.StackChangeProgress.provisioner_output:type_name -> terraform1.StackChangeProgress.ProvisionerOutput - 165, // 20: terraform1.StackChangeProgress.component_instance_changes:type_name -> terraform1.StackChangeProgress.ComponentInstanceChanges - 166, // 21: terraform1.StackChangeProgress.component_instances:type_name -> terraform1.StackChangeProgress.ComponentInstances - 162, // 22: terraform1.StackChangeProgress.deferred_resource_instance_planned_change:type_name -> terraform1.StackChangeProgress.DeferredResourceInstancePlannedChange - 9, // 23: terraform1.Diagnostic.severity:type_name -> terraform1.Diagnostic.Severity - 58, // 24: terraform1.Diagnostic.subject:type_name -> terraform1.SourceRange - 58, // 25: terraform1.Diagnostic.context:type_name -> terraform1.SourceRange - 59, // 26: terraform1.SourceRange.start:type_name -> terraform1.SourcePos - 59, // 27: terraform1.SourceRange.end:type_name -> terraform1.SourcePos - 169, // 28: terraform1.Schema.block:type_name -> terraform1.Schema.Block - 15, // 29: terraform1.Handshake.Request.capabilities:type_name -> terraform1.ClientCapabilities - 17, // 30: terraform1.Handshake.Request.config:type_name -> terraform1.Config - 16, // 31: terraform1.Handshake.Response.capabilities:type_name -> terraform1.ServerCapabilities - 18, // 32: terraform1.Config.CredentialsEntry.value:type_name -> terraform1.HostCredential - 52, // 33: terraform1.OpenDependencyLockFile.Request.source_address:type_name -> terraform1.SourceAddress - 57, // 34: terraform1.OpenDependencyLockFile.Response.diagnostics:type_name -> terraform1.Diagnostic - 31, // 35: terraform1.CreateDependencyLocks.Request.provider_selections:type_name -> terraform1.ProviderPackage - 31, // 36: terraform1.GetLockedProviderDependencies.Response.selected_providers:type_name -> terraform1.ProviderPackage - 85, // 37: terraform1.BuildProviderPluginCache.Request.installation_methods:type_name -> terraform1.BuildProviderPluginCache.Request.InstallMethod - 86, // 38: terraform1.BuildProviderPluginCache.Event.pending:type_name -> terraform1.BuildProviderPluginCache.Event.Pending - 88, // 39: terraform1.BuildProviderPluginCache.Event.already_installed:type_name -> terraform1.BuildProviderPluginCache.Event.ProviderVersion - 88, // 40: terraform1.BuildProviderPluginCache.Event.built_in:type_name -> terraform1.BuildProviderPluginCache.Event.ProviderVersion - 87, // 41: terraform1.BuildProviderPluginCache.Event.query_begin:type_name -> terraform1.BuildProviderPluginCache.Event.ProviderConstraints - 88, // 42: terraform1.BuildProviderPluginCache.Event.query_success:type_name -> terraform1.BuildProviderPluginCache.Event.ProviderVersion - 89, // 43: terraform1.BuildProviderPluginCache.Event.query_warnings:type_name -> terraform1.BuildProviderPluginCache.Event.ProviderWarnings - 90, // 44: terraform1.BuildProviderPluginCache.Event.fetch_begin:type_name -> terraform1.BuildProviderPluginCache.Event.FetchBegin - 91, // 45: terraform1.BuildProviderPluginCache.Event.fetch_complete:type_name -> terraform1.BuildProviderPluginCache.Event.FetchComplete - 57, // 46: terraform1.BuildProviderPluginCache.Event.diagnostic:type_name -> terraform1.Diagnostic - 87, // 47: terraform1.BuildProviderPluginCache.Event.Pending.expected:type_name -> terraform1.BuildProviderPluginCache.Event.ProviderConstraints - 88, // 48: terraform1.BuildProviderPluginCache.Event.FetchBegin.provider_version:type_name -> terraform1.BuildProviderPluginCache.Event.ProviderVersion - 88, // 49: terraform1.BuildProviderPluginCache.Event.FetchComplete.provider_version:type_name -> terraform1.BuildProviderPluginCache.Event.ProviderVersion - 3, // 50: terraform1.BuildProviderPluginCache.Event.FetchComplete.auth_result:type_name -> terraform1.BuildProviderPluginCache.Event.FetchComplete.AuthResult - 31, // 51: terraform1.GetCachedProviders.Response.available_providers:type_name -> terraform1.ProviderPackage - 31, // 52: terraform1.GetBuiltInProviders.Response.available_providers:type_name -> terraform1.ProviderPackage - 32, // 53: terraform1.GetProviderSchema.Response.schema:type_name -> terraform1.ProviderSchema - 60, // 54: terraform1.ProviderSchema.ManagedResourceTypesEntry.value:type_name -> terraform1.Schema - 60, // 55: terraform1.ProviderSchema.DataResourceTypesEntry.value:type_name -> terraform1.Schema - 52, // 56: terraform1.OpenStackConfiguration.Request.source_address:type_name -> terraform1.SourceAddress - 57, // 57: terraform1.OpenStackConfiguration.Response.diagnostics:type_name -> terraform1.Diagnostic - 57, // 58: terraform1.ValidateStackConfiguration.Response.diagnostics:type_name -> terraform1.Diagnostic - 112, // 59: terraform1.FindStackConfigurationComponents.Response.config:type_name -> terraform1.FindStackConfigurationComponents.StackConfig - 117, // 60: terraform1.FindStackConfigurationComponents.StackConfig.components:type_name -> terraform1.FindStackConfigurationComponents.StackConfig.ComponentsEntry - 118, // 61: terraform1.FindStackConfigurationComponents.StackConfig.embedded_stacks:type_name -> terraform1.FindStackConfigurationComponents.StackConfig.EmbeddedStacksEntry - 119, // 62: terraform1.FindStackConfigurationComponents.StackConfig.input_variables:type_name -> terraform1.FindStackConfigurationComponents.StackConfig.InputVariablesEntry - 120, // 63: terraform1.FindStackConfigurationComponents.StackConfig.output_values:type_name -> terraform1.FindStackConfigurationComponents.StackConfig.OutputValuesEntry - 4, // 64: terraform1.FindStackConfigurationComponents.EmbeddedStack.instances:type_name -> terraform1.FindStackConfigurationComponents.Instances - 112, // 65: terraform1.FindStackConfigurationComponents.EmbeddedStack.config:type_name -> terraform1.FindStackConfigurationComponents.StackConfig - 4, // 66: terraform1.FindStackConfigurationComponents.Component.instances:type_name -> terraform1.FindStackConfigurationComponents.Instances - 114, // 67: terraform1.FindStackConfigurationComponents.StackConfig.ComponentsEntry.value:type_name -> terraform1.FindStackConfigurationComponents.Component - 113, // 68: terraform1.FindStackConfigurationComponents.StackConfig.EmbeddedStacksEntry.value:type_name -> terraform1.FindStackConfigurationComponents.EmbeddedStack - 115, // 69: terraform1.FindStackConfigurationComponents.StackConfig.InputVariablesEntry.value:type_name -> terraform1.FindStackConfigurationComponents.InputVariable - 116, // 70: terraform1.FindStackConfigurationComponents.StackConfig.OutputValuesEntry.value:type_name -> terraform1.FindStackConfigurationComponents.OutputValue - 152, // 71: terraform1.OpenStackState.RequestItem.raw:type_name -> terraform1.AppliedChange.RawChange - 1, // 72: terraform1.PlanStackChanges.Request.plan_mode:type_name -> terraform1.PlanMode - 127, // 73: terraform1.PlanStackChanges.Request.previous_state:type_name -> terraform1.PlanStackChanges.Request.PreviousStateEntry - 128, // 74: terraform1.PlanStackChanges.Request.input_values:type_name -> terraform1.PlanStackChanges.Request.InputValuesEntry - 53, // 75: terraform1.PlanStackChanges.Event.planned_change:type_name -> terraform1.PlannedChange - 57, // 76: terraform1.PlanStackChanges.Event.diagnostic:type_name -> terraform1.Diagnostic - 56, // 77: terraform1.PlanStackChanges.Event.progress:type_name -> terraform1.StackChangeProgress - 185, // 78: terraform1.PlanStackChanges.Request.PreviousStateEntry.value:type_name -> google.protobuf.Any - 47, // 79: terraform1.PlanStackChanges.Request.InputValuesEntry.value:type_name -> terraform1.DynamicValueWithSource - 185, // 80: terraform1.OpenStackPlan.RequestItem.raw:type_name -> google.protobuf.Any - 185, // 81: terraform1.ApplyStackChanges.Request.planned_changes:type_name -> google.protobuf.Any - 135, // 82: terraform1.ApplyStackChanges.Request.input_values:type_name -> terraform1.ApplyStackChanges.Request.InputValuesEntry - 55, // 83: terraform1.ApplyStackChanges.Event.applied_change:type_name -> terraform1.AppliedChange - 57, // 84: terraform1.ApplyStackChanges.Event.diagnostic:type_name -> terraform1.Diagnostic - 56, // 85: terraform1.ApplyStackChanges.Event.progress:type_name -> terraform1.StackChangeProgress - 47, // 86: terraform1.ApplyStackChanges.Request.InputValuesEntry.value:type_name -> terraform1.DynamicValueWithSource - 138, // 87: terraform1.OpenStackInspector.Request.state:type_name -> terraform1.OpenStackInspector.Request.StateEntry - 139, // 88: terraform1.OpenStackInspector.Request.input_values:type_name -> terraform1.OpenStackInspector.Request.InputValuesEntry - 57, // 89: terraform1.OpenStackInspector.Response.diagnostics:type_name -> terraform1.Diagnostic - 185, // 90: terraform1.OpenStackInspector.Request.StateEntry.value:type_name -> google.protobuf.Any - 47, // 91: terraform1.OpenStackInspector.Request.InputValuesEntry.value:type_name -> terraform1.DynamicValueWithSource - 45, // 92: terraform1.InspectExpressionResult.Response.result:type_name -> terraform1.DynamicValue - 57, // 93: terraform1.InspectExpressionResult.Response.diagnostics:type_name -> terraform1.Diagnostic - 144, // 94: terraform1.PlannedChange.ChangeDescription.component_instance_planned:type_name -> terraform1.PlannedChange.ComponentInstance - 145, // 95: terraform1.PlannedChange.ChangeDescription.resource_instance_planned:type_name -> terraform1.PlannedChange.ResourceInstance - 146, // 96: terraform1.PlannedChange.ChangeDescription.output_value_planned:type_name -> terraform1.PlannedChange.OutputValue - 147, // 97: terraform1.PlannedChange.ChangeDescription.resource_instance_deferred:type_name -> terraform1.PlannedChange.ResourceInstanceDeferred - 148, // 98: terraform1.PlannedChange.ChangeDescription.apply_time_input_variable:type_name -> terraform1.PlannedChange.InputVariableDuringApply - 49, // 99: terraform1.PlannedChange.ComponentInstance.addr:type_name -> terraform1.ComponentInstanceInStackAddr - 2, // 100: terraform1.PlannedChange.ComponentInstance.actions:type_name -> terraform1.ChangeType - 51, // 101: terraform1.PlannedChange.ResourceInstance.addr:type_name -> terraform1.ResourceInstanceObjectInStackAddr - 2, // 102: terraform1.PlannedChange.ResourceInstance.actions:type_name -> terraform1.ChangeType - 46, // 103: terraform1.PlannedChange.ResourceInstance.values:type_name -> terraform1.DynamicValueChange - 150, // 104: terraform1.PlannedChange.ResourceInstance.moved:type_name -> terraform1.PlannedChange.ResourceInstance.Moved - 151, // 105: terraform1.PlannedChange.ResourceInstance.imported:type_name -> terraform1.PlannedChange.ResourceInstance.Imported - 0, // 106: terraform1.PlannedChange.ResourceInstance.resource_mode:type_name -> terraform1.ResourceMode - 45, // 107: terraform1.PlannedChange.ResourceInstance.previous_run_value:type_name -> terraform1.DynamicValue - 48, // 108: terraform1.PlannedChange.ResourceInstance.replace_paths:type_name -> terraform1.AttributePath - 149, // 109: terraform1.PlannedChange.ResourceInstance.index:type_name -> terraform1.PlannedChange.ResourceInstance.Index - 2, // 110: terraform1.PlannedChange.OutputValue.actions:type_name -> terraform1.ChangeType - 46, // 111: terraform1.PlannedChange.OutputValue.values:type_name -> terraform1.DynamicValueChange - 145, // 112: terraform1.PlannedChange.ResourceInstanceDeferred.resource_instance:type_name -> terraform1.PlannedChange.ResourceInstance - 54, // 113: terraform1.PlannedChange.ResourceInstanceDeferred.deferred:type_name -> terraform1.Deferred - 45, // 114: terraform1.PlannedChange.ResourceInstance.Index.value:type_name -> terraform1.DynamicValue - 50, // 115: terraform1.PlannedChange.ResourceInstance.Moved.prev_addr:type_name -> terraform1.ResourceInstanceInStackAddr - 185, // 116: terraform1.AppliedChange.RawChange.value:type_name -> google.protobuf.Any - 157, // 117: terraform1.AppliedChange.ChangeDescription.deleted:type_name -> terraform1.AppliedChange.Nothing - 157, // 118: terraform1.AppliedChange.ChangeDescription.moved:type_name -> terraform1.AppliedChange.Nothing - 154, // 119: terraform1.AppliedChange.ChangeDescription.resource_instance:type_name -> terraform1.AppliedChange.ResourceInstance - 156, // 120: terraform1.AppliedChange.ChangeDescription.output_value:type_name -> terraform1.AppliedChange.OutputValue - 155, // 121: terraform1.AppliedChange.ChangeDescription.component_instance:type_name -> terraform1.AppliedChange.ComponentInstance - 51, // 122: terraform1.AppliedChange.ResourceInstance.addr:type_name -> terraform1.ResourceInstanceObjectInStackAddr - 45, // 123: terraform1.AppliedChange.ResourceInstance.new_value:type_name -> terraform1.DynamicValue - 0, // 124: terraform1.AppliedChange.ResourceInstance.resource_mode:type_name -> terraform1.ResourceMode - 158, // 125: terraform1.AppliedChange.ComponentInstance.output_values:type_name -> terraform1.AppliedChange.ComponentInstance.OutputValuesEntry - 45, // 126: terraform1.AppliedChange.OutputValue.new_value:type_name -> terraform1.DynamicValue - 45, // 127: terraform1.AppliedChange.ComponentInstance.OutputValuesEntry.value:type_name -> terraform1.DynamicValue - 49, // 128: terraform1.StackChangeProgress.ComponentInstanceStatus.addr:type_name -> terraform1.ComponentInstanceInStackAddr - 6, // 129: terraform1.StackChangeProgress.ComponentInstanceStatus.status:type_name -> terraform1.StackChangeProgress.ComponentInstanceStatus.Status - 51, // 130: terraform1.StackChangeProgress.ResourceInstanceStatus.addr:type_name -> terraform1.ResourceInstanceObjectInStackAddr - 7, // 131: terraform1.StackChangeProgress.ResourceInstanceStatus.status:type_name -> terraform1.StackChangeProgress.ResourceInstanceStatus.Status - 51, // 132: terraform1.StackChangeProgress.ResourceInstancePlannedChange.addr:type_name -> terraform1.ResourceInstanceObjectInStackAddr - 2, // 133: terraform1.StackChangeProgress.ResourceInstancePlannedChange.actions:type_name -> terraform1.ChangeType - 167, // 134: terraform1.StackChangeProgress.ResourceInstancePlannedChange.moved:type_name -> terraform1.StackChangeProgress.ResourceInstancePlannedChange.Moved - 168, // 135: terraform1.StackChangeProgress.ResourceInstancePlannedChange.imported:type_name -> terraform1.StackChangeProgress.ResourceInstancePlannedChange.Imported - 54, // 136: terraform1.StackChangeProgress.DeferredResourceInstancePlannedChange.deferred:type_name -> terraform1.Deferred - 161, // 137: terraform1.StackChangeProgress.DeferredResourceInstancePlannedChange.change:type_name -> terraform1.StackChangeProgress.ResourceInstancePlannedChange - 51, // 138: terraform1.StackChangeProgress.ProvisionerStatus.addr:type_name -> terraform1.ResourceInstanceObjectInStackAddr - 163, // 139: terraform1.StackChangeProgress.ProvisionerStatus.status:type_name -> terraform1.StackChangeProgress.ProvisionerStatus - 51, // 140: terraform1.StackChangeProgress.ProvisionerOutput.addr:type_name -> terraform1.ResourceInstanceObjectInStackAddr - 49, // 141: terraform1.StackChangeProgress.ComponentInstanceChanges.addr:type_name -> terraform1.ComponentInstanceInStackAddr - 50, // 142: terraform1.StackChangeProgress.ResourceInstancePlannedChange.Moved.prev_addr:type_name -> terraform1.ResourceInstanceInStackAddr - 170, // 143: terraform1.Schema.Block.attributes:type_name -> terraform1.Schema.Attribute - 171, // 144: terraform1.Schema.Block.block_types:type_name -> terraform1.Schema.NestedBlock - 173, // 145: terraform1.Schema.Block.description:type_name -> terraform1.Schema.DocString - 172, // 146: terraform1.Schema.Attribute.nested_type:type_name -> terraform1.Schema.Object - 173, // 147: terraform1.Schema.Attribute.description:type_name -> terraform1.Schema.DocString - 169, // 148: terraform1.Schema.NestedBlock.block:type_name -> terraform1.Schema.Block - 10, // 149: terraform1.Schema.NestedBlock.nesting:type_name -> terraform1.Schema.NestedBlock.NestingMode - 170, // 150: terraform1.Schema.Object.attributes:type_name -> terraform1.Schema.Attribute - 11, // 151: terraform1.Schema.Object.nesting:type_name -> terraform1.Schema.Object.NestingMode - 12, // 152: terraform1.Schema.DocString.format:type_name -> terraform1.Schema.DocString.Format - 57, // 153: terraform1.ProviderPackageVersions.Response.diagnostics:type_name -> terraform1.Diagnostic - 178, // 154: terraform1.FetchProviderPackage.Response.results:type_name -> terraform1.FetchProviderPackage.PlatformResult - 57, // 155: terraform1.FetchProviderPackage.Response.diagnostics:type_name -> terraform1.Diagnostic - 31, // 156: terraform1.FetchProviderPackage.PlatformResult.provider:type_name -> terraform1.ProviderPackage - 57, // 157: terraform1.FetchProviderPackage.PlatformResult.diagnostics:type_name -> terraform1.Diagnostic - 57, // 158: terraform1.ModulePackageVersions.Response.diagnostics:type_name -> terraform1.Diagnostic - 57, // 159: terraform1.ModulePackageSourceAddr.Response.diagnostics:type_name -> terraform1.Diagnostic - 57, // 160: terraform1.FetchModulePackage.Response.diagnostics:type_name -> terraform1.Diagnostic - 66, // 161: terraform1.Setup.Handshake:input_type -> terraform1.Handshake.Request - 68, // 162: terraform1.Setup.Stop:input_type -> terraform1.Stop.Request - 71, // 163: terraform1.Dependencies.OpenSourceBundle:input_type -> terraform1.OpenSourceBundle.Request - 73, // 164: terraform1.Dependencies.CloseSourceBundle:input_type -> terraform1.CloseSourceBundle.Request - 75, // 165: terraform1.Dependencies.OpenDependencyLockFile:input_type -> terraform1.OpenDependencyLockFile.Request - 77, // 166: terraform1.Dependencies.CreateDependencyLocks:input_type -> terraform1.CreateDependencyLocks.Request - 79, // 167: terraform1.Dependencies.CloseDependencyLocks:input_type -> terraform1.CloseDependencyLocks.Request - 81, // 168: terraform1.Dependencies.GetLockedProviderDependencies:input_type -> terraform1.GetLockedProviderDependencies.Request - 83, // 169: terraform1.Dependencies.BuildProviderPluginCache:input_type -> terraform1.BuildProviderPluginCache.Request - 92, // 170: terraform1.Dependencies.OpenProviderPluginCache:input_type -> terraform1.OpenProviderPluginCache.Request - 94, // 171: terraform1.Dependencies.CloseProviderPluginCache:input_type -> terraform1.CloseProviderPluginCache.Request - 96, // 172: terraform1.Dependencies.GetCachedProviders:input_type -> terraform1.GetCachedProviders.Request - 98, // 173: terraform1.Dependencies.GetBuiltInProviders:input_type -> terraform1.GetBuiltInProviders.Request - 100, // 174: terraform1.Dependencies.GetProviderSchema:input_type -> terraform1.GetProviderSchema.Request - 104, // 175: terraform1.Stacks.OpenStackConfiguration:input_type -> terraform1.OpenStackConfiguration.Request - 106, // 176: terraform1.Stacks.CloseStackConfiguration:input_type -> terraform1.CloseStackConfiguration.Request - 108, // 177: terraform1.Stacks.ValidateStackConfiguration:input_type -> terraform1.ValidateStackConfiguration.Request - 110, // 178: terraform1.Stacks.FindStackConfigurationComponents:input_type -> terraform1.FindStackConfigurationComponents.Request - 121, // 179: terraform1.Stacks.OpenState:input_type -> terraform1.OpenStackState.RequestItem - 123, // 180: terraform1.Stacks.CloseState:input_type -> terraform1.CloseStackState.Request - 125, // 181: terraform1.Stacks.PlanStackChanges:input_type -> terraform1.PlanStackChanges.Request - 129, // 182: terraform1.Stacks.OpenPlan:input_type -> terraform1.OpenStackPlan.RequestItem - 131, // 183: terraform1.Stacks.ClosePlan:input_type -> terraform1.CloseStackPlan.Request - 133, // 184: terraform1.Stacks.ApplyStackChanges:input_type -> terraform1.ApplyStackChanges.Request - 136, // 185: terraform1.Stacks.OpenStackInspector:input_type -> terraform1.OpenStackInspector.Request - 140, // 186: terraform1.Stacks.InspectExpressionResult:input_type -> terraform1.InspectExpressionResult.Request - 174, // 187: terraform1.Packages.ProviderPackageVersions:input_type -> terraform1.ProviderPackageVersions.Request - 176, // 188: terraform1.Packages.FetchProviderPackage:input_type -> terraform1.FetchProviderPackage.Request - 179, // 189: terraform1.Packages.ModulePackageVersions:input_type -> terraform1.ModulePackageVersions.Request - 181, // 190: terraform1.Packages.ModulePackageSourceAddr:input_type -> terraform1.ModulePackageSourceAddr.Request - 183, // 191: terraform1.Packages.FetchModulePackage:input_type -> terraform1.FetchModulePackage.Request - 67, // 192: terraform1.Setup.Handshake:output_type -> terraform1.Handshake.Response - 69, // 193: terraform1.Setup.Stop:output_type -> terraform1.Stop.Response - 72, // 194: terraform1.Dependencies.OpenSourceBundle:output_type -> terraform1.OpenSourceBundle.Response - 74, // 195: terraform1.Dependencies.CloseSourceBundle:output_type -> terraform1.CloseSourceBundle.Response - 76, // 196: terraform1.Dependencies.OpenDependencyLockFile:output_type -> terraform1.OpenDependencyLockFile.Response - 78, // 197: terraform1.Dependencies.CreateDependencyLocks:output_type -> terraform1.CreateDependencyLocks.Response - 80, // 198: terraform1.Dependencies.CloseDependencyLocks:output_type -> terraform1.CloseDependencyLocks.Response - 82, // 199: terraform1.Dependencies.GetLockedProviderDependencies:output_type -> terraform1.GetLockedProviderDependencies.Response - 84, // 200: terraform1.Dependencies.BuildProviderPluginCache:output_type -> terraform1.BuildProviderPluginCache.Event - 93, // 201: terraform1.Dependencies.OpenProviderPluginCache:output_type -> terraform1.OpenProviderPluginCache.Response - 95, // 202: terraform1.Dependencies.CloseProviderPluginCache:output_type -> terraform1.CloseProviderPluginCache.Response - 97, // 203: terraform1.Dependencies.GetCachedProviders:output_type -> terraform1.GetCachedProviders.Response - 99, // 204: terraform1.Dependencies.GetBuiltInProviders:output_type -> terraform1.GetBuiltInProviders.Response - 101, // 205: terraform1.Dependencies.GetProviderSchema:output_type -> terraform1.GetProviderSchema.Response - 105, // 206: terraform1.Stacks.OpenStackConfiguration:output_type -> terraform1.OpenStackConfiguration.Response - 107, // 207: terraform1.Stacks.CloseStackConfiguration:output_type -> terraform1.CloseStackConfiguration.Response - 109, // 208: terraform1.Stacks.ValidateStackConfiguration:output_type -> terraform1.ValidateStackConfiguration.Response - 111, // 209: terraform1.Stacks.FindStackConfigurationComponents:output_type -> terraform1.FindStackConfigurationComponents.Response - 122, // 210: terraform1.Stacks.OpenState:output_type -> terraform1.OpenStackState.Response - 124, // 211: terraform1.Stacks.CloseState:output_type -> terraform1.CloseStackState.Response - 126, // 212: terraform1.Stacks.PlanStackChanges:output_type -> terraform1.PlanStackChanges.Event - 130, // 213: terraform1.Stacks.OpenPlan:output_type -> terraform1.OpenStackPlan.Response - 132, // 214: terraform1.Stacks.ClosePlan:output_type -> terraform1.CloseStackPlan.Response - 134, // 215: terraform1.Stacks.ApplyStackChanges:output_type -> terraform1.ApplyStackChanges.Event - 137, // 216: terraform1.Stacks.OpenStackInspector:output_type -> terraform1.OpenStackInspector.Response - 141, // 217: terraform1.Stacks.InspectExpressionResult:output_type -> terraform1.InspectExpressionResult.Response - 175, // 218: terraform1.Packages.ProviderPackageVersions:output_type -> terraform1.ProviderPackageVersions.Response - 177, // 219: terraform1.Packages.FetchProviderPackage:output_type -> terraform1.FetchProviderPackage.Response - 180, // 220: terraform1.Packages.ModulePackageVersions:output_type -> terraform1.ModulePackageVersions.Response - 182, // 221: terraform1.Packages.ModulePackageSourceAddr:output_type -> terraform1.ModulePackageSourceAddr.Response - 184, // 222: terraform1.Packages.FetchModulePackage:output_type -> terraform1.FetchModulePackage.Response - 192, // [192:223] is the sub-list for method output_type - 161, // [161:192] is the sub-list for method input_type - 161, // [161:161] is the sub-list for extension type_name - 161, // [161:161] is the sub-list for extension extendee - 0, // [0:161] is the sub-list for field type_name + 0, // 0: terraform1.Diagnostic.severity:type_name -> terraform1.Diagnostic.Severity + 4, // 1: terraform1.Diagnostic.subject:type_name -> terraform1.SourceRange + 4, // 2: terraform1.Diagnostic.context:type_name -> terraform1.SourceRange + 5, // 3: terraform1.SourceRange.start:type_name -> terraform1.SourcePos + 5, // 4: terraform1.SourceRange.end:type_name -> terraform1.SourcePos + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name } func init() { file_terraform1_proto_init() } @@ -12070,222 +520,6 @@ func file_terraform1_proto_init() { } if !protoimpl.UnsafeEnabled { file_terraform1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Handshake); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stop); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClientCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerCapabilities); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Config); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HostCredential); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenSourceBundle); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseSourceBundle); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenDependencyLockFile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDependencyLocks); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseDependencyLocks); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLockedProviderDependencies); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenProviderPluginCache); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseProviderPluginCache); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCachedProviders); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBuiltInProviders); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProviderPackage); i { case 0: return &v.state @@ -12297,247 +531,7 @@ func file_terraform1_proto_init() { return nil } } - file_terraform1_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderSchema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateStackConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindStackConfigurationComponents); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanStackChanges); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackPlan); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackPlan); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyStackChanges); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackInspector); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InspectExpressionResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicValueChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicValueWithSource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributePath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComponentInstanceInStackAddr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceInstanceInStackAddr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceInstanceObjectInStackAddr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_terraform1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SourceAddress); i { case 0: return &v.state @@ -12549,55 +543,7 @@ func file_terraform1_proto_init() { return nil } } - file_terraform1_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Deferred); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppliedChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_terraform1_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Diagnostic); i { case 0: return &v.state @@ -12609,7 +555,7 @@ func file_terraform1_proto_init() { return nil } } - file_terraform1_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_terraform1_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SourceRange); i { case 0: return &v.state @@ -12621,7 +567,7 @@ func file_terraform1_proto_init() { return nil } } - file_terraform1_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_terraform1_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SourcePos); i { case 0: return &v.state @@ -12633,1416 +579,16 @@ func file_terraform1_proto_init() { return nil } } - file_terraform1_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderPackageVersions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchProviderPackage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ModulePackageVersions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ModulePackageSourceAddr); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchModulePackage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Handshake_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Handshake_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stop_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Stop_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenSourceBundle_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenSourceBundle_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseSourceBundle_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseSourceBundle_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenDependencyLockFile_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenDependencyLockFile_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDependencyLocks_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDependencyLocks_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseDependencyLocks_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseDependencyLocks_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLockedProviderDependencies_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLockedProviderDependencies_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Event); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Request_InstallMethod); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Event_Pending); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Event_ProviderConstraints); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Event_ProviderVersion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Event_ProviderWarnings); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Event_FetchBegin); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BuildProviderPluginCache_Event_FetchComplete); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenProviderPluginCache_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenProviderPluginCache_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseProviderPluginCache_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseProviderPluginCache_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCachedProviders_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCachedProviders_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBuiltInProviders_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBuiltInProviders_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetProviderSchema_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackConfiguration_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackConfiguration_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackConfiguration_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackConfiguration_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateStackConfiguration_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidateStackConfiguration_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindStackConfigurationComponents_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindStackConfigurationComponents_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindStackConfigurationComponents_StackConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindStackConfigurationComponents_EmbeddedStack); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindStackConfigurationComponents_Component); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindStackConfigurationComponents_InputVariable); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindStackConfigurationComponents_OutputValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackState_RequestItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackState_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackState_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackState_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanStackChanges_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlanStackChanges_Event); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackPlan_RequestItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackPlan_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackPlan_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloseStackPlan_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyStackChanges_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApplyStackChanges_Event); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackInspector_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenStackInspector_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InspectExpressionResult_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InspectExpressionResult_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AttributePath_Step); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_ChangeDescription); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_ComponentInstance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_ResourceInstance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_OutputValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_ResourceInstanceDeferred); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_InputVariableDuringApply); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_ResourceInstance_Index); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_ResourceInstance_Moved); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlannedChange_ResourceInstance_Imported); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppliedChange_RawChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppliedChange_ChangeDescription); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppliedChange_ResourceInstance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppliedChange_ComponentInstance); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppliedChange_OutputValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AppliedChange_Nothing); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ComponentInstanceStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ResourceInstanceStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ResourceInstancePlannedChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_DeferredResourceInstancePlannedChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ProvisionerStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ProvisionerOutput); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[152].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ComponentInstanceChanges); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[153].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ComponentInstances); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[154].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ResourceInstancePlannedChange_Moved); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StackChangeProgress_ResourceInstancePlannedChange_Imported); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_Block); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_Attribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[158].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_NestedBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_Object); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[160].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema_DocString); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[161].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderPackageVersions_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[162].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProviderPackageVersions_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[163].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchProviderPackage_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[164].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchProviderPackage_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[165].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchProviderPackage_PlatformResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[166].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ModulePackageVersions_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[167].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ModulePackageVersions_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[168].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ModulePackageSourceAddr_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[169].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ModulePackageSourceAddr_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[170].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchModulePackage_Request); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_terraform1_proto_msgTypes[171].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchModulePackage_Response); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_terraform1_proto_msgTypes[43].OneofWrappers = []interface{}{ - (*StackChangeProgress_ComponentInstanceStatus_)(nil), - (*StackChangeProgress_ResourceInstanceStatus_)(nil), - (*StackChangeProgress_ResourceInstancePlannedChange_)(nil), - (*StackChangeProgress_ProvisionerStatus_)(nil), - (*StackChangeProgress_ProvisionerOutput_)(nil), - (*StackChangeProgress_ComponentInstanceChanges_)(nil), - (*StackChangeProgress_ComponentInstances_)(nil), - (*StackChangeProgress_DeferredResourceInstancePlannedChange_)(nil), - } - file_terraform1_proto_msgTypes[71].OneofWrappers = []interface{}{ - (*BuildProviderPluginCache_Event_Pending_)(nil), - (*BuildProviderPluginCache_Event_AlreadyInstalled)(nil), - (*BuildProviderPluginCache_Event_BuiltIn)(nil), - (*BuildProviderPluginCache_Event_QueryBegin)(nil), - (*BuildProviderPluginCache_Event_QuerySuccess)(nil), - (*BuildProviderPluginCache_Event_QueryWarnings)(nil), - (*BuildProviderPluginCache_Event_FetchBegin_)(nil), - (*BuildProviderPluginCache_Event_FetchComplete_)(nil), - (*BuildProviderPluginCache_Event_Diagnostic)(nil), - } - file_terraform1_proto_msgTypes[72].OneofWrappers = []interface{}{ - (*BuildProviderPluginCache_Request_InstallMethod_Direct)(nil), - (*BuildProviderPluginCache_Request_InstallMethod_LocalMirrorDir)(nil), - (*BuildProviderPluginCache_Request_InstallMethod_NetworkMirrorUrl)(nil), - } - file_terraform1_proto_msgTypes[113].OneofWrappers = []interface{}{ - (*PlanStackChanges_Event_PlannedChange)(nil), - (*PlanStackChanges_Event_Diagnostic)(nil), - (*PlanStackChanges_Event_Progress)(nil), - } - file_terraform1_proto_msgTypes[121].OneofWrappers = []interface{}{ - (*ApplyStackChanges_Event_AppliedChange)(nil), - (*ApplyStackChanges_Event_Diagnostic)(nil), - (*ApplyStackChanges_Event_Progress)(nil), - } - file_terraform1_proto_msgTypes[129].OneofWrappers = []interface{}{ - (*AttributePath_Step_AttributeName)(nil), - (*AttributePath_Step_ElementKeyString)(nil), - (*AttributePath_Step_ElementKeyInt)(nil), - } - file_terraform1_proto_msgTypes[130].OneofWrappers = []interface{}{ - (*PlannedChange_ChangeDescription_ComponentInstancePlanned)(nil), - (*PlannedChange_ChangeDescription_ResourceInstancePlanned)(nil), - (*PlannedChange_ChangeDescription_OutputValuePlanned)(nil), - (*PlannedChange_ChangeDescription_PlanApplyable)(nil), - (*PlannedChange_ChangeDescription_ResourceInstanceDeferred)(nil), - (*PlannedChange_ChangeDescription_ApplyTimeInputVariable)(nil), - } - file_terraform1_proto_msgTypes[140].OneofWrappers = []interface{}{ - (*AppliedChange_ChangeDescription_Deleted)(nil), - (*AppliedChange_ChangeDescription_Moved)(nil), - (*AppliedChange_ChangeDescription_ResourceInstance)(nil), - (*AppliedChange_ChangeDescription_OutputValue)(nil), - (*AppliedChange_ChangeDescription_ComponentInstance)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_terraform1_proto_rawDesc, - NumEnums: 13, - NumMessages: 172, + NumEnums: 1, + NumMessages: 5, NumExtensions: 0, - NumServices: 4, + NumServices: 0, }, GoTypes: file_terraform1_proto_goTypes, DependencyIndexes: file_terraform1_proto_depIdxs, @@ -14054,1574 +600,3 @@ func file_terraform1_proto_init() { file_terraform1_proto_goTypes = nil file_terraform1_proto_depIdxs = nil } - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// SetupClient is the client API for Setup service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SetupClient interface { - // Clients must call Handshake before any other function of any other - // service, to complete the capability negotiation step that may - // then affect the behaviors of subsequent operations. - // - // This function can be called only once per RPC server. - Handshake(ctx context.Context, in *Handshake_Request, opts ...grpc.CallOption) (*Handshake_Response, error) - // At any time after handshaking, clients may call Stop to initiate a - // graceful shutdown of the server. - Stop(ctx context.Context, in *Stop_Request, opts ...grpc.CallOption) (*Stop_Response, error) -} - -type setupClient struct { - cc grpc.ClientConnInterface -} - -func NewSetupClient(cc grpc.ClientConnInterface) SetupClient { - return &setupClient{cc} -} - -func (c *setupClient) Handshake(ctx context.Context, in *Handshake_Request, opts ...grpc.CallOption) (*Handshake_Response, error) { - out := new(Handshake_Response) - err := c.cc.Invoke(ctx, "/terraform1.Setup/Handshake", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *setupClient) Stop(ctx context.Context, in *Stop_Request, opts ...grpc.CallOption) (*Stop_Response, error) { - out := new(Stop_Response) - err := c.cc.Invoke(ctx, "/terraform1.Setup/Stop", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SetupServer is the server API for Setup service. -type SetupServer interface { - // Clients must call Handshake before any other function of any other - // service, to complete the capability negotiation step that may - // then affect the behaviors of subsequent operations. - // - // This function can be called only once per RPC server. - Handshake(context.Context, *Handshake_Request) (*Handshake_Response, error) - // At any time after handshaking, clients may call Stop to initiate a - // graceful shutdown of the server. - Stop(context.Context, *Stop_Request) (*Stop_Response, error) -} - -// UnimplementedSetupServer can be embedded to have forward compatible implementations. -type UnimplementedSetupServer struct { -} - -func (*UnimplementedSetupServer) Handshake(context.Context, *Handshake_Request) (*Handshake_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Handshake not implemented") -} -func (*UnimplementedSetupServer) Stop(context.Context, *Stop_Request) (*Stop_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") -} - -func RegisterSetupServer(s *grpc.Server, srv SetupServer) { - s.RegisterService(&_Setup_serviceDesc, srv) -} - -func _Setup_Handshake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Handshake_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SetupServer).Handshake(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Setup/Handshake", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SetupServer).Handshake(ctx, req.(*Handshake_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Setup_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Stop_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SetupServer).Stop(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Setup/Stop", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SetupServer).Stop(ctx, req.(*Stop_Request)) - } - return interceptor(ctx, in, info, handler) -} - -var _Setup_serviceDesc = grpc.ServiceDesc{ - ServiceName: "terraform1.Setup", - HandlerType: (*SetupServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Handshake", - Handler: _Setup_Handshake_Handler, - }, - { - MethodName: "Stop", - Handler: _Setup_Stop_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "terraform1.proto", -} - -// DependenciesClient is the client API for Dependencies service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DependenciesClient interface { - // Opens a source bundle that was already extracted into the filesystem - // somewhere, returning an opaque source bundle handle that can be used for - // subsequent operations. - OpenSourceBundle(ctx context.Context, in *OpenSourceBundle_Request, opts ...grpc.CallOption) (*OpenSourceBundle_Response, error) - // Closes a previously-opened source bundle, invalidating the given handle - // and therefore making it safe to delete or modify the bundle directory - // on disk. - CloseSourceBundle(ctx context.Context, in *CloseSourceBundle_Request, opts ...grpc.CallOption) (*CloseSourceBundle_Response, error) - // Reads and parses an existing dependency lock file from the filesystem, - // returning a dependency locks handle. - // - // This function parses a user-provided source file, and so invalid content - // in that file is treated as diagnostics in a successful response rather - // than as an RPC error. Callers must check whether the dependency locks - // handle in the response is set (non-zero) before using it, and treat - // an unset handle as indicating a user error which is described in the - // accompanying diagnostics. Diagnostics can also be returned along with - // a valid handle, e.g. if there are non-blocking warning diagnostics. - OpenDependencyLockFile(ctx context.Context, in *OpenDependencyLockFile_Request, opts ...grpc.CallOption) (*OpenDependencyLockFile_Response, error) - // Creates an in-memory-only dependency locks handle with a fixed set of - // dependency selections provided as arguments. - CreateDependencyLocks(ctx context.Context, in *CreateDependencyLocks_Request, opts ...grpc.CallOption) (*CreateDependencyLocks_Response, error) - CloseDependencyLocks(ctx context.Context, in *CloseDependencyLocks_Request, opts ...grpc.CallOption) (*CloseDependencyLocks_Response, error) - // Returns information about the provider version selections in a - // dependency locks object. - GetLockedProviderDependencies(ctx context.Context, in *GetLockedProviderDependencies_Request, opts ...grpc.CallOption) (*GetLockedProviderDependencies_Response, error) - // Populates a new provider plugin cache directory in the local filesystem - // based on the provider version selections in a given dependency locks - // object. - // - // This particular RPC can only install already-selected provider packages - // recorded in a dependency locks object; it does not support "upgrading" - // provider selections to newer versions as a CLI user would do with - // "terraform init -upgrade", because there would be no way to then - // commit the updated locks to disk as a lock file. - BuildProviderPluginCache(ctx context.Context, in *BuildProviderPluginCache_Request, opts ...grpc.CallOption) (Dependencies_BuildProviderPluginCacheClient, error) - // Opens an existing local filesystem directory as a provider plugin cache - // directory, returning a plugin cache handle that can be used with other - // RPC operations. - OpenProviderPluginCache(ctx context.Context, in *OpenProviderPluginCache_Request, opts ...grpc.CallOption) (*OpenProviderPluginCache_Response, error) - CloseProviderPluginCache(ctx context.Context, in *CloseProviderPluginCache_Request, opts ...grpc.CallOption) (*CloseProviderPluginCache_Response, error) - // Returns information about the specific provider packages that are - // available in the given provider plugin cache. - GetCachedProviders(ctx context.Context, in *GetCachedProviders_Request, opts ...grpc.CallOption) (*GetCachedProviders_Response, error) - // Returns information about the built-in providers that are compiled in - // to this Terraform Core server. - GetBuiltInProviders(ctx context.Context, in *GetBuiltInProviders_Request, opts ...grpc.CallOption) (*GetBuiltInProviders_Response, error) - // Returns a description of the schema for a particular provider in a - // given provider plugin cache, or of a particular built-in provider - // known to this version of Terraform Core. - // - // WARNING: This operation requires executing the selected provider plugin, - // which therefore allows it to run arbitrary code as a child process of - // this Terraform Core server, with access to all of the same resources. - // This should typically be used only with providers explicitly selected - // in a dependency lock file, so users can control what external code - // has the potential to run in a context that probably has access to - // private source code and other sensitive information. - GetProviderSchema(ctx context.Context, in *GetProviderSchema_Request, opts ...grpc.CallOption) (*GetProviderSchema_Response, error) -} - -type dependenciesClient struct { - cc grpc.ClientConnInterface -} - -func NewDependenciesClient(cc grpc.ClientConnInterface) DependenciesClient { - return &dependenciesClient{cc} -} - -func (c *dependenciesClient) OpenSourceBundle(ctx context.Context, in *OpenSourceBundle_Request, opts ...grpc.CallOption) (*OpenSourceBundle_Response, error) { - out := new(OpenSourceBundle_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/OpenSourceBundle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) CloseSourceBundle(ctx context.Context, in *CloseSourceBundle_Request, opts ...grpc.CallOption) (*CloseSourceBundle_Response, error) { - out := new(CloseSourceBundle_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/CloseSourceBundle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) OpenDependencyLockFile(ctx context.Context, in *OpenDependencyLockFile_Request, opts ...grpc.CallOption) (*OpenDependencyLockFile_Response, error) { - out := new(OpenDependencyLockFile_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/OpenDependencyLockFile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) CreateDependencyLocks(ctx context.Context, in *CreateDependencyLocks_Request, opts ...grpc.CallOption) (*CreateDependencyLocks_Response, error) { - out := new(CreateDependencyLocks_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/CreateDependencyLocks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) CloseDependencyLocks(ctx context.Context, in *CloseDependencyLocks_Request, opts ...grpc.CallOption) (*CloseDependencyLocks_Response, error) { - out := new(CloseDependencyLocks_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/CloseDependencyLocks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) GetLockedProviderDependencies(ctx context.Context, in *GetLockedProviderDependencies_Request, opts ...grpc.CallOption) (*GetLockedProviderDependencies_Response, error) { - out := new(GetLockedProviderDependencies_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/GetLockedProviderDependencies", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) BuildProviderPluginCache(ctx context.Context, in *BuildProviderPluginCache_Request, opts ...grpc.CallOption) (Dependencies_BuildProviderPluginCacheClient, error) { - stream, err := c.cc.NewStream(ctx, &_Dependencies_serviceDesc.Streams[0], "/terraform1.Dependencies/BuildProviderPluginCache", opts...) - if err != nil { - return nil, err - } - x := &dependenciesBuildProviderPluginCacheClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Dependencies_BuildProviderPluginCacheClient interface { - Recv() (*BuildProviderPluginCache_Event, error) - grpc.ClientStream -} - -type dependenciesBuildProviderPluginCacheClient struct { - grpc.ClientStream -} - -func (x *dependenciesBuildProviderPluginCacheClient) Recv() (*BuildProviderPluginCache_Event, error) { - m := new(BuildProviderPluginCache_Event) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *dependenciesClient) OpenProviderPluginCache(ctx context.Context, in *OpenProviderPluginCache_Request, opts ...grpc.CallOption) (*OpenProviderPluginCache_Response, error) { - out := new(OpenProviderPluginCache_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/OpenProviderPluginCache", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) CloseProviderPluginCache(ctx context.Context, in *CloseProviderPluginCache_Request, opts ...grpc.CallOption) (*CloseProviderPluginCache_Response, error) { - out := new(CloseProviderPluginCache_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/CloseProviderPluginCache", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) GetCachedProviders(ctx context.Context, in *GetCachedProviders_Request, opts ...grpc.CallOption) (*GetCachedProviders_Response, error) { - out := new(GetCachedProviders_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/GetCachedProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) GetBuiltInProviders(ctx context.Context, in *GetBuiltInProviders_Request, opts ...grpc.CallOption) (*GetBuiltInProviders_Response, error) { - out := new(GetBuiltInProviders_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/GetBuiltInProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dependenciesClient) GetProviderSchema(ctx context.Context, in *GetProviderSchema_Request, opts ...grpc.CallOption) (*GetProviderSchema_Response, error) { - out := new(GetProviderSchema_Response) - err := c.cc.Invoke(ctx, "/terraform1.Dependencies/GetProviderSchema", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DependenciesServer is the server API for Dependencies service. -type DependenciesServer interface { - // Opens a source bundle that was already extracted into the filesystem - // somewhere, returning an opaque source bundle handle that can be used for - // subsequent operations. - OpenSourceBundle(context.Context, *OpenSourceBundle_Request) (*OpenSourceBundle_Response, error) - // Closes a previously-opened source bundle, invalidating the given handle - // and therefore making it safe to delete or modify the bundle directory - // on disk. - CloseSourceBundle(context.Context, *CloseSourceBundle_Request) (*CloseSourceBundle_Response, error) - // Reads and parses an existing dependency lock file from the filesystem, - // returning a dependency locks handle. - // - // This function parses a user-provided source file, and so invalid content - // in that file is treated as diagnostics in a successful response rather - // than as an RPC error. Callers must check whether the dependency locks - // handle in the response is set (non-zero) before using it, and treat - // an unset handle as indicating a user error which is described in the - // accompanying diagnostics. Diagnostics can also be returned along with - // a valid handle, e.g. if there are non-blocking warning diagnostics. - OpenDependencyLockFile(context.Context, *OpenDependencyLockFile_Request) (*OpenDependencyLockFile_Response, error) - // Creates an in-memory-only dependency locks handle with a fixed set of - // dependency selections provided as arguments. - CreateDependencyLocks(context.Context, *CreateDependencyLocks_Request) (*CreateDependencyLocks_Response, error) - CloseDependencyLocks(context.Context, *CloseDependencyLocks_Request) (*CloseDependencyLocks_Response, error) - // Returns information about the provider version selections in a - // dependency locks object. - GetLockedProviderDependencies(context.Context, *GetLockedProviderDependencies_Request) (*GetLockedProviderDependencies_Response, error) - // Populates a new provider plugin cache directory in the local filesystem - // based on the provider version selections in a given dependency locks - // object. - // - // This particular RPC can only install already-selected provider packages - // recorded in a dependency locks object; it does not support "upgrading" - // provider selections to newer versions as a CLI user would do with - // "terraform init -upgrade", because there would be no way to then - // commit the updated locks to disk as a lock file. - BuildProviderPluginCache(*BuildProviderPluginCache_Request, Dependencies_BuildProviderPluginCacheServer) error - // Opens an existing local filesystem directory as a provider plugin cache - // directory, returning a plugin cache handle that can be used with other - // RPC operations. - OpenProviderPluginCache(context.Context, *OpenProviderPluginCache_Request) (*OpenProviderPluginCache_Response, error) - CloseProviderPluginCache(context.Context, *CloseProviderPluginCache_Request) (*CloseProviderPluginCache_Response, error) - // Returns information about the specific provider packages that are - // available in the given provider plugin cache. - GetCachedProviders(context.Context, *GetCachedProviders_Request) (*GetCachedProviders_Response, error) - // Returns information about the built-in providers that are compiled in - // to this Terraform Core server. - GetBuiltInProviders(context.Context, *GetBuiltInProviders_Request) (*GetBuiltInProviders_Response, error) - // Returns a description of the schema for a particular provider in a - // given provider plugin cache, or of a particular built-in provider - // known to this version of Terraform Core. - // - // WARNING: This operation requires executing the selected provider plugin, - // which therefore allows it to run arbitrary code as a child process of - // this Terraform Core server, with access to all of the same resources. - // This should typically be used only with providers explicitly selected - // in a dependency lock file, so users can control what external code - // has the potential to run in a context that probably has access to - // private source code and other sensitive information. - GetProviderSchema(context.Context, *GetProviderSchema_Request) (*GetProviderSchema_Response, error) -} - -// UnimplementedDependenciesServer can be embedded to have forward compatible implementations. -type UnimplementedDependenciesServer struct { -} - -func (*UnimplementedDependenciesServer) OpenSourceBundle(context.Context, *OpenSourceBundle_Request) (*OpenSourceBundle_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenSourceBundle not implemented") -} -func (*UnimplementedDependenciesServer) CloseSourceBundle(context.Context, *CloseSourceBundle_Request) (*CloseSourceBundle_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseSourceBundle not implemented") -} -func (*UnimplementedDependenciesServer) OpenDependencyLockFile(context.Context, *OpenDependencyLockFile_Request) (*OpenDependencyLockFile_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenDependencyLockFile not implemented") -} -func (*UnimplementedDependenciesServer) CreateDependencyLocks(context.Context, *CreateDependencyLocks_Request) (*CreateDependencyLocks_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateDependencyLocks not implemented") -} -func (*UnimplementedDependenciesServer) CloseDependencyLocks(context.Context, *CloseDependencyLocks_Request) (*CloseDependencyLocks_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseDependencyLocks not implemented") -} -func (*UnimplementedDependenciesServer) GetLockedProviderDependencies(context.Context, *GetLockedProviderDependencies_Request) (*GetLockedProviderDependencies_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLockedProviderDependencies not implemented") -} -func (*UnimplementedDependenciesServer) BuildProviderPluginCache(*BuildProviderPluginCache_Request, Dependencies_BuildProviderPluginCacheServer) error { - return status.Errorf(codes.Unimplemented, "method BuildProviderPluginCache not implemented") -} -func (*UnimplementedDependenciesServer) OpenProviderPluginCache(context.Context, *OpenProviderPluginCache_Request) (*OpenProviderPluginCache_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenProviderPluginCache not implemented") -} -func (*UnimplementedDependenciesServer) CloseProviderPluginCache(context.Context, *CloseProviderPluginCache_Request) (*CloseProviderPluginCache_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseProviderPluginCache not implemented") -} -func (*UnimplementedDependenciesServer) GetCachedProviders(context.Context, *GetCachedProviders_Request) (*GetCachedProviders_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetCachedProviders not implemented") -} -func (*UnimplementedDependenciesServer) GetBuiltInProviders(context.Context, *GetBuiltInProviders_Request) (*GetBuiltInProviders_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetBuiltInProviders not implemented") -} -func (*UnimplementedDependenciesServer) GetProviderSchema(context.Context, *GetProviderSchema_Request) (*GetProviderSchema_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProviderSchema not implemented") -} - -func RegisterDependenciesServer(s *grpc.Server, srv DependenciesServer) { - s.RegisterService(&_Dependencies_serviceDesc, srv) -} - -func _Dependencies_OpenSourceBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OpenSourceBundle_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).OpenSourceBundle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/OpenSourceBundle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).OpenSourceBundle(ctx, req.(*OpenSourceBundle_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_CloseSourceBundle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseSourceBundle_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).CloseSourceBundle(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/CloseSourceBundle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).CloseSourceBundle(ctx, req.(*CloseSourceBundle_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_OpenDependencyLockFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OpenDependencyLockFile_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).OpenDependencyLockFile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/OpenDependencyLockFile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).OpenDependencyLockFile(ctx, req.(*OpenDependencyLockFile_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_CreateDependencyLocks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateDependencyLocks_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).CreateDependencyLocks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/CreateDependencyLocks", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).CreateDependencyLocks(ctx, req.(*CreateDependencyLocks_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_CloseDependencyLocks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseDependencyLocks_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).CloseDependencyLocks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/CloseDependencyLocks", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).CloseDependencyLocks(ctx, req.(*CloseDependencyLocks_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_GetLockedProviderDependencies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetLockedProviderDependencies_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).GetLockedProviderDependencies(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/GetLockedProviderDependencies", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).GetLockedProviderDependencies(ctx, req.(*GetLockedProviderDependencies_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_BuildProviderPluginCache_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(BuildProviderPluginCache_Request) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(DependenciesServer).BuildProviderPluginCache(m, &dependenciesBuildProviderPluginCacheServer{stream}) -} - -type Dependencies_BuildProviderPluginCacheServer interface { - Send(*BuildProviderPluginCache_Event) error - grpc.ServerStream -} - -type dependenciesBuildProviderPluginCacheServer struct { - grpc.ServerStream -} - -func (x *dependenciesBuildProviderPluginCacheServer) Send(m *BuildProviderPluginCache_Event) error { - return x.ServerStream.SendMsg(m) -} - -func _Dependencies_OpenProviderPluginCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OpenProviderPluginCache_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).OpenProviderPluginCache(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/OpenProviderPluginCache", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).OpenProviderPluginCache(ctx, req.(*OpenProviderPluginCache_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_CloseProviderPluginCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseProviderPluginCache_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).CloseProviderPluginCache(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/CloseProviderPluginCache", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).CloseProviderPluginCache(ctx, req.(*CloseProviderPluginCache_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_GetCachedProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetCachedProviders_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).GetCachedProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/GetCachedProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).GetCachedProviders(ctx, req.(*GetCachedProviders_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_GetBuiltInProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetBuiltInProviders_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).GetBuiltInProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/GetBuiltInProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).GetBuiltInProviders(ctx, req.(*GetBuiltInProviders_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Dependencies_GetProviderSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetProviderSchema_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DependenciesServer).GetProviderSchema(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Dependencies/GetProviderSchema", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DependenciesServer).GetProviderSchema(ctx, req.(*GetProviderSchema_Request)) - } - return interceptor(ctx, in, info, handler) -} - -var _Dependencies_serviceDesc = grpc.ServiceDesc{ - ServiceName: "terraform1.Dependencies", - HandlerType: (*DependenciesServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "OpenSourceBundle", - Handler: _Dependencies_OpenSourceBundle_Handler, - }, - { - MethodName: "CloseSourceBundle", - Handler: _Dependencies_CloseSourceBundle_Handler, - }, - { - MethodName: "OpenDependencyLockFile", - Handler: _Dependencies_OpenDependencyLockFile_Handler, - }, - { - MethodName: "CreateDependencyLocks", - Handler: _Dependencies_CreateDependencyLocks_Handler, - }, - { - MethodName: "CloseDependencyLocks", - Handler: _Dependencies_CloseDependencyLocks_Handler, - }, - { - MethodName: "GetLockedProviderDependencies", - Handler: _Dependencies_GetLockedProviderDependencies_Handler, - }, - { - MethodName: "OpenProviderPluginCache", - Handler: _Dependencies_OpenProviderPluginCache_Handler, - }, - { - MethodName: "CloseProviderPluginCache", - Handler: _Dependencies_CloseProviderPluginCache_Handler, - }, - { - MethodName: "GetCachedProviders", - Handler: _Dependencies_GetCachedProviders_Handler, - }, - { - MethodName: "GetBuiltInProviders", - Handler: _Dependencies_GetBuiltInProviders_Handler, - }, - { - MethodName: "GetProviderSchema", - Handler: _Dependencies_GetProviderSchema_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "BuildProviderPluginCache", - Handler: _Dependencies_BuildProviderPluginCache_Handler, - ServerStreams: true, - }, - }, - Metadata: "terraform1.proto", -} - -// StacksClient is the client API for Stacks service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type StacksClient interface { - // Load and perform initial static validation of a stack configuration - // in a previously-opened source bundle. If successful, returns a - // stack configuration handle that can be used with other operations. - OpenStackConfiguration(ctx context.Context, in *OpenStackConfiguration_Request, opts ...grpc.CallOption) (*OpenStackConfiguration_Response, error) - // Close a previously-opened stack configuration using its handle. - CloseStackConfiguration(ctx context.Context, in *CloseStackConfiguration_Request, opts ...grpc.CallOption) (*CloseStackConfiguration_Response, error) - // Validate an open stack configuration. - ValidateStackConfiguration(ctx context.Context, in *ValidateStackConfiguration_Request, opts ...grpc.CallOption) (*ValidateStackConfiguration_Response, error) - // Analyze a stack configuration to find all of the components it declares. - // This is static analysis only, so it cannot produce dynamic information - // such as the number of instances of each component. - FindStackConfigurationComponents(ctx context.Context, in *FindStackConfigurationComponents_Request, opts ...grpc.CallOption) (*FindStackConfigurationComponents_Response, error) - // Load a stack state by sending a stream of raw state objects that were - // streamed from a previous ApplyStackChanges response. - OpenState(ctx context.Context, opts ...grpc.CallOption) (Stacks_OpenStateClient, error) - // Close a stack state handle, discarding the associated state. - CloseState(ctx context.Context, in *CloseStackState_Request, opts ...grpc.CallOption) (*CloseStackState_Response, error) - // Calculate a desired state from the given configuration and compare it - // with the current state to propose a set of changes to converge the - // current state with the desired state, at least in part. - PlanStackChanges(ctx context.Context, in *PlanStackChanges_Request, opts ...grpc.CallOption) (Stacks_PlanStackChangesClient, error) - // Load a previously-created plan by sending a stream of raw change objects - // that were streamed from a previous PlanStackChanges response. - OpenPlan(ctx context.Context, opts ...grpc.CallOption) (Stacks_OpenPlanClient, error) - // Close a saved plan handle, discarding the associated saved plan. - ClosePlan(ctx context.Context, in *CloseStackPlan_Request, opts ...grpc.CallOption) (*CloseStackPlan_Response, error) - // Execute the changes proposed by an earlier call to PlanStackChanges. - ApplyStackChanges(ctx context.Context, in *ApplyStackChanges_Request, opts ...grpc.CallOption) (Stacks_ApplyStackChangesClient, error) - // OpenStackInspector creates a stack inspector handle that can be used - // with subsequent calls to the "Inspect"-prefixed functions. - OpenStackInspector(ctx context.Context, in *OpenStackInspector_Request, opts ...grpc.CallOption) (*OpenStackInspector_Response, error) - // InspectExpressionResult evaluates an arbitrary expression in the context - // of a stack inspector handle. - InspectExpressionResult(ctx context.Context, in *InspectExpressionResult_Request, opts ...grpc.CallOption) (*InspectExpressionResult_Response, error) -} - -type stacksClient struct { - cc grpc.ClientConnInterface -} - -func NewStacksClient(cc grpc.ClientConnInterface) StacksClient { - return &stacksClient{cc} -} - -func (c *stacksClient) OpenStackConfiguration(ctx context.Context, in *OpenStackConfiguration_Request, opts ...grpc.CallOption) (*OpenStackConfiguration_Response, error) { - out := new(OpenStackConfiguration_Response) - err := c.cc.Invoke(ctx, "/terraform1.Stacks/OpenStackConfiguration", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *stacksClient) CloseStackConfiguration(ctx context.Context, in *CloseStackConfiguration_Request, opts ...grpc.CallOption) (*CloseStackConfiguration_Response, error) { - out := new(CloseStackConfiguration_Response) - err := c.cc.Invoke(ctx, "/terraform1.Stacks/CloseStackConfiguration", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *stacksClient) ValidateStackConfiguration(ctx context.Context, in *ValidateStackConfiguration_Request, opts ...grpc.CallOption) (*ValidateStackConfiguration_Response, error) { - out := new(ValidateStackConfiguration_Response) - err := c.cc.Invoke(ctx, "/terraform1.Stacks/ValidateStackConfiguration", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *stacksClient) FindStackConfigurationComponents(ctx context.Context, in *FindStackConfigurationComponents_Request, opts ...grpc.CallOption) (*FindStackConfigurationComponents_Response, error) { - out := new(FindStackConfigurationComponents_Response) - err := c.cc.Invoke(ctx, "/terraform1.Stacks/FindStackConfigurationComponents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *stacksClient) OpenState(ctx context.Context, opts ...grpc.CallOption) (Stacks_OpenStateClient, error) { - stream, err := c.cc.NewStream(ctx, &_Stacks_serviceDesc.Streams[0], "/terraform1.Stacks/OpenState", opts...) - if err != nil { - return nil, err - } - x := &stacksOpenStateClient{stream} - return x, nil -} - -type Stacks_OpenStateClient interface { - Send(*OpenStackState_RequestItem) error - CloseAndRecv() (*OpenStackState_Response, error) - grpc.ClientStream -} - -type stacksOpenStateClient struct { - grpc.ClientStream -} - -func (x *stacksOpenStateClient) Send(m *OpenStackState_RequestItem) error { - return x.ClientStream.SendMsg(m) -} - -func (x *stacksOpenStateClient) CloseAndRecv() (*OpenStackState_Response, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(OpenStackState_Response) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *stacksClient) CloseState(ctx context.Context, in *CloseStackState_Request, opts ...grpc.CallOption) (*CloseStackState_Response, error) { - out := new(CloseStackState_Response) - err := c.cc.Invoke(ctx, "/terraform1.Stacks/CloseState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *stacksClient) PlanStackChanges(ctx context.Context, in *PlanStackChanges_Request, opts ...grpc.CallOption) (Stacks_PlanStackChangesClient, error) { - stream, err := c.cc.NewStream(ctx, &_Stacks_serviceDesc.Streams[1], "/terraform1.Stacks/PlanStackChanges", opts...) - if err != nil { - return nil, err - } - x := &stacksPlanStackChangesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Stacks_PlanStackChangesClient interface { - Recv() (*PlanStackChanges_Event, error) - grpc.ClientStream -} - -type stacksPlanStackChangesClient struct { - grpc.ClientStream -} - -func (x *stacksPlanStackChangesClient) Recv() (*PlanStackChanges_Event, error) { - m := new(PlanStackChanges_Event) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *stacksClient) OpenPlan(ctx context.Context, opts ...grpc.CallOption) (Stacks_OpenPlanClient, error) { - stream, err := c.cc.NewStream(ctx, &_Stacks_serviceDesc.Streams[2], "/terraform1.Stacks/OpenPlan", opts...) - if err != nil { - return nil, err - } - x := &stacksOpenPlanClient{stream} - return x, nil -} - -type Stacks_OpenPlanClient interface { - Send(*OpenStackPlan_RequestItem) error - CloseAndRecv() (*OpenStackPlan_Response, error) - grpc.ClientStream -} - -type stacksOpenPlanClient struct { - grpc.ClientStream -} - -func (x *stacksOpenPlanClient) Send(m *OpenStackPlan_RequestItem) error { - return x.ClientStream.SendMsg(m) -} - -func (x *stacksOpenPlanClient) CloseAndRecv() (*OpenStackPlan_Response, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(OpenStackPlan_Response) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *stacksClient) ClosePlan(ctx context.Context, in *CloseStackPlan_Request, opts ...grpc.CallOption) (*CloseStackPlan_Response, error) { - out := new(CloseStackPlan_Response) - err := c.cc.Invoke(ctx, "/terraform1.Stacks/ClosePlan", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *stacksClient) ApplyStackChanges(ctx context.Context, in *ApplyStackChanges_Request, opts ...grpc.CallOption) (Stacks_ApplyStackChangesClient, error) { - stream, err := c.cc.NewStream(ctx, &_Stacks_serviceDesc.Streams[3], "/terraform1.Stacks/ApplyStackChanges", opts...) - if err != nil { - return nil, err - } - x := &stacksApplyStackChangesClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Stacks_ApplyStackChangesClient interface { - Recv() (*ApplyStackChanges_Event, error) - grpc.ClientStream -} - -type stacksApplyStackChangesClient struct { - grpc.ClientStream -} - -func (x *stacksApplyStackChangesClient) Recv() (*ApplyStackChanges_Event, error) { - m := new(ApplyStackChanges_Event) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *stacksClient) OpenStackInspector(ctx context.Context, in *OpenStackInspector_Request, opts ...grpc.CallOption) (*OpenStackInspector_Response, error) { - out := new(OpenStackInspector_Response) - err := c.cc.Invoke(ctx, "/terraform1.Stacks/OpenStackInspector", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *stacksClient) InspectExpressionResult(ctx context.Context, in *InspectExpressionResult_Request, opts ...grpc.CallOption) (*InspectExpressionResult_Response, error) { - out := new(InspectExpressionResult_Response) - err := c.cc.Invoke(ctx, "/terraform1.Stacks/InspectExpressionResult", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// StacksServer is the server API for Stacks service. -type StacksServer interface { - // Load and perform initial static validation of a stack configuration - // in a previously-opened source bundle. If successful, returns a - // stack configuration handle that can be used with other operations. - OpenStackConfiguration(context.Context, *OpenStackConfiguration_Request) (*OpenStackConfiguration_Response, error) - // Close a previously-opened stack configuration using its handle. - CloseStackConfiguration(context.Context, *CloseStackConfiguration_Request) (*CloseStackConfiguration_Response, error) - // Validate an open stack configuration. - ValidateStackConfiguration(context.Context, *ValidateStackConfiguration_Request) (*ValidateStackConfiguration_Response, error) - // Analyze a stack configuration to find all of the components it declares. - // This is static analysis only, so it cannot produce dynamic information - // such as the number of instances of each component. - FindStackConfigurationComponents(context.Context, *FindStackConfigurationComponents_Request) (*FindStackConfigurationComponents_Response, error) - // Load a stack state by sending a stream of raw state objects that were - // streamed from a previous ApplyStackChanges response. - OpenState(Stacks_OpenStateServer) error - // Close a stack state handle, discarding the associated state. - CloseState(context.Context, *CloseStackState_Request) (*CloseStackState_Response, error) - // Calculate a desired state from the given configuration and compare it - // with the current state to propose a set of changes to converge the - // current state with the desired state, at least in part. - PlanStackChanges(*PlanStackChanges_Request, Stacks_PlanStackChangesServer) error - // Load a previously-created plan by sending a stream of raw change objects - // that were streamed from a previous PlanStackChanges response. - OpenPlan(Stacks_OpenPlanServer) error - // Close a saved plan handle, discarding the associated saved plan. - ClosePlan(context.Context, *CloseStackPlan_Request) (*CloseStackPlan_Response, error) - // Execute the changes proposed by an earlier call to PlanStackChanges. - ApplyStackChanges(*ApplyStackChanges_Request, Stacks_ApplyStackChangesServer) error - // OpenStackInspector creates a stack inspector handle that can be used - // with subsequent calls to the "Inspect"-prefixed functions. - OpenStackInspector(context.Context, *OpenStackInspector_Request) (*OpenStackInspector_Response, error) - // InspectExpressionResult evaluates an arbitrary expression in the context - // of a stack inspector handle. - InspectExpressionResult(context.Context, *InspectExpressionResult_Request) (*InspectExpressionResult_Response, error) -} - -// UnimplementedStacksServer can be embedded to have forward compatible implementations. -type UnimplementedStacksServer struct { -} - -func (*UnimplementedStacksServer) OpenStackConfiguration(context.Context, *OpenStackConfiguration_Request) (*OpenStackConfiguration_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenStackConfiguration not implemented") -} -func (*UnimplementedStacksServer) CloseStackConfiguration(context.Context, *CloseStackConfiguration_Request) (*CloseStackConfiguration_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseStackConfiguration not implemented") -} -func (*UnimplementedStacksServer) ValidateStackConfiguration(context.Context, *ValidateStackConfiguration_Request) (*ValidateStackConfiguration_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidateStackConfiguration not implemented") -} -func (*UnimplementedStacksServer) FindStackConfigurationComponents(context.Context, *FindStackConfigurationComponents_Request) (*FindStackConfigurationComponents_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindStackConfigurationComponents not implemented") -} -func (*UnimplementedStacksServer) OpenState(Stacks_OpenStateServer) error { - return status.Errorf(codes.Unimplemented, "method OpenState not implemented") -} -func (*UnimplementedStacksServer) CloseState(context.Context, *CloseStackState_Request) (*CloseStackState_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method CloseState not implemented") -} -func (*UnimplementedStacksServer) PlanStackChanges(*PlanStackChanges_Request, Stacks_PlanStackChangesServer) error { - return status.Errorf(codes.Unimplemented, "method PlanStackChanges not implemented") -} -func (*UnimplementedStacksServer) OpenPlan(Stacks_OpenPlanServer) error { - return status.Errorf(codes.Unimplemented, "method OpenPlan not implemented") -} -func (*UnimplementedStacksServer) ClosePlan(context.Context, *CloseStackPlan_Request) (*CloseStackPlan_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClosePlan not implemented") -} -func (*UnimplementedStacksServer) ApplyStackChanges(*ApplyStackChanges_Request, Stacks_ApplyStackChangesServer) error { - return status.Errorf(codes.Unimplemented, "method ApplyStackChanges not implemented") -} -func (*UnimplementedStacksServer) OpenStackInspector(context.Context, *OpenStackInspector_Request) (*OpenStackInspector_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method OpenStackInspector not implemented") -} -func (*UnimplementedStacksServer) InspectExpressionResult(context.Context, *InspectExpressionResult_Request) (*InspectExpressionResult_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method InspectExpressionResult not implemented") -} - -func RegisterStacksServer(s *grpc.Server, srv StacksServer) { - s.RegisterService(&_Stacks_serviceDesc, srv) -} - -func _Stacks_OpenStackConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OpenStackConfiguration_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StacksServer).OpenStackConfiguration(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Stacks/OpenStackConfiguration", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StacksServer).OpenStackConfiguration(ctx, req.(*OpenStackConfiguration_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Stacks_CloseStackConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseStackConfiguration_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StacksServer).CloseStackConfiguration(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Stacks/CloseStackConfiguration", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StacksServer).CloseStackConfiguration(ctx, req.(*CloseStackConfiguration_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Stacks_ValidateStackConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidateStackConfiguration_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StacksServer).ValidateStackConfiguration(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Stacks/ValidateStackConfiguration", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StacksServer).ValidateStackConfiguration(ctx, req.(*ValidateStackConfiguration_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Stacks_FindStackConfigurationComponents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindStackConfigurationComponents_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StacksServer).FindStackConfigurationComponents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Stacks/FindStackConfigurationComponents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StacksServer).FindStackConfigurationComponents(ctx, req.(*FindStackConfigurationComponents_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Stacks_OpenState_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(StacksServer).OpenState(&stacksOpenStateServer{stream}) -} - -type Stacks_OpenStateServer interface { - SendAndClose(*OpenStackState_Response) error - Recv() (*OpenStackState_RequestItem, error) - grpc.ServerStream -} - -type stacksOpenStateServer struct { - grpc.ServerStream -} - -func (x *stacksOpenStateServer) SendAndClose(m *OpenStackState_Response) error { - return x.ServerStream.SendMsg(m) -} - -func (x *stacksOpenStateServer) Recv() (*OpenStackState_RequestItem, error) { - m := new(OpenStackState_RequestItem) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Stacks_CloseState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseStackState_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StacksServer).CloseState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Stacks/CloseState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StacksServer).CloseState(ctx, req.(*CloseStackState_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Stacks_PlanStackChanges_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(PlanStackChanges_Request) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(StacksServer).PlanStackChanges(m, &stacksPlanStackChangesServer{stream}) -} - -type Stacks_PlanStackChangesServer interface { - Send(*PlanStackChanges_Event) error - grpc.ServerStream -} - -type stacksPlanStackChangesServer struct { - grpc.ServerStream -} - -func (x *stacksPlanStackChangesServer) Send(m *PlanStackChanges_Event) error { - return x.ServerStream.SendMsg(m) -} - -func _Stacks_OpenPlan_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(StacksServer).OpenPlan(&stacksOpenPlanServer{stream}) -} - -type Stacks_OpenPlanServer interface { - SendAndClose(*OpenStackPlan_Response) error - Recv() (*OpenStackPlan_RequestItem, error) - grpc.ServerStream -} - -type stacksOpenPlanServer struct { - grpc.ServerStream -} - -func (x *stacksOpenPlanServer) SendAndClose(m *OpenStackPlan_Response) error { - return x.ServerStream.SendMsg(m) -} - -func (x *stacksOpenPlanServer) Recv() (*OpenStackPlan_RequestItem, error) { - m := new(OpenStackPlan_RequestItem) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func _Stacks_ClosePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CloseStackPlan_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StacksServer).ClosePlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Stacks/ClosePlan", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StacksServer).ClosePlan(ctx, req.(*CloseStackPlan_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Stacks_ApplyStackChanges_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(ApplyStackChanges_Request) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(StacksServer).ApplyStackChanges(m, &stacksApplyStackChangesServer{stream}) -} - -type Stacks_ApplyStackChangesServer interface { - Send(*ApplyStackChanges_Event) error - grpc.ServerStream -} - -type stacksApplyStackChangesServer struct { - grpc.ServerStream -} - -func (x *stacksApplyStackChangesServer) Send(m *ApplyStackChanges_Event) error { - return x.ServerStream.SendMsg(m) -} - -func _Stacks_OpenStackInspector_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OpenStackInspector_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StacksServer).OpenStackInspector(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Stacks/OpenStackInspector", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StacksServer).OpenStackInspector(ctx, req.(*OpenStackInspector_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Stacks_InspectExpressionResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InspectExpressionResult_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StacksServer).InspectExpressionResult(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Stacks/InspectExpressionResult", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StacksServer).InspectExpressionResult(ctx, req.(*InspectExpressionResult_Request)) - } - return interceptor(ctx, in, info, handler) -} - -var _Stacks_serviceDesc = grpc.ServiceDesc{ - ServiceName: "terraform1.Stacks", - HandlerType: (*StacksServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "OpenStackConfiguration", - Handler: _Stacks_OpenStackConfiguration_Handler, - }, - { - MethodName: "CloseStackConfiguration", - Handler: _Stacks_CloseStackConfiguration_Handler, - }, - { - MethodName: "ValidateStackConfiguration", - Handler: _Stacks_ValidateStackConfiguration_Handler, - }, - { - MethodName: "FindStackConfigurationComponents", - Handler: _Stacks_FindStackConfigurationComponents_Handler, - }, - { - MethodName: "CloseState", - Handler: _Stacks_CloseState_Handler, - }, - { - MethodName: "ClosePlan", - Handler: _Stacks_ClosePlan_Handler, - }, - { - MethodName: "OpenStackInspector", - Handler: _Stacks_OpenStackInspector_Handler, - }, - { - MethodName: "InspectExpressionResult", - Handler: _Stacks_InspectExpressionResult_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "OpenState", - Handler: _Stacks_OpenState_Handler, - ClientStreams: true, - }, - { - StreamName: "PlanStackChanges", - Handler: _Stacks_PlanStackChanges_Handler, - ServerStreams: true, - }, - { - StreamName: "OpenPlan", - Handler: _Stacks_OpenPlan_Handler, - ClientStreams: true, - }, - { - StreamName: "ApplyStackChanges", - Handler: _Stacks_ApplyStackChanges_Handler, - ServerStreams: true, - }, - }, - Metadata: "terraform1.proto", -} - -// PackagesClient is the client API for Packages service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type PackagesClient interface { - ProviderPackageVersions(ctx context.Context, in *ProviderPackageVersions_Request, opts ...grpc.CallOption) (*ProviderPackageVersions_Response, error) - FetchProviderPackage(ctx context.Context, in *FetchProviderPackage_Request, opts ...grpc.CallOption) (*FetchProviderPackage_Response, error) - ModulePackageVersions(ctx context.Context, in *ModulePackageVersions_Request, opts ...grpc.CallOption) (*ModulePackageVersions_Response, error) - ModulePackageSourceAddr(ctx context.Context, in *ModulePackageSourceAddr_Request, opts ...grpc.CallOption) (*ModulePackageSourceAddr_Response, error) - FetchModulePackage(ctx context.Context, in *FetchModulePackage_Request, opts ...grpc.CallOption) (*FetchModulePackage_Response, error) -} - -type packagesClient struct { - cc grpc.ClientConnInterface -} - -func NewPackagesClient(cc grpc.ClientConnInterface) PackagesClient { - return &packagesClient{cc} -} - -func (c *packagesClient) ProviderPackageVersions(ctx context.Context, in *ProviderPackageVersions_Request, opts ...grpc.CallOption) (*ProviderPackageVersions_Response, error) { - out := new(ProviderPackageVersions_Response) - err := c.cc.Invoke(ctx, "/terraform1.Packages/ProviderPackageVersions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *packagesClient) FetchProviderPackage(ctx context.Context, in *FetchProviderPackage_Request, opts ...grpc.CallOption) (*FetchProviderPackage_Response, error) { - out := new(FetchProviderPackage_Response) - err := c.cc.Invoke(ctx, "/terraform1.Packages/FetchProviderPackage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *packagesClient) ModulePackageVersions(ctx context.Context, in *ModulePackageVersions_Request, opts ...grpc.CallOption) (*ModulePackageVersions_Response, error) { - out := new(ModulePackageVersions_Response) - err := c.cc.Invoke(ctx, "/terraform1.Packages/ModulePackageVersions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *packagesClient) ModulePackageSourceAddr(ctx context.Context, in *ModulePackageSourceAddr_Request, opts ...grpc.CallOption) (*ModulePackageSourceAddr_Response, error) { - out := new(ModulePackageSourceAddr_Response) - err := c.cc.Invoke(ctx, "/terraform1.Packages/ModulePackageSourceAddr", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *packagesClient) FetchModulePackage(ctx context.Context, in *FetchModulePackage_Request, opts ...grpc.CallOption) (*FetchModulePackage_Response, error) { - out := new(FetchModulePackage_Response) - err := c.cc.Invoke(ctx, "/terraform1.Packages/FetchModulePackage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// PackagesServer is the server API for Packages service. -type PackagesServer interface { - ProviderPackageVersions(context.Context, *ProviderPackageVersions_Request) (*ProviderPackageVersions_Response, error) - FetchProviderPackage(context.Context, *FetchProviderPackage_Request) (*FetchProviderPackage_Response, error) - ModulePackageVersions(context.Context, *ModulePackageVersions_Request) (*ModulePackageVersions_Response, error) - ModulePackageSourceAddr(context.Context, *ModulePackageSourceAddr_Request) (*ModulePackageSourceAddr_Response, error) - FetchModulePackage(context.Context, *FetchModulePackage_Request) (*FetchModulePackage_Response, error) -} - -// UnimplementedPackagesServer can be embedded to have forward compatible implementations. -type UnimplementedPackagesServer struct { -} - -func (*UnimplementedPackagesServer) ProviderPackageVersions(context.Context, *ProviderPackageVersions_Request) (*ProviderPackageVersions_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProviderPackageVersions not implemented") -} -func (*UnimplementedPackagesServer) FetchProviderPackage(context.Context, *FetchProviderPackage_Request) (*FetchProviderPackage_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchProviderPackage not implemented") -} -func (*UnimplementedPackagesServer) ModulePackageVersions(context.Context, *ModulePackageVersions_Request) (*ModulePackageVersions_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ModulePackageVersions not implemented") -} -func (*UnimplementedPackagesServer) ModulePackageSourceAddr(context.Context, *ModulePackageSourceAddr_Request) (*ModulePackageSourceAddr_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method ModulePackageSourceAddr not implemented") -} -func (*UnimplementedPackagesServer) FetchModulePackage(context.Context, *FetchModulePackage_Request) (*FetchModulePackage_Response, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchModulePackage not implemented") -} - -func RegisterPackagesServer(s *grpc.Server, srv PackagesServer) { - s.RegisterService(&_Packages_serviceDesc, srv) -} - -func _Packages_ProviderPackageVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProviderPackageVersions_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PackagesServer).ProviderPackageVersions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Packages/ProviderPackageVersions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PackagesServer).ProviderPackageVersions(ctx, req.(*ProviderPackageVersions_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Packages_FetchProviderPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchProviderPackage_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PackagesServer).FetchProviderPackage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Packages/FetchProviderPackage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PackagesServer).FetchProviderPackage(ctx, req.(*FetchProviderPackage_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Packages_ModulePackageVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ModulePackageVersions_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PackagesServer).ModulePackageVersions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Packages/ModulePackageVersions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PackagesServer).ModulePackageVersions(ctx, req.(*ModulePackageVersions_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Packages_ModulePackageSourceAddr_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ModulePackageSourceAddr_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PackagesServer).ModulePackageSourceAddr(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Packages/ModulePackageSourceAddr", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PackagesServer).ModulePackageSourceAddr(ctx, req.(*ModulePackageSourceAddr_Request)) - } - return interceptor(ctx, in, info, handler) -} - -func _Packages_FetchModulePackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchModulePackage_Request) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(PackagesServer).FetchModulePackage(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/terraform1.Packages/FetchModulePackage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PackagesServer).FetchModulePackage(ctx, req.(*FetchModulePackage_Request)) - } - return interceptor(ctx, in, info, handler) -} - -var _Packages_serviceDesc = grpc.ServiceDesc{ - ServiceName: "terraform1.Packages", - HandlerType: (*PackagesServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ProviderPackageVersions", - Handler: _Packages_ProviderPackageVersions_Handler, - }, - { - MethodName: "FetchProviderPackage", - Handler: _Packages_FetchProviderPackage_Handler, - }, - { - MethodName: "ModulePackageVersions", - Handler: _Packages_ModulePackageVersions_Handler, - }, - { - MethodName: "ModulePackageSourceAddr", - Handler: _Packages_ModulePackageSourceAddr_Handler, - }, - { - MethodName: "FetchModulePackage", - Handler: _Packages_FetchModulePackage_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "terraform1.proto", -} diff --git a/internal/rpcapi/terraform1/terraform1.proto b/internal/rpcapi/terraform1/terraform1.proto index 88d7b83578..67a9fdccbc 100644 --- a/internal/rpcapi/terraform1/terraform1.proto +++ b/internal/rpcapi/terraform1/terraform1.proto @@ -4,360 +4,6 @@ syntax = "proto3"; package terraform1; -import "google/protobuf/any.proto"; - -service Setup { - // Clients must call Handshake before any other function of any other - // service, to complete the capability negotiation step that may - // then affect the behaviors of subsequent operations. - // - // This function can be called only once per RPC server. - rpc Handshake(Handshake.Request) returns (Handshake.Response); - - // At any time after handshaking, clients may call Stop to initiate a - // graceful shutdown of the server. - rpc Stop(Stop.Request) returns (Stop.Response); -} - -message Handshake { - message Request { - ClientCapabilities capabilities = 1; - Config config = 2; - } - message Response { - ServerCapabilities capabilities = 2; - } -} - -message Stop { - message Request { - } - message Response { - } -} - -// The capabilities that the client wishes to advertise to the server during -// handshake. -message ClientCapabilities { - // There are not yet any negotiatable capabilities. -} - -// The capabilities that the server wishes to advertise to the client during -// handshake. Fields in this message can also be used to acknowledge and -// confirm support for client capabilities advertised in ClientCapabilities, -// in situations where the client must vary its behavior based on the server's -// level of support. -message ServerCapabilities { - // There are not yet any negotiatable capabilities. -} - -service Dependencies { - // Opens a source bundle that was already extracted into the filesystem - // somewhere, returning an opaque source bundle handle that can be used for - // subsequent operations. - rpc OpenSourceBundle(OpenSourceBundle.Request) returns (OpenSourceBundle.Response); - - // Closes a previously-opened source bundle, invalidating the given handle - // and therefore making it safe to delete or modify the bundle directory - // on disk. - rpc CloseSourceBundle(CloseSourceBundle.Request) returns (CloseSourceBundle.Response); - - // Reads and parses an existing dependency lock file from the filesystem, - // returning a dependency locks handle. - // - // This function parses a user-provided source file, and so invalid content - // in that file is treated as diagnostics in a successful response rather - // than as an RPC error. Callers must check whether the dependency locks - // handle in the response is set (non-zero) before using it, and treat - // an unset handle as indicating a user error which is described in the - // accompanying diagnostics. Diagnostics can also be returned along with - // a valid handle, e.g. if there are non-blocking warning diagnostics. - rpc OpenDependencyLockFile(OpenDependencyLockFile.Request) returns (OpenDependencyLockFile.Response); - - // Creates an in-memory-only dependency locks handle with a fixed set of - // dependency selections provided as arguments. - rpc CreateDependencyLocks(CreateDependencyLocks.Request) returns (CreateDependencyLocks.Response); - - rpc CloseDependencyLocks(CloseDependencyLocks.Request) returns (CloseDependencyLocks.Response); - - // Returns information about the provider version selections in a - // dependency locks object. - rpc GetLockedProviderDependencies(GetLockedProviderDependencies.Request) returns (GetLockedProviderDependencies.Response); - - // Populates a new provider plugin cache directory in the local filesystem - // based on the provider version selections in a given dependency locks - // object. - // - // This particular RPC can only install already-selected provider packages - // recorded in a dependency locks object; it does not support "upgrading" - // provider selections to newer versions as a CLI user would do with - // "terraform init -upgrade", because there would be no way to then - // commit the updated locks to disk as a lock file. - rpc BuildProviderPluginCache(BuildProviderPluginCache.Request) returns (stream BuildProviderPluginCache.Event); - - // Opens an existing local filesystem directory as a provider plugin cache - // directory, returning a plugin cache handle that can be used with other - // RPC operations. - rpc OpenProviderPluginCache(OpenProviderPluginCache.Request) returns (OpenProviderPluginCache.Response); - - rpc CloseProviderPluginCache(CloseProviderPluginCache.Request) returns (CloseProviderPluginCache.Response); - - // Returns information about the specific provider packages that are - // available in the given provider plugin cache. - rpc GetCachedProviders(GetCachedProviders.Request) returns (GetCachedProviders.Response); - - // Returns information about the built-in providers that are compiled in - // to this Terraform Core server. - rpc GetBuiltInProviders(GetBuiltInProviders.Request) returns (GetBuiltInProviders.Response); - - // Returns a description of the schema for a particular provider in a - // given provider plugin cache, or of a particular built-in provider - // known to this version of Terraform Core. - // - // WARNING: This operation requires executing the selected provider plugin, - // which therefore allows it to run arbitrary code as a child process of - // this Terraform Core server, with access to all of the same resources. - // This should typically be used only with providers explicitly selected - // in a dependency lock file, so users can control what external code - // has the potential to run in a context that probably has access to - // private source code and other sensitive information. - rpc GetProviderSchema(GetProviderSchema.Request) returns (GetProviderSchema.Response); -} - -message Config { - map credentials = 1; -} - -message HostCredential { - string token = 1; -} - -message OpenSourceBundle { - message Request { - string local_path = 1; - } - message Response { - int64 source_bundle_handle = 1; - } -} - -message CloseSourceBundle { - message Request { - int64 source_bundle_handle = 1; - } - message Response { - } -} - -message OpenDependencyLockFile { - message Request { - int64 source_bundle_handle = 1; - SourceAddress source_address = 2; - } - message Response { - int64 dependency_locks_handle = 1; - repeated Diagnostic diagnostics = 2; - } -} - -message CreateDependencyLocks { - message Request { - // The provider selections to include in the locks object. - // - // A typical value would be the result of an earlier call to - // GetLockedProviderDependencies on some other locks object, - // e.g. if a caller needs to propagate a set of locks from one - // Terraform Core RPC server to another. - repeated ProviderPackage provider_selections = 1; - } - message Response { - int64 dependency_locks_handle = 1; - } -} - -message CloseDependencyLocks { - message Request { - int64 dependency_locks_handle = 1; - } - message Response { - } -} - -message GetLockedProviderDependencies { - message Request { - int64 dependency_locks_handle = 1; - } - message Response { - repeated ProviderPackage selected_providers = 1; - } -} - -message BuildProviderPluginCache { - message Request { - string cache_dir = 1; - int64 dependency_locks_handle = 2; - repeated InstallMethod installation_methods = 3; - - // If set, this populates the cache with plugins for a different - // platform than the one the Terraform Core RPC server is running on. - // If unset (empty) then the cache will be populated with packages - // for the same platform as Terraform Core was built for, if available. - // - // If this is set to a different platform than the Terraform Core RPC - // server's then the generated cache directory will appear empty to - // other operations on this server. - string override_platform = 4; - - message InstallMethod { - oneof source { - bool direct = 1; - string local_mirror_dir = 2; - string network_mirror_url = 3; - } - repeated string include = 4; - repeated string exclude = 5; - } - } - message Event { - oneof event { - Pending pending = 1; - ProviderVersion already_installed = 2; - - ProviderVersion built_in = 3; - ProviderConstraints query_begin = 4; - ProviderVersion query_success = 5; - ProviderWarnings query_warnings = 6; - - FetchBegin fetch_begin = 7; - FetchComplete fetch_complete = 8; - - Diagnostic diagnostic = 9; - } - - message Pending { - repeated ProviderConstraints expected = 1; - } - message ProviderConstraints { - string source_addr = 1; - string versions = 2; - } - message ProviderVersion { - string source_addr = 1; - string version = 2; - } - message ProviderWarnings { - string source_addr = 1; - repeated string warnings = 2; - } - message FetchBegin { - ProviderVersion provider_version = 1; - string location = 2; - } - message FetchComplete { - ProviderVersion provider_version = 1; - AuthResult auth_result = 2; - - // If auth_result is one of the "_SIGNED" variants then this - // might contain a UI-oriented identifier for the key that - // signed the package. The exact format of this string is not - // guaranteed; do not attempt to parse it or make automated - // decisions based on it. - string key_id_for_display = 3; - - enum AuthResult { - UNKNOWN = 0; - VERIFIED_CHECKSUM = 1; - OFFICIAL_SIGNED = 2; - PARTNER_SIGNED = 3; - SELF_SIGNED = 4; - } - } - } -} - -message OpenProviderPluginCache { - message Request { - string cache_dir = 1; - - // As with the field of the same name in BuildProviderPluginCache.Request. - // - // If this is set to anything other than this RPC server's native - // platform then any operations that require executing the provider - // plugin are likely to fail due to executable format errors or - // similar. However, it's valid to use the returned handle with - // GetCachedProviders, since it only analyzes the cache metadata - // and doesn't actually run the plugins inside. - string override_platform = 2; - } - message Response { - int64 provider_cache_handle = 1; - } -} - -message CloseProviderPluginCache { - message Request { - int64 provider_cache_handle = 1; - } - message Response { - } -} - -message GetCachedProviders { - message Request { - int64 provider_cache_handle = 1; - } - message Response { - repeated ProviderPackage available_providers = 1; - } -} - -message GetBuiltInProviders { - message Request { - } - message Response { - // The built-in providers that are compiled in to this Terraform Core - // server. - // - // This uses ProviderPackage messages for consistency with the other - // operations which list providers, but built-in providers do not - // have version numbers nor hashes so those fields will always be - // unset in the result. - repeated ProviderPackage available_providers = 1; - } -} - -message GetProviderSchema { - message Request { - // The address of the provider to retrieve schema for, using the - // typical provider source address syntax. - // - // When requesting schema based on a ProviderPackage message, populate - // this with its "source_addr" field. - string provider_addr = 1; - // The version number of the given provider to retrieve the schema - // of, which must have already been populated into the cache directory. - // - // Not supported for built-in providers because we can only access the - // single "version" of the provider that's compiled into this Terraform - // Core server, and so must be left unset or empty for those. - // - // When requesting schema based on a ProviderPackage message, populate - // this with its "version" field. - string provider_version = 2; - - // The handle for the previously-opened provider plugin cache to - // load the provider plugin from. - // - // Optional for built-in providers, but can still be specified in that - // case if desired so that callers can safely just send the handle they - // have in all cases and be naive about which providers are and are - // not built in. - int64 provider_cache_handle = 3; - } - message Response { - ProviderSchema schema = 1; - } -} // Represents a selected or available version of a provider, from either a // dependency lock object (selected) or a provider cache object (available). @@ -394,351 +40,6 @@ message ProviderPackage { repeated string hashes = 3; } -// ProviderSchema describes the full schema for a particular provider. -message ProviderSchema { - Schema provider_config = 1; - map managed_resource_types = 2; - map data_resource_types = 3; -} - -service Stacks { - // Load and perform initial static validation of a stack configuration - // in a previously-opened source bundle. If successful, returns a - // stack configuration handle that can be used with other operations. - rpc OpenStackConfiguration(OpenStackConfiguration.Request) - returns (OpenStackConfiguration.Response); - // Close a previously-opened stack configuration using its handle. - rpc CloseStackConfiguration(CloseStackConfiguration.Request) - returns (CloseStackConfiguration.Response); - // Validate an open stack configuration. - rpc ValidateStackConfiguration(ValidateStackConfiguration.Request) - returns (ValidateStackConfiguration.Response); - // Analyze a stack configuration to find all of the components it declares. - // This is static analysis only, so it cannot produce dynamic information - // such as the number of instances of each component. - rpc FindStackConfigurationComponents(FindStackConfigurationComponents.Request) - returns (FindStackConfigurationComponents.Response); - // Load a stack state by sending a stream of raw state objects that were - // streamed from a previous ApplyStackChanges response. - rpc OpenState(stream OpenStackState.RequestItem) returns (OpenStackState.Response); - // Close a stack state handle, discarding the associated state. - rpc CloseState(CloseStackState.Request) returns (CloseStackState.Response); - // Calculate a desired state from the given configuration and compare it - // with the current state to propose a set of changes to converge the - // current state with the desired state, at least in part. - rpc PlanStackChanges(PlanStackChanges.Request) - returns (stream PlanStackChanges.Event); - // Load a previously-created plan by sending a stream of raw change objects - // that were streamed from a previous PlanStackChanges response. - rpc OpenPlan(stream OpenStackPlan.RequestItem) returns (OpenStackPlan.Response); - // Close a saved plan handle, discarding the associated saved plan. - rpc ClosePlan(CloseStackPlan.Request) returns (CloseStackPlan.Response); - // Execute the changes proposed by an earlier call to PlanStackChanges. - rpc ApplyStackChanges(ApplyStackChanges.Request) - returns (stream ApplyStackChanges.Event); - // OpenStackInspector creates a stack inspector handle that can be used - // with subsequent calls to the "Inspect"-prefixed functions. - rpc OpenStackInspector(OpenStackInspector.Request) - returns (OpenStackInspector.Response); - // InspectExpressionResult evaluates an arbitrary expression in the context - // of a stack inspector handle. - rpc InspectExpressionResult(InspectExpressionResult.Request) - returns (InspectExpressionResult.Response); -} - -message OpenStackConfiguration { - message Request { - int64 source_bundle_handle = 1; - SourceAddress source_address = 2; - } - message Response { - int64 stack_config_handle = 1; - repeated Diagnostic diagnostics = 2; - } -} - -message CloseStackConfiguration { - message Request { - int64 stack_config_handle = 1; - } - message Response { - } -} - -message ValidateStackConfiguration { - message Request { - int64 stack_config_handle = 1; - int64 dependency_locks_handle = 2; - int64 provider_cache_handle = 3; - } - message Response { - repeated Diagnostic diagnostics = 1; - } -} - -message FindStackConfigurationComponents { - message Request { - int64 stack_config_handle = 1; - } - message Response { - StackConfig config = 1; - } - - enum Instances { - SINGLE = 0; - COUNT = 1; - FOR_EACH = 2; - } - message StackConfig { - map components = 1; - map embedded_stacks = 2; - map input_variables = 3; - map output_values = 4; - } - message EmbeddedStack { - string source_addr = 1; - Instances instances = 2; - StackConfig config = 3; - } - message Component { - string source_addr = 1; - Instances instances = 2; - string component_addr = 3; - } - message InputVariable { - bool optional = 1; - bool sensitive = 2; - bool ephemeral = 3; - } - message OutputValue { - bool sensitive = 1; - bool ephemeral = 2; - } -} - -message OpenStackState { - message RequestItem { - AppliedChange.RawChange raw = 1; - } - message Response { - int64 state_handle = 1; - } -} - -message CloseStackState { - message Request { - int64 state_handle = 1; - } - message Response { - } -} - -message PlanStackChanges { - message Request { - PlanMode plan_mode = 1; - int64 stack_config_handle = 2; - int64 previous_state_handle = 7; - map previous_state = 3 [deprecated = true]; - int64 dependency_locks_handle = 4; - int64 provider_cache_handle = 5; - map input_values = 6; - // TODO: Various other planning options - } - message Event { - oneof event { - PlannedChange planned_change = 1; - Diagnostic diagnostic = 2; - StackChangeProgress progress = 10; - } - reserved 3 to 9; // formerly used for individual progress events - } -} - -message OpenStackPlan { - message RequestItem { - google.protobuf.Any raw = 1; - } - message Response { - int64 plan_handle = 1; - } -} - -message CloseStackPlan { - message Request { - int64 plan_handle = 1; - } - message Response { - } -} - -message ApplyStackChanges { - message Request { - // This must refer to exactly the same configuration that was - // passed to PlanStackChanges when creating this plan, or the - // results will be unpredictable. - int64 stack_config_handle = 1; - // The caller should send all of the keys present in the previous - // apply's description map. Terraform Core will use this for - // situations such as updating existing descriptions to newer - // formats even if no change is being made to the corresponding - // real objects. - repeated string known_description_keys = 3; - // The handle for a saved plan previously loaded using the - // Stacks.OpenPlan function. - // Applying a plan immediately invalidates it, so the handle will - // be automatically closed. - int64 plan_handle = 8; - // This must include all of the "raw" values emitted through - // PlannedChange events during the PlanStackChanges operation - // that created this plan, concatenated together in the same - // order they were written to the PlanStackChanges event stream. - // - // Use plan_handle instead. This will be removed in future. - repeated google.protobuf.Any planned_changes = 4 [deprecated = true]; - // This must be equivalent to the argument of the same name - // passed to PlanStackChanges when creating this plan. - int64 dependency_locks_handle = 5; - // This must be equivalent to the argument of the same name - // passed to PlanStackChanges when creating this plan. - int64 provider_cache_handle = 6; - - // Any input variables identified as an "apply-time input variable" - // in the plan must have values provided here. - // - // Callers may also optionally include values for other declared input - // variables, but if so their values must exactly match those used when - // creating the plan. - map input_values = 7; - - reserved 2; // (formerly the previous state, but we now propagate that as part of planned_changes as an implementation detail) - } - message Event { - oneof event { - AppliedChange applied_change = 1; - Diagnostic diagnostic = 2; - StackChangeProgress progress = 3; - } - } -} - -message OpenStackInspector { - message Request { - int64 stack_config_handle = 1; - map state = 2; - int64 dependency_locks_handle = 3; - int64 provider_cache_handle = 4; - map input_values = 5; - } - message Response { - int64 stack_inspector_handle = 1; - repeated Diagnostic diagnostics = 2; - } -} - -message InspectExpressionResult { - message Request { - int64 stack_inspector_handle = 1; - bytes expression_src = 2; - string stack_addr = 3; - } - message Response { - // The result of evaluating the expression, if successful enough to - // produce a result. Unpopulated if the expression was too invalid - // to produce a result, with the problem then described in the - // associated diagnostics. - // - // Uses a MessagePack encoding with in-band type information. - DynamicValue result = 1; - repeated Diagnostic diagnostics = 2; - } -} - -// Represents dynamically-typed data from within the Terraform language. -// Typically only one of the available serialization formats will be populated, -// depending on what serializations are appropriate for a particular context -// and what capabilities the client and the server negotiated during Handshake. -message DynamicValue { - bytes msgpack = 1; // The default serialization format - repeated AttributePath sensitive = 2; // Paths to any sensitive-marked values. -} - -// Represents a change of some object from one dynamic value to another. -message DynamicValueChange { - DynamicValue old = 1; - DynamicValue new = 2; -} - -// Represents a DynamicValue accompanied by a source location where it was -// presumably defined, for values that originated in configuration files for -// situations such as returning error messages. -message DynamicValueWithSource { - DynamicValue value = 1; - SourceRange source_range = 2; -} - -message AttributePath { - message Step { - oneof selector { - // Set "attribute_name" to represent looking up an attribute - // in the current object value. - string attribute_name = 1; - // Set "element_key_*" to represent looking up an element in - // an indexable collection type. - string element_key_string = 2; - int64 element_key_int = 3; - } - } - repeated Step steps = 1; -} - -// Represents the address of a specific component instance within a stack. -message ComponentInstanceInStackAddr { - // The address of the static component that this is an instance of. - string component_addr = 1; - // The address of the instance that's being announced. For - // multi-instance components this could have any combination of - // instance keys on the component itself or instance keys on any - // of the containing embedded stacks. - string component_instance_addr = 2; -} - -// Represents the address of a specific resource instance inside a specific -// component instance within the containing stack. -message ResourceInstanceInStackAddr { - // Unique address of the component instance that this resource instance - // belongs to. This is comparable with - string component_instance_addr = 1; - // Unique address of the resource instance within the given component - // instance. Each component instance has a separate namespace of - // resource instance addresses, so callers must take both fields together - // to produce a key that's unique throughout the entire plan. - string resource_instance_addr = 2; -} - -// Represents the address of a specific resource instance object inside a -// specific component instance within the containing stack. -message ResourceInstanceObjectInStackAddr { - // Unique address of the component instance that this resource instance - // belongs to. This is comparable with - string component_instance_addr = 1; - // Unique address of the resource instance within the given component - // instance. Each component instance has a separate namespace of - // resource instance addresses, so callers must take both fields together - // to produce a key that's unique throughout the entire plan. - string resource_instance_addr = 2; - // Optional "deposed key" populated only for non-current (deposed) objects, - // which can appear for "create before destroy" replacements where the - // create succeeds but then the destroy fails, leaving us with two different - // objects to track for the same resource instance. - string deposed_key = 3; -} - -enum ResourceMode { - UNKNOWN = 0; - MANAGED = 1; - DATA = 2; -} - // A source address in the same form as it would appear in a Terraform // configuration: a source string combined with an optional version constraint // string, where the latter is valid only for registry module addresses. @@ -751,461 +52,6 @@ message SourceAddress { string versions = 2; } -enum PlanMode { - NORMAL = 0; - REFRESH_ONLY = 1; - DESTROY = 2; -} - -enum ChangeType { - NOOP = 0; - READ = 1; - CREATE = 2; - UPDATE = 3; - DELETE = 4; - FORGET = 5; -} - -// Describes one item in a stack plan. The overall plan is the concatentation -// of all messages of this type emitted as events during the plan; splitting -// this information over multiple messages just allows the individual events -// to double as progress notifications for an interactive UI. -message PlannedChange { - // Terraform Core's internal representation(s) of this change. Callers - // must provide the messages in this field, if any, verbatim to the - // ApplyStackChanges RPC in order to apply this change, and must not - // attempt to decode or analyze the contents because they are subject - // to change in future versions of Terraform Core. - // - // This might be unpopulated if this message represents only information - // for the caller and Terraform Core doesn't actually need to recall this - // information during the apply step. Callers must append each raw item - // to the raw plan in the order specified, and provide them all together - // in the same order to ApplyStackChanges. - repeated google.protobuf.Any raw = 1; - - // Caller-facing descriptions of this change, to use for presenting - // information to end-users in the UI and for other subsystems such as - // imposing policy rules on the resulting plan. - // - // There can be zero or more description objects associated with each - // change. More than one is not common, but should be supported by clients - // by treating them the same way as if each description had arrived in - // a separate PlannedChange message. Clients should not treat the grouping - // or not-grouping of change description objects as meaningful information, - // since it's subject to change in future Terraform Core versions. - // - // DO NOT attempt to use this to surgically filter particular changes - // from a larger plan. Although external descriptions often match with - // the raw representations in field "raw", that is not guaranteed and - // Terraform Core assumes that it will always be provided with the full - // set of raw messages -- in the same order they were emitted -- during - // the apply step. For example, some raw messages might omit information - // that is implied by earlier raw messages and would therefore be - // incomplete if isolated. - repeated ChangeDescription descriptions = 2; - reserved 3 to 6; // formerly used for an inline "oneof description", now factored out into a separate message type - - // Represents a single caller-facing description of a change, to use for - // presenting information to end users in the UI and for other subsystems - // such as imposing policy rules on the resulting plan. - // - // New description types might be added in future versions of Terraform - // Core, and so clients should tolerate description messages that appear - // to have none of the oneof fields set, and should just ignore those - // messages entirely. - message ChangeDescription { - oneof description { - ComponentInstance component_instance_planned = 1; - ResourceInstance resource_instance_planned = 2; - OutputValue output_value_planned = 3; - bool plan_applyable = 4; - ResourceInstanceDeferred resource_instance_deferred = 5; - InputVariableDuringApply apply_time_input_variable = 6; - } - } - - // Reports the existence of a particular instance of a component, - // once Terraform has resolved arguments such as "for_each" that - // might make the set of instances dynamic. - message ComponentInstance { - ComponentInstanceInStackAddr addr = 1; - // The changes to the existence of this instance relative to the - // prior state. This only considers the component instance directly, - // and doesn't take into account what actions are planned for any - // resource instances inside. - repeated ChangeType actions = 2; - // A flag for whether applying this plan is expected to cause the - // desired state and actual state to become converged. - // - // If this field is false, that means Terraform expects that at least - // one more plan/apply round will be needed to reach convergence. - // - // If this field is true then Terraform hopes to be able to converge - // after this plan is applied, but callers should ideally still check - // anyway by running one more plan to confirm that there aren't any - // unexpected differences caused by such situations as contradictory - // configuration or provider bugs. - bool plan_complete = 3; - } - message ResourceInstance { - ResourceInstanceObjectInStackAddr addr = 1; - repeated ChangeType actions = 2; - DynamicValueChange values = 3; - Moved moved = 4; - Imported imported = 5; - ResourceMode resource_mode = 6; - string resource_type = 7; - string provider_addr = 8; - - // previous_run_value is included only if it would be - // different from values.old, which typically means that - // Terraform detected some changes made outside of Terraform - // since the previous run. In that case, this field is - // the un-refreshed (but still upgraded) value from - // the previous run and values.old is the refreshed version. - // - // If this isn't set then values.old should be used as the - // previous run value, if needed. - DynamicValue previous_run_value = 9; - - // This flag is set if Terraform Core considers the difference - // between previous_run_value and values.old to be "notable", - // which is a heuristic subject to change over time but is - // broadly intended to mean that it would be worth mentioning - // the difference between the two in the UI as a - // "change outside of Terraform". If this isn't set then the - // difference is probably not worth mentioning to the user - // by default, although it could still be shown behind an - // optional disclosure in UI contexts where such things are possible. - bool notable_change_outside = 10; - - repeated AttributePath replace_paths = 11; - - string resource_name = 12; - Index index = 13; - string module_addr = 14; - string action_reason = 15; - - message Index { - DynamicValue value = 1; - bool unknown = 2; - } - - message Moved { - ResourceInstanceInStackAddr prev_addr = 1; - } - message Imported { - string import_id = 1; - bool unknown = 2; - string generated_config = 3; - } - } - // Note: this is only for output values from the topmost - // stack configuration, because all other output values are - // internal to the configuration and not part of its public API. - message OutputValue { - string name = 1; - repeated ChangeType actions = 2; - DynamicValueChange values = 3; - } - - message ResourceInstanceDeferred { - ResourceInstance resource_instance = 1; - Deferred deferred = 2; - } - - // Describes an input variable that must have a value provided - // during the apply phase. - // - // This currently arises only when the variable was declared - // as ephemeral and was set to a non-null value during the planning - // phase. - message InputVariableDuringApply { - string name = 1; - } -} - -// Deferred contains all the metadata about a the deferral of a resource -// instance change. -message Deferred { - // Reason describes the reason why a resource instance change was - // deferred. - enum Reason { - INVALID = 0; - INSTANCE_COUNT_UNKNOWN = 1; - RESOURCE_CONFIG_UNKNOWN = 2; - PROVIDER_CONFIG_UNKNOWN = 3; - ABSENT_PREREQ = 4; - DEFERRED_PREREQ = 5; - } - Reason reason = 1; -} - -// Describes a change made during a Stacks.ApplyStackChanges call. -// -// All of the events of this type taken together represent a sort of "patch" -// modifying the two data structures that the caller must maintain: the -// raw state map, and the description map. Callers must apply these changes -// in the order of the emission of the messages and then retain the entirety -// of both data structures to populate fields in the next PlanStackChanges call. -message AppliedChange { - // Terraform Core's internal representation of the change, presented as - // a sequence of modifications to the raw state data structure. - // - // For each element, in order: - // - If both key and value are set and the key matches an element - // already in the raw state map, the new value replaces the existing one. - // - If both key and value are set but the key does not match an - // element in the raw state map, this represents inserting a new element - // into the map. - // - If key is set and value is not, this represents removing any existing - // element from the raw state map which has the given key, or a no-op - // if no such element exists. - // - No other situation is legal. - // - // This sequence can potentially be zero-length if a particular event only - // has a external-facing "description" component and no raw equivalent. In - // that case the raw state map is unmodified. - repeated RawChange raw = 1; - - // Caller-facing description of this change, to use for presenting - // information to end-users in the UI and for other subsystems such as - // billing. - // - // Callers are expected to maintain a map of description objects that - // gets updated piecemeal by messages in this field. Callers must treat - // the keys as entirely opaque and thus treat the resulting data structure - // as if it were an unsorted set of ChangeDescription objects; the keys - // exist only to allow patching the data structure over time. - // - // For each element, in order: - // - If both key and description are set and the key matches an element - // from the previous apply's description map, the new value replaces - // the existing one. - // - If both key and value are set but the key does not match an - // element in the previous apply's description map, this represents - // inserting a new element into the map. - // - If key is set and description is "deleted", this represents removing - // any existing element from the previous apply's description map which - // has the given key, or a no-op if no such element exists. - // - If a description field is set that the caller doesn't understand, - // the caller should still write it to the updated description map - // but ignore it in further processing. - // - No other situation is legal. - // - // Callers MUST preserve the verbatim description message in the - // description map, even if it contains fields that are not present in - // the caller's current protobuf stubs. In other words, callers must use - // a protocol buffers implementation that is able to preserve unknown - // fields and store them so that future versions of the caller might - // use an updated set of stubs to interact with the previously-stored - // description. - // - // DO NOT attempt to use this to surgically filter particular raw state - // updates from a larger plan. Although external descriptions often match - // with the raw representations in field "raw", that is not guaranteed and - // Terraform Core assumes that it will always be provided with the full - // raw state map during the next plan step. - repeated ChangeDescription descriptions = 2; - - message RawChange { - string key = 1; - google.protobuf.Any value = 2; - } - message ChangeDescription { - string key = 1; - oneof description { - Nothing deleted = 4; // explicitly represents the absence of a description - Nothing moved = 6; // explicitly represents the absence of a description - ResourceInstance resource_instance = 2; - OutputValue output_value = 3; - ComponentInstance component_instance = 5; - } - // Field number 20000 is reserved as a field number that will - // always be unknown to any client, to allow clients to test - // whether they correctly preserve unexpected fields. - reserved 20000; - } - message ResourceInstance { - ResourceInstanceObjectInStackAddr addr = 1; - DynamicValue new_value = 2; - ResourceMode resource_mode = 4; - string resource_type = 5; - string provider_addr = 6; - - // Sometimes Terraform needs to make changes to a resource in - // multiple steps during the apply phase, with each step - // changing something about the state. This flag will be set - // for such interim updates, and left unset for whatever - // description Terraform Core considers to be "final", at - // which point the new value should be converged with the - // desired state. - // - // The intended use for this is when presenting updated values - // to users in the UI, where it might be best to ignore or - // present differently interim updates to avoid creating - // confusion by showing the not-yet-converged intermediate - // states. - // - // If Terraform encounters a problem during the apply phase - // and needs to stop partway through then a "final" change - // description might never arrive. In that case, callers - // should save the most recent interim object as the final - // description, since it would represent the most accurate - // description of the state the remote system has been left - // in. - bool interim = 3; - } - message ComponentInstance { - string component_addr = 3; - string component_instance_addr = 1; - map output_values = 2; - } - message OutputValue { - string name = 1; - DynamicValue new_value = 2; - } - message Nothing {} -} - -// A container for "progress report" events in both Stacks.PlanStackChanges -// and Stacks.ApplyStackChanges, which share this message type to allow -// clients to share event-handling code between the two phases. -message StackChangeProgress { - // Some event types are relevant only to one of the two operations, while - // others are common across both but will include different status codes, - // etc in different phases. - oneof event { - ComponentInstanceStatus component_instance_status = 1; - ResourceInstanceStatus resource_instance_status = 2; - ResourceInstancePlannedChange resource_instance_planned_change = 3; - ProvisionerStatus provisioner_status = 4; - ProvisionerOutput provisioner_output = 5; - ComponentInstanceChanges component_instance_changes = 6; - ComponentInstances component_instances = 7; - DeferredResourceInstancePlannedChange deferred_resource_instance_planned_change = 8; - } - - // ComponentInstanceStatus describes the current status of a component instance - // undergoing a plan or apply operation. - message ComponentInstanceStatus { - ComponentInstanceInStackAddr addr = 1; - Status status = 2; - - enum Status { - INVALID = 0; - PENDING = 1; - PLANNING = 2; - PLANNED = 3; - APPLYING = 4; - APPLIED = 5; - ERRORED = 6; - DEFERRED = 7; - } - } - - // ComponentInstanceStatus describes the current status of a resource instance - // undergoing a plan or apply operation. - message ResourceInstanceStatus { - ResourceInstanceObjectInStackAddr addr = 1; - Status status = 2; - string provider_addr = 3; - - enum Status { - INVALID = 0; - PENDING = 1; - REFRESHING = 2; - REFRESHED = 3; - PLANNING = 4; - PLANNED = 5; - APPLYING = 6; - APPLIED = 7; - ERRORED = 8; - } - } - - // ResourceInstancePlannedChange describes summary information about a planned - // change for a resource instance. This does not include the full object change, - // which is described in PlannedChange.ResourceChange. The information in this - // message is intended for the event stream and need not include the instance's - // full object values. - message ResourceInstancePlannedChange { - ResourceInstanceObjectInStackAddr addr = 1; - repeated ChangeType actions = 2; - Moved moved = 3; - Imported imported = 4; - string provider_addr = 5; - - message Moved { - ResourceInstanceInStackAddr prev_addr = 1; - } - message Imported { - string import_id = 1; - bool unknown = 2; - } - } - - // DeferredResourceInstancePlannedChange represents a planned change for a - // resource instance that is deferred due to the reason provided. - message DeferredResourceInstancePlannedChange { - Deferred deferred = 1; - ResourceInstancePlannedChange change = 2; - } - - // ProvisionerStatus represents the progress of a given provisioner during its - // resource instance's apply operation. - message ProvisionerStatus { - ResourceInstanceObjectInStackAddr addr = 1; - string name = 2; - ProvisionerStatus status = 3; - - enum Status { - INVALID = 0; - PROVISIONING = 1; - PROVISIONED = 2; - ERRORED = 3; - } - } - - // ProvisionerOutput represents recorded output data emitted by a provisioner - // during a resource instance's apply operation. - message ProvisionerOutput { - ResourceInstanceObjectInStackAddr addr = 1; - string name = 2; - string output = 3; - } - - // ComponentInstanceChanges represents a roll-up of change counts for a - // component instance plan or apply operation. - message ComponentInstanceChanges { - ComponentInstanceInStackAddr addr = 1; - - // total is the sum of all of the other count fields. - // - // Clients should sum all of the other count fields they know about - // and compare to total. If the sum is less than total then the - // difference should be treated as an "other change types" category, - // for forward-compatibility when the Terraform Core RPC server is - // using a newer version of this protocol than the client. - int32 total = 2; - int32 add = 3; - int32 change = 4; - int32 import = 5; - int32 remove = 6; - int32 defer = 7; - int32 move = 8; - int32 forget = 9; - } - - // ComponentInstances represents the result of expanding a component into zero - // or more instances. - message ComponentInstances { - string component_addr = 1; - repeated string instance_addrs = 2; - } -} - message Diagnostic { enum Severity { INVALID = 0; @@ -1230,151 +76,3 @@ message SourcePos { int64 line = 2; int64 column = 3; } - -// Schema describes a schema for an instance of a particular object, such as -// a resource type or a provider's overall configuration. -message Schema { - // Block is the top level configuration block for this schema. - Block block = 1; - - message Block { - repeated Attribute attributes = 1; - repeated NestedBlock block_types = 2; - DocString description = 3; - bool deprecated = 4; - } - - message Attribute { - string name = 1; - bytes type = 2; - Object nested_type = 10; - DocString description = 3; - bool required = 4; - bool optional = 5; - bool computed = 6; - bool sensitive = 7; - bool deprecated = 8; - } - - message NestedBlock { - enum NestingMode { - INVALID = 0; - SINGLE = 1; - LIST = 2; - SET = 3; - MAP = 4; - GROUP = 5; - } - - string type_name = 1; - Block block = 2; - NestingMode nesting = 3; - } - - message Object { - enum NestingMode { - INVALID = 0; - SINGLE = 1; - LIST = 2; - SET = 3; - MAP = 4; - } - - repeated Attribute attributes = 1; - NestingMode nesting = 3; - } - - message DocString { - string description = 1; - Format format = 2; - - enum Format { - PLAIN = 0; - MARKDOWN = 1; - } - } -} - -// The Packages service provides helper functions for retrieving Terraform -// modules and providers. -// -// Unlike the Dependencies service, the Packages service does not require any -// existing configuration or sourcebundle to function. -// -// This service is designed for use with a specific command-line tool, and is -// currently experimental. It can be changed and removed without warning, even -// in patch releases. -service Packages { - rpc ProviderPackageVersions(ProviderPackageVersions.Request) returns (ProviderPackageVersions.Response); - rpc FetchProviderPackage(FetchProviderPackage.Request) returns (FetchProviderPackage.Response); - - rpc ModulePackageVersions(ModulePackageVersions.Request) returns (ModulePackageVersions.Response); - rpc ModulePackageSourceAddr(ModulePackageSourceAddr.Request) returns (ModulePackageSourceAddr.Response); - rpc FetchModulePackage(FetchModulePackage.Request) returns (FetchModulePackage.Response); -} - -message ProviderPackageVersions { - message Request { - string source_addr = 1; - } - message Response { - repeated string versions = 1; - repeated Diagnostic diagnostics = 2; - } -} - -message FetchProviderPackage { - message Request { - string cache_dir = 1; - - string source_addr = 2; - string version = 3; - repeated string platforms = 4; - repeated string hashes = 5; - } - message Response { - // Each requested platform will return a result in this list. The order - // of the returned results will match the order of the requested - // platforms. If the binary for a given platform could not be downloaded - // there will still be an entry in the results with diagnostics - // explaining why. - repeated FetchProviderPackage.PlatformResult results = 1; - repeated Diagnostic diagnostics = 2; - } - message PlatformResult { - ProviderPackage provider = 1; - repeated Diagnostic diagnostics = 2; - } -} - -message ModulePackageVersions { - message Request { - string source_addr = 2; - } - message Response { - repeated string versions = 1; - repeated Diagnostic diagnostics = 2; - } -} - -message ModulePackageSourceAddr { - message Request { - string source_addr = 1; - string version = 2; - } - message Response { - string url = 1; - repeated Diagnostic diagnostics = 2; - } -} - -message FetchModulePackage { - message Request { - string cache_dir = 1; - - string url = 2; - } - message Response { - repeated Diagnostic diagnostics = 1; - } -} diff --git a/internal/stacks/stackplan/planned_change.go b/internal/stacks/stackplan/planned_change.go index cbd18a4689..eb7318519b 100644 --- a/internal/stacks/stackplan/planned_change.go +++ b/internal/stacks/stackplan/planned_change.go @@ -21,7 +21,7 @@ import ( "github.com/hashicorp/terraform/internal/plans/planfile" "github.com/hashicorp/terraform/internal/plans/planproto" "github.com/hashicorp/terraform/internal/providers" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" "github.com/hashicorp/terraform/internal/stacks/stackutils" "github.com/hashicorp/terraform/internal/stacks/tfstackdata1" @@ -43,7 +43,7 @@ import ( type PlannedChange interface { // PlannedChangeProto returns the protocol buffers representation of // the change, ready to be sent verbatim to an RPC API client. - PlannedChangeProto() (*terraform1.PlannedChange, error) + PlannedChangeProto() (*stacks.PlannedChange, error) } // PlannedChangeRootInputValue announces the existence of a root stack input @@ -75,7 +75,7 @@ type PlannedChangeRootInputValue struct { var _ PlannedChange = (*PlannedChangeRootInputValue)(nil) // PlannedChangeProto implements PlannedChange. -func (pc *PlannedChangeRootInputValue) PlannedChangeProto() (*terraform1.PlannedChange, error) { +func (pc *PlannedChangeRootInputValue) PlannedChangeProto() (*stacks.PlannedChange, error) { // We use cty.DynamicPseudoType here so that we'll save both the // value _and_ its dynamic type in the plan, so we can recover // exactly the same value later. @@ -100,15 +100,15 @@ func (pc *PlannedChangeRootInputValue) PlannedChangeProto() (*terraform1.Planned return nil, err } - var descs []*terraform1.PlannedChange_ChangeDescription + var descs []*stacks.PlannedChange_ChangeDescription if pc.RequiredOnApply { // We only include a change description for the subset of variables // which must be re-supplied during apply. This allows an apply-time // caller to know which subset of variables it needs to provide. - descs = []*terraform1.PlannedChange_ChangeDescription{ + descs = []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ApplyTimeInputVariable{ - ApplyTimeInputVariable: &terraform1.PlannedChange_InputVariableDuringApply{ + Description: &stacks.PlannedChange_ChangeDescription_ApplyTimeInputVariable{ + ApplyTimeInputVariable: &stacks.PlannedChange_InputVariableDuringApply{ Name: pc.Addr.Name, }, }, @@ -116,7 +116,7 @@ func (pc *PlannedChangeRootInputValue) PlannedChangeProto() (*terraform1.Planned } } - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, Descriptions: descs, }, nil @@ -185,7 +185,7 @@ type PlannedChangeComponentInstance struct { var _ PlannedChange = (*PlannedChangeComponentInstance)(nil) // PlannedChangeProto implements PlannedChange. -func (pc *PlannedChangeComponentInstance) PlannedChangeProto() (*terraform1.PlannedChange, error) { +func (pc *PlannedChangeComponentInstance) PlannedChangeProto() (*stacks.PlannedChange, error) { var plannedInputValues map[string]*tfstackdata1.DynamicValue if n := len(pc.PlannedInputValues); n != 0 { plannedInputValues = make(map[string]*tfstackdata1.DynamicValue, n) @@ -256,18 +256,18 @@ func (pc *PlannedChangeComponentInstance) PlannedChangeProto() (*terraform1.Plan return nil, err } - protoChangeTypes, err := terraform1.ChangeTypesForPlanAction(pc.Action) + protoChangeTypes, err := stacks.ChangeTypesForPlanAction(pc.Action) if err != nil { return nil, err } - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ComponentInstancePlanned{ - ComponentInstancePlanned: &terraform1.PlannedChange_ComponentInstance{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ComponentInstancePlanned{ + ComponentInstancePlanned: &stacks.PlannedChange_ComponentInstance{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: stackaddrs.ConfigComponentForAbsInstance(pc.Addr).String(), ComponentInstanceAddr: pc.Addr.String(), }, @@ -355,7 +355,7 @@ func (pc *PlannedChangeResourceInstancePlanned) PlanResourceInstanceChangePlanne }, nil } -func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*terraform1.PlannedChange_ChangeDescription, error) { +func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*stacks.PlannedChange_ChangeDescription, error) { rioAddr := pc.ResourceInstanceObjectAddr // We only emit an external description if there's a change to describe. // Otherwise, we just emit a raw to remind us to update the state for @@ -364,7 +364,7 @@ func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*terraform1 return nil, nil } - protoChangeTypes, err := terraform1.ChangeTypesForPlanAction(pc.ChangeSrc.Action) + protoChangeTypes, err := stacks.ChangeTypesForPlanAction(pc.ChangeSrc.Action) if err != nil { return nil, err } @@ -373,12 +373,12 @@ func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*terraform1 return nil, err } - var moved *terraform1.PlannedChange_ResourceInstance_Moved - var imported *terraform1.PlannedChange_ResourceInstance_Imported + var moved *stacks.PlannedChange_ResourceInstance_Moved + var imported *stacks.PlannedChange_ResourceInstance_Imported if pc.ChangeSrc.Moved() { - moved = &terraform1.PlannedChange_ResourceInstance_Moved{ - PrevAddr: terraform1.NewResourceInstanceInStackAddr(stackaddrs.AbsResourceInstance{ + moved = &stacks.PlannedChange_ResourceInstance_Moved{ + PrevAddr: stacks.NewResourceInstanceInStackAddr(stackaddrs.AbsResourceInstance{ Component: rioAddr.Component, Item: pc.ChangeSrc.PrevRunAddr, }), @@ -386,17 +386,17 @@ func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*terraform1 } if pc.ChangeSrc.Importing != nil { - imported = &terraform1.PlannedChange_ResourceInstance_Imported{ + imported = &stacks.PlannedChange_ResourceInstance_Imported{ ImportId: pc.ChangeSrc.Importing.ID, Unknown: pc.ChangeSrc.Importing.Unknown, } } - var index *terraform1.PlannedChange_ResourceInstance_Index + var index *stacks.PlannedChange_ResourceInstance_Index if pc.ChangeSrc.Addr.Resource.Key != nil { key := pc.ChangeSrc.Addr.Resource.Key if key == addrs.WildcardKey { - index = &terraform1.PlannedChange_ResourceInstance_Index{ + index = &stacks.PlannedChange_ResourceInstance_Index{ Unknown: true, } } else { @@ -404,16 +404,16 @@ func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*terraform1 if err != nil { return nil, err } - index = &terraform1.PlannedChange_ResourceInstance_Index{ + index = &stacks.PlannedChange_ResourceInstance_Index{ Value: value, } } } - return &terraform1.PlannedChange_ChangeDescription{ - Description: &terraform1.PlannedChange_ChangeDescription_ResourceInstancePlanned{ - ResourceInstancePlanned: &terraform1.PlannedChange_ResourceInstance{ - Addr: terraform1.NewResourceInstanceObjectInStackAddr(rioAddr), + return &stacks.PlannedChange_ChangeDescription{ + Description: &stacks.PlannedChange_ChangeDescription_ResourceInstancePlanned{ + ResourceInstancePlanned: &stacks.PlannedChange_ResourceInstance{ + Addr: stacks.NewResourceInstanceObjectInStackAddr(rioAddr), ResourceName: pc.ChangeSrc.Addr.Resource.Resource.Name, Index: index, ModuleAddr: pc.ChangeSrc.Addr.Module.String(), @@ -423,12 +423,12 @@ func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*terraform1 ActionReason: pc.ChangeSrc.ActionReason.String(), Actions: protoChangeTypes, - Values: &terraform1.DynamicValueChange{ - Old: terraform1.NewDynamicValue( + Values: &stacks.DynamicValueChange{ + Old: stacks.NewDynamicValue( pc.ChangeSrc.Before, pc.ChangeSrc.BeforeSensitivePaths, ), - New: terraform1.NewDynamicValue( + New: stacks.NewDynamicValue( pc.ChangeSrc.After, pc.ChangeSrc.AfterSensitivePaths, ), @@ -442,7 +442,7 @@ func (pc *PlannedChangeResourceInstancePlanned) ChangeDescription() (*terraform1 } -func DynamicValueToTerraform1(val cty.Value, ty cty.Type) (*terraform1.DynamicValue, error) { +func DynamicValueToTerraform1(val cty.Value, ty cty.Type) (*stacks.DynamicValue, error) { unmarkedVal, markPaths := val.UnmarkDeepWithPaths() sensitivePaths, withOtherMarks := marks.PathsWithMark(markPaths, marks.Sensitive) if len(withOtherMarks) != 0 { @@ -456,7 +456,7 @@ func DynamicValueToTerraform1(val cty.Value, ty cty.Type) (*terraform1.DynamicVa if err != nil { return nil, err } - ret := &terraform1.DynamicValue{ + ret := &stacks.DynamicValue{ Msgpack: rawVal, } @@ -464,15 +464,15 @@ func DynamicValueToTerraform1(val cty.Value, ty cty.Type) (*terraform1.DynamicVa return ret, nil } - ret.Sensitive = make([]*terraform1.AttributePath, 0, len(markPaths)) + ret.Sensitive = make([]*stacks.AttributePath, 0, len(markPaths)) for _, path := range sensitivePaths { - ret.Sensitive = append(ret.Sensitive, terraform1.NewAttributePath(path)) + ret.Sensitive = append(ret.Sensitive, stacks.NewAttributePath(path)) } return ret, nil } // PlannedChangeProto implements PlannedChange. -func (pc *PlannedChangeResourceInstancePlanned) PlannedChangeProto() (*terraform1.PlannedChange, error) { +func (pc *PlannedChangeResourceInstancePlanned) PlannedChangeProto() (*stacks.PlannedChange, error) { pric, err := pc.PlanResourceInstanceChangePlannedProto() if err != nil { return nil, err @@ -488,12 +488,12 @@ func (pc *PlannedChangeResourceInstancePlanned) PlannedChangeProto() (*terraform // uninteresting edge-case. The PlanResourceInstanceChangePlannedProto // function should have returned a placeholder value for this use case. - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, }, nil } - var descs []*terraform1.PlannedChange_ChangeDescription + var descs []*stacks.PlannedChange_ChangeDescription desc, err := pc.ChangeDescription() if err != nil { return nil, err @@ -502,7 +502,7 @@ func (pc *PlannedChangeResourceInstancePlanned) PlannedChangeProto() (*terraform descs = append(descs, desc) } - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, Descriptions: descs, }, nil @@ -521,7 +521,7 @@ type PlannedChangeDeferredResourceInstancePlanned struct { var _ PlannedChange = (*PlannedChangeDeferredResourceInstancePlanned)(nil) // PlannedChangeProto implements PlannedChange. -func (dpc *PlannedChangeDeferredResourceInstancePlanned) PlannedChangeProto() (*terraform1.PlannedChange, error) { +func (dpc *PlannedChangeDeferredResourceInstancePlanned) PlannedChangeProto() (*stacks.PlannedChange, error) { change, err := dpc.ResourceInstancePlanned.PlanResourceInstanceChangePlannedProto() if err != nil { return nil, err @@ -550,51 +550,51 @@ func (dpc *PlannedChangeDeferredResourceInstancePlanned) PlannedChangeProto() (* return nil, err } - var descs []*terraform1.PlannedChange_ChangeDescription - descs = append(descs, &terraform1.PlannedChange_ChangeDescription{ - Description: &terraform1.PlannedChange_ChangeDescription_ResourceInstanceDeferred{ - ResourceInstanceDeferred: &terraform1.PlannedChange_ResourceInstanceDeferred{ + var descs []*stacks.PlannedChange_ChangeDescription + descs = append(descs, &stacks.PlannedChange_ChangeDescription{ + Description: &stacks.PlannedChange_ChangeDescription_ResourceInstanceDeferred{ + ResourceInstanceDeferred: &stacks.PlannedChange_ResourceInstanceDeferred{ ResourceInstance: ricd.GetResourceInstancePlanned(), Deferred: EncodeDeferred(dpc.DeferredReason), }, }, }) - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, Descriptions: descs, }, nil } -func EncodeDeferred(reason providers.DeferredReason) *terraform1.Deferred { - deferred := new(terraform1.Deferred) +func EncodeDeferred(reason providers.DeferredReason) *stacks.Deferred { + deferred := new(stacks.Deferred) switch reason { case providers.DeferredReasonInstanceCountUnknown: - deferred.Reason = terraform1.Deferred_INSTANCE_COUNT_UNKNOWN + deferred.Reason = stacks.Deferred_INSTANCE_COUNT_UNKNOWN case providers.DeferredReasonResourceConfigUnknown: - deferred.Reason = terraform1.Deferred_RESOURCE_CONFIG_UNKNOWN + deferred.Reason = stacks.Deferred_RESOURCE_CONFIG_UNKNOWN case providers.DeferredReasonProviderConfigUnknown: - deferred.Reason = terraform1.Deferred_PROVIDER_CONFIG_UNKNOWN + deferred.Reason = stacks.Deferred_PROVIDER_CONFIG_UNKNOWN case providers.DeferredReasonAbsentPrereq: - deferred.Reason = terraform1.Deferred_ABSENT_PREREQ + deferred.Reason = stacks.Deferred_ABSENT_PREREQ case providers.DeferredReasonDeferredPrereq: - deferred.Reason = terraform1.Deferred_DEFERRED_PREREQ + deferred.Reason = stacks.Deferred_DEFERRED_PREREQ default: - deferred.Reason = terraform1.Deferred_INVALID + deferred.Reason = stacks.Deferred_INVALID } return deferred } -func encodePathSet(pathSet cty.PathSet) ([]*terraform1.AttributePath, error) { +func encodePathSet(pathSet cty.PathSet) ([]*stacks.AttributePath, error) { if pathSet.Empty() { return nil, nil } pathList := pathSet.List() - paths := make([]*terraform1.AttributePath, 0, len(pathList)) + paths := make([]*stacks.AttributePath, 0, len(pathList)) for _, path := range pathList { - paths = append(paths, terraform1.NewAttributePath(path)) + paths = append(paths, stacks.NewAttributePath(path)) } return paths, nil } @@ -615,26 +615,26 @@ type PlannedChangeOutputValue struct { var _ PlannedChange = (*PlannedChangeOutputValue)(nil) // PlannedChangeProto implements PlannedChange. -func (pc *PlannedChangeOutputValue) PlannedChangeProto() (*terraform1.PlannedChange, error) { - protoChangeTypes, err := terraform1.ChangeTypesForPlanAction(pc.Action) +func (pc *PlannedChangeOutputValue) PlannedChangeProto() (*stacks.PlannedChange, error) { + protoChangeTypes, err := stacks.ChangeTypesForPlanAction(pc.Action) if err != nil { return nil, err } - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ // No "raw" representation for output values; we emit them only for // external consumption, since Terraform Core will just recalculate // them during apply anyway. - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_OutputValuePlanned{ - OutputValuePlanned: &terraform1.PlannedChange_OutputValue{ + Description: &stacks.PlannedChange_ChangeDescription_OutputValuePlanned{ + OutputValuePlanned: &stacks.PlannedChange_OutputValue{ Name: pc.Addr.Name, Actions: protoChangeTypes, - Values: &terraform1.DynamicValueChange{ - Old: terraform1.NewDynamicValue(pc.OldValue, pc.OldValueSensitivePaths), - New: terraform1.NewDynamicValue(pc.NewValue, pc.NewValueSensitivePaths), + Values: &stacks.DynamicValueChange{ + Old: stacks.NewDynamicValue(pc.OldValue, pc.OldValueSensitivePaths), + New: stacks.NewDynamicValue(pc.NewValue, pc.NewValueSensitivePaths), }, }, }, @@ -657,7 +657,7 @@ type PlannedChangeHeader struct { var _ PlannedChange = (*PlannedChangeHeader)(nil) // PlannedChangeProto implements PlannedChange. -func (pc *PlannedChangeHeader) PlannedChangeProto() (*terraform1.PlannedChange, error) { +func (pc *PlannedChangeHeader) PlannedChangeProto() (*stacks.PlannedChange, error) { var raw anypb.Any err := anypb.MarshalFrom(&raw, &tfstackdata1.PlanHeader{ TerraformVersion: pc.TerraformVersion.String(), @@ -666,7 +666,7 @@ func (pc *PlannedChangeHeader) PlannedChangeProto() (*terraform1.PlannedChange, return nil, err } - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, }, nil } @@ -687,7 +687,7 @@ type PlannedChangePriorStateElement struct { var _ PlannedChange = (*PlannedChangePriorStateElement)(nil) // PlannedChangeProto implements PlannedChange. -func (pc *PlannedChangePriorStateElement) PlannedChangeProto() (*terraform1.PlannedChange, error) { +func (pc *PlannedChangePriorStateElement) PlannedChangeProto() (*stacks.PlannedChange, error) { var raw anypb.Any err := anypb.MarshalFrom(&raw, &tfstackdata1.PlanPriorStateElem{ Key: pc.Key, @@ -697,7 +697,7 @@ func (pc *PlannedChangePriorStateElement) PlannedChangeProto() (*terraform1.Plan return nil, err } - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, }, nil } @@ -711,7 +711,7 @@ type PlannedChangePlannedTimestamp struct { var _ PlannedChange = (*PlannedChangePlannedTimestamp)(nil) // PlannedChangeProto implements PlannedChange. -func (pc *PlannedChangePlannedTimestamp) PlannedChangeProto() (*terraform1.PlannedChange, error) { +func (pc *PlannedChangePlannedTimestamp) PlannedChangeProto() (*stacks.PlannedChange, error) { var raw anypb.Any err := anypb.MarshalFrom(&raw, &tfstackdata1.PlanTimestamp{ PlanTimestamp: pc.PlannedTimestamp.Format(time.RFC3339), @@ -720,7 +720,7 @@ func (pc *PlannedChangePlannedTimestamp) PlannedChangeProto() (*terraform1.Plann return nil, err } - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, }, nil } @@ -736,7 +736,7 @@ type PlannedChangeApplyable struct { var _ PlannedChange = (*PlannedChangeApplyable)(nil) // PlannedChangeProto implements PlannedChange. -func (pc *PlannedChangeApplyable) PlannedChangeProto() (*terraform1.PlannedChange, error) { +func (pc *PlannedChangeApplyable) PlannedChangeProto() (*stacks.PlannedChange, error) { var raw anypb.Any err := anypb.MarshalFrom(&raw, &tfstackdata1.PlanApplyable{ Applyable: pc.Applyable, @@ -745,11 +745,11 @@ func (pc *PlannedChangeApplyable) PlannedChangeProto() (*terraform1.PlannedChang return nil, err } - return &terraform1.PlannedChange{ + return &stacks.PlannedChange{ Raw: []*anypb.Any{&raw}, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_PlanApplyable{ + Description: &stacks.PlannedChange_ChangeDescription_PlanApplyable{ PlanApplyable: pc.Applyable, }, }, diff --git a/internal/stacks/stackplan/planned_change_test.go b/internal/stacks/stackplan/planned_change_test.go index 052a0619d2..f563f5fb3b 100644 --- a/internal/stacks/stackplan/planned_change_test.go +++ b/internal/stacks/stackplan/planned_change_test.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform/internal/plans" "github.com/hashicorp/terraform/internal/plans/planproto" "github.com/hashicorp/terraform/internal/providers" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" "github.com/hashicorp/terraform/internal/stacks/tfstackdata1" ) @@ -52,13 +52,13 @@ func TestPlannedChangeAsProto(t *testing.T) { tests := map[string]struct { Receiver PlannedChange - Want *terraform1.PlannedChange + Want *stacks.PlannedChange }{ "header": { Receiver: &PlannedChangeHeader{ TerraformVersion: version.Must(version.NewSemver("1.2.3-beta4")), }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanHeader{ TerraformVersion: "1.2.3-beta4", @@ -70,15 +70,15 @@ func TestPlannedChangeAsProto(t *testing.T) { Receiver: &PlannedChangeApplyable{ Applyable: true, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanApplyable{ Applyable: true, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_PlanApplyable{ + Description: &stacks.PlannedChange_ChangeDescription_PlanApplyable{ PlanApplyable: true, }, }, @@ -89,15 +89,15 @@ func TestPlannedChangeAsProto(t *testing.T) { Receiver: &PlannedChangeApplyable{ Applyable: false, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanApplyable{ // false is the default }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_PlanApplyable{ + Description: &stacks.PlannedChange_ChangeDescription_PlanApplyable{ PlanApplyable: false, }, }, @@ -115,7 +115,7 @@ func TestPlannedChangeAsProto(t *testing.T) { Action: plans.Create, PlanTimestamp: fakePlanTimestamp, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanComponentInstance{ ComponentInstanceAddr: "component.foo", @@ -123,15 +123,15 @@ func TestPlannedChangeAsProto(t *testing.T) { PlannedAction: planproto.Action_CREATE, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ComponentInstancePlanned{ - ComponentInstancePlanned: &terraform1.PlannedChange_ComponentInstance{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ComponentInstancePlanned{ + ComponentInstancePlanned: &stacks.PlannedChange_ComponentInstance{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "component.foo", ComponentInstanceAddr: "component.foo", }, - Actions: []terraform1.ChangeType{terraform1.ChangeType_CREATE}, + Actions: []stacks.ChangeType{stacks.ChangeType_CREATE}, }, }, }, @@ -150,19 +150,19 @@ func TestPlannedChangeAsProto(t *testing.T) { Action: plans.NoOp, PlanTimestamp: fakePlanTimestamp, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanComponentInstance{ ComponentInstanceAddr: `component.foo["bar"]`, PlanTimestamp: "2017-03-27T10:00:00-08:00", }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ComponentInstancePlanned{ - ComponentInstancePlanned: &terraform1.PlannedChange_ComponentInstance{ - Actions: []terraform1.ChangeType{terraform1.ChangeType_NOOP}, - Addr: &terraform1.ComponentInstanceInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ComponentInstancePlanned{ + ComponentInstancePlanned: &stacks.PlannedChange_ComponentInstance{ + Actions: []stacks.ChangeType{stacks.ChangeType_NOOP}, + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "component.foo", ComponentInstanceAddr: `component.foo["bar"]`, }, @@ -182,22 +182,22 @@ func TestPlannedChangeAsProto(t *testing.T) { }, Action: plans.Delete, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanComponentInstance{ ComponentInstanceAddr: `stack.a["boop"].component.foo`, PlannedAction: planproto.Action_DELETE, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ComponentInstancePlanned{ - ComponentInstancePlanned: &terraform1.PlannedChange_ComponentInstance{ - Addr: &terraform1.ComponentInstanceInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ComponentInstancePlanned{ + ComponentInstancePlanned: &stacks.PlannedChange_ComponentInstance{ + Addr: &stacks.ComponentInstanceInStackAddr{ ComponentAddr: "stack.a.component.foo", ComponentInstanceAddr: `stack.a["boop"].component.foo`, }, - Actions: []terraform1.ChangeType{terraform1.ChangeType_DELETE}, + Actions: []stacks.ChangeType{stacks.ChangeType_DELETE}, }, }, }, @@ -252,7 +252,7 @@ func TestPlannedChangeAsProto(t *testing.T) { }, DeferredReason: providers.DeferredReasonResourceConfigUnknown, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanDeferredResourceInstanceChange{ Change: &tfstackdata1.PlanResourceInstanceChangePlanned{ @@ -277,39 +277,39 @@ func TestPlannedChangeAsProto(t *testing.T) { }, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ResourceInstanceDeferred{ - ResourceInstanceDeferred: &terraform1.PlannedChange_ResourceInstanceDeferred{ - ResourceInstance: &terraform1.PlannedChange_ResourceInstance{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ResourceInstanceDeferred{ + ResourceInstanceDeferred: &stacks.PlannedChange_ResourceInstanceDeferred{ + ResourceInstance: &stacks.PlannedChange_ResourceInstance{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, ResourceInstanceAddr: `module.pizza["chicken"].thingy.wotsit[1]`, DeposedKey: "aaaaaaaa", }, - ResourceMode: terraform1.ResourceMode_MANAGED, + ResourceMode: stacks.ResourceMode_MANAGED, ResourceType: "thingy", ProviderAddr: "example.com/thingers/thingy", - Actions: []terraform1.ChangeType{terraform1.ChangeType_CREATE}, + Actions: []stacks.ChangeType{stacks.ChangeType_CREATE}, ActionReason: "ResourceInstanceChangeNoReason", - Index: &terraform1.PlannedChange_ResourceInstance_Index{ - Value: &terraform1.DynamicValue{ + Index: &stacks.PlannedChange_ResourceInstance_Index{ + Value: &stacks.DynamicValue{ Msgpack: []byte{0x92, 0xc4, 0x08, 0x22, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x01}, // 1 }, }, ModuleAddr: `module.pizza["chicken"]`, ResourceName: "wotsit", - Values: &terraform1.DynamicValueChange{ - Old: &terraform1.DynamicValue{ + Values: &stacks.DynamicValueChange{ + Old: &stacks.DynamicValue{ Msgpack: []byte{'\xc0'}, // null }, - New: &terraform1.DynamicValue{ + New: &stacks.DynamicValue{ Msgpack: []byte{'\x80'}, // zero-length mapping }, }, }, - Deferred: &terraform1.Deferred{ - Reason: terraform1.Deferred_RESOURCE_CONFIG_UNKNOWN, + Deferred: &stacks.Deferred{ + Reason: stacks.Deferred_RESOURCE_CONFIG_UNKNOWN, }, }, }, @@ -362,7 +362,7 @@ func TestPlannedChangeAsProto(t *testing.T) { }, }, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanResourceInstanceChangePlanned{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, @@ -382,32 +382,32 @@ func TestPlannedChangeAsProto(t *testing.T) { }, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ResourceInstancePlanned{ - ResourceInstancePlanned: &terraform1.PlannedChange_ResourceInstance{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ResourceInstancePlanned{ + ResourceInstancePlanned: &stacks.PlannedChange_ResourceInstance{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, ResourceInstanceAddr: `module.pizza["chicken"].thingy.wotsit[1]`, DeposedKey: "aaaaaaaa", }, - ResourceMode: terraform1.ResourceMode_MANAGED, + ResourceMode: stacks.ResourceMode_MANAGED, ResourceType: "thingy", ProviderAddr: "example.com/thingers/thingy", - Actions: []terraform1.ChangeType{terraform1.ChangeType_CREATE}, + Actions: []stacks.ChangeType{stacks.ChangeType_CREATE}, ActionReason: "ResourceInstanceChangeNoReason", - Index: &terraform1.PlannedChange_ResourceInstance_Index{ - Value: &terraform1.DynamicValue{ + Index: &stacks.PlannedChange_ResourceInstance_Index{ + Value: &stacks.DynamicValue{ Msgpack: []byte{0x92, 0xc4, 0x08, 0x22, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x01}, // 1 }, }, ModuleAddr: `module.pizza["chicken"]`, ResourceName: "wotsit", - Values: &terraform1.DynamicValueChange{ - Old: &terraform1.DynamicValue{ + Values: &stacks.DynamicValueChange{ + Old: &stacks.DynamicValue{ Msgpack: []byte{'\xc0'}, // null }, - New: &terraform1.DynamicValue{ + New: &stacks.DynamicValue{ Msgpack: []byte{'\x80'}, // zero-length mapping }, }, @@ -463,7 +463,7 @@ func TestPlannedChangeAsProto(t *testing.T) { RequiredReplace: cty.NewPathSet(cty.GetAttrPath("foo")), }, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanResourceInstanceChangePlanned{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, @@ -493,40 +493,40 @@ func TestPlannedChangeAsProto(t *testing.T) { }, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ResourceInstancePlanned{ - ResourceInstancePlanned: &terraform1.PlannedChange_ResourceInstance{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ResourceInstancePlanned{ + ResourceInstancePlanned: &stacks.PlannedChange_ResourceInstance{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, ResourceInstanceAddr: `module.pizza["chicken"].thingy.wotsit[1]`, DeposedKey: "aaaaaaaa", }, - ResourceMode: terraform1.ResourceMode_MANAGED, + ResourceMode: stacks.ResourceMode_MANAGED, ResourceType: "thingy", ProviderAddr: "example.com/thingers/thingy", - Actions: []terraform1.ChangeType{terraform1.ChangeType_DELETE, terraform1.ChangeType_CREATE}, + Actions: []stacks.ChangeType{stacks.ChangeType_DELETE, stacks.ChangeType_CREATE}, ActionReason: "ResourceInstanceChangeNoReason", - Index: &terraform1.PlannedChange_ResourceInstance_Index{ - Value: &terraform1.DynamicValue{ + Index: &stacks.PlannedChange_ResourceInstance_Index{ + Value: &stacks.DynamicValue{ Msgpack: []byte{0x92, 0xc4, 0x08, 0x22, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x01}, // 1 }, }, ModuleAddr: `module.pizza["chicken"]`, ResourceName: "wotsit", - Values: &terraform1.DynamicValueChange{ - Old: &terraform1.DynamicValue{ + Values: &stacks.DynamicValueChange{ + Old: &stacks.DynamicValue{ Msgpack: []byte("\x81\xa3foo\xa3bar"), }, - New: &terraform1.DynamicValue{ + New: &stacks.DynamicValue{ Msgpack: []byte("\x81\xa3foo\xa3baz"), }, }, - ReplacePaths: []*terraform1.AttributePath{ + ReplacePaths: []*stacks.AttributePath{ { - Steps: []*terraform1.AttributePath_Step{ + Steps: []*stacks.AttributePath_Step{ { - Selector: &terraform1.AttributePath_Step_AttributeName{ + Selector: &stacks.AttributePath_Step_AttributeName{ AttributeName: "foo", }, }, @@ -585,7 +585,7 @@ func TestPlannedChangeAsProto(t *testing.T) { }, }, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanResourceInstanceChangePlanned{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, @@ -606,35 +606,35 @@ func TestPlannedChangeAsProto(t *testing.T) { }, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ResourceInstancePlanned{ - ResourceInstancePlanned: &terraform1.PlannedChange_ResourceInstance{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ResourceInstancePlanned{ + ResourceInstancePlanned: &stacks.PlannedChange_ResourceInstance{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, ResourceInstanceAddr: `module.pizza["chicken"].thingy.wotsit[1]`, }, - ResourceMode: terraform1.ResourceMode_MANAGED, + ResourceMode: stacks.ResourceMode_MANAGED, ResourceType: "thingy", ProviderAddr: "example.com/thingers/thingy", - Actions: []terraform1.ChangeType{terraform1.ChangeType_NOOP}, + Actions: []stacks.ChangeType{stacks.ChangeType_NOOP}, ActionReason: "ResourceInstanceChangeNoReason", - Index: &terraform1.PlannedChange_ResourceInstance_Index{ - Value: &terraform1.DynamicValue{ + Index: &stacks.PlannedChange_ResourceInstance_Index{ + Value: &stacks.DynamicValue{ Msgpack: []byte{0x92, 0xc4, 0x08, 0x22, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x01}, // 1 }, }, ModuleAddr: `module.pizza["chicken"]`, ResourceName: "wotsit", - Values: &terraform1.DynamicValueChange{ - Old: &terraform1.DynamicValue{ + Values: &stacks.DynamicValueChange{ + Old: &stacks.DynamicValue{ Msgpack: []byte{'\x80'}, // zero-length mapping }, - New: &terraform1.DynamicValue{ + New: &stacks.DynamicValue{ Msgpack: []byte{'\x80'}, // zero-length mapping }, }, - Imported: &terraform1.PlannedChange_ResourceInstance_Imported{ + Imported: &stacks.PlannedChange_ResourceInstance_Imported{ ImportId: "bbbbbbb", }, }, @@ -694,7 +694,7 @@ func TestPlannedChangeAsProto(t *testing.T) { }, }, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanResourceInstanceChangePlanned{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, @@ -713,36 +713,36 @@ func TestPlannedChangeAsProto(t *testing.T) { }, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_ResourceInstancePlanned{ - ResourceInstancePlanned: &terraform1.PlannedChange_ResourceInstance{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Description: &stacks.PlannedChange_ChangeDescription_ResourceInstancePlanned{ + ResourceInstancePlanned: &stacks.PlannedChange_ResourceInstance{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, ResourceInstanceAddr: `module.pizza["chicken"].thingy.wotsit[1]`, }, - ResourceMode: terraform1.ResourceMode_MANAGED, + ResourceMode: stacks.ResourceMode_MANAGED, ResourceType: "thingy", ProviderAddr: "example.com/thingers/thingy", - Actions: []terraform1.ChangeType{terraform1.ChangeType_NOOP}, + Actions: []stacks.ChangeType{stacks.ChangeType_NOOP}, ActionReason: "ResourceInstanceChangeNoReason", - Index: &terraform1.PlannedChange_ResourceInstance_Index{ - Value: &terraform1.DynamicValue{ + Index: &stacks.PlannedChange_ResourceInstance_Index{ + Value: &stacks.DynamicValue{ Msgpack: []byte{0x92, 0xc4, 0x08, 0x22, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x01}, // 1 }, }, ModuleAddr: `module.pizza["chicken"]`, ResourceName: "wotsit", - Values: &terraform1.DynamicValueChange{ - Old: &terraform1.DynamicValue{ + Values: &stacks.DynamicValueChange{ + Old: &stacks.DynamicValue{ Msgpack: []byte{'\x80'}, // zero-length mapping }, - New: &terraform1.DynamicValue{ + New: &stacks.DynamicValue{ Msgpack: []byte{'\x80'}, // zero-length mapping }, }, - Moved: &terraform1.PlannedChange_ResourceInstance_Moved{ - PrevAddr: &terraform1.ResourceInstanceInStackAddr{ + Moved: &stacks.PlannedChange_ResourceInstance_Moved{ + PrevAddr: &stacks.ResourceInstanceInStackAddr{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, ResourceInstanceAddr: `module.pizza["chicken"].thingy.wotsit`, }, @@ -764,21 +764,21 @@ func TestPlannedChangeAsProto(t *testing.T) { OldValue: emptyObjectForPlan, NewValue: emptyObjectForPlan, }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ // Output value changes don't generate any raw representation; // the diff is only for the benefit of the operator and // other subsystems operating on their behalf. - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ { - Description: &terraform1.PlannedChange_ChangeDescription_OutputValuePlanned{ - OutputValuePlanned: &terraform1.PlannedChange_OutputValue{ + Description: &stacks.PlannedChange_ChangeDescription_OutputValuePlanned{ + OutputValuePlanned: &stacks.PlannedChange_OutputValue{ Name: "thingy_id", - Actions: []terraform1.ChangeType{terraform1.ChangeType_UPDATE}, - Values: &terraform1.DynamicValueChange{ - Old: &terraform1.DynamicValue{ + Actions: []stacks.ChangeType{stacks.ChangeType_UPDATE}, + Values: &stacks.DynamicValueChange{ + Old: &stacks.DynamicValue{ Msgpack: []byte{'\x80'}, // zero-length mapping }, - New: &terraform1.DynamicValue{ + New: &stacks.DynamicValue{ Msgpack: []byte{'\x80'}, // zero-length mapping }, }, @@ -793,7 +793,7 @@ func TestPlannedChangeAsProto(t *testing.T) { Addr: stackaddrs.InputVariable{Name: "thingy_id"}, Value: cty.StringVal("boop"), }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanRootInputValue{ Name: "thingy_id", @@ -811,17 +811,17 @@ func TestPlannedChangeAsProto(t *testing.T) { // No value in this case: the value must be re-supplied during // apply specifically so that we can avoid the need to store it. }, - Want: &terraform1.PlannedChange{ + Want: &stacks.PlannedChange{ Raw: []*anypb.Any{ mustMarshalAnyPb(&tfstackdata1.PlanRootInputValue{ Name: "thingy_id", RequiredOnApply: true, }), }, - Descriptions: []*terraform1.PlannedChange_ChangeDescription{ - &terraform1.PlannedChange_ChangeDescription{ - Description: &terraform1.PlannedChange_ChangeDescription_ApplyTimeInputVariable{ - ApplyTimeInputVariable: &terraform1.PlannedChange_InputVariableDuringApply{ + Descriptions: []*stacks.PlannedChange_ChangeDescription{ + &stacks.PlannedChange_ChangeDescription{ + Description: &stacks.PlannedChange_ChangeDescription_ApplyTimeInputVariable{ + ApplyTimeInputVariable: &stacks.PlannedChange_InputVariableDuringApply{ Name: "thingy_id", }, }, diff --git a/internal/stacks/stackruntime/hooks/component_instance.go b/internal/stacks/stackruntime/hooks/component_instance.go index 89bb39783d..b910e74c5d 100644 --- a/internal/stacks/stackruntime/hooks/component_instance.go +++ b/internal/stacks/stackruntime/hooks/component_instance.go @@ -5,7 +5,7 @@ package hooks import ( "github.com/hashicorp/terraform/internal/plans" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" ) @@ -29,24 +29,24 @@ const ( ) // TODO: move this into the rpcapi package somewhere -func (s ComponentInstanceStatus) ForProtobuf() terraform1.StackChangeProgress_ComponentInstanceStatus_Status { +func (s ComponentInstanceStatus) ForProtobuf() stacks.StackChangeProgress_ComponentInstanceStatus_Status { switch s { case ComponentInstancePending: - return terraform1.StackChangeProgress_ComponentInstanceStatus_PENDING + return stacks.StackChangeProgress_ComponentInstanceStatus_PENDING case ComponentInstancePlanning: - return terraform1.StackChangeProgress_ComponentInstanceStatus_PLANNING + return stacks.StackChangeProgress_ComponentInstanceStatus_PLANNING case ComponentInstancePlanned: - return terraform1.StackChangeProgress_ComponentInstanceStatus_PLANNED + return stacks.StackChangeProgress_ComponentInstanceStatus_PLANNED case ComponentInstanceApplying: - return terraform1.StackChangeProgress_ComponentInstanceStatus_APPLYING + return stacks.StackChangeProgress_ComponentInstanceStatus_APPLYING case ComponentInstanceApplied: - return terraform1.StackChangeProgress_ComponentInstanceStatus_APPLIED + return stacks.StackChangeProgress_ComponentInstanceStatus_APPLIED case ComponentInstanceErrored: - return terraform1.StackChangeProgress_ComponentInstanceStatus_ERRORED + return stacks.StackChangeProgress_ComponentInstanceStatus_ERRORED case ComponentInstanceDeferred: - return terraform1.StackChangeProgress_ComponentInstanceStatus_DEFERRED + return stacks.StackChangeProgress_ComponentInstanceStatus_DEFERRED default: - return terraform1.StackChangeProgress_ComponentInstanceStatus_INVALID + return stacks.StackChangeProgress_ComponentInstanceStatus_INVALID } } diff --git a/internal/stacks/stackruntime/hooks/resource_instance.go b/internal/stacks/stackruntime/hooks/resource_instance.go index 106c1762ce..7b576a9de4 100644 --- a/internal/stacks/stackruntime/hooks/resource_instance.go +++ b/internal/stacks/stackruntime/hooks/resource_instance.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/terraform/internal/addrs" "github.com/hashicorp/terraform/internal/plans" "github.com/hashicorp/terraform/internal/providers" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" ) @@ -32,26 +32,26 @@ const ( ) // TODO: move this into the rpcapi package somewhere -func (s ResourceInstanceStatus) ForProtobuf() terraform1.StackChangeProgress_ResourceInstanceStatus_Status { +func (s ResourceInstanceStatus) ForProtobuf() stacks.StackChangeProgress_ResourceInstanceStatus_Status { switch s { case ResourceInstancePending: - return terraform1.StackChangeProgress_ResourceInstanceStatus_PENDING + return stacks.StackChangeProgress_ResourceInstanceStatus_PENDING case ResourceInstanceRefreshing: - return terraform1.StackChangeProgress_ResourceInstanceStatus_REFRESHING + return stacks.StackChangeProgress_ResourceInstanceStatus_REFRESHING case ResourceInstanceRefreshed: - return terraform1.StackChangeProgress_ResourceInstanceStatus_REFRESHED + return stacks.StackChangeProgress_ResourceInstanceStatus_REFRESHED case ResourceInstancePlanning: - return terraform1.StackChangeProgress_ResourceInstanceStatus_PLANNING + return stacks.StackChangeProgress_ResourceInstanceStatus_PLANNING case ResourceInstancePlanned: - return terraform1.StackChangeProgress_ResourceInstanceStatus_PLANNED + return stacks.StackChangeProgress_ResourceInstanceStatus_PLANNED case ResourceInstanceApplying: - return terraform1.StackChangeProgress_ResourceInstanceStatus_APPLYING + return stacks.StackChangeProgress_ResourceInstanceStatus_APPLYING case ResourceInstanceApplied: - return terraform1.StackChangeProgress_ResourceInstanceStatus_APPLIED + return stacks.StackChangeProgress_ResourceInstanceStatus_APPLIED case ResourceInstanceErrored: - return terraform1.StackChangeProgress_ResourceInstanceStatus_ERRORED + return stacks.StackChangeProgress_ResourceInstanceStatus_ERRORED default: - return terraform1.StackChangeProgress_ResourceInstanceStatus_INVALID + return stacks.StackChangeProgress_ResourceInstanceStatus_INVALID } } @@ -71,16 +71,16 @@ const ( ) // TODO: move this into the rpcapi package somewhere -func (s ProvisionerStatus) ForProtobuf() terraform1.StackChangeProgress_ProvisionerStatus_Status { +func (s ProvisionerStatus) ForProtobuf() stacks.StackChangeProgress_ProvisionerStatus_Status { switch s { case ProvisionerProvisioning: - return terraform1.StackChangeProgress_ProvisionerStatus_PROVISIONING + return stacks.StackChangeProgress_ProvisionerStatus_PROVISIONING case ProvisionerProvisioned: - return terraform1.StackChangeProgress_ProvisionerStatus_PROVISIONING + return stacks.StackChangeProgress_ProvisionerStatus_PROVISIONING case ProvisionerErrored: - return terraform1.StackChangeProgress_ProvisionerStatus_ERRORED + return stacks.StackChangeProgress_ProvisionerStatus_ERRORED default: - return terraform1.StackChangeProgress_ProvisionerStatus_INVALID + return stacks.StackChangeProgress_ProvisionerStatus_INVALID } } diff --git a/internal/stacks/stackstate/applied_change.go b/internal/stacks/stackstate/applied_change.go index e2b1df4279..749beef6eb 100644 --- a/internal/stacks/stackstate/applied_change.go +++ b/internal/stacks/stackstate/applied_change.go @@ -15,7 +15,7 @@ import ( "github.com/hashicorp/terraform/internal/configs/configschema" "github.com/hashicorp/terraform/internal/lang/marks" "github.com/hashicorp/terraform/internal/plans" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" "github.com/hashicorp/terraform/internal/stacks/stackstate/statekeys" "github.com/hashicorp/terraform/internal/stacks/stackutils" @@ -35,7 +35,7 @@ import ( type AppliedChange interface { // AppliedChangeProto returns the protocol buffers representation of // the change, ready to be sent verbatim to an RPC API client. - AppliedChangeProto() (*terraform1.AppliedChange, error) + AppliedChangeProto() (*stacks.AppliedChange, error) } // AppliedChangeResourceInstanceObject announces the result of applying changes to @@ -70,20 +70,20 @@ type AppliedChangeResourceInstanceObject struct { var _ AppliedChange = (*AppliedChangeResourceInstanceObject)(nil) // AppliedChangeProto implements AppliedChange. -func (ac *AppliedChangeResourceInstanceObject) AppliedChangeProto() (*terraform1.AppliedChange, error) { +func (ac *AppliedChangeResourceInstanceObject) AppliedChangeProto() (*stacks.AppliedChange, error) { descs, raws, err := ac.protosForObject() if err != nil { return nil, fmt.Errorf("encoding %s: %w", ac.ResourceInstanceObjectAddr, err) } - return &terraform1.AppliedChange{ + return &stacks.AppliedChange{ Raw: raws, Descriptions: descs, }, nil } -func (ac *AppliedChangeResourceInstanceObject) protosForObject() ([]*terraform1.AppliedChange_ChangeDescription, []*terraform1.AppliedChange_RawChange, error) { - var descs []*terraform1.AppliedChange_ChangeDescription - var raws []*terraform1.AppliedChange_RawChange +func (ac *AppliedChangeResourceInstanceObject) protosForObject() ([]*stacks.AppliedChange_ChangeDescription, []*stacks.AppliedChange_RawChange, error) { + var descs []*stacks.AppliedChange_ChangeDescription + var raws []*stacks.AppliedChange_RawChange var addr = ac.ResourceInstanceObjectAddr var provider = ac.ProviderConfigAddr @@ -103,13 +103,13 @@ func (ac *AppliedChangeResourceInstanceObject) protosForObject() ([]*terraform1. if objSrc == nil { // If the new object is nil then we'll emit a "deleted" description // to ensure that any existing prior state value gets removed. - descs = append(descs, &terraform1.AppliedChange_ChangeDescription{ + descs = append(descs, &stacks.AppliedChange_ChangeDescription{ Key: objKeyRaw, - Description: &terraform1.AppliedChange_ChangeDescription_Deleted{ - Deleted: &terraform1.AppliedChange_Nothing{}, + Description: &stacks.AppliedChange_ChangeDescription_Deleted{ + Deleted: &stacks.AppliedChange_Nothing{}, }, }) - raws = append(raws, &terraform1.AppliedChange_RawChange{ + raws = append(raws, &stacks.AppliedChange_RawChange{ Key: objKeyRaw, Value: nil, // unset Value field represents "delete" for raw changes }) @@ -129,13 +129,13 @@ func (ac *AppliedChangeResourceInstanceObject) protosForObject() ([]*terraform1. } prevKeyRaw := statekeys.String(prevKey) - descs = append(descs, &terraform1.AppliedChange_ChangeDescription{ + descs = append(descs, &stacks.AppliedChange_ChangeDescription{ Key: prevKeyRaw, - Description: &terraform1.AppliedChange_ChangeDescription_Moved{ - Moved: &terraform1.AppliedChange_Nothing{}, + Description: &stacks.AppliedChange_ChangeDescription_Moved{ + Moved: &stacks.AppliedChange_Nothing{}, }, }) - raws = append(raws, &terraform1.AppliedChange_RawChange{ + raws = append(raws, &stacks.AppliedChange_RawChange{ Key: prevKeyRaw, Value: nil, // unset Value field represents "delete" for raw changes }) @@ -176,13 +176,13 @@ func (ac *AppliedChangeResourceInstanceObject) protosForObject() ([]*terraform1. if err != nil { return nil, nil, fmt.Errorf("cannot encode new state for %s in preparation for saving it: %w", addr, err) } - protoValue := terraform1.NewDynamicValue(encValue, sensitivePaths) + protoValue := stacks.NewDynamicValue(encValue, sensitivePaths) - descs = append(descs, &terraform1.AppliedChange_ChangeDescription{ + descs = append(descs, &stacks.AppliedChange_ChangeDescription{ Key: objKeyRaw, - Description: &terraform1.AppliedChange_ChangeDescription_ResourceInstance{ - ResourceInstance: &terraform1.AppliedChange_ResourceInstance{ - Addr: terraform1.NewResourceInstanceObjectInStackAddr(addr), + Description: &stacks.AppliedChange_ChangeDescription_ResourceInstance{ + ResourceInstance: &stacks.AppliedChange_ResourceInstance{ + Addr: stacks.NewResourceInstanceObjectInStackAddr(addr), NewValue: protoValue, ResourceMode: stackutils.ResourceModeForProto(addr.Item.ResourceInstance.Resource.Resource.Mode), ResourceType: addr.Item.ResourceInstance.Resource.Resource.Type, @@ -197,7 +197,7 @@ func (ac *AppliedChangeResourceInstanceObject) protosForObject() ([]*terraform1. if err != nil { return nil, nil, fmt.Errorf("encoding raw state object: %w", err) } - raws = append(raws, &terraform1.AppliedChange_RawChange{ + raws = append(raws, &stacks.AppliedChange_RawChange{ Key: objKeyRaw, Value: &raw, }) @@ -230,10 +230,10 @@ type AppliedChangeComponentInstance struct { var _ AppliedChange = (*AppliedChangeComponentInstance)(nil) // AppliedChangeProto implements AppliedChange. -func (ac *AppliedChangeComponentInstance) AppliedChangeProto() (*terraform1.AppliedChange, error) { - ret := &terraform1.AppliedChange{ - Raw: make([]*terraform1.AppliedChange_RawChange, 0, 1), - Descriptions: make([]*terraform1.AppliedChange_ChangeDescription, 0, 1), +func (ac *AppliedChangeComponentInstance) AppliedChangeProto() (*stacks.AppliedChange, error) { + ret := &stacks.AppliedChange{ + Raw: make([]*stacks.AppliedChange_RawChange, 0, 1), + Descriptions: make([]*stacks.AppliedChange_ChangeDescription, 0, 1), } stateKey := statekeys.ComponentInstance{ ComponentInstanceAddr: ac.ComponentInstanceAddr, @@ -249,7 +249,7 @@ func (ac *AppliedChangeComponentInstance) AppliedChangeProto() (*terraform1.Appl return nil, fmt.Errorf("encoding raw state for %s: %w", ac.ComponentInstanceAddr, err) } - outputDescs := make(map[string]*terraform1.DynamicValue, len(ac.OutputValues)) + outputDescs := make(map[string]*stacks.DynamicValue, len(ac.OutputValues)) for addr, val := range ac.OutputValues { unmarkedValue, markses := val.UnmarkDeepWithPaths() sensitivePaths, otherMarkses := marks.PathsWithMark(markses, marks.Sensitive) @@ -266,18 +266,18 @@ func (ac *AppliedChangeComponentInstance) AppliedChangeProto() (*terraform1.Appl if err != nil { return nil, fmt.Errorf("encoding new state for %s in %s in preparation for saving it: %w", addr, ac.ComponentInstanceAddr, err) } - protoValue := terraform1.NewDynamicValue(encValue, sensitivePaths) + protoValue := stacks.NewDynamicValue(encValue, sensitivePaths) outputDescs[addr.Name] = protoValue } - ret.Raw = append(ret.Raw, &terraform1.AppliedChange_RawChange{ + ret.Raw = append(ret.Raw, &stacks.AppliedChange_RawChange{ Key: statekeys.String(stateKey), Value: &raw, }) - ret.Descriptions = append(ret.Descriptions, &terraform1.AppliedChange_ChangeDescription{ + ret.Descriptions = append(ret.Descriptions, &stacks.AppliedChange_ChangeDescription{ Key: statekeys.String(stateKey), - Description: &terraform1.AppliedChange_ChangeDescription_ComponentInstance{ - ComponentInstance: &terraform1.AppliedChange_ComponentInstance{ + Description: &stacks.AppliedChange_ChangeDescription_ComponentInstance{ + ComponentInstance: &stacks.AppliedChange_ComponentInstance{ ComponentAddr: ac.ComponentAddr.String(), ComponentInstanceAddr: ac.ComponentInstanceAddr.String(), }, @@ -294,21 +294,21 @@ type AppliedChangeDiscardKeys struct { var _ AppliedChange = (*AppliedChangeDiscardKeys)(nil) // AppliedChangeProto implements AppliedChange. -func (ac *AppliedChangeDiscardKeys) AppliedChangeProto() (*terraform1.AppliedChange, error) { - ret := &terraform1.AppliedChange{ - Raw: make([]*terraform1.AppliedChange_RawChange, 0, ac.DiscardRawKeys.Len()), - Descriptions: make([]*terraform1.AppliedChange_ChangeDescription, 0, ac.DiscardDescKeys.Len()), +func (ac *AppliedChangeDiscardKeys) AppliedChangeProto() (*stacks.AppliedChange, error) { + ret := &stacks.AppliedChange{ + Raw: make([]*stacks.AppliedChange_RawChange, 0, ac.DiscardRawKeys.Len()), + Descriptions: make([]*stacks.AppliedChange_ChangeDescription, 0, ac.DiscardDescKeys.Len()), } for _, key := range ac.DiscardRawKeys.Elems() { - ret.Raw = append(ret.Raw, &terraform1.AppliedChange_RawChange{ + ret.Raw = append(ret.Raw, &stacks.AppliedChange_RawChange{ Key: statekeys.String(key), Value: nil, // nil represents deletion }) } for _, key := range ac.DiscardDescKeys.Elems() { - ret.Descriptions = append(ret.Descriptions, &terraform1.AppliedChange_ChangeDescription{ + ret.Descriptions = append(ret.Descriptions, &stacks.AppliedChange_ChangeDescription{ Key: statekeys.String(key), - Description: &terraform1.AppliedChange_ChangeDescription_Deleted{ + Description: &stacks.AppliedChange_ChangeDescription_Deleted{ // Selection of this empty variant represents deletion }, }) diff --git a/internal/stacks/stackstate/applied_change_test.go b/internal/stacks/stackstate/applied_change_test.go index f5c3c520f0..d94d4e5998 100644 --- a/internal/stacks/stackstate/applied_change_test.go +++ b/internal/stacks/stackstate/applied_change_test.go @@ -18,7 +18,7 @@ import ( "github.com/hashicorp/terraform/internal/addrs" "github.com/hashicorp/terraform/internal/configs/configschema" "github.com/hashicorp/terraform/internal/plans/planproto" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/stacks/stackaddrs" "github.com/hashicorp/terraform/internal/stacks/tfstackdata1" "github.com/hashicorp/terraform/internal/states" @@ -27,7 +27,7 @@ import ( func TestAppliedChangeAsProto(t *testing.T) { tests := map[string]struct { Receiver AppliedChange - Want *terraform1.AppliedChange + Want *stacks.AppliedChange }{ "resource instance": { Receiver: &AppliedChangeResourceInstanceObject{ @@ -73,8 +73,8 @@ func TestAppliedChangeAsProto(t *testing.T) { }, }, }, - Want: &terraform1.AppliedChange{ - Raw: []*terraform1.AppliedChange_RawChange{ + Want: &stacks.AppliedChange{ + Raw: []*stacks.AppliedChange_RawChange{ { Key: `RSRCstack.a["boop"].component.foo["beep"],module.pizza["chicken"].thingy.thingamajig[1],cur`, Value: mustMarshalAnyPb(t, &tfstackdata1.StateResourceInstanceObjectV1{ @@ -90,27 +90,27 @@ func TestAppliedChangeAsProto(t *testing.T) { }), }, }, - Descriptions: []*terraform1.AppliedChange_ChangeDescription{ + Descriptions: []*stacks.AppliedChange_ChangeDescription{ { Key: `RSRCstack.a["boop"].component.foo["beep"],module.pizza["chicken"].thingy.thingamajig[1],cur`, - Description: &terraform1.AppliedChange_ChangeDescription_ResourceInstance{ - ResourceInstance: &terraform1.AppliedChange_ResourceInstance{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Description: &stacks.AppliedChange_ChangeDescription_ResourceInstance{ + ResourceInstance: &stacks.AppliedChange_ResourceInstance{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, ResourceInstanceAddr: `module.pizza["chicken"].thingy.thingamajig[1]`, }, - NewValue: &terraform1.DynamicValue{ + NewValue: &stacks.DynamicValue{ Msgpack: mustMsgpack(t, cty.ObjectVal(map[string]cty.Value{ "id": cty.StringVal("bar"), "secret": cty.StringVal("top"), }), cty.Object(map[string]cty.Type{"id": cty.String, "secret": cty.String})), - Sensitive: []*terraform1.AttributePath{{ - Steps: []*terraform1.AttributePath_Step{{ - Selector: &terraform1.AttributePath_Step_AttributeName{AttributeName: "secret"}, + Sensitive: []*stacks.AttributePath{{ + Steps: []*stacks.AttributePath_Step{{ + Selector: &stacks.AttributePath_Step_AttributeName{AttributeName: "secret"}, }}}, }, }, - ResourceMode: terraform1.ResourceMode_MANAGED, + ResourceMode: stacks.ResourceMode_MANAGED, ResourceType: "thingy", ProviderAddr: "example.com/thingers/thingy", }, @@ -181,8 +181,8 @@ func TestAppliedChangeAsProto(t *testing.T) { }, }, }, - Want: &terraform1.AppliedChange{ - Raw: []*terraform1.AppliedChange_RawChange{ + Want: &stacks.AppliedChange{ + Raw: []*stacks.AppliedChange_RawChange{ { Key: `RSRCstack.a["boop"].component.foo["beep"],module.pizza["chicken"].thingy.previous_thingamajig[1],cur`, Value: nil, @@ -202,33 +202,33 @@ func TestAppliedChangeAsProto(t *testing.T) { }), }, }, - Descriptions: []*terraform1.AppliedChange_ChangeDescription{ + Descriptions: []*stacks.AppliedChange_ChangeDescription{ { Key: `RSRCstack.a["boop"].component.foo["beep"],module.pizza["chicken"].thingy.previous_thingamajig[1],cur`, - Description: &terraform1.AppliedChange_ChangeDescription_Moved{ - Moved: &terraform1.AppliedChange_Nothing{}, + Description: &stacks.AppliedChange_ChangeDescription_Moved{ + Moved: &stacks.AppliedChange_Nothing{}, }, }, { Key: `RSRCstack.a["boop"].component.foo["beep"],module.pizza["chicken"].thingy.thingamajig[1],cur`, - Description: &terraform1.AppliedChange_ChangeDescription_ResourceInstance{ - ResourceInstance: &terraform1.AppliedChange_ResourceInstance{ - Addr: &terraform1.ResourceInstanceObjectInStackAddr{ + Description: &stacks.AppliedChange_ChangeDescription_ResourceInstance{ + ResourceInstance: &stacks.AppliedChange_ResourceInstance{ + Addr: &stacks.ResourceInstanceObjectInStackAddr{ ComponentInstanceAddr: `stack.a["boop"].component.foo["beep"]`, ResourceInstanceAddr: `module.pizza["chicken"].thingy.thingamajig[1]`, }, - NewValue: &terraform1.DynamicValue{ + NewValue: &stacks.DynamicValue{ Msgpack: mustMsgpack(t, cty.ObjectVal(map[string]cty.Value{ "id": cty.StringVal("bar"), "secret": cty.StringVal("top"), }), cty.Object(map[string]cty.Type{"id": cty.String, "secret": cty.String})), - Sensitive: []*terraform1.AttributePath{{ - Steps: []*terraform1.AttributePath_Step{{ - Selector: &terraform1.AttributePath_Step_AttributeName{AttributeName: "secret"}, + Sensitive: []*stacks.AttributePath{{ + Steps: []*stacks.AttributePath_Step{{ + Selector: &stacks.AttributePath_Step_AttributeName{AttributeName: "secret"}, }}}, }, }, - ResourceMode: terraform1.ResourceMode_MANAGED, + ResourceMode: stacks.ResourceMode_MANAGED, ResourceType: "thingy", ProviderAddr: "example.com/thingers/thingy", }, diff --git a/internal/stacks/stackutils/proto_util.go b/internal/stacks/stackutils/proto_util.go index a5fa5c20aa..8683395e6c 100644 --- a/internal/stacks/stackutils/proto_util.go +++ b/internal/stacks/stackutils/proto_util.go @@ -5,18 +5,18 @@ package stackutils import ( "github.com/hashicorp/terraform/internal/addrs" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" ) -func ResourceModeForProto(mode addrs.ResourceMode) terraform1.ResourceMode { +func ResourceModeForProto(mode addrs.ResourceMode) stacks.ResourceMode { switch mode { case addrs.ManagedResourceMode: - return terraform1.ResourceMode_MANAGED + return stacks.ResourceMode_MANAGED case addrs.DataResourceMode: - return terraform1.ResourceMode_DATA + return stacks.ResourceMode_DATA default: // Should not get here, because the above should be exhaustive for // all addrs.ResourceMode variants. - return terraform1.ResourceMode_UNKNOWN + return stacks.ResourceMode_UNKNOWN } } diff --git a/internal/stacks/tfstackdata1/convert.go b/internal/stacks/tfstackdata1/convert.go index 7bb56a814e..4f39f35655 100644 --- a/internal/stacks/tfstackdata1/convert.go +++ b/internal/stacks/tfstackdata1/convert.go @@ -14,7 +14,7 @@ import ( "github.com/hashicorp/terraform/internal/plans" "github.com/hashicorp/terraform/internal/plans/planfile" "github.com/hashicorp/terraform/internal/plans/planproto" - "github.com/hashicorp/terraform/internal/rpcapi/terraform1" + "github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks" "github.com/hashicorp/terraform/internal/states" ) @@ -29,7 +29,7 @@ func ResourceInstanceObjectStateToTFStackData1(objSrc *states.ResourceInstanceOb // attribute paths here just so we don't need to reimplement the // slice-of-paths conversion in yet another place. We don't // actually do anything with the value part of this. - protoValue := terraform1.NewDynamicValue(plans.DynamicValue(nil), objSrc.AttrSensitivePaths) + protoValue := stacks.NewDynamicValue(plans.DynamicValue(nil), objSrc.AttrSensitivePaths) rawMsg := &StateResourceInstanceObjectV1{ SchemaVersion: objSrc.SchemaVersion, ValueJson: objSrc.AttrsJSON, @@ -129,7 +129,7 @@ func DynamicValueFromTFStackData1(protoVal *DynamicValue, ty cty.Type) (cty.Valu return unmarkedV.MarkWithPaths(markses), nil } -func Terraform1ToPlanProtoAttributePaths(paths []*terraform1.AttributePath) []*planproto.Path { +func Terraform1ToPlanProtoAttributePaths(paths []*stacks.AttributePath) []*planproto.Path { if len(paths) == 0 { return nil } @@ -140,7 +140,7 @@ func Terraform1ToPlanProtoAttributePaths(paths []*terraform1.AttributePath) []*p return ret } -func Terraform1ToPlanProtoAttributePath(path *terraform1.AttributePath) *planproto.Path { +func Terraform1ToPlanProtoAttributePath(path *stacks.AttributePath) *planproto.Path { if path == nil { return nil } @@ -155,17 +155,17 @@ func Terraform1ToPlanProtoAttributePath(path *terraform1.AttributePath) *planpro return ret } -func Terraform1ToPlanProtoAttributePathStep(step *terraform1.AttributePath_Step) *planproto.Path_Step { +func Terraform1ToPlanProtoAttributePathStep(step *stacks.AttributePath_Step) *planproto.Path_Step { if step == nil { return nil } ret := &planproto.Path_Step{} switch sel := step.Selector.(type) { - case *terraform1.AttributePath_Step_AttributeName: + case *stacks.AttributePath_Step_AttributeName: ret.Selector = &planproto.Path_Step_AttributeName{ AttributeName: sel.AttributeName, } - case *terraform1.AttributePath_Step_ElementKeyInt: + case *stacks.AttributePath_Step_ElementKeyInt: encInt, err := msgpack.Marshal(cty.NumberIntVal(sel.ElementKeyInt), cty.Number) if err != nil { // This should not be possible because all integers have a cty msgpack encoding @@ -176,7 +176,7 @@ func Terraform1ToPlanProtoAttributePathStep(step *terraform1.AttributePath_Step) Msgpack: encInt, }, } - case *terraform1.AttributePath_Step_ElementKeyString: + case *stacks.AttributePath_Step_ElementKeyString: encStr, err := msgpack.Marshal(cty.StringVal(sel.ElementKeyString), cty.String) if err != nil { // This should not be possible because all strings have a cty msgpack encoding diff --git a/tools/protobuf-compile/protobuf-compile.go b/tools/protobuf-compile/protobuf-compile.go index 57c0b7fa48..b8cba69172 100644 --- a/tools/protobuf-compile/protobuf-compile.go +++ b/tools/protobuf-compile/protobuf-compile.go @@ -58,6 +58,47 @@ var protocSteps = []protocStep{ "internal/rpcapi/terraform1", []string{"--go_out=paths=source_relative,plugins=grpc:.", "--go_opt=Mterraform1.proto=github.com/hashicorp/terraform/internal/rpcapi/terraform1", "./terraform1.proto"}, }, + { + "terraform1 (Terraform Core RPC API) setup", + "internal/rpcapi/terraform1/setup", + []string{"--go_out=paths=source_relative,plugins=grpc:.", "--go_opt=Msetup.proto=github.com/hashicorp/terraform/internal/rpcapi/terraform1/setup", "./setup.proto"}, + }, + { + "terraform1 (Terraform Core RPC API) dependencies", + "internal/rpcapi/terraform1/dependencies", + []string{ + "--go_out=paths=source_relative,plugins=grpc:.", + "--go_opt=Mterraform1.proto=github.com/hashicorp/terraform/internal/rpcapi/terraform1", + "--go_opt=Mdependencies.proto=github.com/hashicorp/terraform/internal/rpcapi/terraform1/dependencies", + "-I.", + "-I..", + "./dependencies.proto", + }, + }, + { + "terraform1 (Terraform Core RPC API) stacks", + "internal/rpcapi/terraform1/stacks", + []string{ + "--go_out=paths=source_relative,plugins=grpc:.", + "--go_opt=Mterraform1.proto=github.com/hashicorp/terraform/internal/rpcapi/terraform1", + "--go_opt=Mstacks.proto=github.com/hashicorp/terraform/internal/rpcapi/terraform1/stacks", + "-I.", + "-I..", + "./stacks.proto", + }, + }, + { + "terraform1 (Terraform Core RPC API) packages", + "internal/rpcapi/terraform1/packages", + []string{ + "--go_out=paths=source_relative,plugins=grpc:.", + "--go_opt=Mterraform1.proto=github.com/hashicorp/terraform/internal/rpcapi/terraform1", + "--go_opt=Mpackages.proto=github.com/hashicorp/terraform/internal/rpcapi/terraform1/packages", + "-I.", + "-I..", + "./packages.proto", + }, + }, { "tfplan (plan file serialization)", "internal/plans/planproto",