snapchat.research.gbml.gigl_resource_config_pb2#
@generated by mypy-protobuf. Do not edit manually! isort:skip_file
Attributes#
Classes#
| Enum for pipeline components | |
| Configuration for Data Preprocessor | |
| Configuration for Dataflow Components | |
| (deprecated) | |
| GiGL resources configuration | |
| Configuration for distributed inference resources | |
| Configuration for KFP job resources | |
| (deprecated) | |
| Configuration for Local Jobs | |
| (deprecated) | |
| Shared resources configuration | |
| Configuration for Spark Components | |
| Configuration for training resources | |
| Configuration for lauching Vertex AI clusters with both graph store and compute pools | |
| Configuration for Vertex AI resources | |
| (deprecated) | 
Module Contents#
- class snapchat.research.gbml.gigl_resource_config_pb2.Component[source]#
- Bases: - _Component- Enum for pipeline components 
- class snapchat.research.gbml.gigl_resource_config_pb2.DataPreprocessorConfig(*, edge_preprocessor_config=..., node_preprocessor_config=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for Data Preprocessor - Parameters:
- edge_preprocessor_config (global___DataflowResourceConfig | None) 
- node_preprocessor_config (global___DataflowResourceConfig | None) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - HasField(field_name)[source]#
- Checks if a certain field is set for the message. - For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, - ValueErrorwill be raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Returns:
- Whether a value has been set for the named field. 
- Return type:
- bool 
- Raises:
- ValueError – if the field_name is not a member of this message. 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.DataflowResourceConfig(*, num_workers=..., max_num_workers=..., machine_type=..., disk_size_gb=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for Dataflow Components - Parameters:
- num_workers (int) 
- max_num_workers (int) 
- machine_type (str) 
- disk_size_gb (int) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.DistributedTrainerConfig(*, vertex_ai_trainer_config=..., kfp_trainer_config=..., local_trainer_config=...)[source]#
- Bases: - google.protobuf.message.Message- (deprecated) Configuration for distributed training resources - Parameters:
- vertex_ai_trainer_config (global___VertexAiTrainerConfig | None) 
- kfp_trainer_config (global___KFPTrainerConfig | None) 
- local_trainer_config (global___LocalTrainerConfig | None) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - HasField(field_name)[source]#
- Checks if a certain field is set for the message. - For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, - ValueErrorwill be raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Returns:
- Whether a value has been set for the named field. 
- Return type:
- bool 
- Raises:
- ValueError – if the field_name is not a member of this message. 
 
 - WhichOneof(oneof_group)[source]#
- Returns the name of the field that is set inside a oneof group. - If no field is set, returns None. - Parameters:
- oneof_group (str) – the name of the oneof group to check. 
- Returns:
- The name of the group that is set, or None. 
- Return type:
- str or None 
- Raises:
- ValueError – no group with the given name exists 
 
 - property kfp_trainer_config: global___KFPTrainerConfig[source]#
- Return type:
- global___KFPTrainerConfig 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.GiglResourceConfig(*, shared_resource_config_uri=..., shared_resource_config=..., preprocessor_config=..., subgraph_sampler_config=..., split_generator_config=..., trainer_config=..., inferencer_config=..., trainer_resource_config=..., inferencer_resource_config=...)[source]#
- Bases: - google.protobuf.message.Message- GiGL resources configuration - Parameters:
- shared_resource_config_uri (str) 
- shared_resource_config (global___SharedResourceConfig | None) 
- preprocessor_config (global___DataPreprocessorConfig | None) 
- subgraph_sampler_config (global___SparkResourceConfig | None) 
- split_generator_config (global___SparkResourceConfig | None) 
- trainer_config (global___DistributedTrainerConfig | None) 
- inferencer_config (global___DataflowResourceConfig | None) 
- trainer_resource_config (global___TrainerResourceConfig | None) 
- inferencer_resource_config (global___InferencerResourceConfig | None) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - HasField(field_name)[source]#
- Checks if a certain field is set for the message. - For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, - ValueErrorwill be raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Returns:
- Whether a value has been set for the named field. 
- Return type:
- bool 
- Raises:
- ValueError – if the field_name is not a member of this message. 
 
 - WhichOneof(oneof_group)[source]#
- Returns the name of the field that is set inside a oneof group. - If no field is set, returns None. - Parameters:
- oneof_group (str) – the name of the oneof group to check. 
- Returns:
- The name of the group that is set, or None. 
- Return type:
- str or None 
- Raises:
- ValueError – no group with the given name exists 
 
 - property inferencer_config: global___DataflowResourceConfig[source]#
- (deprecated) Configuration for inferencer - Return type:
- global___DataflowResourceConfig 
 
 - property inferencer_resource_config: global___InferencerResourceConfig[source]#
- Configuration for distributed inferencer - Return type:
- global___InferencerResourceConfig 
 
 - property preprocessor_config: global___DataPreprocessorConfig[source]#
- Configuration for Data Preprocessor - Return type:
- global___DataPreprocessorConfig 
 
 - Return type:
- global___SharedResourceConfig 
 
 - property split_generator_config: global___SparkResourceConfig[source]#
- Configuration for Spark split generator - Return type:
- global___SparkResourceConfig 
 
 - property subgraph_sampler_config: global___SparkResourceConfig[source]#
- Configuration for Spark subgraph sampler - Return type:
- global___SparkResourceConfig 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.InferencerResourceConfig(*, vertex_ai_inferencer_config=..., dataflow_inferencer_config=..., local_inferencer_config=..., vertex_ai_graph_store_inferencer_config=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for distributed inference resources - Parameters:
- vertex_ai_inferencer_config (global___VertexAiResourceConfig | None) 
- dataflow_inferencer_config (global___DataflowResourceConfig | None) 
- local_inferencer_config (global___LocalResourceConfig | None) 
- vertex_ai_graph_store_inferencer_config (global___VertexAiGraphStoreConfig | None) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - HasField(field_name)[source]#
- Checks if a certain field is set for the message. - For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, - ValueErrorwill be raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Returns:
- Whether a value has been set for the named field. 
- Return type:
- bool 
- Raises:
- ValueError – if the field_name is not a member of this message. 
 
 - WhichOneof(oneof_group)[source]#
- Returns the name of the field that is set inside a oneof group. - If no field is set, returns None. - Parameters:
- oneof_group (str) – the name of the oneof group to check. 
- Returns:
- The name of the group that is set, or None. 
- Return type:
- str or None 
- Raises:
- ValueError – no group with the given name exists 
 
 - property dataflow_inferencer_config: global___DataflowResourceConfig[source]#
- Return type:
- global___DataflowResourceConfig 
 
 - property local_inferencer_config: global___LocalResourceConfig[source]#
- Return type:
- global___LocalResourceConfig 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.KFPResourceConfig(*, cpu_request=..., memory_request=..., gpu_type=..., gpu_limit=..., num_replicas=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for KFP job resources - Parameters:
- cpu_request (str) 
- memory_request (str) 
- gpu_type (str) 
- gpu_limit (int) 
- num_replicas (int) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - cpu_request: str[source]#
- Num CPU requested for job (str) which can be a number or a number followed by “m”, which means 1/1000 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.KFPTrainerConfig(*, cpu_request=..., memory_request=..., gpu_type=..., gpu_limit=..., num_replicas=...)[source]#
- Bases: - google.protobuf.message.Message- (deprecated) Configuration for KFP training resources - Parameters:
- cpu_request (str) 
- memory_request (str) 
- gpu_type (str) 
- gpu_limit (int) 
- num_replicas (int) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - cpu_request: str[source]#
- Num CPU requested for training job (str) which can be a number or a number followed by “m”, which means 1/1000 
 - gpu_type: str[source]#
- GPU type for training job. Must be set to ‘ACCELERATOR_TYPE_UNSPECIFIED’ for cpu training. 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.LocalResourceConfig(*, num_workers=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for Local Jobs - Parameters:
- num_workers (int) 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.LocalTrainerConfig(*, num_workers=...)[source]#
- Bases: - google.protobuf.message.Message- (deprecated) Configuration for Local Training - Parameters:
- num_workers (int) 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 
- Bases: - google.protobuf.message.Message- Shared resources configuration - Parameters:
- resource_labels (collections.abc.Mapping[str, str] | None) 
- common_compute_config (global___SharedResourceConfig | None) 
 
 - Bases: - google.protobuf.message.Message- Abstract base class for protocol messages. - Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. - Parameters:
- project (str) 
- region (str) 
- temp_assets_bucket (str) 
- temp_regional_assets_bucket (str) 
- perm_assets_bucket (str) 
- temp_assets_bq_dataset_name (str) 
- embedding_bq_dataset_name (str) 
- gcp_service_account_email (str) 
- dataflow_runner (str) 
 
 - Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - The runner to use for Dataflow i.e DirectRunner or DataflowRunner 
 - Path to BQ Dataset used to persist generated embeddings and predictions 
 - The GCP service account email being used to schedule compute on GCP 
 - Regional GCS Bucket that will store permanent assets like Trained Model 
 - GCP Project 
 - GCP Region where compute is to be scheduled 
 - Path to BQ dataset used to store temporary assets 
 - GCS Bucket for where temporary assets are to be stored 
 - Regional GCS Bucket used to store temporary assets 
 
 - Bases: - google.protobuf.message.Message- Abstract base class for protocol messages. - Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. - Parameters:
- key (str) 
- value (str) 
 
 - Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 
 - Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - Checks if a certain field is set for the message. - For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, - ValueErrorwill be raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Returns:
- Whether a value has been set for the named field. 
- Return type:
- bool 
- Raises:
- ValueError – if the field_name is not a member of this message. 
 
 - Return type:
- global___SharedResourceConfig 
 
 - Return type:
- google.protobuf.internal.containers.ScalarMap[str, str] 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.SparkResourceConfig(*, machine_type=..., num_local_ssds=..., num_replicas=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for Spark Components - Parameters:
- machine_type (str) 
- num_local_ssds (int) 
- num_replicas (int) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.TrainerResourceConfig(*, vertex_ai_trainer_config=..., kfp_trainer_config=..., local_trainer_config=..., vertex_ai_graph_store_trainer_config=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for training resources - Parameters:
- vertex_ai_trainer_config (global___VertexAiResourceConfig | None) 
- kfp_trainer_config (global___KFPResourceConfig | None) 
- local_trainer_config (global___LocalResourceConfig | None) 
- vertex_ai_graph_store_trainer_config (global___VertexAiGraphStoreConfig | None) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - HasField(field_name)[source]#
- Checks if a certain field is set for the message. - For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, - ValueErrorwill be raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Returns:
- Whether a value has been set for the named field. 
- Return type:
- bool 
- Raises:
- ValueError – if the field_name is not a member of this message. 
 
 - WhichOneof(oneof_group)[source]#
- Returns the name of the field that is set inside a oneof group. - If no field is set, returns None. - Parameters:
- oneof_group (str) – the name of the oneof group to check. 
- Returns:
- The name of the group that is set, or None. 
- Return type:
- str or None 
- Raises:
- ValueError – no group with the given name exists 
 
 - property kfp_trainer_config: global___KFPResourceConfig[source]#
- Return type:
- global___KFPResourceConfig 
 
 - property local_trainer_config: global___LocalResourceConfig[source]#
- Return type:
- global___LocalResourceConfig 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.VertexAiGraphStoreConfig(*, graph_store_pool=..., compute_pool=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for lauching Vertex AI clusters with both graph store and compute pools Under the hood, this uses Vertex AI Multi-Pool Training See https://cloud.google.com/vertex-ai/docs/training/distributed-training for more info. This cluster setup should be used when you want store your graph on separate machines from the compute machines e.g. you can get lots of big memory machines and separate gpu machines individually, but getting lots of gpu machines with lots of memory is challenging. - Parameters:
- graph_store_pool (global___VertexAiResourceConfig | None) 
- compute_pool (global___VertexAiResourceConfig | None) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - HasField(field_name)[source]#
- Checks if a certain field is set for the message. - For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, - ValueErrorwill be raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Returns:
- Whether a value has been set for the named field. 
- Return type:
- bool 
- Raises:
- ValueError – if the field_name is not a member of this message. 
 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.VertexAiResourceConfig(*, machine_type=..., gpu_type=..., gpu_limit=..., num_replicas=..., timeout=..., gcp_region_override=...)[source]#
- Bases: - google.protobuf.message.Message- Configuration for Vertex AI resources - Parameters:
- machine_type (str) 
- gpu_type (str) 
- gpu_limit (int) 
- num_replicas (int) 
- timeout (int) 
- gcp_region_override (str) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 - gcp_region_override: str[source]#
- Region override If provided, then the Vertex AI Job will be launched in the provided region. Otherwise, will launch jobs in the region specified at CommonComputeConfig.region ex: “us-west1” NOTE: If set, then there may be data egress costs from CommonComputeConfig.region -> gcp_region_override 
 - timeout: int[source]#
- Timeout in seconds for the job. If unset or zero, will use the default @ google.cloud.aiplatform.CustomJob, which is 7 days: googleapis/python-aiplatform 
 
- class snapchat.research.gbml.gigl_resource_config_pb2.VertexAiTrainerConfig(*, machine_type=..., gpu_type=..., gpu_limit=..., num_replicas=...)[source]#
- Bases: - google.protobuf.message.Message- (deprecated) Configuration for Vertex AI training resources - Parameters:
- machine_type (str) 
- gpu_type (str) 
- gpu_limit (int) 
- num_replicas (int) 
 
 - ClearField(field_name)[source]#
- Clears the contents of a given field. - Inside a oneof group, clears the field set. If the name neither refers to a defined field or oneof group, - ValueErroris raised.- Parameters:
- field_name (str) – The name of the field to check for presence. 
- Raises:
- ValueError – if the field_name is not a member of this message. 
- Return type:
- None 
 
 
- snapchat.research.gbml.gigl_resource_config_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor[source]#
