com.google.ads.googleads.v17.resources.AdGroupFeed 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/ad_group_feed.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.resources;
/**
*
* An ad group feed.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.AdGroupFeed}
*/
public final class AdGroupFeed extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.resources.AdGroupFeed)
AdGroupFeedOrBuilder {
private static final long serialVersionUID = 0L;
// Use AdGroupFeed.newBuilder() to construct.
private AdGroupFeed(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AdGroupFeed() {
resourceName_ = "";
feed_ = "";
adGroup_ = "";
placeholderTypes_ = java.util.Collections.emptyList();
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AdGroupFeed();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.AdGroupFeedProto.internal_static_google_ads_googleads_v17_resources_AdGroupFeed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.AdGroupFeedProto.internal_static_google_ads_googleads_v17_resources_AdGroupFeed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.AdGroupFeed.class, com.google.ads.googleads.v17.resources.AdGroupFeed.Builder.class);
}
private int bitField0_;
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the ad group feed.
* Ad group feed resource names have the form:
*
* `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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;
}
}
/**
*
* Immutable. The resource name of the ad group feed.
* Ad group feed resource names have the form:
*
* `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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 FEED_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object feed_ = "";
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the feed field is set.
*/
@java.lang.Override
public boolean hasFeed() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The feed.
*/
@java.lang.Override
public java.lang.String getFeed() {
java.lang.Object ref = feed_;
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();
feed_ = s;
return s;
}
}
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for feed.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedBytes() {
java.lang.Object ref = feed_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feed_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AD_GROUP_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object adGroup_ = "";
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the adGroup field is set.
*/
@java.lang.Override
public boolean hasAdGroup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.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;
}
}
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.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 PLACEHOLDER_TYPES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List placeholderTypes_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType> placeholderTypes_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType>() {
public com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType convert(java.lang.Integer from) {
com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType result = com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType.forNumber(from);
return result == null ? com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType.UNRECOGNIZED : result;
}
};
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @return A list containing the placeholderTypes.
*/
@java.lang.Override
public java.util.List getPlaceholderTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType>(placeholderTypes_, placeholderTypes_converter_);
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @return The count of placeholderTypes.
*/
@java.lang.Override
public int getPlaceholderTypesCount() {
return placeholderTypes_.size();
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param index The index of the element to return.
* @return The placeholderTypes at the given index.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderTypes(int index) {
return placeholderTypes_converter_.convert(placeholderTypes_.get(index));
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @return A list containing the enum numeric values on the wire for placeholderTypes.
*/
@java.lang.Override
public java.util.List
getPlaceholderTypesValueList() {
return placeholderTypes_;
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of placeholderTypes at the given index.
*/
@java.lang.Override
public int getPlaceholderTypesValue(int index) {
return placeholderTypes_.get(index);
}
private int placeholderTypesMemoizedSerializedSize;
public static final int MATCHING_FUNCTION_FIELD_NUMBER = 5;
private com.google.ads.googleads.v17.common.MatchingFunction matchingFunction_;
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
* @return Whether the matchingFunction field is set.
*/
@java.lang.Override
public boolean hasMatchingFunction() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
* @return The matchingFunction.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MatchingFunction getMatchingFunction() {
return matchingFunction_ == null ? com.google.ads.googleads.v17.common.MatchingFunction.getDefaultInstance() : matchingFunction_;
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.MatchingFunctionOrBuilder getMatchingFunctionOrBuilder() {
return matchingFunction_ == null ? com.google.ads.googleads.v17.common.MatchingFunction.getDefaultInstance() : matchingFunction_;
}
public static final int STATUS_FIELD_NUMBER = 6;
private int status_ = 0;
/**
*
* Output only. Status of the ad group feed.
* This field is read-only.
*
*
* .google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. Status of the ad group feed.
* This field is read-only.
*
*
* .google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus getStatus() {
com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus result = com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus.UNRECOGNIZED : result;
}
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 {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
if (getPlaceholderTypesList().size() > 0) {
output.writeUInt32NoTag(34);
output.writeUInt32NoTag(placeholderTypesMemoizedSerializedSize);
}
for (int i = 0; i < placeholderTypes_.size(); i++) {
output.writeEnumNoTag(placeholderTypes_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getMatchingFunction());
}
if (status_ != com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(6, status_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, feed_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, adGroup_);
}
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_);
}
{
int dataSize = 0;
for (int i = 0; i < placeholderTypes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(placeholderTypes_.get(i));
}
size += dataSize;
if (!getPlaceholderTypesList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}placeholderTypesMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getMatchingFunction());
}
if (status_ != com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, status_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, feed_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, adGroup_);
}
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.AdGroupFeed)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.resources.AdGroupFeed other = (com.google.ads.googleads.v17.resources.AdGroupFeed) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasFeed() != other.hasFeed()) return false;
if (hasFeed()) {
if (!getFeed()
.equals(other.getFeed())) return false;
}
if (hasAdGroup() != other.hasAdGroup()) return false;
if (hasAdGroup()) {
if (!getAdGroup()
.equals(other.getAdGroup())) return false;
}
if (!placeholderTypes_.equals(other.placeholderTypes_)) return false;
if (hasMatchingFunction() != other.hasMatchingFunction()) return false;
if (hasMatchingFunction()) {
if (!getMatchingFunction()
.equals(other.getMatchingFunction())) return false;
}
if (status_ != other.status_) 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();
if (hasFeed()) {
hash = (37 * hash) + FEED_FIELD_NUMBER;
hash = (53 * hash) + getFeed().hashCode();
}
if (hasAdGroup()) {
hash = (37 * hash) + AD_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getAdGroup().hashCode();
}
if (getPlaceholderTypesCount() > 0) {
hash = (37 * hash) + PLACEHOLDER_TYPES_FIELD_NUMBER;
hash = (53 * hash) + placeholderTypes_.hashCode();
}
if (hasMatchingFunction()) {
hash = (37 * hash) + MATCHING_FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + getMatchingFunction().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.resources.AdGroupFeed parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.AdGroupFeed 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.AdGroupFeed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.AdGroupFeed 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.AdGroupFeed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.resources.AdGroupFeed 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.AdGroupFeed 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.AdGroupFeed 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.AdGroupFeed 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.AdGroupFeed 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.AdGroupFeed 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.AdGroupFeed 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.AdGroupFeed 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;
}
/**
*
* An ad group feed.
*
*
* Protobuf type {@code google.ads.googleads.v17.resources.AdGroupFeed}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.resources.AdGroupFeed)
com.google.ads.googleads.v17.resources.AdGroupFeedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.resources.AdGroupFeedProto.internal_static_google_ads_googleads_v17_resources_AdGroupFeed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.resources.AdGroupFeedProto.internal_static_google_ads_googleads_v17_resources_AdGroupFeed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.resources.AdGroupFeed.class, com.google.ads.googleads.v17.resources.AdGroupFeed.Builder.class);
}
// Construct using com.google.ads.googleads.v17.resources.AdGroupFeed.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMatchingFunctionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resourceName_ = "";
feed_ = "";
adGroup_ = "";
placeholderTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
matchingFunction_ = null;
if (matchingFunctionBuilder_ != null) {
matchingFunctionBuilder_.dispose();
matchingFunctionBuilder_ = null;
}
status_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.resources.AdGroupFeedProto.internal_static_google_ads_googleads_v17_resources_AdGroupFeed_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.AdGroupFeed getDefaultInstanceForType() {
return com.google.ads.googleads.v17.resources.AdGroupFeed.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.AdGroupFeed build() {
com.google.ads.googleads.v17.resources.AdGroupFeed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.resources.AdGroupFeed buildPartial() {
com.google.ads.googleads.v17.resources.AdGroupFeed result = new com.google.ads.googleads.v17.resources.AdGroupFeed(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.ads.googleads.v17.resources.AdGroupFeed result) {
if (((bitField0_ & 0x00000008) != 0)) {
placeholderTypes_ = java.util.Collections.unmodifiableList(placeholderTypes_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.placeholderTypes_ = placeholderTypes_;
}
private void buildPartial0(com.google.ads.googleads.v17.resources.AdGroupFeed result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resourceName_ = resourceName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.feed_ = feed_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.adGroup_ = adGroup_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.matchingFunction_ = matchingFunctionBuilder_ == null
? matchingFunction_
: matchingFunctionBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.status_ = status_;
}
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.resources.AdGroupFeed) {
return mergeFrom((com.google.ads.googleads.v17.resources.AdGroupFeed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.resources.AdGroupFeed other) {
if (other == com.google.ads.googleads.v17.resources.AdGroupFeed.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasFeed()) {
feed_ = other.feed_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasAdGroup()) {
adGroup_ = other.adGroup_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.placeholderTypes_.isEmpty()) {
if (placeholderTypes_.isEmpty()) {
placeholderTypes_ = other.placeholderTypes_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePlaceholderTypesIsMutable();
placeholderTypes_.addAll(other.placeholderTypes_);
}
onChanged();
}
if (other.hasMatchingFunction()) {
mergeMatchingFunction(other.getMatchingFunction());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
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 32: {
int tmpRaw = input.readEnum();
ensurePlaceholderTypesIsMutable();
placeholderTypes_.add(tmpRaw);
break;
} // case 32
case 34: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
ensurePlaceholderTypesIsMutable();
placeholderTypes_.add(tmpRaw);
}
input.popLimit(oldLimit);
break;
} // case 34
case 42: {
input.readMessage(
getMatchingFunctionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
status_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
feed_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 58
case 66: {
adGroup_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 66
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_ = "";
/**
*
* Immutable. The resource name of the ad group feed.
* Ad group feed resource names have the form:
*
* `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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;
}
}
/**
*
* Immutable. The resource name of the ad group feed.
* Ad group feed resource names have the form:
*
* `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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;
}
}
/**
*
* Immutable. The resource name of the ad group feed.
* Ad group feed resource names have the form:
*
* `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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;
}
/**
*
* Immutable. The resource name of the ad group feed.
* Ad group feed resource names have the form:
*
* `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the ad group feed.
* Ad group feed resource names have the form:
*
* `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}
*
*
* string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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 feed_ = "";
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the feed field is set.
*/
public boolean hasFeed() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The feed.
*/
public java.lang.String getFeed() {
java.lang.Object ref = feed_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feed_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return The bytes for feed.
*/
public com.google.protobuf.ByteString
getFeedBytes() {
java.lang.Object ref = feed_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feed_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The feed to set.
* @return This builder for chaining.
*/
public Builder setFeed(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
feed_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearFeed() {
feed_ = getDefaultInstance().getFeed();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Immutable. The feed being linked to the ad group.
*
*
* optional string feed = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @param value The bytes for feed to set.
* @return This builder for chaining.
*/
public Builder setFeedBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
feed_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object adGroup_ = "";
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return Whether the adGroup field is set.
*/
public boolean hasAdGroup() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.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;
}
}
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.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;
}
}
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.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_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
* @return This builder for chaining.
*/
public Builder clearAdGroup() {
adGroup_ = getDefaultInstance().getAdGroup();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Immutable. The ad group being linked to the feed.
*
*
* optional string ad_group = 8 [(.google.api.field_behavior) = IMMUTABLE, (.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_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List placeholderTypes_ =
java.util.Collections.emptyList();
private void ensurePlaceholderTypesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
placeholderTypes_ = new java.util.ArrayList(placeholderTypes_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @return A list containing the placeholderTypes.
*/
public java.util.List getPlaceholderTypesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType>(placeholderTypes_, placeholderTypes_converter_);
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @return The count of placeholderTypes.
*/
public int getPlaceholderTypesCount() {
return placeholderTypes_.size();
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param index The index of the element to return.
* @return The placeholderTypes at the given index.
*/
public com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType getPlaceholderTypes(int index) {
return placeholderTypes_converter_.convert(placeholderTypes_.get(index));
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param index The index to set the value at.
* @param value The placeholderTypes to set.
* @return This builder for chaining.
*/
public Builder setPlaceholderTypes(
int index, com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType value) {
if (value == null) {
throw new NullPointerException();
}
ensurePlaceholderTypesIsMutable();
placeholderTypes_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param value The placeholderTypes to add.
* @return This builder for chaining.
*/
public Builder addPlaceholderTypes(com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType value) {
if (value == null) {
throw new NullPointerException();
}
ensurePlaceholderTypesIsMutable();
placeholderTypes_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param values The placeholderTypes to add.
* @return This builder for chaining.
*/
public Builder addAllPlaceholderTypes(
java.lang.Iterable extends com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType> values) {
ensurePlaceholderTypesIsMutable();
for (com.google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType value : values) {
placeholderTypes_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @return This builder for chaining.
*/
public Builder clearPlaceholderTypes() {
placeholderTypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @return A list containing the enum numeric values on the wire for placeholderTypes.
*/
public java.util.List
getPlaceholderTypesValueList() {
return java.util.Collections.unmodifiableList(placeholderTypes_);
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of placeholderTypes at the given index.
*/
public int getPlaceholderTypesValue(int index) {
return placeholderTypes_.get(index);
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for placeholderTypes to set.
* @return This builder for chaining.
*/
public Builder setPlaceholderTypesValue(
int index, int value) {
ensurePlaceholderTypesIsMutable();
placeholderTypes_.set(index, value);
onChanged();
return this;
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param value The enum numeric value on the wire for placeholderTypes to add.
* @return This builder for chaining.
*/
public Builder addPlaceholderTypesValue(int value) {
ensurePlaceholderTypesIsMutable();
placeholderTypes_.add(value);
onChanged();
return this;
}
/**
*
* Indicates which placeholder types the feed may populate under the connected
* ad group. Required.
*
*
* repeated .google.ads.googleads.v17.enums.PlaceholderTypeEnum.PlaceholderType placeholder_types = 4;
* @param values The enum numeric values on the wire for placeholderTypes to add.
* @return This builder for chaining.
*/
public Builder addAllPlaceholderTypesValue(
java.lang.Iterable values) {
ensurePlaceholderTypesIsMutable();
for (int value : values) {
placeholderTypes_.add(value);
}
onChanged();
return this;
}
private com.google.ads.googleads.v17.common.MatchingFunction matchingFunction_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MatchingFunction, com.google.ads.googleads.v17.common.MatchingFunction.Builder, com.google.ads.googleads.v17.common.MatchingFunctionOrBuilder> matchingFunctionBuilder_;
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
* @return Whether the matchingFunction field is set.
*/
public boolean hasMatchingFunction() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
* @return The matchingFunction.
*/
public com.google.ads.googleads.v17.common.MatchingFunction getMatchingFunction() {
if (matchingFunctionBuilder_ == null) {
return matchingFunction_ == null ? com.google.ads.googleads.v17.common.MatchingFunction.getDefaultInstance() : matchingFunction_;
} else {
return matchingFunctionBuilder_.getMessage();
}
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
*/
public Builder setMatchingFunction(com.google.ads.googleads.v17.common.MatchingFunction value) {
if (matchingFunctionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
matchingFunction_ = value;
} else {
matchingFunctionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
*/
public Builder setMatchingFunction(
com.google.ads.googleads.v17.common.MatchingFunction.Builder builderForValue) {
if (matchingFunctionBuilder_ == null) {
matchingFunction_ = builderForValue.build();
} else {
matchingFunctionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
*/
public Builder mergeMatchingFunction(com.google.ads.googleads.v17.common.MatchingFunction value) {
if (matchingFunctionBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
matchingFunction_ != null &&
matchingFunction_ != com.google.ads.googleads.v17.common.MatchingFunction.getDefaultInstance()) {
getMatchingFunctionBuilder().mergeFrom(value);
} else {
matchingFunction_ = value;
}
} else {
matchingFunctionBuilder_.mergeFrom(value);
}
if (matchingFunction_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
*/
public Builder clearMatchingFunction() {
bitField0_ = (bitField0_ & ~0x00000010);
matchingFunction_ = null;
if (matchingFunctionBuilder_ != null) {
matchingFunctionBuilder_.dispose();
matchingFunctionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
*/
public com.google.ads.googleads.v17.common.MatchingFunction.Builder getMatchingFunctionBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getMatchingFunctionFieldBuilder().getBuilder();
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
*/
public com.google.ads.googleads.v17.common.MatchingFunctionOrBuilder getMatchingFunctionOrBuilder() {
if (matchingFunctionBuilder_ != null) {
return matchingFunctionBuilder_.getMessageOrBuilder();
} else {
return matchingFunction_ == null ?
com.google.ads.googleads.v17.common.MatchingFunction.getDefaultInstance() : matchingFunction_;
}
}
/**
*
* Matching function associated with the AdGroupFeed.
* The matching function is used to filter the set of feed items selected.
* Required.
*
*
* .google.ads.googleads.v17.common.MatchingFunction matching_function = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MatchingFunction, com.google.ads.googleads.v17.common.MatchingFunction.Builder, com.google.ads.googleads.v17.common.MatchingFunctionOrBuilder>
getMatchingFunctionFieldBuilder() {
if (matchingFunctionBuilder_ == null) {
matchingFunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.MatchingFunction, com.google.ads.googleads.v17.common.MatchingFunction.Builder, com.google.ads.googleads.v17.common.MatchingFunctionOrBuilder>(
getMatchingFunction(),
getParentForChildren(),
isClean());
matchingFunction_ = null;
}
return matchingFunctionBuilder_;
}
private int status_ = 0;
/**
*
* Output only. Status of the ad group feed.
* This field is read-only.
*
*
* .google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
*
* Output only. Status of the ad group feed.
* This field is read-only.
*
*
* .google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Output only. Status of the ad group feed.
* This field is read-only.
*
*
* .google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus getStatus() {
com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus result = com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus.forNumber(status_);
return result == null ? com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. Status of the ad group feed.
* This field is read-only.
*
*
* .google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Status of the ad group feed.
* This field is read-only.
*
*
* .google.ads.googleads.v17.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000020);
status_ = 0;
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.AdGroupFeed)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.resources.AdGroupFeed)
private static final com.google.ads.googleads.v17.resources.AdGroupFeed DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.resources.AdGroupFeed();
}
public static com.google.ads.googleads.v17.resources.AdGroupFeed getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AdGroupFeed 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.AdGroupFeed getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy