|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.searchads360.v0.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * A relationship between an ad group criterion and an effective label. An effective label is a |
| 21 | + * label inherited or directly assigned to this ad group criterion. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Search Ads 360 Reporting API. For a detailed |
| 25 | + * explanation see: |
| 26 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 27 | + * </p> |
| 28 | + * |
| 29 | + * @author Google, Inc. |
| 30 | + */ |
| 31 | +@SuppressWarnings("javadoc") |
| 32 | +public final class GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * Immutable. The ad group criterion to which the effective label is attached. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.String adGroupCriterion; |
| 40 | + |
| 41 | + /** |
| 42 | + * Immutable. The effective label assigned to the ad group criterion. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.lang.String label; |
| 47 | + |
| 48 | + /** |
| 49 | + * Output only. The ID of the Customer which owns the effective label. |
| 50 | + * The value may be {@code null}. |
| 51 | + */ |
| 52 | + @com.google.api.client.util.Key @com.google.api.client.json.JsonString |
| 53 | + private java.lang.Long ownerCustomerId; |
| 54 | + |
| 55 | + /** |
| 56 | + * Immutable. The resource name of the ad group criterion effective label. Ad group criterion |
| 57 | + * effective label resource names have the form: `customers/{customer_id}/adGroupCriterionEffectiv |
| 58 | + * eLabels/{ad_group_id}~{criterion_id}~{label_id}` |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private java.lang.String resourceName; |
| 63 | + |
| 64 | + /** |
| 65 | + * Immutable. The ad group criterion to which the effective label is attached. |
| 66 | + * @return value or {@code null} for none |
| 67 | + */ |
| 68 | + public java.lang.String getAdGroupCriterion() { |
| 69 | + return adGroupCriterion; |
| 70 | + } |
| 71 | + |
| 72 | + /** |
| 73 | + * Immutable. The ad group criterion to which the effective label is attached. |
| 74 | + * @param adGroupCriterion adGroupCriterion or {@code null} for none |
| 75 | + */ |
| 76 | + public GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel setAdGroupCriterion(java.lang.String adGroupCriterion) { |
| 77 | + this.adGroupCriterion = adGroupCriterion; |
| 78 | + return this; |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Immutable. The effective label assigned to the ad group criterion. |
| 83 | + * @return value or {@code null} for none |
| 84 | + */ |
| 85 | + public java.lang.String getLabel() { |
| 86 | + return label; |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * Immutable. The effective label assigned to the ad group criterion. |
| 91 | + * @param label label or {@code null} for none |
| 92 | + */ |
| 93 | + public GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel setLabel(java.lang.String label) { |
| 94 | + this.label = label; |
| 95 | + return this; |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Output only. The ID of the Customer which owns the effective label. |
| 100 | + * @return value or {@code null} for none |
| 101 | + */ |
| 102 | + public java.lang.Long getOwnerCustomerId() { |
| 103 | + return ownerCustomerId; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Output only. The ID of the Customer which owns the effective label. |
| 108 | + * @param ownerCustomerId ownerCustomerId or {@code null} for none |
| 109 | + */ |
| 110 | + public GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel setOwnerCustomerId(java.lang.Long ownerCustomerId) { |
| 111 | + this.ownerCustomerId = ownerCustomerId; |
| 112 | + return this; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Immutable. The resource name of the ad group criterion effective label. Ad group criterion |
| 117 | + * effective label resource names have the form: `customers/{customer_id}/adGroupCriterionEffectiv |
| 118 | + * eLabels/{ad_group_id}~{criterion_id}~{label_id}` |
| 119 | + * @return value or {@code null} for none |
| 120 | + */ |
| 121 | + public java.lang.String getResourceName() { |
| 122 | + return resourceName; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Immutable. The resource name of the ad group criterion effective label. Ad group criterion |
| 127 | + * effective label resource names have the form: `customers/{customer_id}/adGroupCriterionEffectiv |
| 128 | + * eLabels/{ad_group_id}~{criterion_id}~{label_id}` |
| 129 | + * @param resourceName resourceName or {@code null} for none |
| 130 | + */ |
| 131 | + public GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel setResourceName(java.lang.String resourceName) { |
| 132 | + this.resourceName = resourceName; |
| 133 | + return this; |
| 134 | + } |
| 135 | + |
| 136 | + @Override |
| 137 | + public GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel set(String fieldName, Object value) { |
| 138 | + return (GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel) super.set(fieldName, value); |
| 139 | + } |
| 140 | + |
| 141 | + @Override |
| 142 | + public GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel clone() { |
| 143 | + return (GoogleAdsSearchads360V0ResourcesAdGroupCriterionEffectiveLabel) super.clone(); |
| 144 | + } |
| 145 | + |
| 146 | +} |
0 commit comments