com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest 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/services/keyword_plan_idea_service.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.services;
/**
*
* Request message for [KeywordPlanIdeaService.GenerateKeywordForecastMetrics].
*
*
* Protobuf type {@code google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest}
*/
public final class GenerateKeywordForecastMetricsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest)
GenerateKeywordForecastMetricsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenerateKeywordForecastMetricsRequest.newBuilder() to construct.
private GenerateKeywordForecastMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenerateKeywordForecastMetricsRequest() {
customerId_ = "";
currencyCode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GenerateKeywordForecastMetricsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateKeywordForecastMetricsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateKeywordForecastMetricsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.class, com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.Builder.class);
}
private int bitField0_;
public static final int CUSTOMER_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object customerId_ = "";
/**
*
* The ID of the customer.
*
*
* string customer_id = 1;
* @return The customerId.
*/
@java.lang.Override
public java.lang.String getCustomerId() {
java.lang.Object ref = customerId_;
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();
customerId_ = s;
return s;
}
}
/**
*
* The ID of the customer.
*
*
* string customer_id = 1;
* @return The bytes for customerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCustomerIdBytes() {
java.lang.Object ref = customerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CURRENCY_CODE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object currencyCode_ = "";
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @return Whether the currencyCode field is set.
*/
@java.lang.Override
public boolean hasCurrencyCode() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @return The currencyCode.
*/
@java.lang.Override
public java.lang.String getCurrencyCode() {
java.lang.Object ref = currencyCode_;
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();
currencyCode_ = s;
return s;
}
}
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @return The bytes for currencyCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCurrencyCodeBytes() {
java.lang.Object ref = currencyCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FORECAST_PERIOD_FIELD_NUMBER = 3;
private com.google.ads.googleads.v17.common.DateRange forecastPeriod_;
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
* @return Whether the forecastPeriod field is set.
*/
@java.lang.Override
public boolean hasForecastPeriod() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
* @return The forecastPeriod.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DateRange getForecastPeriod() {
return forecastPeriod_ == null ? com.google.ads.googleads.v17.common.DateRange.getDefaultInstance() : forecastPeriod_;
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.DateRangeOrBuilder getForecastPeriodOrBuilder() {
return forecastPeriod_ == null ? com.google.ads.googleads.v17.common.DateRange.getDefaultInstance() : forecastPeriod_;
}
public static final int CAMPAIGN_FIELD_NUMBER = 4;
private com.google.ads.googleads.v17.services.CampaignToForecast campaign_;
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the campaign field is set.
*/
@java.lang.Override
public boolean hasCampaign() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
* @return The campaign.
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.CampaignToForecast getCampaign() {
return campaign_ == null ? com.google.ads.googleads.v17.services.CampaignToForecast.getDefaultInstance() : campaign_;
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
*/
@java.lang.Override
public com.google.ads.googleads.v17.services.CampaignToForecastOrBuilder getCampaignOrBuilder() {
return campaign_ == null ? com.google.ads.googleads.v17.services.CampaignToForecast.getDefaultInstance() : campaign_;
}
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(customerId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customerId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currencyCode_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getForecastPeriod());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getCampaign());
}
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(customerId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customerId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currencyCode_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getForecastPeriod());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getCampaign());
}
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.services.GenerateKeywordForecastMetricsRequest)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest other = (com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest) obj;
if (!getCustomerId()
.equals(other.getCustomerId())) return false;
if (hasCurrencyCode() != other.hasCurrencyCode()) return false;
if (hasCurrencyCode()) {
if (!getCurrencyCode()
.equals(other.getCurrencyCode())) return false;
}
if (hasForecastPeriod() != other.hasForecastPeriod()) return false;
if (hasForecastPeriod()) {
if (!getForecastPeriod()
.equals(other.getForecastPeriod())) return false;
}
if (hasCampaign() != other.hasCampaign()) return false;
if (hasCampaign()) {
if (!getCampaign()
.equals(other.getCampaign())) 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) + CUSTOMER_ID_FIELD_NUMBER;
hash = (53 * hash) + getCustomerId().hashCode();
if (hasCurrencyCode()) {
hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER;
hash = (53 * hash) + getCurrencyCode().hashCode();
}
if (hasForecastPeriod()) {
hash = (37 * hash) + FORECAST_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + getForecastPeriod().hashCode();
}
if (hasCampaign()) {
hash = (37 * hash) + CAMPAIGN_FIELD_NUMBER;
hash = (53 * hash) + getCampaign().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest 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.services.GenerateKeywordForecastMetricsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest 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.services.GenerateKeywordForecastMetricsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest 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.services.GenerateKeywordForecastMetricsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest 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.services.GenerateKeywordForecastMetricsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest 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.services.GenerateKeywordForecastMetricsRequest 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.services.GenerateKeywordForecastMetricsRequest 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.services.GenerateKeywordForecastMetricsRequest 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;
}
/**
*
* Request message for [KeywordPlanIdeaService.GenerateKeywordForecastMetrics].
*
*
* Protobuf type {@code google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest)
com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateKeywordForecastMetricsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateKeywordForecastMetricsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.class, com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.Builder.class);
}
// Construct using com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getForecastPeriodFieldBuilder();
getCampaignFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
customerId_ = "";
currencyCode_ = "";
forecastPeriod_ = null;
if (forecastPeriodBuilder_ != null) {
forecastPeriodBuilder_.dispose();
forecastPeriodBuilder_ = null;
}
campaign_ = null;
if (campaignBuilder_ != null) {
campaignBuilder_.dispose();
campaignBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.internal_static_google_ads_googleads_v17_services_GenerateKeywordForecastMetricsRequest_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest getDefaultInstanceForType() {
return com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest build() {
com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest buildPartial() {
com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest result = new com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.customerId_ = customerId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.currencyCode_ = currencyCode_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.forecastPeriod_ = forecastPeriodBuilder_ == null
? forecastPeriod_
: forecastPeriodBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.campaign_ = campaignBuilder_ == null
? campaign_
: campaignBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@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.services.GenerateKeywordForecastMetricsRequest) {
return mergeFrom((com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest other) {
if (other == com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.getDefaultInstance()) return this;
if (!other.getCustomerId().isEmpty()) {
customerId_ = other.customerId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCurrencyCode()) {
currencyCode_ = other.currencyCode_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasForecastPeriod()) {
mergeForecastPeriod(other.getForecastPeriod());
}
if (other.hasCampaign()) {
mergeCampaign(other.getCampaign());
}
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: {
customerId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
currencyCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getForecastPeriodFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getCampaignFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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 customerId_ = "";
/**
*
* The ID of the customer.
*
*
* string customer_id = 1;
* @return The customerId.
*/
public java.lang.String getCustomerId() {
java.lang.Object ref = customerId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
customerId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The ID of the customer.
*
*
* string customer_id = 1;
* @return The bytes for customerId.
*/
public com.google.protobuf.ByteString
getCustomerIdBytes() {
java.lang.Object ref = customerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
customerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The ID of the customer.
*
*
* string customer_id = 1;
* @param value The customerId to set.
* @return This builder for chaining.
*/
public Builder setCustomerId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
customerId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The ID of the customer.
*
*
* string customer_id = 1;
* @return This builder for chaining.
*/
public Builder clearCustomerId() {
customerId_ = getDefaultInstance().getCustomerId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The ID of the customer.
*
*
* string customer_id = 1;
* @param value The bytes for customerId to set.
* @return This builder for chaining.
*/
public Builder setCustomerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
customerId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object currencyCode_ = "";
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @return Whether the currencyCode field is set.
*/
public boolean hasCurrencyCode() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @return The currencyCode.
*/
public java.lang.String getCurrencyCode() {
java.lang.Object ref = currencyCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
currencyCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @return The bytes for currencyCode.
*/
public com.google.protobuf.ByteString
getCurrencyCodeBytes() {
java.lang.Object ref = currencyCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
currencyCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @param value The currencyCode to set.
* @return This builder for chaining.
*/
public Builder setCurrencyCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
currencyCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @return This builder for chaining.
*/
public Builder clearCurrencyCode() {
currencyCode_ = getDefaultInstance().getCurrencyCode();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The currency used for exchange rate conversion.
* By default, the account currency of the customer is used.
* Set this field only if the currency is different from the account currency.
* The list of valid currency codes can be found at
* https://developers.google.com/google-ads/api/data/codes-formats#currency-codes.
*
*
* optional string currency_code = 2;
* @param value The bytes for currencyCode to set.
* @return This builder for chaining.
*/
public Builder setCurrencyCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
currencyCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.DateRange forecastPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DateRange, com.google.ads.googleads.v17.common.DateRange.Builder, com.google.ads.googleads.v17.common.DateRangeOrBuilder> forecastPeriodBuilder_;
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
* @return Whether the forecastPeriod field is set.
*/
public boolean hasForecastPeriod() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
* @return The forecastPeriod.
*/
public com.google.ads.googleads.v17.common.DateRange getForecastPeriod() {
if (forecastPeriodBuilder_ == null) {
return forecastPeriod_ == null ? com.google.ads.googleads.v17.common.DateRange.getDefaultInstance() : forecastPeriod_;
} else {
return forecastPeriodBuilder_.getMessage();
}
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
*/
public Builder setForecastPeriod(com.google.ads.googleads.v17.common.DateRange value) {
if (forecastPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
forecastPeriod_ = value;
} else {
forecastPeriodBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
*/
public Builder setForecastPeriod(
com.google.ads.googleads.v17.common.DateRange.Builder builderForValue) {
if (forecastPeriodBuilder_ == null) {
forecastPeriod_ = builderForValue.build();
} else {
forecastPeriodBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
*/
public Builder mergeForecastPeriod(com.google.ads.googleads.v17.common.DateRange value) {
if (forecastPeriodBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
forecastPeriod_ != null &&
forecastPeriod_ != com.google.ads.googleads.v17.common.DateRange.getDefaultInstance()) {
getForecastPeriodBuilder().mergeFrom(value);
} else {
forecastPeriod_ = value;
}
} else {
forecastPeriodBuilder_.mergeFrom(value);
}
if (forecastPeriod_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
*/
public Builder clearForecastPeriod() {
bitField0_ = (bitField0_ & ~0x00000004);
forecastPeriod_ = null;
if (forecastPeriodBuilder_ != null) {
forecastPeriodBuilder_.dispose();
forecastPeriodBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
*/
public com.google.ads.googleads.v17.common.DateRange.Builder getForecastPeriodBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getForecastPeriodFieldBuilder().getBuilder();
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
*/
public com.google.ads.googleads.v17.common.DateRangeOrBuilder getForecastPeriodOrBuilder() {
if (forecastPeriodBuilder_ != null) {
return forecastPeriodBuilder_.getMessageOrBuilder();
} else {
return forecastPeriod_ == null ?
com.google.ads.googleads.v17.common.DateRange.getDefaultInstance() : forecastPeriod_;
}
}
/**
*
* The date range for the forecast. The start date must be in the future and
* end date must be within 1 year from today. The reference timezone used is
* the one of the Google Ads account belonging to the customer. If not set, a
* default date range from next Sunday to the following Saturday will be used.
*
*
* .google.ads.googleads.v17.common.DateRange forecast_period = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DateRange, com.google.ads.googleads.v17.common.DateRange.Builder, com.google.ads.googleads.v17.common.DateRangeOrBuilder>
getForecastPeriodFieldBuilder() {
if (forecastPeriodBuilder_ == null) {
forecastPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.DateRange, com.google.ads.googleads.v17.common.DateRange.Builder, com.google.ads.googleads.v17.common.DateRangeOrBuilder>(
getForecastPeriod(),
getParentForChildren(),
isClean());
forecastPeriod_ = null;
}
return forecastPeriodBuilder_;
}
private com.google.ads.googleads.v17.services.CampaignToForecast campaign_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.CampaignToForecast, com.google.ads.googleads.v17.services.CampaignToForecast.Builder, com.google.ads.googleads.v17.services.CampaignToForecastOrBuilder> campaignBuilder_;
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
* @return Whether the campaign field is set.
*/
public boolean hasCampaign() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
* @return The campaign.
*/
public com.google.ads.googleads.v17.services.CampaignToForecast getCampaign() {
if (campaignBuilder_ == null) {
return campaign_ == null ? com.google.ads.googleads.v17.services.CampaignToForecast.getDefaultInstance() : campaign_;
} else {
return campaignBuilder_.getMessage();
}
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setCampaign(com.google.ads.googleads.v17.services.CampaignToForecast value) {
if (campaignBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
campaign_ = value;
} else {
campaignBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder setCampaign(
com.google.ads.googleads.v17.services.CampaignToForecast.Builder builderForValue) {
if (campaignBuilder_ == null) {
campaign_ = builderForValue.build();
} else {
campaignBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder mergeCampaign(com.google.ads.googleads.v17.services.CampaignToForecast value) {
if (campaignBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
campaign_ != null &&
campaign_ != com.google.ads.googleads.v17.services.CampaignToForecast.getDefaultInstance()) {
getCampaignBuilder().mergeFrom(value);
} else {
campaign_ = value;
}
} else {
campaignBuilder_.mergeFrom(value);
}
if (campaign_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
*/
public Builder clearCampaign() {
bitField0_ = (bitField0_ & ~0x00000008);
campaign_ = null;
if (campaignBuilder_ != null) {
campaignBuilder_.dispose();
campaignBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.services.CampaignToForecast.Builder getCampaignBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCampaignFieldBuilder().getBuilder();
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
*/
public com.google.ads.googleads.v17.services.CampaignToForecastOrBuilder getCampaignOrBuilder() {
if (campaignBuilder_ != null) {
return campaignBuilder_.getMessageOrBuilder();
} else {
return campaign_ == null ?
com.google.ads.googleads.v17.services.CampaignToForecast.getDefaultInstance() : campaign_;
}
}
/**
*
* Required. The campaign used in the forecast.
*
*
* .google.ads.googleads.v17.services.CampaignToForecast campaign = 4 [(.google.api.field_behavior) = REQUIRED];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.CampaignToForecast, com.google.ads.googleads.v17.services.CampaignToForecast.Builder, com.google.ads.googleads.v17.services.CampaignToForecastOrBuilder>
getCampaignFieldBuilder() {
if (campaignBuilder_ == null) {
campaignBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.services.CampaignToForecast, com.google.ads.googleads.v17.services.CampaignToForecast.Builder, com.google.ads.googleads.v17.services.CampaignToForecastOrBuilder>(
getCampaign(),
getParentForChildren(),
isClean());
campaign_ = null;
}
return campaignBuilder_;
}
@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.services.GenerateKeywordForecastMetricsRequest)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest)
private static final com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest();
}
public static com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GenerateKeywordForecastMetricsRequest 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.services.GenerateKeywordForecastMetricsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy