private void fromJSONAttribution(JSONValue json_value, bool ignore_extras) { Debug.Assert(json_value != null); AttributionJSON convert_classy = AttributionJSON.from_json(json_value, ignore_extras, true); setAttribution(convert_classy); }
public void setAttribution(AttributionJSON new_value) { if (flagHasAttribution) { } flagHasAttribution = true; storeAttribution = new_value; }
protected override void finish() { AttributionJSON result = new AttributionJSON(); Debug.Assert(result != null); finish(result); int extra_count = unknownFieldGenerator.field_names.Count; Debug.Assert(extra_count == unknownFieldGenerator.field_values.Count); for (int extra_num = 0; extra_num < extra_count; ++extra_num) { result.extraAttributionAppendPair(unknownFieldGenerator.field_names[extra_num], unknownFieldGenerator.field_values[extra_num]); } unknownFieldGenerator.field_names.Clear(); unknownFieldGenerator.field_values.Clear(); unknownFieldGenerator.index = new Dictionary <string, JSONValue>(); handle_result(result); }
protected void finish(AttributionJSON result) { if (fieldGeneratorLogoImageURL.have_value) { result.setLogoImageURL(fieldGeneratorLogoImageURL.value); fieldGeneratorLogoImageURL.have_value = false; } else if ((!(result.hasLogoImageURL())) && !allow_incomplete) { error("When parsing the object for %what%, the \"LogoImageURL\" field was missing."); } if (fieldGeneratorLogoImageGrayURL.have_value) { result.setLogoImageGrayURL(fieldGeneratorLogoImageGrayURL.value); fieldGeneratorLogoImageGrayURL.have_value = false; } if (fieldGeneratorLogoLabel.have_value) { result.setLogoLabel(fieldGeneratorLogoLabel.value); fieldGeneratorLogoLabel.have_value = false; } if (fieldGeneratorTextOnlyLabel.have_value) { result.setTextOnlyLabel(fieldGeneratorTextOnlyLabel.value); fieldGeneratorTextOnlyLabel.have_value = false; } if (fieldGeneratorProviderURL.have_value) { result.setProviderURL(fieldGeneratorProviderURL.value); fieldGeneratorProviderURL.have_value = false; } if (fieldGeneratorRequiredToIncludeInline.have_value) { result.setRequiredToIncludeInline(fieldGeneratorRequiredToIncludeInline.value); fieldGeneratorRequiredToIncludeInline.have_value = false; } else if ((!(result.hasRequiredToIncludeInline())) && !allow_incomplete) { error("When parsing the object for %what%, the \"RequiredToIncludeInline\" field was missing."); } }
protected override void handle_result(AttributionJSON result) { top.value.Add(result); }
protected override void handle_result(AttributionJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(AttributionJSON new_result);