Constants
ConfigManagementService_GetConfig_FullMethodName, ConfigManagementService_UpdateConfig_FullMethodName
const (
ConfigManagementService_GetConfig_FullMethodName = "/google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService/GetConfig"
ConfigManagementService_UpdateConfig_FullMethodName = "/google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService/UpdateConfig"
)Variables
Config_Ingestion_IngestionRule_IntegrationSelector_Integration_name, Config_Ingestion_IngestionRule_IntegrationSelector_Integration_value
var (
Config_Ingestion_IngestionRule_IntegrationSelector_Integration_name = map[int32]string{
0: "INTEGRATION_UNSPECIFIED",
2: "DATAPROC",
3: "LOOKER_CORE",
}
Config_Ingestion_IngestionRule_IntegrationSelector_Integration_value = map[string]int32{
"INTEGRATION_UNSPECIFIED": 0,
"DATAPROC": 2,
"LOOKER_CORE": 3,
}
)Enum value maps for Config_Ingestion_IngestionRule_IntegrationSelector_Integration.
ConfigManagementService_ServiceDesc
var ConfigManagementService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService",
HandlerType: (*ConfigManagementServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetConfig",
Handler: _ConfigManagementService_GetConfig_Handler,
},
{
MethodName: "UpdateConfig",
Handler: _ConfigManagementService_UpdateConfig_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/datacatalog/lineage/configmanagement/v1/configmanagement.proto",
}ConfigManagementService_ServiceDesc is the grpc.ServiceDesc for ConfigManagementService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_cloud_datacatalog_lineage_configmanagement_v1_configmanagement_proto
var File_google_cloud_datacatalog_lineage_configmanagement_v1_configmanagement_proto protoreflect.FileDescriptorFunctions
func RegisterConfigManagementServiceServer
func RegisterConfigManagementServiceServer(s grpc.ServiceRegistrar, srv ConfigManagementServiceServer)Config
type Config struct {
// Identifier. The resource name of the config.
// Format:
// `organizations/{organization_id}/locations/global/config`
// `folders/{folder_id}/locations/global/config`
// `projects/{project_id}/locations/global/config`
// `projects/{project_number}/locations/global/config`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Ingestion rule for Data Lineage ingestion.
Ingestion *Config_Ingestion `protobuf:"bytes,2,opt,name=ingestion,proto3" json:"ingestion,omitempty"`
// Optional. `etag` is used for optimistic concurrency control as a way
// to help prevent simultaneous updates of a config from overwriting each
// other. It is required that systems make use of the `etag` in the
// read-modify-write cycle to perform config updates in order to avoid race
// conditions: An `etag` is returned in the response to `GetConfig`, and
// systems are expected to put that etag in the request to `UpdateConfig` to
// ensure that their change will be applied to the same version of the config.
// If an `etag` is not provided in the call to `UpdateConfig`, then the
// existing config, if any, will be overwritten.
Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"`
// contains filtered or unexported fields
}Configuration for Data Lineage. Defines different configuration options for Lineage customers to control behaviour of lineage systems.
func (*Config) Descriptor
Deprecated: Use Config.ProtoReflect.Descriptor instead.
func (*Config) GetEtag
func (*Config) GetIngestion
func (x *Config) GetIngestion() *Config_Ingestionfunc (*Config) GetName
func (*Config) ProtoMessage
func (*Config) ProtoMessage()func (*Config) ProtoReflect
func (x *Config) ProtoReflect() protoreflect.Messagefunc (*Config) Reset
func (x *Config) Reset()func (*Config) String
ConfigManagementServiceClient
type ConfigManagementServiceClient interface {
// Get the Config for a given resource.
GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*Config, error)
// Update the Config for a given resource.
UpdateConfig(ctx context.Context, in *UpdateConfigRequest, opts ...grpc.CallOption) (*Config, error)
}ConfigManagementServiceClient is the client API for ConfigManagementService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConfigManagementServiceClient
func NewConfigManagementServiceClient(cc grpc.ClientConnInterface) ConfigManagementServiceClientConfigManagementServiceServer
type ConfigManagementServiceServer interface {
// Get the Config for a given resource.
GetConfig(context.Context, *GetConfigRequest) (*Config, error)
// Update the Config for a given resource.
UpdateConfig(context.Context, *UpdateConfigRequest) (*Config, error)
}ConfigManagementServiceServer is the server API for ConfigManagementService service. All implementations should embed UnimplementedConfigManagementServiceServer for forward compatibility
Config_Ingestion
type Config_Ingestion struct {
// Optional. List of rules for Data Lineage ingestion.
Rules []*Config_Ingestion_IngestionRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}Defines how Lineage should be ingested for a given resource.
func (*Config_Ingestion) Descriptor
func (*Config_Ingestion) Descriptor() ([]byte, []int)Deprecated: Use Config_Ingestion.ProtoReflect.Descriptor instead.
func (*Config_Ingestion) GetRules
func (x *Config_Ingestion) GetRules() []*Config_Ingestion_IngestionRulefunc (*Config_Ingestion) ProtoMessage
func (*Config_Ingestion) ProtoMessage()func (*Config_Ingestion) ProtoReflect
func (x *Config_Ingestion) ProtoReflect() protoreflect.Messagefunc (*Config_Ingestion) Reset
func (x *Config_Ingestion) Reset()func (*Config_Ingestion) String
func (x *Config_Ingestion) String() stringConfig_Ingestion_IngestionRule
type Config_Ingestion_IngestionRule struct {
// Required. Integration selector of the rule. The rule is only applied to
// the Integration selected by the selector.
IntegrationSelector *Config_Ingestion_IngestionRule_IntegrationSelector `protobuf:"bytes,1,opt,name=integration_selector,json=integrationSelector,proto3" json:"integration_selector,omitempty"`
// Required. Lineage enablement configuration. Defines configurations for
// the ingestion of lineage for the resource and its children. If
// unspecified, the ingestion will be enabled only if it was configured in
// the resource's parent.
LineageEnablement *Config_Ingestion_IngestionRule_LineageEnablement `protobuf:"bytes,3,opt,name=lineage_enablement,json=lineageEnablement,proto3" json:"lineage_enablement,omitempty"`
// contains filtered or unexported fields
}Ingestion rule for Data Lineage ingestion.
func (*Config_Ingestion_IngestionRule) Descriptor
func (*Config_Ingestion_IngestionRule) Descriptor() ([]byte, []int)Deprecated: Use Config_Ingestion_IngestionRule.ProtoReflect.Descriptor instead.
func (*Config_Ingestion_IngestionRule) GetIntegrationSelector
func (x *Config_Ingestion_IngestionRule) GetIntegrationSelector() *Config_Ingestion_IngestionRule_IntegrationSelectorfunc (*Config_Ingestion_IngestionRule) GetLineageEnablement
func (x *Config_Ingestion_IngestionRule) GetLineageEnablement() *Config_Ingestion_IngestionRule_LineageEnablementfunc (*Config_Ingestion_IngestionRule) ProtoMessage
func (*Config_Ingestion_IngestionRule) ProtoMessage()func (*Config_Ingestion_IngestionRule) ProtoReflect
func (x *Config_Ingestion_IngestionRule) ProtoReflect() protoreflect.Messagefunc (*Config_Ingestion_IngestionRule) Reset
func (x *Config_Ingestion_IngestionRule) Reset()func (*Config_Ingestion_IngestionRule) String
func (x *Config_Ingestion_IngestionRule) String() stringConfig_Ingestion_IngestionRule_IntegrationSelector
type Config_Ingestion_IngestionRule_IntegrationSelector struct {
// Required. Integration to which the rule applies.
// This field can be used to specify the integration against which the
// ingestion rule should be applied.
Integration Config_Ingestion_IngestionRule_IntegrationSelector_Integration `protobuf:"varint,1,opt,name=integration,proto3,enum=google.cloud.datacatalog.lineage.configmanagement.v1.Config_Ingestion_IngestionRule_IntegrationSelector_Integration" json:"integration,omitempty"`
// contains filtered or unexported fields
}Integration selector of the rule. The rule is only applied to the Integration selected by the selector.
func (*Config_Ingestion_IngestionRule_IntegrationSelector) Descriptor
func (*Config_Ingestion_IngestionRule_IntegrationSelector) Descriptor() ([]byte, []int)Deprecated: Use Config_Ingestion_IngestionRule_IntegrationSelector.ProtoReflect.Descriptor instead.
func (*Config_Ingestion_IngestionRule_IntegrationSelector) GetIntegration
func (x *Config_Ingestion_IngestionRule_IntegrationSelector) GetIntegration() Config_Ingestion_IngestionRule_IntegrationSelector_Integrationfunc (*Config_Ingestion_IngestionRule_IntegrationSelector) ProtoMessage
func (*Config_Ingestion_IngestionRule_IntegrationSelector) ProtoMessage()func (*Config_Ingestion_IngestionRule_IntegrationSelector) ProtoReflect
func (x *Config_Ingestion_IngestionRule_IntegrationSelector) ProtoReflect() protoreflect.Messagefunc (*Config_Ingestion_IngestionRule_IntegrationSelector) Reset
func (x *Config_Ingestion_IngestionRule_IntegrationSelector) Reset()func (*Config_Ingestion_IngestionRule_IntegrationSelector) String
func (x *Config_Ingestion_IngestionRule_IntegrationSelector) String() stringConfig_Ingestion_IngestionRule_IntegrationSelector_Integration
type Config_Ingestion_IngestionRule_IntegrationSelector_Integration int32Integration to which the rule applies. This enum is expected to grow over time.
Config_Ingestion_IngestionRule_IntegrationSelector_INTEGRATION_UNSPECIFIED, Config_Ingestion_IngestionRule_IntegrationSelector_DATAPROC, Config_Ingestion_IngestionRule_IntegrationSelector_LOOKER_CORE
const (
// Integration is Unspecified
Config_Ingestion_IngestionRule_IntegrationSelector_INTEGRATION_UNSPECIFIED Config_Ingestion_IngestionRule_IntegrationSelector_Integration = 0
// Dataproc
Config_Ingestion_IngestionRule_IntegrationSelector_DATAPROC Config_Ingestion_IngestionRule_IntegrationSelector_Integration = 2
// Looker Core
Config_Ingestion_IngestionRule_IntegrationSelector_LOOKER_CORE Config_Ingestion_IngestionRule_IntegrationSelector_Integration = 3
)func (Config_Ingestion_IngestionRule_IntegrationSelector_Integration) Descriptor
func (Config_Ingestion_IngestionRule_IntegrationSelector_Integration) Descriptor() protoreflect.EnumDescriptorfunc (Config_Ingestion_IngestionRule_IntegrationSelector_Integration) Enum
func (x Config_Ingestion_IngestionRule_IntegrationSelector_Integration) Enum() *Config_Ingestion_IngestionRule_IntegrationSelector_Integrationfunc (Config_Ingestion_IngestionRule_IntegrationSelector_Integration) EnumDescriptor
func (Config_Ingestion_IngestionRule_IntegrationSelector_Integration) EnumDescriptor() ([]byte, []int)Deprecated: Use Config_Ingestion_IngestionRule_IntegrationSelector_Integration.Descriptor instead.
func (Config_Ingestion_IngestionRule_IntegrationSelector_Integration) Number
func (x Config_Ingestion_IngestionRule_IntegrationSelector_Integration) Number() protoreflect.EnumNumberfunc (Config_Ingestion_IngestionRule_IntegrationSelector_Integration) String
func (x Config_Ingestion_IngestionRule_IntegrationSelector_Integration) String() stringfunc (Config_Ingestion_IngestionRule_IntegrationSelector_Integration) Type
Config_Ingestion_IngestionRule_LineageEnablement
type Config_Ingestion_IngestionRule_LineageEnablement struct {
// Optional. If true, ingestion of lineage should be enabled. If false,
// it should be disabled. If unspecified, the system default value is
// used.
Enabled *bool `protobuf:"varint,1,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"`
// contains filtered or unexported fields
}Lineage enablement configuration. Defines configurations for the ingestion of lineage for the resource and its children.
func (*Config_Ingestion_IngestionRule_LineageEnablement) Descriptor
func (*Config_Ingestion_IngestionRule_LineageEnablement) Descriptor() ([]byte, []int)Deprecated: Use Config_Ingestion_IngestionRule_LineageEnablement.ProtoReflect.Descriptor instead.
func (*Config_Ingestion_IngestionRule_LineageEnablement) GetEnabled
func (x *Config_Ingestion_IngestionRule_LineageEnablement) GetEnabled() boolfunc (*Config_Ingestion_IngestionRule_LineageEnablement) ProtoMessage
func (*Config_Ingestion_IngestionRule_LineageEnablement) ProtoMessage()func (*Config_Ingestion_IngestionRule_LineageEnablement) ProtoReflect
func (x *Config_Ingestion_IngestionRule_LineageEnablement) ProtoReflect() protoreflect.Messagefunc (*Config_Ingestion_IngestionRule_LineageEnablement) Reset
func (x *Config_Ingestion_IngestionRule_LineageEnablement) Reset()func (*Config_Ingestion_IngestionRule_LineageEnablement) String
func (x *Config_Ingestion_IngestionRule_LineageEnablement) String() stringGetConfigRequest
type GetConfigRequest struct {
// Required. REQUIRED: The resource name of the config to be fetched.
// Format:
// `organizations/{organization_id}/locations/global/config`
// `folders/{folder_id}/locations/global/config`
// `projects/{project_id}/locations/global/config`
// `projects/{project_number}/locations/global/config`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request message for GetConfig RPC.
func (*GetConfigRequest) Descriptor
func (*GetConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.
func (*GetConfigRequest) GetName
func (x *GetConfigRequest) GetName() stringfunc (*GetConfigRequest) ProtoMessage
func (*GetConfigRequest) ProtoMessage()func (*GetConfigRequest) ProtoReflect
func (x *GetConfigRequest) ProtoReflect() protoreflect.Messagefunc (*GetConfigRequest) Reset
func (x *GetConfigRequest) Reset()func (*GetConfigRequest) String
func (x *GetConfigRequest) String() stringUnimplementedConfigManagementServiceServer
type UnimplementedConfigManagementServiceServer struct {
}UnimplementedConfigManagementServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedConfigManagementServiceServer) GetConfig
func (UnimplementedConfigManagementServiceServer) GetConfig(context.Context, *GetConfigRequest) (*Config, error)func (UnimplementedConfigManagementServiceServer) UpdateConfig
func (UnimplementedConfigManagementServiceServer) UpdateConfig(context.Context, *UpdateConfigRequest) (*Config, error)UnsafeConfigManagementServiceServer
type UnsafeConfigManagementServiceServer interface {
// contains filtered or unexported methods
}UnsafeConfigManagementServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigManagementServiceServer will result in compilation errors.
UpdateConfigRequest
type UpdateConfigRequest struct {
// Required. REQUIRED: The config to be applied to the resource and all its
// descendants.
Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}Request message for UpdateConfig RPC.
func (*UpdateConfigRequest) Descriptor
func (*UpdateConfigRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateConfigRequest.ProtoReflect.Descriptor instead.
func (*UpdateConfigRequest) GetConfig
func (x *UpdateConfigRequest) GetConfig() *Configfunc (*UpdateConfigRequest) ProtoMessage
func (*UpdateConfigRequest) ProtoMessage()func (*UpdateConfigRequest) ProtoReflect
func (x *UpdateConfigRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateConfigRequest) Reset
func (x *UpdateConfigRequest) Reset()func (*UpdateConfigRequest) String
func (x *UpdateConfigRequest) String() string