All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.factchecktools.v1alpha1.model.GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup Maven / Gradle / Ivy

/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/google/apis-client-generator/
 * (build: 2018-10-08 17:45:39 UTC)
 * on 2019-06-19 at 22:27:04 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.factchecktools.v1alpha1.model;

/**
 * Fields for an individual `ClaimReview` element. Except for sub-messages that group fields
 * together, each of these fields correspond those in https://schema.org/ClaimReview. We list the
 * precise mapping for each field.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Fact Check Tools API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup extends com.google.api.client.json.GenericJson { /** * A list of links to works in which this claim appears, aside from the one specified in * `claim_first_appearance`. Corresponds to * `ClaimReview.itemReviewed[@type=Claim].appearance.url`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List claimAppearances; /** * Info about the author of this claim. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor claimAuthor; /** * The date when the claim was made or entered public discourse. Corresponds to * `ClaimReview.itemReviewed.datePublished`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String claimDate; /** * A link to a work in which this claim first appears. Corresponds to * `ClaimReview.itemReviewed[@type=Claim].firstAppearance.url`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String claimFirstAppearance; /** * The location where this claim was made. Corresponds to `ClaimReview.itemReviewed.name`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String claimLocation; /** * A short summary of the claim being evaluated. Corresponds to `ClaimReview.claimReviewed`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String claimReviewed; /** * Info about the rating of this claim review. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating rating; /** * This field is optional, and will default to the page URL. We provide this field to allow you * the override the default value, but the only permitted override is the page URL plus an * optional anchor link ("page jump"). Corresponds to `ClaimReview.url` * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String url; /** * A list of links to works in which this claim appears, aside from the one specified in * `claim_first_appearance`. Corresponds to * `ClaimReview.itemReviewed[@type=Claim].appearance.url`. * @return value or {@code null} for none */ public java.util.List getClaimAppearances() { return claimAppearances; } /** * A list of links to works in which this claim appears, aside from the one specified in * `claim_first_appearance`. Corresponds to * `ClaimReview.itemReviewed[@type=Claim].appearance.url`. * @param claimAppearances claimAppearances or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup setClaimAppearances(java.util.List claimAppearances) { this.claimAppearances = claimAppearances; return this; } /** * Info about the author of this claim. * @return value or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor getClaimAuthor() { return claimAuthor; } /** * Info about the author of this claim. * @param claimAuthor claimAuthor or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup setClaimAuthor(GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor claimAuthor) { this.claimAuthor = claimAuthor; return this; } /** * The date when the claim was made or entered public discourse. Corresponds to * `ClaimReview.itemReviewed.datePublished`. * @return value or {@code null} for none */ public java.lang.String getClaimDate() { return claimDate; } /** * The date when the claim was made or entered public discourse. Corresponds to * `ClaimReview.itemReviewed.datePublished`. * @param claimDate claimDate or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup setClaimDate(java.lang.String claimDate) { this.claimDate = claimDate; return this; } /** * A link to a work in which this claim first appears. Corresponds to * `ClaimReview.itemReviewed[@type=Claim].firstAppearance.url`. * @return value or {@code null} for none */ public java.lang.String getClaimFirstAppearance() { return claimFirstAppearance; } /** * A link to a work in which this claim first appears. Corresponds to * `ClaimReview.itemReviewed[@type=Claim].firstAppearance.url`. * @param claimFirstAppearance claimFirstAppearance or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup setClaimFirstAppearance(java.lang.String claimFirstAppearance) { this.claimFirstAppearance = claimFirstAppearance; return this; } /** * The location where this claim was made. Corresponds to `ClaimReview.itemReviewed.name`. * @return value or {@code null} for none */ public java.lang.String getClaimLocation() { return claimLocation; } /** * The location where this claim was made. Corresponds to `ClaimReview.itemReviewed.name`. * @param claimLocation claimLocation or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup setClaimLocation(java.lang.String claimLocation) { this.claimLocation = claimLocation; return this; } /** * A short summary of the claim being evaluated. Corresponds to `ClaimReview.claimReviewed`. * @return value or {@code null} for none */ public java.lang.String getClaimReviewed() { return claimReviewed; } /** * A short summary of the claim being evaluated. Corresponds to `ClaimReview.claimReviewed`. * @param claimReviewed claimReviewed or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup setClaimReviewed(java.lang.String claimReviewed) { this.claimReviewed = claimReviewed; return this; } /** * Info about the rating of this claim review. * @return value or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating getRating() { return rating; } /** * Info about the rating of this claim review. * @param rating rating or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup setRating(GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating rating) { this.rating = rating; return this; } /** * This field is optional, and will default to the page URL. We provide this field to allow you * the override the default value, but the only permitted override is the page URL plus an * optional anchor link ("page jump"). Corresponds to `ClaimReview.url` * @return value or {@code null} for none */ public java.lang.String getUrl() { return url; } /** * This field is optional, and will default to the page URL. We provide this field to allow you * the override the default value, but the only permitted override is the page URL plus an * optional anchor link ("page jump"). Corresponds to `ClaimReview.url` * @param url url or {@code null} for none */ public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup setUrl(java.lang.String url) { this.url = url; return this; } @Override public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup set(String fieldName, Object value) { return (GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup) super.set(fieldName, value); } @Override public GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup clone() { return (GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy