com.google.ads.googleads.v17.common.CalloutAsset 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/common/asset_types.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* A Callout asset.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.CalloutAsset}
*/
public final class CalloutAsset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.CalloutAsset)
CalloutAssetOrBuilder {
private static final long serialVersionUID = 0L;
// Use CalloutAsset.newBuilder() to construct.
private CalloutAsset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CalloutAsset() {
calloutText_ = "";
startDate_ = "";
endDate_ = "";
adScheduleTargets_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CalloutAsset();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_CalloutAsset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_CalloutAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.CalloutAsset.class, com.google.ads.googleads.v17.common.CalloutAsset.Builder.class);
}
public static final int CALLOUT_TEXT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object calloutText_ = "";
/**
*
* Required. The callout text.
* The length of this string should be between 1 and 25, inclusive.
*
*
* string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The calloutText.
*/
@java.lang.Override
public java.lang.String getCalloutText() {
java.lang.Object ref = calloutText_;
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();
calloutText_ = s;
return s;
}
}
/**
*
* Required. The callout text.
* The length of this string should be between 1 and 25, inclusive.
*
*
* string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for calloutText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCalloutTextBytes() {
java.lang.Object ref = calloutText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
calloutText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_DATE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object startDate_ = "";
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 2;
* @return The startDate.
*/
@java.lang.Override
public java.lang.String getStartDate() {
java.lang.Object ref = startDate_;
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();
startDate_ = s;
return s;
}
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 2;
* @return The bytes for startDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartDateBytes() {
java.lang.Object ref = startDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int END_DATE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object endDate_ = "";
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 3;
* @return The endDate.
*/
@java.lang.Override
public java.lang.String getEndDate() {
java.lang.Object ref = endDate_;
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();
endDate_ = s;
return s;
}
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 3;
* @return The bytes for endDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndDateBytes() {
java.lang.Object ref = endDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AD_SCHEDULE_TARGETS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List adScheduleTargets_;
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
@java.lang.Override
public java.util.List getAdScheduleTargetsList() {
return adScheduleTargets_;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder>
getAdScheduleTargetsOrBuilderList() {
return adScheduleTargets_;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
@java.lang.Override
public int getAdScheduleTargetsCount() {
return adScheduleTargets_.size();
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdScheduleInfo getAdScheduleTargets(int index) {
return adScheduleTargets_.get(index);
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder getAdScheduleTargetsOrBuilder(
int index) {
return adScheduleTargets_.get(index);
}
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(calloutText_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, calloutText_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startDate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, endDate_);
}
for (int i = 0; i < adScheduleTargets_.size(); i++) {
output.writeMessage(4, adScheduleTargets_.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(calloutText_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, calloutText_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startDate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, endDate_);
}
for (int i = 0; i < adScheduleTargets_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, adScheduleTargets_.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.common.CalloutAsset)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.CalloutAsset other = (com.google.ads.googleads.v17.common.CalloutAsset) obj;
if (!getCalloutText()
.equals(other.getCalloutText())) return false;
if (!getStartDate()
.equals(other.getStartDate())) return false;
if (!getEndDate()
.equals(other.getEndDate())) return false;
if (!getAdScheduleTargetsList()
.equals(other.getAdScheduleTargetsList())) 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) + CALLOUT_TEXT_FIELD_NUMBER;
hash = (53 * hash) + getCalloutText().hashCode();
hash = (37 * hash) + START_DATE_FIELD_NUMBER;
hash = (53 * hash) + getStartDate().hashCode();
hash = (37 * hash) + END_DATE_FIELD_NUMBER;
hash = (53 * hash) + getEndDate().hashCode();
if (getAdScheduleTargetsCount() > 0) {
hash = (37 * hash) + AD_SCHEDULE_TARGETS_FIELD_NUMBER;
hash = (53 * hash) + getAdScheduleTargetsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.CalloutAsset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.CalloutAsset 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.common.CalloutAsset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.CalloutAsset 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.common.CalloutAsset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.CalloutAsset 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.common.CalloutAsset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.CalloutAsset 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.common.CalloutAsset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v17.common.CalloutAsset 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.common.CalloutAsset 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.common.CalloutAsset 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.common.CalloutAsset 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;
}
/**
*
* A Callout asset.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.CalloutAsset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.CalloutAsset)
com.google.ads.googleads.v17.common.CalloutAssetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_CalloutAsset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_CalloutAsset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.CalloutAsset.class, com.google.ads.googleads.v17.common.CalloutAsset.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.CalloutAsset.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
calloutText_ = "";
startDate_ = "";
endDate_ = "";
if (adScheduleTargetsBuilder_ == null) {
adScheduleTargets_ = java.util.Collections.emptyList();
} else {
adScheduleTargets_ = null;
adScheduleTargetsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_CalloutAsset_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.CalloutAsset getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.CalloutAsset build() {
com.google.ads.googleads.v17.common.CalloutAsset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.CalloutAsset buildPartial() {
com.google.ads.googleads.v17.common.CalloutAsset result = new com.google.ads.googleads.v17.common.CalloutAsset(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.common.CalloutAsset result) {
if (adScheduleTargetsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
adScheduleTargets_ = java.util.Collections.unmodifiableList(adScheduleTargets_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.adScheduleTargets_ = adScheduleTargets_;
} else {
result.adScheduleTargets_ = adScheduleTargetsBuilder_.build();
}
}
private void buildPartial0(com.google.ads.googleads.v17.common.CalloutAsset result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.calloutText_ = calloutText_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startDate_ = startDate_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.endDate_ = endDate_;
}
}
@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.common.CalloutAsset) {
return mergeFrom((com.google.ads.googleads.v17.common.CalloutAsset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.CalloutAsset other) {
if (other == com.google.ads.googleads.v17.common.CalloutAsset.getDefaultInstance()) return this;
if (!other.getCalloutText().isEmpty()) {
calloutText_ = other.calloutText_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getStartDate().isEmpty()) {
startDate_ = other.startDate_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getEndDate().isEmpty()) {
endDate_ = other.endDate_;
bitField0_ |= 0x00000004;
onChanged();
}
if (adScheduleTargetsBuilder_ == null) {
if (!other.adScheduleTargets_.isEmpty()) {
if (adScheduleTargets_.isEmpty()) {
adScheduleTargets_ = other.adScheduleTargets_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.addAll(other.adScheduleTargets_);
}
onChanged();
}
} else {
if (!other.adScheduleTargets_.isEmpty()) {
if (adScheduleTargetsBuilder_.isEmpty()) {
adScheduleTargetsBuilder_.dispose();
adScheduleTargetsBuilder_ = null;
adScheduleTargets_ = other.adScheduleTargets_;
bitField0_ = (bitField0_ & ~0x00000008);
adScheduleTargetsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAdScheduleTargetsFieldBuilder() : null;
} else {
adScheduleTargetsBuilder_.addAllMessages(other.adScheduleTargets_);
}
}
}
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: {
calloutText_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
startDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
endDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
com.google.ads.googleads.v17.common.AdScheduleInfo m =
input.readMessage(
com.google.ads.googleads.v17.common.AdScheduleInfo.parser(),
extensionRegistry);
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(m);
} else {
adScheduleTargetsBuilder_.addMessage(m);
}
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 calloutText_ = "";
/**
*
* Required. The callout text.
* The length of this string should be between 1 and 25, inclusive.
*
*
* string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The calloutText.
*/
public java.lang.String getCalloutText() {
java.lang.Object ref = calloutText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
calloutText_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. The callout text.
* The length of this string should be between 1 and 25, inclusive.
*
*
* string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
* @return The bytes for calloutText.
*/
public com.google.protobuf.ByteString
getCalloutTextBytes() {
java.lang.Object ref = calloutText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
calloutText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. The callout text.
* The length of this string should be between 1 and 25, inclusive.
*
*
* string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The calloutText to set.
* @return This builder for chaining.
*/
public Builder setCalloutText(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
calloutText_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Required. The callout text.
* The length of this string should be between 1 and 25, inclusive.
*
*
* string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
* @return This builder for chaining.
*/
public Builder clearCalloutText() {
calloutText_ = getDefaultInstance().getCalloutText();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Required. The callout text.
* The length of this string should be between 1 and 25, inclusive.
*
*
* string callout_text = 1 [(.google.api.field_behavior) = REQUIRED];
* @param value The bytes for calloutText to set.
* @return This builder for chaining.
*/
public Builder setCalloutTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
calloutText_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object startDate_ = "";
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 2;
* @return The startDate.
*/
public java.lang.String getStartDate() {
java.lang.Object ref = startDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 2;
* @return The bytes for startDate.
*/
public com.google.protobuf.ByteString
getStartDateBytes() {
java.lang.Object ref = startDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 2;
* @param value The startDate to set.
* @return This builder for chaining.
*/
public Builder setStartDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
startDate_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 2;
* @return This builder for chaining.
*/
public Builder clearStartDate() {
startDate_ = getDefaultInstance().getStartDate();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Start date of when this asset is effective and can begin serving, in
* yyyy-MM-dd format.
*
*
* string start_date = 2;
* @param value The bytes for startDate to set.
* @return This builder for chaining.
*/
public Builder setStartDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
startDate_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object endDate_ = "";
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 3;
* @return The endDate.
*/
public java.lang.String getEndDate() {
java.lang.Object ref = endDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 3;
* @return The bytes for endDate.
*/
public com.google.protobuf.ByteString
getEndDateBytes() {
java.lang.Object ref = endDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 3;
* @param value The endDate to set.
* @return This builder for chaining.
*/
public Builder setEndDate(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
endDate_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 3;
* @return This builder for chaining.
*/
public Builder clearEndDate() {
endDate_ = getDefaultInstance().getEndDate();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Last date of when this asset is effective and still serving, in yyyy-MM-dd
* format.
*
*
* string end_date = 3;
* @param value The bytes for endDate to set.
* @return This builder for chaining.
*/
public Builder setEndDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
endDate_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List adScheduleTargets_ =
java.util.Collections.emptyList();
private void ensureAdScheduleTargetsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
adScheduleTargets_ = new java.util.ArrayList(adScheduleTargets_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdScheduleInfo, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder, com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder> adScheduleTargetsBuilder_;
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public java.util.List getAdScheduleTargetsList() {
if (adScheduleTargetsBuilder_ == null) {
return java.util.Collections.unmodifiableList(adScheduleTargets_);
} else {
return adScheduleTargetsBuilder_.getMessageList();
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public int getAdScheduleTargetsCount() {
if (adScheduleTargetsBuilder_ == null) {
return adScheduleTargets_.size();
} else {
return adScheduleTargetsBuilder_.getCount();
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfo getAdScheduleTargets(int index) {
if (adScheduleTargetsBuilder_ == null) {
return adScheduleTargets_.get(index);
} else {
return adScheduleTargetsBuilder_.getMessage(index);
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder setAdScheduleTargets(
int index, com.google.ads.googleads.v17.common.AdScheduleInfo value) {
if (adScheduleTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.set(index, value);
onChanged();
} else {
adScheduleTargetsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder setAdScheduleTargets(
int index, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder builderForValue) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.set(index, builderForValue.build());
onChanged();
} else {
adScheduleTargetsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder addAdScheduleTargets(com.google.ads.googleads.v17.common.AdScheduleInfo value) {
if (adScheduleTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(value);
onChanged();
} else {
adScheduleTargetsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder addAdScheduleTargets(
int index, com.google.ads.googleads.v17.common.AdScheduleInfo value) {
if (adScheduleTargetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(index, value);
onChanged();
} else {
adScheduleTargetsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder addAdScheduleTargets(
com.google.ads.googleads.v17.common.AdScheduleInfo.Builder builderForValue) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(builderForValue.build());
onChanged();
} else {
adScheduleTargetsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder addAdScheduleTargets(
int index, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder builderForValue) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.add(index, builderForValue.build());
onChanged();
} else {
adScheduleTargetsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder addAllAdScheduleTargets(
java.lang.Iterable extends com.google.ads.googleads.v17.common.AdScheduleInfo> values) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, adScheduleTargets_);
onChanged();
} else {
adScheduleTargetsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder clearAdScheduleTargets() {
if (adScheduleTargetsBuilder_ == null) {
adScheduleTargets_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
adScheduleTargetsBuilder_.clear();
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public Builder removeAdScheduleTargets(int index) {
if (adScheduleTargetsBuilder_ == null) {
ensureAdScheduleTargetsIsMutable();
adScheduleTargets_.remove(index);
onChanged();
} else {
adScheduleTargetsBuilder_.remove(index);
}
return this;
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfo.Builder getAdScheduleTargetsBuilder(
int index) {
return getAdScheduleTargetsFieldBuilder().getBuilder(index);
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder getAdScheduleTargetsOrBuilder(
int index) {
if (adScheduleTargetsBuilder_ == null) {
return adScheduleTargets_.get(index); } else {
return adScheduleTargetsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public java.util.List extends com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder>
getAdScheduleTargetsOrBuilderList() {
if (adScheduleTargetsBuilder_ != null) {
return adScheduleTargetsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(adScheduleTargets_);
}
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfo.Builder addAdScheduleTargetsBuilder() {
return getAdScheduleTargetsFieldBuilder().addBuilder(
com.google.ads.googleads.v17.common.AdScheduleInfo.getDefaultInstance());
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public com.google.ads.googleads.v17.common.AdScheduleInfo.Builder addAdScheduleTargetsBuilder(
int index) {
return getAdScheduleTargetsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v17.common.AdScheduleInfo.getDefaultInstance());
}
/**
*
* List of non-overlapping schedules specifying all time intervals for which
* the asset may serve. There can be a maximum of 6 schedules per day, 42 in
* total.
*
*
* repeated .google.ads.googleads.v17.common.AdScheduleInfo ad_schedule_targets = 4;
*/
public java.util.List
getAdScheduleTargetsBuilderList() {
return getAdScheduleTargetsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdScheduleInfo, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder, com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder>
getAdScheduleTargetsFieldBuilder() {
if (adScheduleTargetsBuilder_ == null) {
adScheduleTargetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v17.common.AdScheduleInfo, com.google.ads.googleads.v17.common.AdScheduleInfo.Builder, com.google.ads.googleads.v17.common.AdScheduleInfoOrBuilder>(
adScheduleTargets_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
adScheduleTargets_ = null;
}
return adScheduleTargetsBuilder_;
}
@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.common.CalloutAsset)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.CalloutAsset)
private static final com.google.ads.googleads.v17.common.CalloutAsset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.CalloutAsset();
}
public static com.google.ads.googleads.v17.common.CalloutAsset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CalloutAsset 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.common.CalloutAsset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}