com.google.ads.googleads.v17.resources.LeadFormSubmissionData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/resources/lead_form_submission_data.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* Data from lead form submissions.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.LeadFormSubmissionData}
*/
public final class LeadFormSubmissionData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.LeadFormSubmissionData)
LeadFormSubmissionDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use LeadFormSubmissionData.newBuilder() to construct.
private LeadFormSubmissionData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LeadFormSubmissionData() {
resourceName_ = "";
id_ = "";
asset_ = "";
campaign_ = "";
leadFormSubmissionFields_ = java.util.Collections.emptyList();
customLeadFormSubmissionFields_ = java.util.Collections.emptyList();
adGroup_ = "";
adGroupAd_ = "";
gclid_ = "";
submissionDateTime_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LeadFormSubmissionData();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.LeadFormSubmissionDataProto.internal_static_google_ads_googleads_v17_resources_LeadFormSubmissionData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.LeadFormSubmissionDataProto.internal_static_google_ads_googleads_v17_resources_LeadFormSubmissionData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.LeadFormSubmissionData.class, com.google.ads.googleads.v17.resources.LeadFormSubmissionData.Builder.class);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Output only. The resource name of the lead form submission data.
* Lead form submission data resource names have the form:
*
* `customers/{customer_id}/leadFormSubmissionData/{lead_form_submission_data_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
@java.lang.Override
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
}
}
/**
*
* Output only. The resource name of the lead form submission data.
* Lead form submission data resource names have the form:
*
* `customers/{customer_id}/leadFormSubmissionData/{lead_form_submission_data_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
*
* Output only. ID of this lead form submission.
*
*
* string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* Output only. ID of this lead form submission.
*
*
* string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSET_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object asset_ = "";
/**
*
* Output only. Asset associated with the submitted lead form.
*
*
* string asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The asset.
*/
@java.lang.Override
public java.lang.String getAsset() {
java.lang.Object ref = asset_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
asset_ = s;
return s;
}
}
/**
*
* Output only. Asset associated with the submitted lead form.
*
*
* string asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for asset.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAssetBytes() {
java.lang.Object ref = asset_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
asset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAMPAIGN_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object campaign_ = "";
/**
*
* Output only. Campaign associated with the submitted lead form.
*
*
* string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The campaign.
*/
@java.lang.Override
public java.lang.String getCampaign() {
java.lang.Object ref = campaign_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaign_ = s;
return s;
}
}
/**
*
* Output only. Campaign associated with the submitted lead form.
*
*
* string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for campaign.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCampaignBytes() {
java.lang.Object ref = campaign_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LEAD_FORM_SUBMISSION_FIELDS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private java.util.List leadFormSubmissionFields_;
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getLeadFormSubmissionFieldsList() {
return leadFormSubmissionFields_;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.resources.LeadFormSubmissionFieldOrBuilder>
getLeadFormSubmissionFieldsOrBuilderList() {
return leadFormSubmissionFields_;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getLeadFormSubmissionFieldsCount() {
return leadFormSubmissionFields_.size();
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.LeadFormSubmissionField getLeadFormSubmissionFields(int index) {
return leadFormSubmissionFields_.get(index);
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.LeadFormSubmissionFieldOrBuilder getLeadFormSubmissionFieldsOrBuilder(
int index) {
return leadFormSubmissionFields_.get(index);
}
public static final int CUSTOM_LEAD_FORM_SUBMISSION_FIELDS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private java.util.List customLeadFormSubmissionFields_;
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List getCustomLeadFormSubmissionFieldsList() {
return customLeadFormSubmissionFields_;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionFieldOrBuilder>
getCustomLeadFormSubmissionFieldsOrBuilderList() {
return customLeadFormSubmissionFields_;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public int getCustomLeadFormSubmissionFieldsCount() {
return customLeadFormSubmissionFields_.size();
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField getCustomLeadFormSubmissionFields(int index) {
return customLeadFormSubmissionFields_.get(index);
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
@java.lang.Override
public com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionFieldOrBuilder getCustomLeadFormSubmissionFieldsOrBuilder(
int index) {
return customLeadFormSubmissionFields_.get(index);
}
public static final int AD_GROUP_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object adGroup_ = "";
/**
*
* Output only. AdGroup associated with the submitted lead form.
*
*
* string ad_group = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The adGroup.
*/
@java.lang.Override
public java.lang.String getAdGroup() {
java.lang.Object ref = adGroup_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adGroup_ = s;
return s;
}
}
/**
*
* Output only. AdGroup associated with the submitted lead form.
*
*
* string ad_group = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for adGroup.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdGroupBytes() {
java.lang.Object ref = adGroup_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AD_GROUP_AD_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object adGroupAd_ = "";
/**
*
* Output only. AdGroupAd associated with the submitted lead form.
*
*
* string ad_group_ad = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The adGroupAd.
*/
@java.lang.Override
public java.lang.String getAdGroupAd() {
java.lang.Object ref = adGroupAd_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adGroupAd_ = s;
return s;
}
}
/**
*
* Output only. AdGroupAd associated with the submitted lead form.
*
*
* string ad_group_ad = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for adGroupAd.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdGroupAdBytes() {
java.lang.Object ref = adGroupAd_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroupAd_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int GCLID_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object gclid_ = "";
/**
*
* Output only. Google Click Id associated with the submissed lead form.
*
*
* string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The gclid.
*/
@java.lang.Override
public java.lang.String getGclid() {
java.lang.Object ref = gclid_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gclid_ = s;
return s;
}
}
/**
*
* Output only. Google Click Id associated with the submissed lead form.
*
*
* string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for gclid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGclidBytes() {
java.lang.Object ref = gclid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gclid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBMISSION_DATE_TIME_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object submissionDateTime_ = "";
/**
*
* Output only. The date and time at which the lead form was submitted. The
* format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01
* 12:32:45-08:00".
*
*
* string submission_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The submissionDateTime.
*/
@java.lang.Override
public java.lang.String getSubmissionDateTime() {
java.lang.Object ref = submissionDateTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submissionDateTime_ = s;
return s;
}
}
/**
*
* Output only. The date and time at which the lead form was submitted. The
* format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01
* 12:32:45-08:00".
*
*
* string submission_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for submissionDateTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubmissionDateTimeBytes() {
java.lang.Object ref = submissionDateTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submissionDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, asset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(campaign_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, campaign_);
}
for (int i = 0; i < leadFormSubmissionFields_.size(); i++) {
output.writeMessage(5, leadFormSubmissionFields_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adGroup_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, adGroup_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adGroupAd_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, adGroupAd_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gclid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gclid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionDateTime_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, submissionDateTime_);
}
for (int i = 0; i < customLeadFormSubmissionFields_.size(); i++) {
output.writeMessage(10, customLeadFormSubmissionFields_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(asset_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, asset_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(campaign_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, campaign_);
}
for (int i = 0; i < leadFormSubmissionFields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, leadFormSubmissionFields_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adGroup_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, adGroup_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adGroupAd_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, adGroupAd_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gclid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gclid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(submissionDateTime_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, submissionDateTime_);
}
for (int i = 0; i < customLeadFormSubmissionFields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, customLeadFormSubmissionFields_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.ads.googleads.v17.resources.LeadFormSubmissionData)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.LeadFormSubmissionData other = (com.google.ads.googleads.v17.resources.LeadFormSubmissionData) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (!getId()
.equals(other.getId())) return false;
if (!getAsset()
.equals(other.getAsset())) return false;
if (!getCampaign()
.equals(other.getCampaign())) return false;
if (!getLeadFormSubmissionFieldsList()
.equals(other.getLeadFormSubmissionFieldsList())) return false;
if (!getCustomLeadFormSubmissionFieldsList()
.equals(other.getCustomLeadFormSubmissionFieldsList())) return false;
if (!getAdGroup()
.equals(other.getAdGroup())) return false;
if (!getAdGroupAd()
.equals(other.getAdGroupAd())) return false;
if (!getGclid()
.equals(other.getGclid())) return false;
if (!getSubmissionDateTime()
.equals(other.getSubmissionDateTime())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RESOURCE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getResourceName().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + ASSET_FIELD_NUMBER;
hash = (53 * hash) + getAsset().hashCode();
hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER;
hash = (53 * hash) + getCampaign().hashCode();
if (getLeadFormSubmissionFieldsCount() > 0) {
hash = (37 * hash) + LEAD_FORM_SUBMISSION_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getLeadFormSubmissionFieldsList().hashCode();
}
if (getCustomLeadFormSubmissionFieldsCount() > 0) {
hash = (37 * hash) + CUSTOM_LEAD_FORM_SUBMISSION_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getCustomLeadFormSubmissionFieldsList().hashCode();
}
hash = (37 * hash) + AD_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getAdGroup().hashCode();
hash = (37 * hash) + AD_GROUP_AD_FIELD_NUMBER;
hash = (53 * hash) + getAdGroupAd().hashCode();
hash = (37 * hash) + GCLID_FIELD_NUMBER;
hash = (53 * hash) + getGclid().hashCode();
hash = (37 * hash) + SUBMISSION_DATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getSubmissionDateTime().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.ads.googleads.v17.resources.LeadFormSubmissionData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Data from lead form submissions.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.LeadFormSubmissionData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.LeadFormSubmissionData)
com.google.ads.googleads.v17.resources.LeadFormSubmissionDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.LeadFormSubmissionDataProto.internal_static_google_ads_googleads_v17_resources_LeadFormSubmissionData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.LeadFormSubmissionDataProto.internal_static_google_ads_googleads_v17_resources_LeadFormSubmissionData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.LeadFormSubmissionData.class, com.google.ads.googleads.v17.resources.LeadFormSubmissionData.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.LeadFormSubmissionData.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
id_ = "";
asset_ = "";
campaign_ = "";
if (leadFormSubmissionFieldsBuilder_ == null) {
leadFormSubmissionFields_ = java.util.Collections.emptyList();
} else {
leadFormSubmissionFields_ = null;
leadFormSubmissionFieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (customLeadFormSubmissionFieldsBuilder_ == null) {
customLeadFormSubmissionFields_ = java.util.Collections.emptyList();
} else {
customLeadFormSubmissionFields_ = null;
customLeadFormSubmissionFieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
adGroup_ = "";
adGroupAd_ = "";
gclid_ = "";
submissionDateTime_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.LeadFormSubmissionDataProto.internal_static_google_ads_googleads_v17_resources_LeadFormSubmissionData_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LeadFormSubmissionData getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.LeadFormSubmissionData.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LeadFormSubmissionData build() {
com.google.ads.googleads.v17.resources.LeadFormSubmissionData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LeadFormSubmissionData buildPartial() {
com.google.ads.googleads.v17.resources.LeadFormSubmissionData result = new com.google.ads.googleads.v17.resources.LeadFormSubmissionData(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.resources.LeadFormSubmissionData result) {
if (leadFormSubmissionFieldsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
leadFormSubmissionFields_ = java.util.Collections.unmodifiableList(leadFormSubmissionFields_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.leadFormSubmissionFields_ = leadFormSubmissionFields_;
} else {
result.leadFormSubmissionFields_ = leadFormSubmissionFieldsBuilder_.build();
}
if (customLeadFormSubmissionFieldsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
customLeadFormSubmissionFields_ = java.util.Collections.unmodifiableList(customLeadFormSubmissionFields_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.customLeadFormSubmissionFields_ = customLeadFormSubmissionFields_;
} else {
result.customLeadFormSubmissionFields_ = customLeadFormSubmissionFieldsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.resources.LeadFormSubmissionData result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.asset_ = asset_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.campaign_ = campaign_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.adGroup_ = adGroup_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.adGroupAd_ = adGroupAd_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.gclid_ = gclid_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.submissionDateTime_ = submissionDateTime_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.ads.googleads.v17.resources.LeadFormSubmissionData) {
return mergeFrom((com.google.ads.googleads.v17.resources.LeadFormSubmissionData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.LeadFormSubmissionData other) {
if (other == com.google.ads.googleads.v17.resources.LeadFormSubmissionData.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getAsset().isEmpty()) {
asset_ = other.asset_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getCampaign().isEmpty()) {
campaign_ = other.campaign_;
bitField0_ |= 0x00000008;
onChanged();
}
if (leadFormSubmissionFieldsBuilder_ == null) {
if (!other.leadFormSubmissionFields_.isEmpty()) {
if (leadFormSubmissionFields_.isEmpty()) {
leadFormSubmissionFields_ = other.leadFormSubmissionFields_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.addAll(other.leadFormSubmissionFields_);
}
onChanged();
}
} else {
if (!other.leadFormSubmissionFields_.isEmpty()) {
if (leadFormSubmissionFieldsBuilder_.isEmpty()) {
leadFormSubmissionFieldsBuilder_.dispose();
leadFormSubmissionFieldsBuilder_ = null;
leadFormSubmissionFields_ = other.leadFormSubmissionFields_;
bitField0_ = (bitField0_ & ~0x00000010);
leadFormSubmissionFieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLeadFormSubmissionFieldsFieldBuilder() : null;
} else {
leadFormSubmissionFieldsBuilder_.addAllMessages(other.leadFormSubmissionFields_);
}
}
}
if (customLeadFormSubmissionFieldsBuilder_ == null) {
if (!other.customLeadFormSubmissionFields_.isEmpty()) {
if (customLeadFormSubmissionFields_.isEmpty()) {
customLeadFormSubmissionFields_ = other.customLeadFormSubmissionFields_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.addAll(other.customLeadFormSubmissionFields_);
}
onChanged();
}
} else {
if (!other.customLeadFormSubmissionFields_.isEmpty()) {
if (customLeadFormSubmissionFieldsBuilder_.isEmpty()) {
customLeadFormSubmissionFieldsBuilder_.dispose();
customLeadFormSubmissionFieldsBuilder_ = null;
customLeadFormSubmissionFields_ = other.customLeadFormSubmissionFields_;
bitField0_ = (bitField0_ & ~0x00000020);
customLeadFormSubmissionFieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCustomLeadFormSubmissionFieldsFieldBuilder() : null;
} else {
customLeadFormSubmissionFieldsBuilder_.addAllMessages(other.customLeadFormSubmissionFields_);
}
}
}
if (!other.getAdGroup().isEmpty()) {
adGroup_ = other.adGroup_;
bitField0_ |= 0x00000040;
onChanged();
}
if (!other.getAdGroupAd().isEmpty()) {
adGroupAd_ = other.adGroupAd_;
bitField0_ |= 0x00000080;
onChanged();
}
if (!other.getGclid().isEmpty()) {
gclid_ = other.gclid_;
bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getSubmissionDateTime().isEmpty()) {
submissionDateTime_ = other.submissionDateTime_;
bitField0_ |= 0x00000200;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
resourceName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
asset_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
campaign_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
com.google.ads.googleads.v17.resources.LeadFormSubmissionField m =
input.readMessage(
com.google.ads.googleads.v17.resources.LeadFormSubmissionField.parser(),
extensionRegistry);
if (leadFormSubmissionFieldsBuilder_ == null) {
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.add(m);
} else {
leadFormSubmissionFieldsBuilder_.addMessage(m);
}
break;
} // case 42
case 50: {
adGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 50
case 58: {
adGroupAd_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 58
case 66: {
gclid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 66
case 74: {
submissionDateTime_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 74
case 82: {
com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField m =
input.readMessage(
com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.parser(),
extensionRegistry);
if (customLeadFormSubmissionFieldsBuilder_ == null) {
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.add(m);
} else {
customLeadFormSubmissionFieldsBuilder_.addMessage(m);
}
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Output only. The resource name of the lead form submission data.
* Lead form submission data resource names have the form:
*
* `customers/{customer_id}/leadFormSubmissionData/{lead_form_submission_data_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The resourceName.
*/
public java.lang.String getResourceName() {
java.lang.Object ref = resourceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resourceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The resource name of the lead form submission data.
* Lead form submission data resource names have the form:
*
* `customers/{customer_id}/leadFormSubmissionData/{lead_form_submission_data_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for resourceName.
*/
public com.google.protobuf.ByteString
getResourceNameBytes() {
java.lang.Object ref = resourceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The resource name of the lead form submission data.
* Lead form submission data resource names have the form:
*
* `customers/{customer_id}/leadFormSubmissionData/{lead_form_submission_data_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Output only. The resource name of the lead form submission data.
* Lead form submission data resource names have the form:
*
* `customers/{customer_id}/leadFormSubmissionData/{lead_form_submission_data_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Output only. The resource name of the lead form submission data.
* Lead form submission data resource names have the form:
*
* `customers/{customer_id}/leadFormSubmissionData/{lead_form_submission_data_id}`
*
*
* string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
resourceName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
*
* Output only. ID of this lead form submission.
*
*
* string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. ID of this lead form submission.
*
*
* string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. ID of this lead form submission.
*
*
* string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Output only. ID of this lead form submission.
*
*
* string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Output only. ID of this lead form submission.
*
*
* string id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object asset_ = "";
/**
*
* Output only. Asset associated with the submitted lead form.
*
*
* string asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The asset.
*/
public java.lang.String getAsset() {
java.lang.Object ref = asset_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
asset_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Asset associated with the submitted lead form.
*
*
* string asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for asset.
*/
public com.google.protobuf.ByteString
getAssetBytes() {
java.lang.Object ref = asset_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
asset_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Asset associated with the submitted lead form.
*
*
* string asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The asset to set.
* @return This builder for chaining.
*/
public Builder setAsset(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
asset_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Output only. Asset associated with the submitted lead form.
*
*
* string asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearAsset() {
asset_ = getDefaultInstance().getAsset();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Output only. Asset associated with the submitted lead form.
*
*
* string asset = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for asset to set.
* @return This builder for chaining.
*/
public Builder setAssetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
asset_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object campaign_ = "";
/**
*
* Output only. Campaign associated with the submitted lead form.
*
*
* string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The campaign.
*/
public java.lang.String getCampaign() {
java.lang.Object ref = campaign_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
campaign_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Campaign associated with the submitted lead form.
*
*
* string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for campaign.
*/
public com.google.protobuf.ByteString
getCampaignBytes() {
java.lang.Object ref = campaign_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
campaign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Campaign associated with the submitted lead form.
*
*
* string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The campaign to set.
* @return This builder for chaining.
*/
public Builder setCampaign(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
campaign_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Output only. Campaign associated with the submitted lead form.
*
*
* string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearCampaign() {
campaign_ = getDefaultInstance().getCampaign();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Output only. Campaign associated with the submitted lead form.
*
*
* string campaign = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for campaign to set.
* @return This builder for chaining.
*/
public Builder setCampaignBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
campaign_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.util.List leadFormSubmissionFields_ =
java.util.Collections.emptyList();
private void ensureLeadFormSubmissionFieldsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
leadFormSubmissionFields_ = new java.util.ArrayList(leadFormSubmissionFields_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.LeadFormSubmissionField, com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder, com.google.ads.googleads.v17.resources.LeadFormSubmissionFieldOrBuilder> leadFormSubmissionFieldsBuilder_;
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getLeadFormSubmissionFieldsList() {
if (leadFormSubmissionFieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(leadFormSubmissionFields_);
} else {
return leadFormSubmissionFieldsBuilder_.getMessageList();
}
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getLeadFormSubmissionFieldsCount() {
if (leadFormSubmissionFieldsBuilder_ == null) {
return leadFormSubmissionFields_.size();
} else {
return leadFormSubmissionFieldsBuilder_.getCount();
}
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.LeadFormSubmissionField getLeadFormSubmissionFields(int index) {
if (leadFormSubmissionFieldsBuilder_ == null) {
return leadFormSubmissionFields_.get(index);
} else {
return leadFormSubmissionFieldsBuilder_.getMessage(index);
}
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLeadFormSubmissionFields(
int index, com.google.ads.googleads.v17.resources.LeadFormSubmissionField value) {
if (leadFormSubmissionFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.set(index, value);
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setLeadFormSubmissionFields(
int index, com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder builderForValue) {
if (leadFormSubmissionFieldsBuilder_ == null) {
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.set(index, builderForValue.build());
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addLeadFormSubmissionFields(com.google.ads.googleads.v17.resources.LeadFormSubmissionField value) {
if (leadFormSubmissionFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.add(value);
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addLeadFormSubmissionFields(
int index, com.google.ads.googleads.v17.resources.LeadFormSubmissionField value) {
if (leadFormSubmissionFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.add(index, value);
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addLeadFormSubmissionFields(
com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder builderForValue) {
if (leadFormSubmissionFieldsBuilder_ == null) {
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.add(builderForValue.build());
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addLeadFormSubmissionFields(
int index, com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder builderForValue) {
if (leadFormSubmissionFieldsBuilder_ == null) {
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.add(index, builderForValue.build());
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllLeadFormSubmissionFields(
java.lang.Iterable extends com.google.ads.googleads.v17.resources.LeadFormSubmissionField> values) {
if (leadFormSubmissionFieldsBuilder_ == null) {
ensureLeadFormSubmissionFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, leadFormSubmissionFields_);
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearLeadFormSubmissionFields() {
if (leadFormSubmissionFieldsBuilder_ == null) {
leadFormSubmissionFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.clear();
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeLeadFormSubmissionFields(int index) {
if (leadFormSubmissionFieldsBuilder_ == null) {
ensureLeadFormSubmissionFieldsIsMutable();
leadFormSubmissionFields_.remove(index);
onChanged();
} else {
leadFormSubmissionFieldsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder getLeadFormSubmissionFieldsBuilder(
int index) {
return getLeadFormSubmissionFieldsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.LeadFormSubmissionFieldOrBuilder getLeadFormSubmissionFieldsOrBuilder(
int index) {
if (leadFormSubmissionFieldsBuilder_ == null) {
return leadFormSubmissionFields_.get(index); } else {
return leadFormSubmissionFieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v17.resources.LeadFormSubmissionFieldOrBuilder>
getLeadFormSubmissionFieldsOrBuilderList() {
if (leadFormSubmissionFieldsBuilder_ != null) {
return leadFormSubmissionFieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(leadFormSubmissionFields_);
}
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder addLeadFormSubmissionFieldsBuilder() {
return getLeadFormSubmissionFieldsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.resources.LeadFormSubmissionField.getDefaultInstance());
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder addLeadFormSubmissionFieldsBuilder(
int index) {
return getLeadFormSubmissionFieldsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.resources.LeadFormSubmissionField.getDefaultInstance());
}
/**
*
* Output only. Submission data associated with a lead form.
*
*
* repeated .google.ads.googleads.v17.resources.LeadFormSubmissionField lead_form_submission_fields = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getLeadFormSubmissionFieldsBuilderList() {
return getLeadFormSubmissionFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.LeadFormSubmissionField, com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder, com.google.ads.googleads.v17.resources.LeadFormSubmissionFieldOrBuilder>
getLeadFormSubmissionFieldsFieldBuilder() {
if (leadFormSubmissionFieldsBuilder_ == null) {
leadFormSubmissionFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.LeadFormSubmissionField, com.google.ads.googleads.v17.resources.LeadFormSubmissionField.Builder, com.google.ads.googleads.v17.resources.LeadFormSubmissionFieldOrBuilder>(
leadFormSubmissionFields_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
leadFormSubmissionFields_ = null;
}
return leadFormSubmissionFieldsBuilder_;
}
private java.util.List customLeadFormSubmissionFields_ =
java.util.Collections.emptyList();
private void ensureCustomLeadFormSubmissionFieldsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
customLeadFormSubmissionFields_ = new java.util.ArrayList(customLeadFormSubmissionFields_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionFieldOrBuilder> customLeadFormSubmissionFieldsBuilder_;
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List getCustomLeadFormSubmissionFieldsList() {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(customLeadFormSubmissionFields_);
} else {
return customLeadFormSubmissionFieldsBuilder_.getMessageList();
}
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public int getCustomLeadFormSubmissionFieldsCount() {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
return customLeadFormSubmissionFields_.size();
} else {
return customLeadFormSubmissionFieldsBuilder_.getCount();
}
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField getCustomLeadFormSubmissionFields(int index) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
return customLeadFormSubmissionFields_.get(index);
} else {
return customLeadFormSubmissionFieldsBuilder_.getMessage(index);
}
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCustomLeadFormSubmissionFields(
int index, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField value) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.set(index, value);
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder setCustomLeadFormSubmissionFields(
int index, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder builderForValue) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.set(index, builderForValue.build());
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addCustomLeadFormSubmissionFields(com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField value) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.add(value);
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addCustomLeadFormSubmissionFields(
int index, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField value) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.add(index, value);
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addCustomLeadFormSubmissionFields(
com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder builderForValue) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.add(builderForValue.build());
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addCustomLeadFormSubmissionFields(
int index, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder builderForValue) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.add(index, builderForValue.build());
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder addAllCustomLeadFormSubmissionFields(
java.lang.Iterable extends com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField> values) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
ensureCustomLeadFormSubmissionFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, customLeadFormSubmissionFields_);
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder clearCustomLeadFormSubmissionFields() {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
customLeadFormSubmissionFields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.clear();
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public Builder removeCustomLeadFormSubmissionFields(int index) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
ensureCustomLeadFormSubmissionFieldsIsMutable();
customLeadFormSubmissionFields_.remove(index);
onChanged();
} else {
customLeadFormSubmissionFieldsBuilder_.remove(index);
}
return this;
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder getCustomLeadFormSubmissionFieldsBuilder(
int index) {
return getCustomLeadFormSubmissionFieldsFieldBuilder().getBuilder(index);
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionFieldOrBuilder getCustomLeadFormSubmissionFieldsOrBuilder(
int index) {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
return customLeadFormSubmissionFields_.get(index); } else {
return customLeadFormSubmissionFieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List extends com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionFieldOrBuilder>
getCustomLeadFormSubmissionFieldsOrBuilderList() {
if (customLeadFormSubmissionFieldsBuilder_ != null) {
return customLeadFormSubmissionFieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customLeadFormSubmissionFields_);
}
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder addCustomLeadFormSubmissionFieldsBuilder() {
return getCustomLeadFormSubmissionFieldsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.getDefaultInstance());
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder addCustomLeadFormSubmissionFieldsBuilder(
int index) {
return getCustomLeadFormSubmissionFieldsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.getDefaultInstance());
}
/**
*
* Output only. Submission data associated with a custom lead form.
*
*
* repeated .google.ads.googleads.v17.resources.CustomLeadFormSubmissionField custom_lead_form_submission_fields = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
public java.util.List
getCustomLeadFormSubmissionFieldsBuilderList() {
return getCustomLeadFormSubmissionFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionFieldOrBuilder>
getCustomLeadFormSubmissionFieldsFieldBuilder() {
if (customLeadFormSubmissionFieldsBuilder_ == null) {
customLeadFormSubmissionFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionField.Builder, com.google.ads.googleads.v17.resources.CustomLeadFormSubmissionFieldOrBuilder>(
customLeadFormSubmissionFields_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
customLeadFormSubmissionFields_ = null;
}
return customLeadFormSubmissionFieldsBuilder_;
}
private java.lang.Object adGroup_ = "";
/**
*
* Output only. AdGroup associated with the submitted lead form.
*
*
* string ad_group = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The adGroup.
*/
public java.lang.String getAdGroup() {
java.lang.Object ref = adGroup_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adGroup_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. AdGroup associated with the submitted lead form.
*
*
* string ad_group = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for adGroup.
*/
public com.google.protobuf.ByteString
getAdGroupBytes() {
java.lang.Object ref = adGroup_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroup_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. AdGroup associated with the submitted lead form.
*
*
* string ad_group = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The adGroup to set.
* @return This builder for chaining.
*/
public Builder setAdGroup(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
adGroup_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Output only. AdGroup associated with the submitted lead form.
*
*
* string ad_group = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearAdGroup() {
adGroup_ = getDefaultInstance().getAdGroup();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Output only. AdGroup associated with the submitted lead form.
*
*
* string ad_group = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for adGroup to set.
* @return This builder for chaining.
*/
public Builder setAdGroupBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
adGroup_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object adGroupAd_ = "";
/**
*
* Output only. AdGroupAd associated with the submitted lead form.
*
*
* string ad_group_ad = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The adGroupAd.
*/
public java.lang.String getAdGroupAd() {
java.lang.Object ref = adGroupAd_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
adGroupAd_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. AdGroupAd associated with the submitted lead form.
*
*
* string ad_group_ad = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return The bytes for adGroupAd.
*/
public com.google.protobuf.ByteString
getAdGroupAdBytes() {
java.lang.Object ref = adGroupAd_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adGroupAd_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. AdGroupAd associated with the submitted lead form.
*
*
* string ad_group_ad = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The adGroupAd to set.
* @return This builder for chaining.
*/
public Builder setAdGroupAd(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
adGroupAd_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Output only. AdGroupAd associated with the submitted lead form.
*
*
* string ad_group_ad = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearAdGroupAd() {
adGroupAd_ = getDefaultInstance().getAdGroupAd();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Output only. AdGroupAd associated with the submitted lead form.
*
*
* string ad_group_ad = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
* @param value The bytes for adGroupAd to set.
* @return This builder for chaining.
*/
public Builder setAdGroupAdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
adGroupAd_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object gclid_ = "";
/**
*
* Output only. Google Click Id associated with the submissed lead form.
*
*
* string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The gclid.
*/
public java.lang.String getGclid() {
java.lang.Object ref = gclid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
gclid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. Google Click Id associated with the submissed lead form.
*
*
* string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for gclid.
*/
public com.google.protobuf.ByteString
getGclidBytes() {
java.lang.Object ref = gclid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
gclid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. Google Click Id associated with the submissed lead form.
*
*
* string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The gclid to set.
* @return This builder for chaining.
*/
public Builder setGclid(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
gclid_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Output only. Google Click Id associated with the submissed lead form.
*
*
* string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearGclid() {
gclid_ = getDefaultInstance().getGclid();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
* Output only. Google Click Id associated with the submissed lead form.
*
*
* string gclid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for gclid to set.
* @return This builder for chaining.
*/
public Builder setGclidBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
gclid_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object submissionDateTime_ = "";
/**
*
* Output only. The date and time at which the lead form was submitted. The
* format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01
* 12:32:45-08:00".
*
*
* string submission_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The submissionDateTime.
*/
public java.lang.String getSubmissionDateTime() {
java.lang.Object ref = submissionDateTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
submissionDateTime_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Output only. The date and time at which the lead form was submitted. The
* format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01
* 12:32:45-08:00".
*
*
* string submission_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The bytes for submissionDateTime.
*/
public com.google.protobuf.ByteString
getSubmissionDateTimeBytes() {
java.lang.Object ref = submissionDateTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
submissionDateTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Output only. The date and time at which the lead form was submitted. The
* format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01
* 12:32:45-08:00".
*
*
* string submission_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The submissionDateTime to set.
* @return This builder for chaining.
*/
public Builder setSubmissionDateTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
submissionDateTime_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Output only. The date and time at which the lead form was submitted. The
* format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01
* 12:32:45-08:00".
*
*
* string submission_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearSubmissionDateTime() {
submissionDateTime_ = getDefaultInstance().getSubmissionDateTime();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
* Output only. The date and time at which the lead form was submitted. The
* format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01
* 12:32:45-08:00".
*
*
* string submission_date_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The bytes for submissionDateTime to set.
* @return This builder for chaining.
*/
public Builder setSubmissionDateTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
submissionDateTime_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.resources.LeadFormSubmissionData)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.LeadFormSubmissionData)
private static final com.google.ads.googleads.v17.resources.LeadFormSubmissionData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.LeadFormSubmissionData();
}
public static com.google.ads.googleads.v17.resources.LeadFormSubmissionData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LeadFormSubmissionData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.LeadFormSubmissionData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy