passing @Any objects in a list

These are my message definitions I am currently stuck on constructing the profile list

message ModelRescheduleQuoteRequest {
    string security_token = 1;
    optional string attribute_to_solve_for = 2;
    com.myCompany.grpc.gateway.classes.ListValue profile_list = 3;
    optional string quote_item_to_model_id = 4;
    com.myCompany.grpc.gateway.classes.RescheduleQuote reschedule_quote = 5;
}

message ListValue {
    repeated google.protobuf.Any values = 1;
}

message Profile {
    optional int32 number_of_payments = 1;
    optional double instalment_amount = 2;
    optional string instalment_frequency_id = 3;
    optional double instalment_ratio = 4;
    com.myCompany.grpc.gateway.classes.Date payment_date = 5;
}

message Date {
    optional int32 day = 1;
    optional int32 month = 2;
    optional int32 year = 3;
}


If I pass it in in the format below the value is passed through in the request, but obviously I can’t do this as I have no way of typing that in

  "profile_list": {
        "values" : [{
        "type_url": "type.googleapis.com/com.MyCompany.grpc.gateway.classes.Profile",
       "value": "CgYzNjQ2OTEpA"
        }]
    },

I need to pass this but when I do it isn’t getting passed into the request

 "profile_list": {
        "values" : [{
        "@type": "type.googleapis.com/com.MyCompany.grpc.gateway.classes.Profile",
        "instalmentAmount": 123.45,
        "instalmentFrequencyId": 123,
        "instalmentRatio": 1.0,
        "numberOfPayments": 1,
        "paymentDate": {
            "day": 1,
            "month": 2,
            "year": 2026
        }
        }]
    },