All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.ads.googleads.v17.common.ListingGroupInfo Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/common/criteria.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;

/**
 * 
 * A listing group criterion.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.ListingGroupInfo} */ public final class ListingGroupInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.ListingGroupInfo) ListingGroupInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ListingGroupInfo.newBuilder() to construct. private ListingGroupInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListingGroupInfo() { type_ = 0; parentAdGroupCriterion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListingGroupInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_ListingGroupInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_ListingGroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.ListingGroupInfo.class, com.google.ads.googleads.v17.common.ListingGroupInfo.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_ = 0; /** *
   * Type of the listing group.
   * 
* * .google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
   * Type of the listing group.
   * 
* * .google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType type = 1; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType getType() { com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType result = com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType.forNumber(type_); return result == null ? com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType.UNRECOGNIZED : result; } public static final int CASE_VALUE_FIELD_NUMBER = 2; private com.google.ads.googleads.v17.common.ListingDimensionInfo caseValue_; /** *
   * Dimension value with which this listing group is refining its parent.
   * Undefined for the root group.
   * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; * @return Whether the caseValue field is set. */ @java.lang.Override public boolean hasCaseValue() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Dimension value with which this listing group is refining its parent.
   * Undefined for the root group.
   * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; * @return The caseValue. */ @java.lang.Override public com.google.ads.googleads.v17.common.ListingDimensionInfo getCaseValue() { return caseValue_ == null ? com.google.ads.googleads.v17.common.ListingDimensionInfo.getDefaultInstance() : caseValue_; } /** *
   * Dimension value with which this listing group is refining its parent.
   * Undefined for the root group.
   * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.ListingDimensionInfoOrBuilder getCaseValueOrBuilder() { return caseValue_ == null ? com.google.ads.googleads.v17.common.ListingDimensionInfo.getDefaultInstance() : caseValue_; } public static final int PARENT_AD_GROUP_CRITERION_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object parentAdGroupCriterion_ = ""; /** *
   * Resource name of ad group criterion which is the parent listing group
   * subdivision. Null for the root group.
   * 
* * optional string parent_ad_group_criterion = 4; * @return Whether the parentAdGroupCriterion field is set. */ @java.lang.Override public boolean hasParentAdGroupCriterion() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Resource name of ad group criterion which is the parent listing group
   * subdivision. Null for the root group.
   * 
* * optional string parent_ad_group_criterion = 4; * @return The parentAdGroupCriterion. */ @java.lang.Override public java.lang.String getParentAdGroupCriterion() { java.lang.Object ref = parentAdGroupCriterion_; 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(); parentAdGroupCriterion_ = s; return s; } } /** *
   * Resource name of ad group criterion which is the parent listing group
   * subdivision. Null for the root group.
   * 
* * optional string parent_ad_group_criterion = 4; * @return The bytes for parentAdGroupCriterion. */ @java.lang.Override public com.google.protobuf.ByteString getParentAdGroupCriterionBytes() { java.lang.Object ref = parentAdGroupCriterion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parentAdGroupCriterion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATH_FIELD_NUMBER = 5; private com.google.ads.googleads.v17.common.ListingDimensionPath path_; /** *
   * The path of dimensions defining this listing group.
   * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; * @return Whether the path field is set. */ @java.lang.Override public boolean hasPath() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The path of dimensions defining this listing group.
   * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; * @return The path. */ @java.lang.Override public com.google.ads.googleads.v17.common.ListingDimensionPath getPath() { return path_ == null ? com.google.ads.googleads.v17.common.ListingDimensionPath.getDefaultInstance() : path_; } /** *
   * The path of dimensions defining this listing group.
   * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; */ @java.lang.Override public com.google.ads.googleads.v17.common.ListingDimensionPathOrBuilder getPathOrBuilder() { return path_ == null ? com.google.ads.googleads.v17.common.ListingDimensionPath.getDefaultInstance() : path_; } 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 (type_ != com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType.UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCaseValue()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parentAdGroupCriterion_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getPath()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCaseValue()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parentAdGroupCriterion_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPath()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.common.ListingGroupInfo)) { return super.equals(obj); } com.google.ads.googleads.v17.common.ListingGroupInfo other = (com.google.ads.googleads.v17.common.ListingGroupInfo) obj; if (type_ != other.type_) return false; if (hasCaseValue() != other.hasCaseValue()) return false; if (hasCaseValue()) { if (!getCaseValue() .equals(other.getCaseValue())) return false; } if (hasParentAdGroupCriterion() != other.hasParentAdGroupCriterion()) return false; if (hasParentAdGroupCriterion()) { if (!getParentAdGroupCriterion() .equals(other.getParentAdGroupCriterion())) return false; } if (hasPath() != other.hasPath()) return false; if (hasPath()) { if (!getPath() .equals(other.getPath())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasCaseValue()) { hash = (37 * hash) + CASE_VALUE_FIELD_NUMBER; hash = (53 * hash) + getCaseValue().hashCode(); } if (hasParentAdGroupCriterion()) { hash = (37 * hash) + PARENT_AD_GROUP_CRITERION_FIELD_NUMBER; hash = (53 * hash) + getParentAdGroupCriterion().hashCode(); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.ListingGroupInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.ads.googleads.v17.common.ListingGroupInfo 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 listing group criterion.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.ListingGroupInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.ListingGroupInfo) com.google.ads.googleads.v17.common.ListingGroupInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_ListingGroupInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_ListingGroupInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.ListingGroupInfo.class, com.google.ads.googleads.v17.common.ListingGroupInfo.Builder.class); } // Construct using com.google.ads.googleads.v17.common.ListingGroupInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCaseValueFieldBuilder(); getPathFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = 0; caseValue_ = null; if (caseValueBuilder_ != null) { caseValueBuilder_.dispose(); caseValueBuilder_ = null; } parentAdGroupCriterion_ = ""; path_ = null; if (pathBuilder_ != null) { pathBuilder_.dispose(); pathBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.CriteriaProto.internal_static_google_ads_googleads_v17_common_ListingGroupInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.ListingGroupInfo getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.ListingGroupInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.ListingGroupInfo build() { com.google.ads.googleads.v17.common.ListingGroupInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.ListingGroupInfo buildPartial() { com.google.ads.googleads.v17.common.ListingGroupInfo result = new com.google.ads.googleads.v17.common.ListingGroupInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.ListingGroupInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.caseValue_ = caseValueBuilder_ == null ? caseValue_ : caseValueBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.parentAdGroupCriterion_ = parentAdGroupCriterion_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.path_ = pathBuilder_ == null ? path_ : pathBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.ads.googleads.v17.common.ListingGroupInfo) { return mergeFrom((com.google.ads.googleads.v17.common.ListingGroupInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.ListingGroupInfo other) { if (other == com.google.ads.googleads.v17.common.ListingGroupInfo.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasCaseValue()) { mergeCaseValue(other.getCaseValue()); } if (other.hasParentAdGroupCriterion()) { parentAdGroupCriterion_ = other.parentAdGroupCriterion_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasPath()) { mergePath(other.getPath()); } 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 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getCaseValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 34: { parentAdGroupCriterion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage( getPathFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; 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 int type_ = 0; /** *
     * Type of the listing group.
     * 
* * .google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * Type of the listing group.
     * 
* * .google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Type of the listing group.
     * 
* * .google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType type = 1; * @return The type. */ @java.lang.Override public com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType getType() { com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType result = com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType.forNumber(type_); return result == null ? com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType.UNRECOGNIZED : result; } /** *
     * Type of the listing group.
     * 
* * .google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** *
     * Type of the listing group.
     * 
* * .google.ads.googleads.v17.enums.ListingGroupTypeEnum.ListingGroupType type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private com.google.ads.googleads.v17.common.ListingDimensionInfo caseValue_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ListingDimensionInfo, com.google.ads.googleads.v17.common.ListingDimensionInfo.Builder, com.google.ads.googleads.v17.common.ListingDimensionInfoOrBuilder> caseValueBuilder_; /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; * @return Whether the caseValue field is set. */ public boolean hasCaseValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; * @return The caseValue. */ public com.google.ads.googleads.v17.common.ListingDimensionInfo getCaseValue() { if (caseValueBuilder_ == null) { return caseValue_ == null ? com.google.ads.googleads.v17.common.ListingDimensionInfo.getDefaultInstance() : caseValue_; } else { return caseValueBuilder_.getMessage(); } } /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; */ public Builder setCaseValue(com.google.ads.googleads.v17.common.ListingDimensionInfo value) { if (caseValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } caseValue_ = value; } else { caseValueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; */ public Builder setCaseValue( com.google.ads.googleads.v17.common.ListingDimensionInfo.Builder builderForValue) { if (caseValueBuilder_ == null) { caseValue_ = builderForValue.build(); } else { caseValueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; */ public Builder mergeCaseValue(com.google.ads.googleads.v17.common.ListingDimensionInfo value) { if (caseValueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && caseValue_ != null && caseValue_ != com.google.ads.googleads.v17.common.ListingDimensionInfo.getDefaultInstance()) { getCaseValueBuilder().mergeFrom(value); } else { caseValue_ = value; } } else { caseValueBuilder_.mergeFrom(value); } if (caseValue_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; */ public Builder clearCaseValue() { bitField0_ = (bitField0_ & ~0x00000002); caseValue_ = null; if (caseValueBuilder_ != null) { caseValueBuilder_.dispose(); caseValueBuilder_ = null; } onChanged(); return this; } /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; */ public com.google.ads.googleads.v17.common.ListingDimensionInfo.Builder getCaseValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCaseValueFieldBuilder().getBuilder(); } /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; */ public com.google.ads.googleads.v17.common.ListingDimensionInfoOrBuilder getCaseValueOrBuilder() { if (caseValueBuilder_ != null) { return caseValueBuilder_.getMessageOrBuilder(); } else { return caseValue_ == null ? com.google.ads.googleads.v17.common.ListingDimensionInfo.getDefaultInstance() : caseValue_; } } /** *
     * Dimension value with which this listing group is refining its parent.
     * Undefined for the root group.
     * 
* * .google.ads.googleads.v17.common.ListingDimensionInfo case_value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ListingDimensionInfo, com.google.ads.googleads.v17.common.ListingDimensionInfo.Builder, com.google.ads.googleads.v17.common.ListingDimensionInfoOrBuilder> getCaseValueFieldBuilder() { if (caseValueBuilder_ == null) { caseValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ListingDimensionInfo, com.google.ads.googleads.v17.common.ListingDimensionInfo.Builder, com.google.ads.googleads.v17.common.ListingDimensionInfoOrBuilder>( getCaseValue(), getParentForChildren(), isClean()); caseValue_ = null; } return caseValueBuilder_; } private java.lang.Object parentAdGroupCriterion_ = ""; /** *
     * Resource name of ad group criterion which is the parent listing group
     * subdivision. Null for the root group.
     * 
* * optional string parent_ad_group_criterion = 4; * @return Whether the parentAdGroupCriterion field is set. */ public boolean hasParentAdGroupCriterion() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Resource name of ad group criterion which is the parent listing group
     * subdivision. Null for the root group.
     * 
* * optional string parent_ad_group_criterion = 4; * @return The parentAdGroupCriterion. */ public java.lang.String getParentAdGroupCriterion() { java.lang.Object ref = parentAdGroupCriterion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parentAdGroupCriterion_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Resource name of ad group criterion which is the parent listing group
     * subdivision. Null for the root group.
     * 
* * optional string parent_ad_group_criterion = 4; * @return The bytes for parentAdGroupCriterion. */ public com.google.protobuf.ByteString getParentAdGroupCriterionBytes() { java.lang.Object ref = parentAdGroupCriterion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parentAdGroupCriterion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Resource name of ad group criterion which is the parent listing group
     * subdivision. Null for the root group.
     * 
* * optional string parent_ad_group_criterion = 4; * @param value The parentAdGroupCriterion to set. * @return This builder for chaining. */ public Builder setParentAdGroupCriterion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } parentAdGroupCriterion_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Resource name of ad group criterion which is the parent listing group
     * subdivision. Null for the root group.
     * 
* * optional string parent_ad_group_criterion = 4; * @return This builder for chaining. */ public Builder clearParentAdGroupCriterion() { parentAdGroupCriterion_ = getDefaultInstance().getParentAdGroupCriterion(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Resource name of ad group criterion which is the parent listing group
     * subdivision. Null for the root group.
     * 
* * optional string parent_ad_group_criterion = 4; * @param value The bytes for parentAdGroupCriterion to set. * @return This builder for chaining. */ public Builder setParentAdGroupCriterionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parentAdGroupCriterion_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.ads.googleads.v17.common.ListingDimensionPath path_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ListingDimensionPath, com.google.ads.googleads.v17.common.ListingDimensionPath.Builder, com.google.ads.googleads.v17.common.ListingDimensionPathOrBuilder> pathBuilder_; /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; * @return Whether the path field is set. */ public boolean hasPath() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; * @return The path. */ public com.google.ads.googleads.v17.common.ListingDimensionPath getPath() { if (pathBuilder_ == null) { return path_ == null ? com.google.ads.googleads.v17.common.ListingDimensionPath.getDefaultInstance() : path_; } else { return pathBuilder_.getMessage(); } } /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; */ public Builder setPath(com.google.ads.googleads.v17.common.ListingDimensionPath value) { if (pathBuilder_ == null) { if (value == null) { throw new NullPointerException(); } path_ = value; } else { pathBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; */ public Builder setPath( com.google.ads.googleads.v17.common.ListingDimensionPath.Builder builderForValue) { if (pathBuilder_ == null) { path_ = builderForValue.build(); } else { pathBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; */ public Builder mergePath(com.google.ads.googleads.v17.common.ListingDimensionPath value) { if (pathBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && path_ != null && path_ != com.google.ads.googleads.v17.common.ListingDimensionPath.getDefaultInstance()) { getPathBuilder().mergeFrom(value); } else { path_ = value; } } else { pathBuilder_.mergeFrom(value); } if (path_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000008); path_ = null; if (pathBuilder_ != null) { pathBuilder_.dispose(); pathBuilder_ = null; } onChanged(); return this; } /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; */ public com.google.ads.googleads.v17.common.ListingDimensionPath.Builder getPathBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPathFieldBuilder().getBuilder(); } /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; */ public com.google.ads.googleads.v17.common.ListingDimensionPathOrBuilder getPathOrBuilder() { if (pathBuilder_ != null) { return pathBuilder_.getMessageOrBuilder(); } else { return path_ == null ? com.google.ads.googleads.v17.common.ListingDimensionPath.getDefaultInstance() : path_; } } /** *
     * The path of dimensions defining this listing group.
     * 
* * optional .google.ads.googleads.v17.common.ListingDimensionPath path = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ListingDimensionPath, com.google.ads.googleads.v17.common.ListingDimensionPath.Builder, com.google.ads.googleads.v17.common.ListingDimensionPathOrBuilder> getPathFieldBuilder() { if (pathBuilder_ == null) { pathBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.ListingDimensionPath, com.google.ads.googleads.v17.common.ListingDimensionPath.Builder, com.google.ads.googleads.v17.common.ListingDimensionPathOrBuilder>( getPath(), getParentForChildren(), isClean()); path_ = null; } return pathBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.ads.googleads.v17.common.ListingGroupInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.ListingGroupInfo) private static final com.google.ads.googleads.v17.common.ListingGroupInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.ListingGroupInfo(); } public static com.google.ads.googleads.v17.common.ListingGroupInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListingGroupInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.ads.googleads.v17.common.ListingGroupInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy