def sample_update_feature():
    # Create a client
    client = aiplatform_v1.FeaturestoreServiceClient()

    # Initialize request argument(s)
    feature = aiplatform_v1.Feature()
    feature.value_type = "BYTES"

    request = aiplatform_v1.UpdateFeatureRequest(feature=feature, )

    # Make the request
    response = client.update_feature(request=request)

    # Handle the response
    print(response)
def sample_create_feature():
    # Create a client
    client = aiplatform_v1.FeaturestoreServiceClient()

    # Initialize request argument(s)
    feature = aiplatform_v1.Feature()
    feature.value_type = "BYTES"

    request = aiplatform_v1.CreateFeatureRequest(
        parent="parent_value",
        feature=feature,
        feature_id="feature_id_value",
    )

    # Make the request
    operation = client.create_feature(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)