com.google.ads.googleads.v10.common.CombinedRuleUserListInfo 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;
/**
*
* User lists defined by combining two rules, left operand and right operand.
* There are two operators: AND where left operand and right operand have to be
* true; AND_NOT where left operand is true but right operand is false.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.CombinedRuleUserListInfo}
*/
public final class CombinedRuleUserListInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v10.common.CombinedRuleUserListInfo)
CombinedRuleUserListInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use CombinedRuleUserListInfo.newBuilder() to construct.
private CombinedRuleUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CombinedRuleUserListInfo() {
ruleOperator_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CombinedRuleUserListInfo();
}
@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_CombinedRuleUserListInfo_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_CombinedRuleUserListInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.CombinedRuleUserListInfo.class, com.google.ads.googleads.v10.common.CombinedRuleUserListInfo.Builder.class);
}
public static final int LEFT_OPERAND_FIELD_NUMBER = 1;
private com.google.ads.googleads.v10.common.UserListRuleInfo leftOperand_;
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
* @return Whether the leftOperand field is set.
*/
@java.lang.Override
public boolean hasLeftOperand() {
return leftOperand_ != null;
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
* @return The leftOperand.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListRuleInfo getLeftOperand() {
return leftOperand_ == null ? com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : leftOperand_;
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder getLeftOperandOrBuilder() {
return getLeftOperand();
}
public static final int RIGHT_OPERAND_FIELD_NUMBER = 2;
private com.google.ads.googleads.v10.common.UserListRuleInfo rightOperand_;
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
* @return Whether the rightOperand field is set.
*/
@java.lang.Override
public boolean hasRightOperand() {
return rightOperand_ != null;
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
* @return The rightOperand.
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListRuleInfo getRightOperand() {
return rightOperand_ == null ? com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : rightOperand_;
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder getRightOperandOrBuilder() {
return getRightOperand();
}
public static final int RULE_OPERATOR_FIELD_NUMBER = 3;
private int ruleOperator_;
/**
*
* Operator to connect the two operands.
* Required for creating a combined rule user list.
*
*
* .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
* @return The enum numeric value on the wire for ruleOperator.
*/
@java.lang.Override public int getRuleOperatorValue() {
return ruleOperator_;
}
/**
*
* Operator to connect the two operands.
* Required for creating a combined rule user list.
*
*
* .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
* @return The ruleOperator.
*/
@java.lang.Override public com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator getRuleOperator() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator result = com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.valueOf(ruleOperator_);
return result == null ? com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.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 {
if (leftOperand_ != null) {
output.writeMessage(1, getLeftOperand());
}
if (rightOperand_ != null) {
output.writeMessage(2, getRightOperand());
}
if (ruleOperator_ != com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.UNSPECIFIED.getNumber()) {
output.writeEnum(3, ruleOperator_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (leftOperand_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLeftOperand());
}
if (rightOperand_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRightOperand());
}
if (ruleOperator_ != com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, ruleOperator_);
}
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.CombinedRuleUserListInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v10.common.CombinedRuleUserListInfo other = (com.google.ads.googleads.v10.common.CombinedRuleUserListInfo) obj;
if (hasLeftOperand() != other.hasLeftOperand()) return false;
if (hasLeftOperand()) {
if (!getLeftOperand()
.equals(other.getLeftOperand())) return false;
}
if (hasRightOperand() != other.hasRightOperand()) return false;
if (hasRightOperand()) {
if (!getRightOperand()
.equals(other.getRightOperand())) return false;
}
if (ruleOperator_ != other.ruleOperator_) 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 (hasLeftOperand()) {
hash = (37 * hash) + LEFT_OPERAND_FIELD_NUMBER;
hash = (53 * hash) + getLeftOperand().hashCode();
}
if (hasRightOperand()) {
hash = (37 * hash) + RIGHT_OPERAND_FIELD_NUMBER;
hash = (53 * hash) + getRightOperand().hashCode();
}
hash = (37 * hash) + RULE_OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + ruleOperator_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v10.common.CombinedRuleUserListInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v10.common.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo 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.CombinedRuleUserListInfo 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;
}
/**
*
* User lists defined by combining two rules, left operand and right operand.
* There are two operators: AND where left operand and right operand have to be
* true; AND_NOT where left operand is true but right operand is false.
*
*
* Protobuf type {@code google.ads.googleads.v10.common.CombinedRuleUserListInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v10.common.CombinedRuleUserListInfo)
com.google.ads.googleads.v10.common.CombinedRuleUserListInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v10.common.UserListsProto.internal_static_google_ads_googleads_v10_common_CombinedRuleUserListInfo_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_CombinedRuleUserListInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v10.common.CombinedRuleUserListInfo.class, com.google.ads.googleads.v10.common.CombinedRuleUserListInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v10.common.CombinedRuleUserListInfo.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (leftOperandBuilder_ == null) {
leftOperand_ = null;
} else {
leftOperand_ = null;
leftOperandBuilder_ = null;
}
if (rightOperandBuilder_ == null) {
rightOperand_ = null;
} else {
rightOperand_ = null;
rightOperandBuilder_ = null;
}
ruleOperator_ = 0;
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_CombinedRuleUserListInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedRuleUserListInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v10.common.CombinedRuleUserListInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedRuleUserListInfo build() {
com.google.ads.googleads.v10.common.CombinedRuleUserListInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v10.common.CombinedRuleUserListInfo buildPartial() {
com.google.ads.googleads.v10.common.CombinedRuleUserListInfo result = new com.google.ads.googleads.v10.common.CombinedRuleUserListInfo(this);
if (leftOperandBuilder_ == null) {
result.leftOperand_ = leftOperand_;
} else {
result.leftOperand_ = leftOperandBuilder_.build();
}
if (rightOperandBuilder_ == null) {
result.rightOperand_ = rightOperand_;
} else {
result.rightOperand_ = rightOperandBuilder_.build();
}
result.ruleOperator_ = ruleOperator_;
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.CombinedRuleUserListInfo) {
return mergeFrom((com.google.ads.googleads.v10.common.CombinedRuleUserListInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v10.common.CombinedRuleUserListInfo other) {
if (other == com.google.ads.googleads.v10.common.CombinedRuleUserListInfo.getDefaultInstance()) return this;
if (other.hasLeftOperand()) {
mergeLeftOperand(other.getLeftOperand());
}
if (other.hasRightOperand()) {
mergeRightOperand(other.getRightOperand());
}
if (other.ruleOperator_ != 0) {
setRuleOperatorValue(other.getRuleOperatorValue());
}
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(
getLeftOperandFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 10
case 18: {
input.readMessage(
getRightOperandFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
case 24: {
ruleOperator_ = input.readEnum();
break;
} // case 24
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 com.google.ads.googleads.v10.common.UserListRuleInfo leftOperand_;
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> leftOperandBuilder_;
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
* @return Whether the leftOperand field is set.
*/
public boolean hasLeftOperand() {
return leftOperandBuilder_ != null || leftOperand_ != null;
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
* @return The leftOperand.
*/
public com.google.ads.googleads.v10.common.UserListRuleInfo getLeftOperand() {
if (leftOperandBuilder_ == null) {
return leftOperand_ == null ? com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : leftOperand_;
} else {
return leftOperandBuilder_.getMessage();
}
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
*/
public Builder setLeftOperand(com.google.ads.googleads.v10.common.UserListRuleInfo value) {
if (leftOperandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
leftOperand_ = value;
onChanged();
} else {
leftOperandBuilder_.setMessage(value);
}
return this;
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
*/
public Builder setLeftOperand(
com.google.ads.googleads.v10.common.UserListRuleInfo.Builder builderForValue) {
if (leftOperandBuilder_ == null) {
leftOperand_ = builderForValue.build();
onChanged();
} else {
leftOperandBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
*/
public Builder mergeLeftOperand(com.google.ads.googleads.v10.common.UserListRuleInfo value) {
if (leftOperandBuilder_ == null) {
if (leftOperand_ != null) {
leftOperand_ =
com.google.ads.googleads.v10.common.UserListRuleInfo.newBuilder(leftOperand_).mergeFrom(value).buildPartial();
} else {
leftOperand_ = value;
}
onChanged();
} else {
leftOperandBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
*/
public Builder clearLeftOperand() {
if (leftOperandBuilder_ == null) {
leftOperand_ = null;
onChanged();
} else {
leftOperand_ = null;
leftOperandBuilder_ = null;
}
return this;
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
*/
public com.google.ads.googleads.v10.common.UserListRuleInfo.Builder getLeftOperandBuilder() {
onChanged();
return getLeftOperandFieldBuilder().getBuilder();
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
*/
public com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder getLeftOperandOrBuilder() {
if (leftOperandBuilder_ != null) {
return leftOperandBuilder_.getMessageOrBuilder();
} else {
return leftOperand_ == null ?
com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : leftOperand_;
}
}
/**
*
* Left operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 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>
getLeftOperandFieldBuilder() {
if (leftOperandBuilder_ == null) {
leftOperandBuilder_ = 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>(
getLeftOperand(),
getParentForChildren(),
isClean());
leftOperand_ = null;
}
return leftOperandBuilder_;
}
private com.google.ads.googleads.v10.common.UserListRuleInfo rightOperand_;
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> rightOperandBuilder_;
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
* @return Whether the rightOperand field is set.
*/
public boolean hasRightOperand() {
return rightOperandBuilder_ != null || rightOperand_ != null;
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
* @return The rightOperand.
*/
public com.google.ads.googleads.v10.common.UserListRuleInfo getRightOperand() {
if (rightOperandBuilder_ == null) {
return rightOperand_ == null ? com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : rightOperand_;
} else {
return rightOperandBuilder_.getMessage();
}
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
*/
public Builder setRightOperand(com.google.ads.googleads.v10.common.UserListRuleInfo value) {
if (rightOperandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rightOperand_ = value;
onChanged();
} else {
rightOperandBuilder_.setMessage(value);
}
return this;
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
*/
public Builder setRightOperand(
com.google.ads.googleads.v10.common.UserListRuleInfo.Builder builderForValue) {
if (rightOperandBuilder_ == null) {
rightOperand_ = builderForValue.build();
onChanged();
} else {
rightOperandBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
*/
public Builder mergeRightOperand(com.google.ads.googleads.v10.common.UserListRuleInfo value) {
if (rightOperandBuilder_ == null) {
if (rightOperand_ != null) {
rightOperand_ =
com.google.ads.googleads.v10.common.UserListRuleInfo.newBuilder(rightOperand_).mergeFrom(value).buildPartial();
} else {
rightOperand_ = value;
}
onChanged();
} else {
rightOperandBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
*/
public Builder clearRightOperand() {
if (rightOperandBuilder_ == null) {
rightOperand_ = null;
onChanged();
} else {
rightOperand_ = null;
rightOperandBuilder_ = null;
}
return this;
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
*/
public com.google.ads.googleads.v10.common.UserListRuleInfo.Builder getRightOperandBuilder() {
onChanged();
return getRightOperandFieldBuilder().getBuilder();
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
*/
public com.google.ads.googleads.v10.common.UserListRuleInfoOrBuilder getRightOperandOrBuilder() {
if (rightOperandBuilder_ != null) {
return rightOperandBuilder_.getMessageOrBuilder();
} else {
return rightOperand_ == null ?
com.google.ads.googleads.v10.common.UserListRuleInfo.getDefaultInstance() : rightOperand_;
}
}
/**
*
* Right operand of the combined rule.
* This field is required and must be populated when creating new combined
* rule based user list.
*
*
* .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
*/
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>
getRightOperandFieldBuilder() {
if (rightOperandBuilder_ == null) {
rightOperandBuilder_ = 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>(
getRightOperand(),
getParentForChildren(),
isClean());
rightOperand_ = null;
}
return rightOperandBuilder_;
}
private int ruleOperator_ = 0;
/**
*
* Operator to connect the two operands.
* Required for creating a combined rule user list.
*
*
* .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
* @return The enum numeric value on the wire for ruleOperator.
*/
@java.lang.Override public int getRuleOperatorValue() {
return ruleOperator_;
}
/**
*
* Operator to connect the two operands.
* Required for creating a combined rule user list.
*
*
* .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
* @param value The enum numeric value on the wire for ruleOperator to set.
* @return This builder for chaining.
*/
public Builder setRuleOperatorValue(int value) {
ruleOperator_ = value;
onChanged();
return this;
}
/**
*
* Operator to connect the two operands.
* Required for creating a combined rule user list.
*
*
* .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
* @return The ruleOperator.
*/
@java.lang.Override
public com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator getRuleOperator() {
@SuppressWarnings("deprecation")
com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator result = com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.valueOf(ruleOperator_);
return result == null ? com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator.UNRECOGNIZED : result;
}
/**
*
* Operator to connect the two operands.
* Required for creating a combined rule user list.
*
*
* .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
* @param value The ruleOperator to set.
* @return This builder for chaining.
*/
public Builder setRuleOperator(com.google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator value) {
if (value == null) {
throw new NullPointerException();
}
ruleOperator_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Operator to connect the two operands.
* Required for creating a combined rule user list.
*
*
* .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
* @return This builder for chaining.
*/
public Builder clearRuleOperator() {
ruleOperator_ = 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.common.CombinedRuleUserListInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v10.common.CombinedRuleUserListInfo)
private static final com.google.ads.googleads.v10.common.CombinedRuleUserListInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v10.common.CombinedRuleUserListInfo();
}
public static com.google.ads.googleads.v10.common.CombinedRuleUserListInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CombinedRuleUserListInfo 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.CombinedRuleUserListInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy