com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo 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/common/user_lists.proto
package com.google.ads.googleads.v10.common;
/**
*
* Visitors of a page during specific dates.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.DateSpecificRuleUserListInfo}
*/
public final class DateSpecificRuleUserListInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.DateSpecificRuleUserListInfo)
DateSpecificRuleUserListInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DateSpecificRuleUserListInfo.newBuilder() to construct.
private DateSpecificRuleUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DateSpecificRuleUserListInfo() {
startDate_ = "";
endDate_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DateSpecificRuleUserListInfo();
}
@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.common.UserListsProto.internal_static_google_ads_googleads_v10_common_DateSpecificRuleUserListInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.UserListsProto.internal_static_google_ads_googleads_v10_common_DateSpecificRuleUserListInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo.class, com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo.Builder.class);
}
private int bitField0_;
public static final int RULE_FIELD_NUMBER = 1;
private com.google.ads.googleads.v10.common.UserListRuleInfo rule_;
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
* @return Whether the rule field is set.
*/
@java.lang.Override
public boolean hasRule() {
return rule_ != null;
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
* @return The rule.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListRuleInfo getRule() {
return rule_ == null ? com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : rule_;
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder getRuleOrBuilder() {
return getRule();
}
public static final int START_DATE_FIELD_NUMBER = 4;
private volatile java.lang.Object startDate_;
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @return Whether the startDate field is set.
*/
@java.lang.Override
public boolean hasStartDate() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @return The startDate.
*/
@java.lang.Override
public java.lang.String getStartDate() {
java.lang.Object ref = startDate_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startDate_ = s;
return s;
}
}
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @return The bytes for startDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartDateBytes() {
java.lang.Object ref = startDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int END_DATE_FIELD_NUMBER = 5;
private volatile java.lang.Object endDate_;
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @return Whether the endDate field is set.
*/
@java.lang.Override
public boolean hasEndDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @return The endDate.
*/
@java.lang.Override
public java.lang.String getEndDate() {
java.lang.Object ref = endDate_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endDate_ = s;
return s;
}
}
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @return The bytes for endDate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getEndDateBytes() {
java.lang.Object ref = endDate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (rule_ != null) {
output.writeMessage(1, getRule());
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, startDate_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, endDate_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rule_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRule());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, startDate_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, endDate_);
}
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.common.DateSpecificRuleUserListInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo other = (com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo) obj;
if (hasRule() != other.hasRule()) return false;
if (hasRule()) {
if (!getRule()
.equals(other.getRule())) return false;
}
if (hasStartDate() != other.hasStartDate()) return false;
if (hasStartDate()) {
if (!getStartDate()
.equals(other.getStartDate())) return false;
}
if (hasEndDate() != other.hasEndDate()) return false;
if (hasEndDate()) {
if (!getEndDate()
.equals(other.getEndDate())) 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 (hasRule()) {
hash = (37 * hash) + RULE_FIELD_NUMBER;
hash = (53 * hash) + getRule().hashCode();
}
if (hasStartDate()) {
hash = (37 * hash) + START_DATE_FIELD_NUMBER;
hash = (53 * hash) + getStartDate().hashCode();
}
if (hasEndDate()) {
hash = (37 * hash) + END_DATE_FIELD_NUMBER;
hash = (53 * hash) + getEndDate().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo 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.common.DateSpecificRuleUserListInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo 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.common.DateSpecificRuleUserListInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo 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.common.DateSpecificRuleUserListInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo 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.common.DateSpecificRuleUserListInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo 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.common.DateSpecificRuleUserListInfo 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.common.DateSpecificRuleUserListInfo 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.common.DateSpecificRuleUserListInfo 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;
}
/**
*
* Visitors of a page during specific dates.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.DateSpecificRuleUserListInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.DateSpecificRuleUserListInfo)
com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.UserListsProto.internal_static_google_ads_googleads_v10_common_DateSpecificRuleUserListInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v10.common.UserListsProto.internal_static_google_ads_googleads_v10_common_DateSpecificRuleUserListInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo.class, com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (ruleBuilder_ == null) {
rule_ = null;
} else {
rule_ = null;
ruleBuilder_ = null;
}
startDate_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
endDate_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v10.common.UserListsProto.internal_static_google_ads_googleads_v10_common_DateSpecificRuleUserListInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo build() {
com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo buildPartial() {
com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo result = new com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (ruleBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = ruleBuilder_.build();
}
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.startDate_ = startDate_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.endDate_ = endDate_;
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.common.DateSpecificRuleUserListInfo) {
return mergeFrom((com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo other) {
if (other == com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo.getDefaultInstance()) return this;
if (other.hasRule()) {
mergeRule(other.getRule());
}
if (other.hasStartDate()) {
bitField0_ |= 0x00000001;
startDate_ = other.startDate_;
onChanged();
}
if (other.hasEndDate()) {
bitField0_ |= 0x00000002;
endDate_ = other.endDate_;
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(
getRuleFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 34: {
startDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 34
case 42: {
endDate_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 42
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.common.UserListRuleInfo rule_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserListRuleInfo, com.google.ads.googleads.v10.common.UserListRuleInfo.Builder, com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder> ruleBuilder_;
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
* @return Whether the rule field is set.
*/
public boolean hasRule() {
return ruleBuilder_ != null || rule_ != null;
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
* @return The rule.
*/
public com.google.ads.googleads.v10.common.UserListRuleInfo getRule() {
if (ruleBuilder_ == null) {
return rule_ == null ? com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : rule_;
} else {
return ruleBuilder_.getMessage();
}
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
*/
public Builder setRule(com.google.ads.googleads.v10.common.UserListRuleInfo value) {
if (ruleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rule_ = value;
onChanged();
} else {
ruleBuilder_.setMessage(value);
}
return this;
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
*/
public Builder setRule(
com.google.ads.googleads.v10.common.UserListRuleInfo.Builder builderForValue) {
if (ruleBuilder_ == null) {
rule_ = builderForValue.build();
onChanged();
} else {
ruleBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
*/
public Builder mergeRule(com.google.ads.googleads.v10.common.UserListRuleInfo value) {
if (ruleBuilder_ == null) {
if (rule_ != null) {
rule_ =
com.google.ads.googleads.v10.common.UserListRuleInfo.newBuilder(rule_).mergeFrom(value).buildPartial();
} else {
rule_ = value;
}
onChanged();
} else {
ruleBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
*/
public Builder clearRule() {
if (ruleBuilder_ == null) {
rule_ = null;
onChanged();
} else {
rule_ = null;
ruleBuilder_ = null;
}
return this;
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
*/
public com.google.ads.googleads.v10.common.UserListRuleInfo.Builder getRuleBuilder() {
onChanged();
return getRuleFieldBuilder().getBuilder();
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
*/
public com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder getRuleOrBuilder() {
if (ruleBuilder_ != null) {
return ruleBuilder_.getMessageOrBuilder();
} else {
return rule_ == null ?
com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : rule_;
}
}
/**
*
* Boolean rule that defines visitor of a page.
* Required for creating a date specific rule user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo rule = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserListRuleInfo, com.google.ads.googleads.v10.common.UserListRuleInfo.Builder, com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder>
getRuleFieldBuilder() {
if (ruleBuilder_ == null) {
ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v10.common.UserListRuleInfo, com.google.ads.googleads.v10.common.UserListRuleInfo.Builder, com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder>(
getRule(),
getParentForChildren(),
isClean());
rule_ = null;
}
return ruleBuilder_;
}
private java.lang.Object startDate_ = "";
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @return Whether the startDate field is set.
*/
public boolean hasStartDate() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @return The startDate.
*/
public java.lang.String getStartDate() {
java.lang.Object ref = startDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
startDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @return The bytes for startDate.
*/
public com.google.protobuf.ByteString
getStartDateBytes() {
java.lang.Object ref = startDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @param value The startDate to set.
* @return This builder for chaining.
*/
public Builder setStartDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
startDate_ = value;
onChanged();
return this;
}
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @return This builder for chaining.
*/
public Builder clearStartDate() {
bitField0_ = (bitField0_ & ~0x00000001);
startDate_ = getDefaultInstance().getStartDate();
onChanged();
return this;
}
/**
*
* Start date of users visit. If set to 2000-01-01, then the list includes all
* users before end_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string start_date = 4;
* @param value The bytes for startDate to set.
* @return This builder for chaining.
*/
public Builder setStartDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
startDate_ = value;
onChanged();
return this;
}
private java.lang.Object endDate_ = "";
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @return Whether the endDate field is set.
*/
public boolean hasEndDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @return The endDate.
*/
public java.lang.String getEndDate() {
java.lang.Object ref = endDate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
endDate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @return The bytes for endDate.
*/
public com.google.protobuf.ByteString
getEndDateBytes() {
java.lang.Object ref = endDate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endDate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @param value The endDate to set.
* @return This builder for chaining.
*/
public Builder setEndDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
endDate_ = value;
onChanged();
return this;
}
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @return This builder for chaining.
*/
public Builder clearEndDate() {
bitField0_ = (bitField0_ & ~0x00000002);
endDate_ = getDefaultInstance().getEndDate();
onChanged();
return this;
}
/**
*
* Last date of users visit. If set to 2037-12-30, then the list includes all
* users after start_date. The date's format should be YYYY-MM-DD.
* Required for creating a data specific rule user list.
*
*
* optional string end_date = 5;
* @param value The bytes for endDate to set.
* @return This builder for chaining.
*/
public Builder setEndDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
endDate_ = 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.common.DateSpecificRuleUserListInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.DateSpecificRuleUserListInfo)
private static final com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo();
}
public static com.google.ads.googleads.v10.common.DateSpecificRuleUserListInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DateSpecificRuleUserListInfo 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.common.DateSpecificRuleUserListInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy