com.google.ads.googleads.v10.resources.Feed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/feed.proto
package com.google.ads.googleads.v10.resources;
/**
*
* A feed.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Feed}
*/
public final class Feed extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.Feed)
FeedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Feed.newBuilder() to construct.
private Feed(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Feed() {
resourceName_ = "";
name_ = "";
attributes_ = java.util.Collections.emptyList();
attributeOperations_ = java.util.Collections.emptyList();
origin_ = 0;
status_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Feed();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Feed.class, com.google.ads.googleads.v10.resources.Feed.Builder.class);
}
public interface PlacesLocationFeedDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData)
com.google.protobuf.MessageOrBuilder {
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the oauthInfo field is set.
*/
boolean hasOauthInfo();
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
* @return The oauthInfo.
*/
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo getOauthInfo();
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfoOrBuilder getOauthInfoOrBuilder();
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return Whether the emailAddress field is set.
*/
boolean hasEmailAddress();
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return The emailAddress.
*/
java.lang.String getEmailAddress();
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return The bytes for emailAddress.
*/
com.google.protobuf.ByteString
getEmailAddressBytes();
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @return The businessAccountId.
*/
java.lang.String getBusinessAccountId();
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @return The bytes for businessAccountId.
*/
com.google.protobuf.ByteString
getBusinessAccountIdBytes();
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return Whether the businessNameFilter field is set.
*/
boolean hasBusinessNameFilter();
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return The businessNameFilter.
*/
java.lang.String getBusinessNameFilter();
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return The bytes for businessNameFilter.
*/
com.google.protobuf.ByteString
getBusinessNameFilterBytes();
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @return A list containing the categoryFilters.
*/
java.util.List
getCategoryFiltersList();
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @return The count of categoryFilters.
*/
int getCategoryFiltersCount();
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param index The index of the element to return.
* @return The categoryFilters at the given index.
*/
java.lang.String getCategoryFilters(int index);
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param index The index of the value to return.
* @return The bytes of the categoryFilters at the given index.
*/
com.google.protobuf.ByteString
getCategoryFiltersBytes(int index);
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @return A list containing the labelFilters.
*/
java.util.List
getLabelFiltersList();
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @return The count of labelFilters.
*/
int getLabelFiltersCount();
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param index The index of the element to return.
* @return The labelFilters at the given index.
*/
java.lang.String getLabelFilters(int index);
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param index The index of the value to return.
* @return The bytes of the labelFilters at the given index.
*/
com.google.protobuf.ByteString
getLabelFiltersBytes(int index);
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData}
*/
public static final class PlacesLocationFeedData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData)
PlacesLocationFeedDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use PlacesLocationFeedData.newBuilder() to construct.
private PlacesLocationFeedData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PlacesLocationFeedData() {
emailAddress_ = "";
businessAccountId_ = "";
businessNameFilter_ = "";
categoryFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
labelFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PlacesLocationFeedData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.class, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.Builder.class);
}
public interface OAuthInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return Whether the httpMethod field is set.
*/
boolean hasHttpMethod();
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return The httpMethod.
*/
java.lang.String getHttpMethod();
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return The bytes for httpMethod.
*/
com.google.protobuf.ByteString
getHttpMethodBytes();
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return Whether the httpRequestUrl field is set.
*/
boolean hasHttpRequestUrl();
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return The httpRequestUrl.
*/
java.lang.String getHttpRequestUrl();
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return The bytes for httpRequestUrl.
*/
com.google.protobuf.ByteString
getHttpRequestUrlBytes();
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return Whether the httpAuthorizationHeader field is set.
*/
boolean hasHttpAuthorizationHeader();
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return The httpAuthorizationHeader.
*/
java.lang.String getHttpAuthorizationHeader();
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return The bytes for httpAuthorizationHeader.
*/
com.google.protobuf.ByteString
getHttpAuthorizationHeaderBytes();
}
/**
*
* Data used for authorization using OAuth.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo}
*/
public static final class OAuthInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo)
OAuthInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use OAuthInfo.newBuilder() to construct.
private OAuthInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OAuthInfo() {
httpMethod_ = "";
httpRequestUrl_ = "";
httpAuthorizationHeader_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OAuthInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_OAuthInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_OAuthInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.class, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.Builder.class);
}
private int bitField0_;
public static final int HTTP_METHOD_FIELD_NUMBER = 4;
private volatile java.lang.Object httpMethod_;
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return Whether the httpMethod field is set.
*/
@java.lang.Override
public boolean hasHttpMethod() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return The httpMethod.
*/
@java.lang.Override
public java.lang.String getHttpMethod() {
java.lang.Object ref = httpMethod_;
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();
httpMethod_ = s;
return s;
}
}
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return The bytes for httpMethod.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpMethodBytes() {
java.lang.Object ref = httpMethod_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpMethod_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HTTP_REQUEST_URL_FIELD_NUMBER = 5;
private volatile java.lang.Object httpRequestUrl_;
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return Whether the httpRequestUrl field is set.
*/
@java.lang.Override
public boolean hasHttpRequestUrl() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return The httpRequestUrl.
*/
@java.lang.Override
public java.lang.String getHttpRequestUrl() {
java.lang.Object ref = httpRequestUrl_;
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();
httpRequestUrl_ = s;
return s;
}
}
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return The bytes for httpRequestUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpRequestUrlBytes() {
java.lang.Object ref = httpRequestUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRequestUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HTTP_AUTHORIZATION_HEADER_FIELD_NUMBER = 6;
private volatile java.lang.Object httpAuthorizationHeader_;
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return Whether the httpAuthorizationHeader field is set.
*/
@java.lang.Override
public boolean hasHttpAuthorizationHeader() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return The httpAuthorizationHeader.
*/
@java.lang.Override
public java.lang.String getHttpAuthorizationHeader() {
java.lang.Object ref = httpAuthorizationHeader_;
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();
httpAuthorizationHeader_ = s;
return s;
}
}
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return The bytes for httpAuthorizationHeader.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHttpAuthorizationHeaderBytes() {
java.lang.Object ref = httpAuthorizationHeader_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpAuthorizationHeader_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, httpMethod_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, httpRequestUrl_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, httpAuthorizationHeader_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, httpMethod_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, httpRequestUrl_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, httpAuthorizationHeader_);
}
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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo other = (com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo) obj;
if (hasHttpMethod() != other.hasHttpMethod()) return false;
if (hasHttpMethod()) {
if (!getHttpMethod()
.equals(other.getHttpMethod())) return false;
}
if (hasHttpRequestUrl() != other.hasHttpRequestUrl()) return false;
if (hasHttpRequestUrl()) {
if (!getHttpRequestUrl()
.equals(other.getHttpRequestUrl())) return false;
}
if (hasHttpAuthorizationHeader() != other.hasHttpAuthorizationHeader()) return false;
if (hasHttpAuthorizationHeader()) {
if (!getHttpAuthorizationHeader()
.equals(other.getHttpAuthorizationHeader())) 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();
if (hasHttpMethod()) {
hash = (37 * hash) + HTTP_METHOD_FIELD_NUMBER;
hash = (53 * hash) + getHttpMethod().hashCode();
}
if (hasHttpRequestUrl()) {
hash = (37 * hash) + HTTP_REQUEST_URL_FIELD_NUMBER;
hash = (53 * hash) + getHttpRequestUrl().hashCode();
}
if (hasHttpAuthorizationHeader()) {
hash = (37 * hash) + HTTP_AUTHORIZATION_HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHttpAuthorizationHeader().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo 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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo 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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo 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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo 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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo 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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Data used for authorization using OAuth.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo)
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_OAuthInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_OAuthInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.class, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
httpMethod_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
httpRequestUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
httpAuthorizationHeader_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_OAuthInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo build() {
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo buildPartial() {
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo result = new com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.httpMethod_ = httpMethod_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.httpRequestUrl_ = httpRequestUrl_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.httpAuthorizationHeader_ = httpAuthorizationHeader_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo) {
return mergeFrom((com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo other) {
if (other == com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.getDefaultInstance()) return this;
if (other.hasHttpMethod()) {
bitField0_ |= 0x00000001;
httpMethod_ = other.httpMethod_;
onChanged();
}
if (other.hasHttpRequestUrl()) {
bitField0_ |= 0x00000002;
httpRequestUrl_ = other.httpRequestUrl_;
onChanged();
}
if (other.hasHttpAuthorizationHeader()) {
bitField0_ |= 0x00000004;
httpAuthorizationHeader_ = other.httpAuthorizationHeader_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 34: {
httpMethod_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 34
case 42: {
httpRequestUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 42
case 50: {
httpAuthorizationHeader_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 50
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 httpMethod_ = "";
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return Whether the httpMethod field is set.
*/
public boolean hasHttpMethod() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return The httpMethod.
*/
public java.lang.String getHttpMethod() {
java.lang.Object ref = httpMethod_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpMethod_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return The bytes for httpMethod.
*/
public com.google.protobuf.ByteString
getHttpMethodBytes() {
java.lang.Object ref = httpMethod_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpMethod_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @param value The httpMethod to set.
* @return This builder for chaining.
*/
public Builder setHttpMethod(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
httpMethod_ = value;
onChanged();
return this;
}
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @return This builder for chaining.
*/
public Builder clearHttpMethod() {
bitField0_ = (bitField0_ & ~0x00000001);
httpMethod_ = getDefaultInstance().getHttpMethod();
onChanged();
return this;
}
/**
*
* The HTTP method used to obtain authorization.
*
*
* optional string http_method = 4;
* @param value The bytes for httpMethod to set.
* @return This builder for chaining.
*/
public Builder setHttpMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
httpMethod_ = value;
onChanged();
return this;
}
private java.lang.Object httpRequestUrl_ = "";
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return Whether the httpRequestUrl field is set.
*/
public boolean hasHttpRequestUrl() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return The httpRequestUrl.
*/
public java.lang.String getHttpRequestUrl() {
java.lang.Object ref = httpRequestUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpRequestUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return The bytes for httpRequestUrl.
*/
public com.google.protobuf.ByteString
getHttpRequestUrlBytes() {
java.lang.Object ref = httpRequestUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpRequestUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @param value The httpRequestUrl to set.
* @return This builder for chaining.
*/
public Builder setHttpRequestUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
httpRequestUrl_ = value;
onChanged();
return this;
}
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @return This builder for chaining.
*/
public Builder clearHttpRequestUrl() {
bitField0_ = (bitField0_ & ~0x00000002);
httpRequestUrl_ = getDefaultInstance().getHttpRequestUrl();
onChanged();
return this;
}
/**
*
* The HTTP request URL used to obtain authorization.
*
*
* optional string http_request_url = 5;
* @param value The bytes for httpRequestUrl to set.
* @return This builder for chaining.
*/
public Builder setHttpRequestUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
httpRequestUrl_ = value;
onChanged();
return this;
}
private java.lang.Object httpAuthorizationHeader_ = "";
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return Whether the httpAuthorizationHeader field is set.
*/
public boolean hasHttpAuthorizationHeader() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return The httpAuthorizationHeader.
*/
public java.lang.String getHttpAuthorizationHeader() {
java.lang.Object ref = httpAuthorizationHeader_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
httpAuthorizationHeader_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return The bytes for httpAuthorizationHeader.
*/
public com.google.protobuf.ByteString
getHttpAuthorizationHeaderBytes() {
java.lang.Object ref = httpAuthorizationHeader_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
httpAuthorizationHeader_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @param value The httpAuthorizationHeader to set.
* @return This builder for chaining.
*/
public Builder setHttpAuthorizationHeader(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
httpAuthorizationHeader_ = value;
onChanged();
return this;
}
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @return This builder for chaining.
*/
public Builder clearHttpAuthorizationHeader() {
bitField0_ = (bitField0_ & ~0x00000004);
httpAuthorizationHeader_ = getDefaultInstance().getHttpAuthorizationHeader();
onChanged();
return this;
}
/**
*
* The HTTP authorization header used to obtain authorization.
*
*
* optional string http_authorization_header = 6;
* @param value The bytes for httpAuthorizationHeader to set.
* @return This builder for chaining.
*/
public Builder setHttpAuthorizationHeaderBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
httpAuthorizationHeader_ = value;
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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo)
private static final com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo();
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OAuthInfo 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.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int OAUTH_INFO_FIELD_NUMBER = 1;
private com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauthInfo_;
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the oauthInfo field is set.
*/
@java.lang.Override
public boolean hasOauthInfo() {
return oauthInfo_ != null;
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
* @return The oauthInfo.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo getOauthInfo() {
return oauthInfo_ == null ? com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.getDefaultInstance() : oauthInfo_;
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfoOrBuilder getOauthInfoOrBuilder() {
return getOauthInfo();
}
public static final int EMAIL_ADDRESS_FIELD_NUMBER = 7;
private volatile java.lang.Object emailAddress_;
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return Whether the emailAddress field is set.
*/
@java.lang.Override
public boolean hasEmailAddress() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return The emailAddress.
*/
@java.lang.Override
public java.lang.String getEmailAddress() {
java.lang.Object ref = emailAddress_;
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();
emailAddress_ = s;
return s;
}
}
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return The bytes for emailAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEmailAddressBytes() {
java.lang.Object ref = emailAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
emailAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUSINESS_ACCOUNT_ID_FIELD_NUMBER = 8;
private volatile java.lang.Object businessAccountId_;
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @return The businessAccountId.
*/
@java.lang.Override
public java.lang.String getBusinessAccountId() {
java.lang.Object ref = businessAccountId_;
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();
businessAccountId_ = s;
return s;
}
}
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @return The bytes for businessAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBusinessAccountIdBytes() {
java.lang.Object ref = businessAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUSINESS_NAME_FILTER_FIELD_NUMBER = 9;
private volatile java.lang.Object businessNameFilter_;
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return Whether the businessNameFilter field is set.
*/
@java.lang.Override
public boolean hasBusinessNameFilter() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return The businessNameFilter.
*/
@java.lang.Override
public java.lang.String getBusinessNameFilter() {
java.lang.Object ref = businessNameFilter_;
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();
businessNameFilter_ = s;
return s;
}
}
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return The bytes for businessNameFilter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBusinessNameFilterBytes() {
java.lang.Object ref = businessNameFilter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessNameFilter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CATEGORY_FILTERS_FIELD_NUMBER = 11;
private com.google.protobuf.LazyStringList categoryFilters_;
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @return A list containing the categoryFilters.
*/
public com.google.protobuf.ProtocolStringList
getCategoryFiltersList() {
return categoryFilters_;
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @return The count of categoryFilters.
*/
public int getCategoryFiltersCount() {
return categoryFilters_.size();
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param index The index of the element to return.
* @return The categoryFilters at the given index.
*/
public java.lang.String getCategoryFilters(int index) {
return categoryFilters_.get(index);
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param index The index of the value to return.
* @return The bytes of the categoryFilters at the given index.
*/
public com.google.protobuf.ByteString
getCategoryFiltersBytes(int index) {
return categoryFilters_.getByteString(index);
}
public static final int LABEL_FILTERS_FIELD_NUMBER = 12;
private com.google.protobuf.LazyStringList labelFilters_;
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @return A list containing the labelFilters.
*/
public com.google.protobuf.ProtocolStringList
getLabelFiltersList() {
return labelFilters_;
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @return The count of labelFilters.
*/
public int getLabelFiltersCount() {
return labelFilters_.size();
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param index The index of the element to return.
* @return The labelFilters at the given index.
*/
public java.lang.String getLabelFilters(int index) {
return labelFilters_.get(index);
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param index The index of the value to return.
* @return The bytes of the labelFilters at the given index.
*/
public com.google.protobuf.ByteString
getLabelFiltersBytes(int index) {
return labelFilters_.getByteString(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 (oauthInfo_ != null) {
output.writeMessage(1, getOauthInfo());
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, emailAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, businessAccountId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, businessNameFilter_);
}
for (int i = 0; i < categoryFilters_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, categoryFilters_.getRaw(i));
}
for (int i = 0; i < labelFilters_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, labelFilters_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (oauthInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOauthInfo());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, emailAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(businessAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, businessAccountId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, businessNameFilter_);
}
{
int dataSize = 0;
for (int i = 0; i < categoryFilters_.size(); i++) {
dataSize += computeStringSizeNoTag(categoryFilters_.getRaw(i));
}
size += dataSize;
size += 1 * getCategoryFiltersList().size();
}
{
int dataSize = 0;
for (int i = 0; i < labelFilters_.size(); i++) {
dataSize += computeStringSizeNoTag(labelFilters_.getRaw(i));
}
size += dataSize;
size += 1 * getLabelFiltersList().size();
}
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.v10.resources.Feed.PlacesLocationFeedData)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData other = (com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) obj;
if (hasOauthInfo() != other.hasOauthInfo()) return false;
if (hasOauthInfo()) {
if (!getOauthInfo()
.equals(other.getOauthInfo())) return false;
}
if (hasEmailAddress() != other.hasEmailAddress()) return false;
if (hasEmailAddress()) {
if (!getEmailAddress()
.equals(other.getEmailAddress())) return false;
}
if (!getBusinessAccountId()
.equals(other.getBusinessAccountId())) return false;
if (hasBusinessNameFilter() != other.hasBusinessNameFilter()) return false;
if (hasBusinessNameFilter()) {
if (!getBusinessNameFilter()
.equals(other.getBusinessNameFilter())) return false;
}
if (!getCategoryFiltersList()
.equals(other.getCategoryFiltersList())) return false;
if (!getLabelFiltersList()
.equals(other.getLabelFiltersList())) 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();
if (hasOauthInfo()) {
hash = (37 * hash) + OAUTH_INFO_FIELD_NUMBER;
hash = (53 * hash) + getOauthInfo().hashCode();
}
if (hasEmailAddress()) {
hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getEmailAddress().hashCode();
}
hash = (37 * hash) + BUSINESS_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getBusinessAccountId().hashCode();
if (hasBusinessNameFilter()) {
hash = (37 * hash) + BUSINESS_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getBusinessNameFilter().hashCode();
}
if (getCategoryFiltersCount() > 0) {
hash = (37 * hash) + CATEGORY_FILTERS_FIELD_NUMBER;
hash = (53 * hash) + getCategoryFiltersList().hashCode();
}
if (getLabelFiltersCount() > 0) {
hash = (37 * hash) + LABEL_FILTERS_FIELD_NUMBER;
hash = (53 * hash) + getLabelFiltersList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData 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.v10.resources.Feed.PlacesLocationFeedData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData 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.v10.resources.Feed.PlacesLocationFeedData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData 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.v10.resources.Feed.PlacesLocationFeedData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData 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.v10.resources.Feed.PlacesLocationFeedData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData 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.v10.resources.Feed.PlacesLocationFeedData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData)
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.class, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (oauthInfoBuilder_ == null) {
oauthInfo_ = null;
} else {
oauthInfo_ = null;
oauthInfoBuilder_ = null;
}
emailAddress_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
businessAccountId_ = "";
businessNameFilter_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
categoryFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
labelFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_PlacesLocationFeedData_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData build() {
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData buildPartial() {
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData result = new com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (oauthInfoBuilder_ == null) {
result.oauthInfo_ = oauthInfo_;
} else {
result.oauthInfo_ = oauthInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.emailAddress_ = emailAddress_;
result.businessAccountId_ = businessAccountId_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.businessNameFilter_ = businessNameFilter_;
if (((bitField0_ & 0x00000004) != 0)) {
categoryFilters_ = categoryFilters_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.categoryFilters_ = categoryFilters_;
if (((bitField0_ & 0x00000008) != 0)) {
labelFilters_ = labelFilters_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.labelFilters_ = labelFilters_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@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.v10.resources.Feed.PlacesLocationFeedData) {
return mergeFrom((com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData other) {
if (other == com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance()) return this;
if (other.hasOauthInfo()) {
mergeOauthInfo(other.getOauthInfo());
}
if (other.hasEmailAddress()) {
bitField0_ |= 0x00000001;
emailAddress_ = other.emailAddress_;
onChanged();
}
if (!other.getBusinessAccountId().isEmpty()) {
businessAccountId_ = other.businessAccountId_;
onChanged();
}
if (other.hasBusinessNameFilter()) {
bitField0_ |= 0x00000002;
businessNameFilter_ = other.businessNameFilter_;
onChanged();
}
if (!other.categoryFilters_.isEmpty()) {
if (categoryFilters_.isEmpty()) {
categoryFilters_ = other.categoryFilters_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureCategoryFiltersIsMutable();
categoryFilters_.addAll(other.categoryFilters_);
}
onChanged();
}
if (!other.labelFilters_.isEmpty()) {
if (labelFilters_.isEmpty()) {
labelFilters_ = other.labelFilters_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureLabelFiltersIsMutable();
labelFilters_.addAll(other.labelFilters_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getOauthInfoFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 58: {
emailAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 58
case 66: {
businessAccountId_ = input.readStringRequireUtf8();
break;
} // case 66
case 74: {
businessNameFilter_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 74
case 90: {
java.lang.String s = input.readStringRequireUtf8();
ensureCategoryFiltersIsMutable();
categoryFilters_.add(s);
break;
} // case 90
case 98: {
java.lang.String s = input.readStringRequireUtf8();
ensureLabelFiltersIsMutable();
labelFilters_.add(s);
break;
} // case 98
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 com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauthInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.Builder, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfoOrBuilder> oauthInfoBuilder_;
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the oauthInfo field is set.
*/
public boolean hasOauthInfo() {
return oauthInfoBuilder_ != null || oauthInfo_ != null;
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
* @return The oauthInfo.
*/
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo getOauthInfo() {
if (oauthInfoBuilder_ == null) {
return oauthInfo_ == null ? com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.getDefaultInstance() : oauthInfo_;
} else {
return oauthInfoBuilder_.getMessage();
}
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setOauthInfo(com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo value) {
if (oauthInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oauthInfo_ = value;
onChanged();
} else {
oauthInfoBuilder_.setMessage(value);
}
return this;
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder setOauthInfo(
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.Builder builderForValue) {
if (oauthInfoBuilder_ == null) {
oauthInfo_ = builderForValue.build();
onChanged();
} else {
oauthInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder mergeOauthInfo(com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo value) {
if (oauthInfoBuilder_ == null) {
if (oauthInfo_ != null) {
oauthInfo_ =
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.newBuilder(oauthInfo_).mergeFrom(value).buildPartial();
} else {
oauthInfo_ = value;
}
onChanged();
} else {
oauthInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
public Builder clearOauthInfo() {
if (oauthInfoBuilder_ == null) {
oauthInfo_ = null;
onChanged();
} else {
oauthInfo_ = null;
oauthInfoBuilder_ = null;
}
return this;
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.Builder getOauthInfoBuilder() {
onChanged();
return getOauthInfoFieldBuilder().getBuilder();
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfoOrBuilder getOauthInfoOrBuilder() {
if (oauthInfoBuilder_ != null) {
return oauthInfoBuilder_.getMessageOrBuilder();
} else {
return oauthInfo_ == null ?
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.getDefaultInstance() : oauthInfo_;
}
}
/**
*
* Immutable. Required authentication token (from OAuth API) for the email.
* This field can only be specified in a create request. All its subfields
* are not selectable.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo oauth_info = 1 [(.google.api.field_behavior) = IMMUTABLE];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.Builder, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfoOrBuilder>
getOauthInfoFieldBuilder() {
if (oauthInfoBuilder_ == null) {
oauthInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfo.Builder, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.OAuthInfoOrBuilder>(
getOauthInfo(),
getParentForChildren(),
isClean());
oauthInfo_ = null;
}
return oauthInfoBuilder_;
}
private java.lang.Object emailAddress_ = "";
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return Whether the emailAddress field is set.
*/
public boolean hasEmailAddress() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return The emailAddress.
*/
public java.lang.String getEmailAddress() {
java.lang.Object ref = emailAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
emailAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return The bytes for emailAddress.
*/
public com.google.protobuf.ByteString
getEmailAddressBytes() {
java.lang.Object ref = emailAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
emailAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @param value The emailAddress to set.
* @return This builder for chaining.
*/
public Builder setEmailAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
emailAddress_ = value;
onChanged();
return this;
}
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @return This builder for chaining.
*/
public Builder clearEmailAddress() {
bitField0_ = (bitField0_ & ~0x00000001);
emailAddress_ = getDefaultInstance().getEmailAddress();
onChanged();
return this;
}
/**
*
* Email address of a Business Profile or email address of a
* manager of the Business Profile. Required.
*
*
* optional string email_address = 7;
* @param value The bytes for emailAddress to set.
* @return This builder for chaining.
*/
public Builder setEmailAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
emailAddress_ = value;
onChanged();
return this;
}
private java.lang.Object businessAccountId_ = "";
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @return The businessAccountId.
*/
public java.lang.String getBusinessAccountId() {
java.lang.Object ref = businessAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
businessAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @return The bytes for businessAccountId.
*/
public com.google.protobuf.ByteString
getBusinessAccountIdBytes() {
java.lang.Object ref = businessAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @param value The businessAccountId to set.
* @return This builder for chaining.
*/
public Builder setBusinessAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
businessAccountId_ = value;
onChanged();
return this;
}
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @return This builder for chaining.
*/
public Builder clearBusinessAccountId() {
businessAccountId_ = getDefaultInstance().getBusinessAccountId();
onChanged();
return this;
}
/**
*
* Plus page ID of the managed business whose locations should be used. If
* this field is not set, then all businesses accessible by the user
* (specified by email_address) are used.
* This field is mutate-only and is not selectable.
*
*
* string business_account_id = 8;
* @param value The bytes for businessAccountId to set.
* @return This builder for chaining.
*/
public Builder setBusinessAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
businessAccountId_ = value;
onChanged();
return this;
}
private java.lang.Object businessNameFilter_ = "";
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return Whether the businessNameFilter field is set.
*/
public boolean hasBusinessNameFilter() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return The businessNameFilter.
*/
public java.lang.String getBusinessNameFilter() {
java.lang.Object ref = businessNameFilter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
businessNameFilter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return The bytes for businessNameFilter.
*/
public com.google.protobuf.ByteString
getBusinessNameFilterBytes() {
java.lang.Object ref = businessNameFilter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
businessNameFilter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @param value The businessNameFilter to set.
* @return This builder for chaining.
*/
public Builder setBusinessNameFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
businessNameFilter_ = value;
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @return This builder for chaining.
*/
public Builder clearBusinessNameFilter() {
bitField0_ = (bitField0_ & ~0x00000002);
businessNameFilter_ = getDefaultInstance().getBusinessNameFilter();
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by business name. If
* business_name_filter is set, only listings with a matching business name
* are candidates to be sync'd into FeedItems.
*
*
* optional string business_name_filter = 9;
* @param value The bytes for businessNameFilter to set.
* @return This builder for chaining.
*/
public Builder setBusinessNameFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
businessNameFilter_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList categoryFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCategoryFiltersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
categoryFilters_ = new com.google.protobuf.LazyStringArrayList(categoryFilters_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @return A list containing the categoryFilters.
*/
public com.google.protobuf.ProtocolStringList
getCategoryFiltersList() {
return categoryFilters_.getUnmodifiableView();
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @return The count of categoryFilters.
*/
public int getCategoryFiltersCount() {
return categoryFilters_.size();
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param index The index of the element to return.
* @return The categoryFilters at the given index.
*/
public java.lang.String getCategoryFilters(int index) {
return categoryFilters_.get(index);
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param index The index of the value to return.
* @return The bytes of the categoryFilters at the given index.
*/
public com.google.protobuf.ByteString
getCategoryFiltersBytes(int index) {
return categoryFilters_.getByteString(index);
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param index The index to set the value at.
* @param value The categoryFilters to set.
* @return This builder for chaining.
*/
public Builder setCategoryFilters(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCategoryFiltersIsMutable();
categoryFilters_.set(index, value);
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param value The categoryFilters to add.
* @return This builder for chaining.
*/
public Builder addCategoryFilters(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCategoryFiltersIsMutable();
categoryFilters_.add(value);
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param values The categoryFilters to add.
* @return This builder for chaining.
*/
public Builder addAllCategoryFilters(
java.lang.Iterable values) {
ensureCategoryFiltersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, categoryFilters_);
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @return This builder for chaining.
*/
public Builder clearCategoryFilters() {
categoryFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by categories. If entries
* exist in category_filters, only listings that belong to any of the
* categories are candidates to be sync'd into FeedItems. If no entries
* exist in category_filters, then all listings are candidates for syncing.
*
*
* repeated string category_filters = 11;
* @param value The bytes of the categoryFilters to add.
* @return This builder for chaining.
*/
public Builder addCategoryFiltersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureCategoryFiltersIsMutable();
categoryFilters_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList labelFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureLabelFiltersIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
labelFilters_ = new com.google.protobuf.LazyStringArrayList(labelFilters_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @return A list containing the labelFilters.
*/
public com.google.protobuf.ProtocolStringList
getLabelFiltersList() {
return labelFilters_.getUnmodifiableView();
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @return The count of labelFilters.
*/
public int getLabelFiltersCount() {
return labelFilters_.size();
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param index The index of the element to return.
* @return The labelFilters at the given index.
*/
public java.lang.String getLabelFilters(int index) {
return labelFilters_.get(index);
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param index The index of the value to return.
* @return The bytes of the labelFilters at the given index.
*/
public com.google.protobuf.ByteString
getLabelFiltersBytes(int index) {
return labelFilters_.getByteString(index);
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param index The index to set the value at.
* @param value The labelFilters to set.
* @return This builder for chaining.
*/
public Builder setLabelFilters(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelFiltersIsMutable();
labelFilters_.set(index, value);
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param value The labelFilters to add.
* @return This builder for chaining.
*/
public Builder addLabelFilters(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureLabelFiltersIsMutable();
labelFilters_.add(value);
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param values The labelFilters to add.
* @return This builder for chaining.
*/
public Builder addAllLabelFilters(
java.lang.Iterable values) {
ensureLabelFiltersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, labelFilters_);
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @return This builder for chaining.
*/
public Builder clearLabelFilters() {
labelFilters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Used to filter Business Profile listings by labels. If entries exist in
* label_filters, only listings that has any of the labels set are
* candidates to be synchronized into FeedItems. If no entries exist in
* label_filters, then all listings are candidates for syncing.
*
*
* repeated string label_filters = 12;
* @param value The bytes of the labelFilters to add.
* @return This builder for chaining.
*/
public Builder addLabelFiltersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureLabelFiltersIsMutable();
labelFilters_.add(value);
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.v10.resources.Feed.PlacesLocationFeedData)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData)
private static final com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData();
}
public static com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PlacesLocationFeedData 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.v10.resources.Feed.PlacesLocationFeedData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AffiliateLocationFeedDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData)
com.google.protobuf.MessageOrBuilder {
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @return A list containing the chainIds.
*/
java.util.List getChainIdsList();
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @return The count of chainIds.
*/
int getChainIdsCount();
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @param index The index of the element to return.
* @return The chainIds at the given index.
*/
long getChainIds(int index);
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @return The enum numeric value on the wire for relationshipType.
*/
int getRelationshipTypeValue();
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @return The relationshipType.
*/
com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType getRelationshipType();
}
/**
*
* Data used to configure an affiliate location feed populated with the
* specified chains.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData}
*/
public static final class AffiliateLocationFeedData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData)
AffiliateLocationFeedDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use AffiliateLocationFeedData.newBuilder() to construct.
private AffiliateLocationFeedData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AffiliateLocationFeedData() {
chainIds_ = emptyLongList();
relationshipType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AffiliateLocationFeedData();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_AffiliateLocationFeedData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_AffiliateLocationFeedData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.class, com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.Builder.class);
}
public static final int CHAIN_IDS_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.LongList chainIds_;
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @return A list containing the chainIds.
*/
@java.lang.Override
public java.util.List
getChainIdsList() {
return chainIds_;
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @return The count of chainIds.
*/
public int getChainIdsCount() {
return chainIds_.size();
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @param index The index of the element to return.
* @return The chainIds at the given index.
*/
public long getChainIds(int index) {
return chainIds_.getLong(index);
}
private int chainIdsMemoizedSerializedSize = -1;
public static final int RELATIONSHIP_TYPE_FIELD_NUMBER = 2;
private int relationshipType_;
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @return The enum numeric value on the wire for relationshipType.
*/
@java.lang.Override public int getRelationshipTypeValue() {
return relationshipType_;
}
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @return The relationshipType.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType getRelationshipType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType result = com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType.valueOf(relationshipType_);
return result == null ? com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType.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 (relationshipType_ != com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType.UNSPECIFIED.getNumber()) {
output.writeEnum(2, relationshipType_);
}
if (getChainIdsList().size() > 0) {
output.writeUInt32NoTag(26);
output.writeUInt32NoTag(chainIdsMemoizedSerializedSize);
}
for (int i = 0; i < chainIds_.size(); i++) {
output.writeInt64NoTag(chainIds_.getLong(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (relationshipType_ != com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, relationshipType_);
}
{
int dataSize = 0;
for (int i = 0; i < chainIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(chainIds_.getLong(i));
}
size += dataSize;
if (!getChainIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
chainIdsMemoizedSerializedSize = dataSize;
}
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.v10.resources.Feed.AffiliateLocationFeedData)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData other = (com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) obj;
if (!getChainIdsList()
.equals(other.getChainIdsList())) return false;
if (relationshipType_ != other.relationshipType_) 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();
if (getChainIdsCount() > 0) {
hash = (37 * hash) + CHAIN_IDS_FIELD_NUMBER;
hash = (53 * hash) + getChainIdsList().hashCode();
}
hash = (37 * hash) + RELATIONSHIP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + relationshipType_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData 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.v10.resources.Feed.AffiliateLocationFeedData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData 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.v10.resources.Feed.AffiliateLocationFeedData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData 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.v10.resources.Feed.AffiliateLocationFeedData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData 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.v10.resources.Feed.AffiliateLocationFeedData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData 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.v10.resources.Feed.AffiliateLocationFeedData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Data used to configure an affiliate location feed populated with the
* specified chains.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData)
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_AffiliateLocationFeedData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_AffiliateLocationFeedData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.class, com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
chainIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
relationshipType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_AffiliateLocationFeedData_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData build() {
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData buildPartial() {
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData result = new com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
chainIds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.chainIds_ = chainIds_;
result.relationshipType_ = relationshipType_;
onBuilt();
return result;
}
@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.v10.resources.Feed.AffiliateLocationFeedData) {
return mergeFrom((com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData other) {
if (other == com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance()) return this;
if (!other.chainIds_.isEmpty()) {
if (chainIds_.isEmpty()) {
chainIds_ = other.chainIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureChainIdsIsMutable();
chainIds_.addAll(other.chainIds_);
}
onChanged();
}
if (other.relationshipType_ != 0) {
setRelationshipTypeValue(other.getRelationshipTypeValue());
}
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 16: {
relationshipType_ = input.readEnum();
break;
} // case 16
case 24: {
long v = input.readInt64();
ensureChainIdsIsMutable();
chainIds_.addLong(v);
break;
} // case 24
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureChainIdsIsMutable();
while (input.getBytesUntilLimit() > 0) {
chainIds_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 26
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 com.google.protobuf.Internal.LongList chainIds_ = emptyLongList();
private void ensureChainIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
chainIds_ = mutableCopy(chainIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @return A list containing the chainIds.
*/
public java.util.List
getChainIdsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(chainIds_) : chainIds_;
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @return The count of chainIds.
*/
public int getChainIdsCount() {
return chainIds_.size();
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @param index The index of the element to return.
* @return The chainIds at the given index.
*/
public long getChainIds(int index) {
return chainIds_.getLong(index);
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @param index The index to set the value at.
* @param value The chainIds to set.
* @return This builder for chaining.
*/
public Builder setChainIds(
int index, long value) {
ensureChainIdsIsMutable();
chainIds_.setLong(index, value);
onChanged();
return this;
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @param value The chainIds to add.
* @return This builder for chaining.
*/
public Builder addChainIds(long value) {
ensureChainIdsIsMutable();
chainIds_.addLong(value);
onChanged();
return this;
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @param values The chainIds to add.
* @return This builder for chaining.
*/
public Builder addAllChainIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureChainIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, chainIds_);
onChanged();
return this;
}
/**
*
* The list of chains that the affiliate location feed will sync the
* locations from.
*
*
* repeated int64 chain_ids = 3;
* @return This builder for chaining.
*/
public Builder clearChainIds() {
chainIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private int relationshipType_ = 0;
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @return The enum numeric value on the wire for relationshipType.
*/
@java.lang.Override public int getRelationshipTypeValue() {
return relationshipType_;
}
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @param value The enum numeric value on the wire for relationshipType to set.
* @return This builder for chaining.
*/
public Builder setRelationshipTypeValue(int value) {
relationshipType_ = value;
onChanged();
return this;
}
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @return The relationshipType.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType getRelationshipType() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType result = com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType.valueOf(relationshipType_);
return result == null ? com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType.UNRECOGNIZED : result;
}
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @param value The relationshipType to set.
* @return This builder for chaining.
*/
public Builder setRelationshipType(com.google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType value) {
if (value == null) {
throw new NullPointerException();
}
relationshipType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The relationship the chains have with the advertiser.
*
*
* .google.ads.googleads.v10.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2;
* @return This builder for chaining.
*/
public Builder clearRelationshipType() {
relationshipType_ = 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.v10.resources.Feed.AffiliateLocationFeedData)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData)
private static final com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData();
}
public static com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AffiliateLocationFeedData 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.v10.resources.Feed.AffiliateLocationFeedData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int systemFeedGenerationDataCase_ = 0;
private java.lang.Object systemFeedGenerationData_;
public enum SystemFeedGenerationDataCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PLACES_LOCATION_FEED_DATA(6),
AFFILIATE_LOCATION_FEED_DATA(7),
SYSTEMFEEDGENERATIONDATA_NOT_SET(0);
private final int value;
private SystemFeedGenerationDataCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SystemFeedGenerationDataCase valueOf(int value) {
return forNumber(value);
}
public static SystemFeedGenerationDataCase forNumber(int value) {
switch (value) {
case 6: return PLACES_LOCATION_FEED_DATA;
case 7: return AFFILIATE_LOCATION_FEED_DATA;
case 0: return SYSTEMFEEDGENERATIONDATA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SystemFeedGenerationDataCase
getSystemFeedGenerationDataCase() {
return SystemFeedGenerationDataCase.forNumber(
systemFeedGenerationDataCase_);
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object resourceName_;
/**
*
* Immutable. The resource name of the feed.
* Feed resource names have the form:
* `customers/{customer_id}/feeds/{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 feed.
* Feed resource names have the form:
* `customers/{customer_id}/feeds/{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 ID_FIELD_NUMBER = 11;
private long id_;
/**
*
* Output only. The ID of the feed.
* This field is read-only.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The ID of the feed.
* This field is read-only.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int NAME_FIELD_NUMBER = 12;
private volatile java.lang.Object name_;
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTRIBUTES_FIELD_NUMBER = 4;
private java.util.List attributes_;
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
@java.lang.Override
public java.util.List getAttributesList() {
return attributes_;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.resources.FeedAttributeOrBuilder>
getAttributesOrBuilderList() {
return attributes_;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
@java.lang.Override
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedAttribute getAttributes(int index) {
return attributes_.get(index);
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedAttributeOrBuilder getAttributesOrBuilder(
int index) {
return attributes_.get(index);
}
public static final int ATTRIBUTE_OPERATIONS_FIELD_NUMBER = 9;
private java.util.List attributeOperations_;
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
@java.lang.Override
public java.util.List getAttributeOperationsList() {
return attributeOperations_;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
@java.lang.Override
public java.util.List extends com.google.ads.googleads.v10.resources.FeedAttributeOperationOrBuilder>
getAttributeOperationsOrBuilderList() {
return attributeOperations_;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
@java.lang.Override
public int getAttributeOperationsCount() {
return attributeOperations_.size();
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedAttributeOperation getAttributeOperations(int index) {
return attributeOperations_.get(index);
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.FeedAttributeOperationOrBuilder getAttributeOperationsOrBuilder(
int index) {
return attributeOperations_.get(index);
}
public static final int ORIGIN_FIELD_NUMBER = 5;
private int origin_;
/**
*
* Immutable. Specifies who manages the FeedAttributes for the Feed.
*
*
* .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for origin.
*/
@java.lang.Override public int getOriginValue() {
return origin_;
}
/**
*
* Immutable. Specifies who manages the FeedAttributes for the Feed.
*
*
* .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The origin.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin getOrigin() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin result = com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin.valueOf(origin_);
return result == null ? com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin.UNRECOGNIZED : result;
}
public static final int STATUS_FIELD_NUMBER = 8;
private int status_;
/**
*
* Output only. Status of the feed.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus status = 8 [(.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 feed.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus result = com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus.UNRECOGNIZED : result;
}
public static final int PLACES_LOCATION_FEED_DATA_FIELD_NUMBER = 6;
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
* @return Whether the placesLocationFeedData field is set.
*/
@java.lang.Override
public boolean hasPlacesLocationFeedData() {
return systemFeedGenerationDataCase_ == 6;
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
* @return The placesLocationFeedData.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData getPlacesLocationFeedData() {
if (systemFeedGenerationDataCase_ == 6) {
return (com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) systemFeedGenerationData_;
}
return com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance();
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedDataOrBuilder getPlacesLocationFeedDataOrBuilder() {
if (systemFeedGenerationDataCase_ == 6) {
return (com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) systemFeedGenerationData_;
}
return com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance();
}
public static final int AFFILIATE_LOCATION_FEED_DATA_FIELD_NUMBER = 7;
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
* @return Whether the affiliateLocationFeedData field is set.
*/
@java.lang.Override
public boolean hasAffiliateLocationFeedData() {
return systemFeedGenerationDataCase_ == 7;
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
* @return The affiliateLocationFeedData.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData getAffiliateLocationFeedData() {
if (systemFeedGenerationDataCase_ == 7) {
return (com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) systemFeedGenerationData_;
}
return com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance();
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedDataOrBuilder getAffiliateLocationFeedDataOrBuilder() {
if (systemFeedGenerationDataCase_ == 7) {
return (com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) systemFeedGenerationData_;
}
return com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_);
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeMessage(4, attributes_.get(i));
}
if (origin_ != com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin.UNSPECIFIED.getNumber()) {
output.writeEnum(5, origin_);
}
if (systemFeedGenerationDataCase_ == 6) {
output.writeMessage(6, (com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) systemFeedGenerationData_);
}
if (systemFeedGenerationDataCase_ == 7) {
output.writeMessage(7, (com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) systemFeedGenerationData_);
}
if (status_ != com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus.UNSPECIFIED.getNumber()) {
output.writeEnum(8, status_);
}
for (int i = 0; i < attributeOperations_.size(); i++) {
output.writeMessage(9, attributeOperations_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(11, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, name_);
}
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_);
}
for (int i = 0; i < attributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, attributes_.get(i));
}
if (origin_ != com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, origin_);
}
if (systemFeedGenerationDataCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) systemFeedGenerationData_);
}
if (systemFeedGenerationDataCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) systemFeedGenerationData_);
}
if (status_ != com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, status_);
}
for (int i = 0; i < attributeOperations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, attributeOperations_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, name_);
}
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.v10.resources.Feed)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.resources.Feed other = (com.google.ads.googleads.v10.resources.Feed) obj;
if (!getResourceName()
.equals(other.getResourceName())) return false;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (!getAttributesList()
.equals(other.getAttributesList())) return false;
if (!getAttributeOperationsList()
.equals(other.getAttributeOperationsList())) return false;
if (origin_ != other.origin_) return false;
if (status_ != other.status_) return false;
if (!getSystemFeedGenerationDataCase().equals(other.getSystemFeedGenerationDataCase())) return false;
switch (systemFeedGenerationDataCase_) {
case 6:
if (!getPlacesLocationFeedData()
.equals(other.getPlacesLocationFeedData())) return false;
break;
case 7:
if (!getAffiliateLocationFeedData()
.equals(other.getAffiliateLocationFeedData())) return false;
break;
case 0:
default:
}
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 (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
if (getAttributeOperationsCount() > 0) {
hash = (37 * hash) + ATTRIBUTE_OPERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getAttributeOperationsList().hashCode();
}
hash = (37 * hash) + ORIGIN_FIELD_NUMBER;
hash = (53 * hash) + origin_;
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
switch (systemFeedGenerationDataCase_) {
case 6:
hash = (37 * hash) + PLACES_LOCATION_FEED_DATA_FIELD_NUMBER;
hash = (53 * hash) + getPlacesLocationFeedData().hashCode();
break;
case 7:
hash = (37 * hash) + AFFILIATE_LOCATION_FEED_DATA_FIELD_NUMBER;
hash = (53 * hash) + getAffiliateLocationFeedData().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.resources.Feed parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed 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.v10.resources.Feed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed 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.v10.resources.Feed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.resources.Feed parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.ads.googleads.v10.resources.Feed parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed 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.v10.resources.Feed parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed 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.v10.resources.Feed parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.resources.Feed 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.v10.resources.Feed 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 feed.
*
*
* Protobuf type {@code google.ads.googleads.v10.resources.Feed}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.resources.Feed)
com.google.ads.googleads.v10.resources.FeedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.resources.Feed.class, com.google.ads.googleads.v10.resources.Feed.Builder.class);
}
// Construct using com.google.ads.googleads.v10.resources.Feed.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
resourceName_ = "";
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
} else {
attributes_ = null;
attributesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (attributeOperationsBuilder_ == null) {
attributeOperations_ = java.util.Collections.emptyList();
} else {
attributeOperations_ = null;
attributeOperationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
origin_ = 0;
status_ = 0;
if (placesLocationFeedDataBuilder_ != null) {
placesLocationFeedDataBuilder_.clear();
}
if (affiliateLocationFeedDataBuilder_ != null) {
affiliateLocationFeedDataBuilder_.clear();
}
systemFeedGenerationDataCase_ = 0;
systemFeedGenerationData_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.resources.FeedProto.internal_static_google_ads_googleads_v10_resources_Feed_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed getDefaultInstanceForType() {
return com.google.ads.googleads.v10.resources.Feed.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed build() {
com.google.ads.googleads.v10.resources.Feed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed buildPartial() {
com.google.ads.googleads.v10.resources.Feed result = new com.google.ads.googleads.v10.resources.Feed(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.resourceName_ = resourceName_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (attributesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.attributes_ = attributes_;
} else {
result.attributes_ = attributesBuilder_.build();
}
if (attributeOperationsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
attributeOperations_ = java.util.Collections.unmodifiableList(attributeOperations_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.attributeOperations_ = attributeOperations_;
} else {
result.attributeOperations_ = attributeOperationsBuilder_.build();
}
result.origin_ = origin_;
result.status_ = status_;
if (systemFeedGenerationDataCase_ == 6) {
if (placesLocationFeedDataBuilder_ == null) {
result.systemFeedGenerationData_ = systemFeedGenerationData_;
} else {
result.systemFeedGenerationData_ = placesLocationFeedDataBuilder_.build();
}
}
if (systemFeedGenerationDataCase_ == 7) {
if (affiliateLocationFeedDataBuilder_ == null) {
result.systemFeedGenerationData_ = systemFeedGenerationData_;
} else {
result.systemFeedGenerationData_ = affiliateLocationFeedDataBuilder_.build();
}
}
result.bitField0_ = to_bitField0_;
result.systemFeedGenerationDataCase_ = systemFeedGenerationDataCase_;
onBuilt();
return result;
}
@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.v10.resources.Feed) {
return mergeFrom((com.google.ads.googleads.v10.resources.Feed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.resources.Feed other) {
if (other == com.google.ads.googleads.v10.resources.Feed.getDefaultInstance()) return this;
if (!other.getResourceName().isEmpty()) {
resourceName_ = other.resourceName_;
onChanged();
}
if (other.hasId()) {
setId(other.getId());
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (attributesBuilder_ == null) {
if (!other.attributes_.isEmpty()) {
if (attributes_.isEmpty()) {
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureAttributesIsMutable();
attributes_.addAll(other.attributes_);
}
onChanged();
}
} else {
if (!other.attributes_.isEmpty()) {
if (attributesBuilder_.isEmpty()) {
attributesBuilder_.dispose();
attributesBuilder_ = null;
attributes_ = other.attributes_;
bitField0_ = (bitField0_ & ~0x00000004);
attributesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributesFieldBuilder() : null;
} else {
attributesBuilder_.addAllMessages(other.attributes_);
}
}
}
if (attributeOperationsBuilder_ == null) {
if (!other.attributeOperations_.isEmpty()) {
if (attributeOperations_.isEmpty()) {
attributeOperations_ = other.attributeOperations_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAttributeOperationsIsMutable();
attributeOperations_.addAll(other.attributeOperations_);
}
onChanged();
}
} else {
if (!other.attributeOperations_.isEmpty()) {
if (attributeOperationsBuilder_.isEmpty()) {
attributeOperationsBuilder_.dispose();
attributeOperationsBuilder_ = null;
attributeOperations_ = other.attributeOperations_;
bitField0_ = (bitField0_ & ~0x00000008);
attributeOperationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributeOperationsFieldBuilder() : null;
} else {
attributeOperationsBuilder_.addAllMessages(other.attributeOperations_);
}
}
}
if (other.origin_ != 0) {
setOriginValue(other.getOriginValue());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
switch (other.getSystemFeedGenerationDataCase()) {
case PLACES_LOCATION_FEED_DATA: {
mergePlacesLocationFeedData(other.getPlacesLocationFeedData());
break;
}
case AFFILIATE_LOCATION_FEED_DATA: {
mergeAffiliateLocationFeedData(other.getAffiliateLocationFeedData());
break;
}
case SYSTEMFEEDGENERATIONDATA_NOT_SET: {
break;
}
}
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();
break;
} // case 10
case 34: {
com.google.ads.googleads.v10.resources.FeedAttribute m =
input.readMessage(
com.google.ads.googleads.v10.resources.FeedAttribute.parser(),
extensionRegistry);
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(m);
} else {
attributesBuilder_.addMessage(m);
}
break;
} // case 34
case 40: {
origin_ = input.readEnum();
break;
} // case 40
case 50: {
input.readMessage(
getPlacesLocationFeedDataFieldBuilder().getBuilder(),
extensionRegistry);
systemFeedGenerationDataCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getAffiliateLocationFeedDataFieldBuilder().getBuilder(),
extensionRegistry);
systemFeedGenerationDataCase_ = 7;
break;
} // case 58
case 64: {
status_ = input.readEnum();
break;
} // case 64
case 74: {
com.google.ads.googleads.v10.resources.FeedAttributeOperation m =
input.readMessage(
com.google.ads.googleads.v10.resources.FeedAttributeOperation.parser(),
extensionRegistry);
if (attributeOperationsBuilder_ == null) {
ensureAttributeOperationsIsMutable();
attributeOperations_.add(m);
} else {
attributeOperationsBuilder_.addMessage(m);
}
break;
} // case 74
case 88: {
id_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 88
case 98: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 98
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 systemFeedGenerationDataCase_ = 0;
private java.lang.Object systemFeedGenerationData_;
public SystemFeedGenerationDataCase
getSystemFeedGenerationDataCase() {
return SystemFeedGenerationDataCase.forNumber(
systemFeedGenerationDataCase_);
}
public Builder clearSystemFeedGenerationData() {
systemFeedGenerationDataCase_ = 0;
systemFeedGenerationData_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object resourceName_ = "";
/**
*
* Immutable. The resource name of the feed.
* Feed resource names have the form:
* `customers/{customer_id}/feeds/{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 feed.
* Feed resource names have the form:
* `customers/{customer_id}/feeds/{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 feed.
* Feed resource names have the form:
* `customers/{customer_id}/feeds/{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;
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the feed.
* Feed resource names have the form:
* `customers/{customer_id}/feeds/{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();
onChanged();
return this;
}
/**
*
* Immutable. The resource name of the feed.
* Feed resource names have the form:
* `customers/{customer_id}/feeds/{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;
onChanged();
return this;
}
private long id_ ;
/**
*
* Output only. The ID of the feed.
* This field is read-only.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Output only. The ID of the feed.
* This field is read-only.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* Output only. The ID of the feed.
* This field is read-only.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
*
* Output only. The ID of the feed.
* This field is read-only.
*
*
* optional int64 id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Immutable. Name of the feed. Required.
*
*
* optional string name = 12 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private java.util.List attributes_ =
java.util.Collections.emptyList();
private void ensureAttributesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
attributes_ = new java.util.ArrayList(attributes_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedAttribute, com.google.ads.googleads.v10.resources.FeedAttribute.Builder, com.google.ads.googleads.v10.resources.FeedAttributeOrBuilder> attributesBuilder_;
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public java.util.List getAttributesList() {
if (attributesBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributes_);
} else {
return attributesBuilder_.getMessageList();
}
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public int getAttributesCount() {
if (attributesBuilder_ == null) {
return attributes_.size();
} else {
return attributesBuilder_.getCount();
}
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public com.google.ads.googleads.v10.resources.FeedAttribute getAttributes(int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index);
} else {
return attributesBuilder_.getMessage(index);
}
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder setAttributes(
int index, com.google.ads.googleads.v10.resources.FeedAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.set(index, value);
onChanged();
} else {
attributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder setAttributes(
int index, com.google.ads.googleads.v10.resources.FeedAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.set(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder addAttributes(com.google.ads.googleads.v10.resources.FeedAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(value);
onChanged();
} else {
attributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder addAttributes(
int index, com.google.ads.googleads.v10.resources.FeedAttribute value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(index, value);
onChanged();
} else {
attributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder addAttributes(
com.google.ads.googleads.v10.resources.FeedAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder addAttributes(
int index, com.google.ads.googleads.v10.resources.FeedAttribute.Builder builderForValue) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.add(index, builderForValue.build());
onChanged();
} else {
attributesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder addAllAttributes(
java.lang.Iterable extends com.google.ads.googleads.v10.resources.FeedAttribute> values) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributes_);
onChanged();
} else {
attributesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder clearAttributes() {
if (attributesBuilder_ == null) {
attributes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
attributesBuilder_.clear();
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public Builder removeAttributes(int index) {
if (attributesBuilder_ == null) {
ensureAttributesIsMutable();
attributes_.remove(index);
onChanged();
} else {
attributesBuilder_.remove(index);
}
return this;
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public com.google.ads.googleads.v10.resources.FeedAttribute.Builder getAttributesBuilder(
int index) {
return getAttributesFieldBuilder().getBuilder(index);
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public com.google.ads.googleads.v10.resources.FeedAttributeOrBuilder getAttributesOrBuilder(
int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index); } else {
return attributesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public java.util.List extends com.google.ads.googleads.v10.resources.FeedAttributeOrBuilder>
getAttributesOrBuilderList() {
if (attributesBuilder_ != null) {
return attributesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributes_);
}
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public com.google.ads.googleads.v10.resources.FeedAttribute.Builder addAttributesBuilder() {
return getAttributesFieldBuilder().addBuilder(
com.google.ads.googleads.v10.resources.FeedAttribute.getDefaultInstance());
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public com.google.ads.googleads.v10.resources.FeedAttribute.Builder addAttributesBuilder(
int index) {
return getAttributesFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.resources.FeedAttribute.getDefaultInstance());
}
/**
*
* The Feed's attributes. Required on CREATE, unless
* system_feed_generation_data is provided, in which case Google Ads will
* update the feed with the correct attributes.
* Disallowed on UPDATE. Use attribute_operations to add new attributes.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttribute attributes = 4;
*/
public java.util.List
getAttributesBuilderList() {
return getAttributesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedAttribute, com.google.ads.googleads.v10.resources.FeedAttribute.Builder, com.google.ads.googleads.v10.resources.FeedAttributeOrBuilder>
getAttributesFieldBuilder() {
if (attributesBuilder_ == null) {
attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedAttribute, com.google.ads.googleads.v10.resources.FeedAttribute.Builder, com.google.ads.googleads.v10.resources.FeedAttributeOrBuilder>(
attributes_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
attributes_ = null;
}
return attributesBuilder_;
}
private java.util.List attributeOperations_ =
java.util.Collections.emptyList();
private void ensureAttributeOperationsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
attributeOperations_ = new java.util.ArrayList(attributeOperations_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedAttributeOperation, com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder, com.google.ads.googleads.v10.resources.FeedAttributeOperationOrBuilder> attributeOperationsBuilder_;
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public java.util.List getAttributeOperationsList() {
if (attributeOperationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(attributeOperations_);
} else {
return attributeOperationsBuilder_.getMessageList();
}
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public int getAttributeOperationsCount() {
if (attributeOperationsBuilder_ == null) {
return attributeOperations_.size();
} else {
return attributeOperationsBuilder_.getCount();
}
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public com.google.ads.googleads.v10.resources.FeedAttributeOperation getAttributeOperations(int index) {
if (attributeOperationsBuilder_ == null) {
return attributeOperations_.get(index);
} else {
return attributeOperationsBuilder_.getMessage(index);
}
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder setAttributeOperations(
int index, com.google.ads.googleads.v10.resources.FeedAttributeOperation value) {
if (attributeOperationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeOperationsIsMutable();
attributeOperations_.set(index, value);
onChanged();
} else {
attributeOperationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder setAttributeOperations(
int index, com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder builderForValue) {
if (attributeOperationsBuilder_ == null) {
ensureAttributeOperationsIsMutable();
attributeOperations_.set(index, builderForValue.build());
onChanged();
} else {
attributeOperationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder addAttributeOperations(com.google.ads.googleads.v10.resources.FeedAttributeOperation value) {
if (attributeOperationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeOperationsIsMutable();
attributeOperations_.add(value);
onChanged();
} else {
attributeOperationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder addAttributeOperations(
int index, com.google.ads.googleads.v10.resources.FeedAttributeOperation value) {
if (attributeOperationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeOperationsIsMutable();
attributeOperations_.add(index, value);
onChanged();
} else {
attributeOperationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder addAttributeOperations(
com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder builderForValue) {
if (attributeOperationsBuilder_ == null) {
ensureAttributeOperationsIsMutable();
attributeOperations_.add(builderForValue.build());
onChanged();
} else {
attributeOperationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder addAttributeOperations(
int index, com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder builderForValue) {
if (attributeOperationsBuilder_ == null) {
ensureAttributeOperationsIsMutable();
attributeOperations_.add(index, builderForValue.build());
onChanged();
} else {
attributeOperationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder addAllAttributeOperations(
java.lang.Iterable extends com.google.ads.googleads.v10.resources.FeedAttributeOperation> values) {
if (attributeOperationsBuilder_ == null) {
ensureAttributeOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attributeOperations_);
onChanged();
} else {
attributeOperationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder clearAttributeOperations() {
if (attributeOperationsBuilder_ == null) {
attributeOperations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
attributeOperationsBuilder_.clear();
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public Builder removeAttributeOperations(int index) {
if (attributeOperationsBuilder_ == null) {
ensureAttributeOperationsIsMutable();
attributeOperations_.remove(index);
onChanged();
} else {
attributeOperationsBuilder_.remove(index);
}
return this;
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder getAttributeOperationsBuilder(
int index) {
return getAttributeOperationsFieldBuilder().getBuilder(index);
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public com.google.ads.googleads.v10.resources.FeedAttributeOperationOrBuilder getAttributeOperationsOrBuilder(
int index) {
if (attributeOperationsBuilder_ == null) {
return attributeOperations_.get(index); } else {
return attributeOperationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public java.util.List extends com.google.ads.googleads.v10.resources.FeedAttributeOperationOrBuilder>
getAttributeOperationsOrBuilderList() {
if (attributeOperationsBuilder_ != null) {
return attributeOperationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attributeOperations_);
}
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder addAttributeOperationsBuilder() {
return getAttributeOperationsFieldBuilder().addBuilder(
com.google.ads.googleads.v10.resources.FeedAttributeOperation.getDefaultInstance());
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder addAttributeOperationsBuilder(
int index) {
return getAttributeOperationsFieldBuilder().addBuilder(
index, com.google.ads.googleads.v10.resources.FeedAttributeOperation.getDefaultInstance());
}
/**
*
* The list of operations changing the feed attributes. Attributes can only
* be added, not removed.
*
*
* repeated .google.ads.googleads.v10.resources.FeedAttributeOperation attribute_operations = 9;
*/
public java.util.List
getAttributeOperationsBuilderList() {
return getAttributeOperationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedAttributeOperation, com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder, com.google.ads.googleads.v10.resources.FeedAttributeOperationOrBuilder>
getAttributeOperationsFieldBuilder() {
if (attributeOperationsBuilder_ == null) {
attributeOperationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.ads.googleads.v10.resources.FeedAttributeOperation, com.google.ads.googleads.v10.resources.FeedAttributeOperation.Builder, com.google.ads.googleads.v10.resources.FeedAttributeOperationOrBuilder>(
attributeOperations_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
attributeOperations_ = null;
}
return attributeOperationsBuilder_;
}
private int origin_ = 0;
/**
*
* Immutable. Specifies who manages the FeedAttributes for the Feed.
*
*
* .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The enum numeric value on the wire for origin.
*/
@java.lang.Override public int getOriginValue() {
return origin_;
}
/**
*
* Immutable. Specifies who manages the FeedAttributes for the Feed.
*
*
* .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The enum numeric value on the wire for origin to set.
* @return This builder for chaining.
*/
public Builder setOriginValue(int value) {
origin_ = value;
onChanged();
return this;
}
/**
*
* Immutable. Specifies who manages the FeedAttributes for the Feed.
*
*
* .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return The origin.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin getOrigin() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin result = com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin.valueOf(origin_);
return result == null ? com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin.UNRECOGNIZED : result;
}
/**
*
* Immutable. Specifies who manages the FeedAttributes for the Feed.
*
*
* .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @param value The origin to set.
* @return This builder for chaining.
*/
public Builder setOrigin(com.google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin value) {
if (value == null) {
throw new NullPointerException();
}
origin_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Immutable. Specifies who manages the FeedAttributes for the Feed.
*
*
* .google.ads.googleads.v10.enums.FeedOriginEnum.FeedOrigin origin = 5 [(.google.api.field_behavior) = IMMUTABLE];
* @return This builder for chaining.
*/
public Builder clearOrigin() {
origin_ = 0;
onChanged();
return this;
}
private int status_ = 0;
/**
*
* Output only. Status of the feed.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus status = 8 [(.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 feed.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus status = 8 [(.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;
onChanged();
return this;
}
/**
*
* Output only. Status of the feed.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return The status.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus getStatus() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus result = com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus.valueOf(status_);
return result == null ? com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus.UNRECOGNIZED : result;
}
/**
*
* Output only. Status of the feed.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Output only. Status of the feed.
* This field is read-only.
*
*
* .google.ads.googleads.v10.enums.FeedStatusEnum.FeedStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.Builder, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedDataOrBuilder> placesLocationFeedDataBuilder_;
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
* @return Whether the placesLocationFeedData field is set.
*/
@java.lang.Override
public boolean hasPlacesLocationFeedData() {
return systemFeedGenerationDataCase_ == 6;
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
* @return The placesLocationFeedData.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData getPlacesLocationFeedData() {
if (placesLocationFeedDataBuilder_ == null) {
if (systemFeedGenerationDataCase_ == 6) {
return (com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) systemFeedGenerationData_;
}
return com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance();
} else {
if (systemFeedGenerationDataCase_ == 6) {
return placesLocationFeedDataBuilder_.getMessage();
}
return com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance();
}
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
*/
public Builder setPlacesLocationFeedData(com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData value) {
if (placesLocationFeedDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
systemFeedGenerationData_ = value;
onChanged();
} else {
placesLocationFeedDataBuilder_.setMessage(value);
}
systemFeedGenerationDataCase_ = 6;
return this;
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
*/
public Builder setPlacesLocationFeedData(
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.Builder builderForValue) {
if (placesLocationFeedDataBuilder_ == null) {
systemFeedGenerationData_ = builderForValue.build();
onChanged();
} else {
placesLocationFeedDataBuilder_.setMessage(builderForValue.build());
}
systemFeedGenerationDataCase_ = 6;
return this;
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
*/
public Builder mergePlacesLocationFeedData(com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData value) {
if (placesLocationFeedDataBuilder_ == null) {
if (systemFeedGenerationDataCase_ == 6 &&
systemFeedGenerationData_ != com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance()) {
systemFeedGenerationData_ = com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.newBuilder((com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) systemFeedGenerationData_)
.mergeFrom(value).buildPartial();
} else {
systemFeedGenerationData_ = value;
}
onChanged();
} else {
if (systemFeedGenerationDataCase_ == 6) {
placesLocationFeedDataBuilder_.mergeFrom(value);
} else {
placesLocationFeedDataBuilder_.setMessage(value);
}
}
systemFeedGenerationDataCase_ = 6;
return this;
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
*/
public Builder clearPlacesLocationFeedData() {
if (placesLocationFeedDataBuilder_ == null) {
if (systemFeedGenerationDataCase_ == 6) {
systemFeedGenerationDataCase_ = 0;
systemFeedGenerationData_ = null;
onChanged();
}
} else {
if (systemFeedGenerationDataCase_ == 6) {
systemFeedGenerationDataCase_ = 0;
systemFeedGenerationData_ = null;
}
placesLocationFeedDataBuilder_.clear();
}
return this;
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
*/
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.Builder getPlacesLocationFeedDataBuilder() {
return getPlacesLocationFeedDataFieldBuilder().getBuilder();
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedDataOrBuilder getPlacesLocationFeedDataOrBuilder() {
if ((systemFeedGenerationDataCase_ == 6) && (placesLocationFeedDataBuilder_ != null)) {
return placesLocationFeedDataBuilder_.getMessageOrBuilder();
} else {
if (systemFeedGenerationDataCase_ == 6) {
return (com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) systemFeedGenerationData_;
}
return com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance();
}
}
/**
*
* Data used to configure a location feed populated from Business Profile.
*
*
* .google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData places_location_feed_data = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.Builder, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedDataOrBuilder>
getPlacesLocationFeedDataFieldBuilder() {
if (placesLocationFeedDataBuilder_ == null) {
if (!(systemFeedGenerationDataCase_ == 6)) {
systemFeedGenerationData_ = com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.getDefaultInstance();
}
placesLocationFeedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData.Builder, com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedDataOrBuilder>(
(com.google.ads.googleads.v10.resources.Feed.PlacesLocationFeedData) systemFeedGenerationData_,
getParentForChildren(),
isClean());
systemFeedGenerationData_ = null;
}
systemFeedGenerationDataCase_ = 6;
onChanged();;
return placesLocationFeedDataBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData, com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.Builder, com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedDataOrBuilder> affiliateLocationFeedDataBuilder_;
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
* @return Whether the affiliateLocationFeedData field is set.
*/
@java.lang.Override
public boolean hasAffiliateLocationFeedData() {
return systemFeedGenerationDataCase_ == 7;
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
* @return The affiliateLocationFeedData.
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData getAffiliateLocationFeedData() {
if (affiliateLocationFeedDataBuilder_ == null) {
if (systemFeedGenerationDataCase_ == 7) {
return (com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) systemFeedGenerationData_;
}
return com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance();
} else {
if (systemFeedGenerationDataCase_ == 7) {
return affiliateLocationFeedDataBuilder_.getMessage();
}
return com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance();
}
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
*/
public Builder setAffiliateLocationFeedData(com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData value) {
if (affiliateLocationFeedDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
systemFeedGenerationData_ = value;
onChanged();
} else {
affiliateLocationFeedDataBuilder_.setMessage(value);
}
systemFeedGenerationDataCase_ = 7;
return this;
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
*/
public Builder setAffiliateLocationFeedData(
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.Builder builderForValue) {
if (affiliateLocationFeedDataBuilder_ == null) {
systemFeedGenerationData_ = builderForValue.build();
onChanged();
} else {
affiliateLocationFeedDataBuilder_.setMessage(builderForValue.build());
}
systemFeedGenerationDataCase_ = 7;
return this;
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
*/
public Builder mergeAffiliateLocationFeedData(com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData value) {
if (affiliateLocationFeedDataBuilder_ == null) {
if (systemFeedGenerationDataCase_ == 7 &&
systemFeedGenerationData_ != com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance()) {
systemFeedGenerationData_ = com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.newBuilder((com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) systemFeedGenerationData_)
.mergeFrom(value).buildPartial();
} else {
systemFeedGenerationData_ = value;
}
onChanged();
} else {
if (systemFeedGenerationDataCase_ == 7) {
affiliateLocationFeedDataBuilder_.mergeFrom(value);
} else {
affiliateLocationFeedDataBuilder_.setMessage(value);
}
}
systemFeedGenerationDataCase_ = 7;
return this;
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
*/
public Builder clearAffiliateLocationFeedData() {
if (affiliateLocationFeedDataBuilder_ == null) {
if (systemFeedGenerationDataCase_ == 7) {
systemFeedGenerationDataCase_ = 0;
systemFeedGenerationData_ = null;
onChanged();
}
} else {
if (systemFeedGenerationDataCase_ == 7) {
systemFeedGenerationDataCase_ = 0;
systemFeedGenerationData_ = null;
}
affiliateLocationFeedDataBuilder_.clear();
}
return this;
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
*/
public com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.Builder getAffiliateLocationFeedDataBuilder() {
return getAffiliateLocationFeedDataFieldBuilder().getBuilder();
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
*/
@java.lang.Override
public com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedDataOrBuilder getAffiliateLocationFeedDataOrBuilder() {
if ((systemFeedGenerationDataCase_ == 7) && (affiliateLocationFeedDataBuilder_ != null)) {
return affiliateLocationFeedDataBuilder_.getMessageOrBuilder();
} else {
if (systemFeedGenerationDataCase_ == 7) {
return (com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) systemFeedGenerationData_;
}
return com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance();
}
}
/**
*
* Data used to configure an affiliate location feed populated with
* the specified chains.
*
*
* .google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData affiliate_location_feed_data = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData, com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.Builder, com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedDataOrBuilder>
getAffiliateLocationFeedDataFieldBuilder() {
if (affiliateLocationFeedDataBuilder_ == null) {
if (!(systemFeedGenerationDataCase_ == 7)) {
systemFeedGenerationData_ = com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.getDefaultInstance();
}
affiliateLocationFeedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData, com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData.Builder, com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedDataOrBuilder>(
(com.google.ads.googleads.v10.resources.Feed.AffiliateLocationFeedData) systemFeedGenerationData_,
getParentForChildren(),
isClean());
systemFeedGenerationData_ = null;
}
systemFeedGenerationDataCase_ = 7;
onChanged();;
return affiliateLocationFeedDataBuilder_;
}
@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.v10.resources.Feed)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.resources.Feed)
private static final com.google.ads.googleads.v10.resources.Feed DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.resources.Feed();
}
public static com.google.ads.googleads.v10.resources.Feed getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Feed 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.v10.resources.Feed getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy