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

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

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

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

/**
 * 
 * A text asset used inside an ad.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.AdTextAsset} */ public final class AdTextAsset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.AdTextAsset) AdTextAssetOrBuilder { private static final long serialVersionUID = 0L; // Use AdTextAsset.newBuilder() to construct. private AdTextAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AdTextAsset() { text_ = ""; pinnedField_ = 0; assetPerformanceLabel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AdTextAsset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AdAssetProto.internal_static_google_ads_googleads_v17_common_AdTextAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AdAssetProto.internal_static_google_ads_googleads_v17_common_AdTextAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.AdTextAsset.class, com.google.ads.googleads.v17.common.AdTextAsset.Builder.class); } private int bitField0_; public static final int TEXT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object text_ = ""; /** *
   * Asset text.
   * 
* * optional string text = 4; * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Asset text.
   * 
* * optional string text = 4; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = text_; 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(); text_ = s; return s; } } /** *
   * Asset text.
   * 
* * optional string text = 4; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PINNED_FIELD_FIELD_NUMBER = 2; private int pinnedField_ = 0; /** *
   * The pinned field of the asset. This restricts the asset to only serve
   * within this field. Multiple assets can be pinned to the same field. An
   * asset that is unpinned or pinned to a different field will not serve in a
   * field where some other asset has been pinned.
   * 
* * .google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; * @return The enum numeric value on the wire for pinnedField. */ @java.lang.Override public int getPinnedFieldValue() { return pinnedField_; } /** *
   * The pinned field of the asset. This restricts the asset to only serve
   * within this field. Multiple assets can be pinned to the same field. An
   * asset that is unpinned or pinned to a different field will not serve in a
   * field where some other asset has been pinned.
   * 
* * .google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; * @return The pinnedField. */ @java.lang.Override public com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType getPinnedField() { com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType result = com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType.forNumber(pinnedField_); return result == null ? com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType.UNRECOGNIZED : result; } public static final int ASSET_PERFORMANCE_LABEL_FIELD_NUMBER = 5; private int assetPerformanceLabel_ = 0; /** *
   * The performance label of this text asset.
   * 
* * .google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5; * @return The enum numeric value on the wire for assetPerformanceLabel. */ @java.lang.Override public int getAssetPerformanceLabelValue() { return assetPerformanceLabel_; } /** *
   * The performance label of this text asset.
   * 
* * .google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5; * @return The assetPerformanceLabel. */ @java.lang.Override public com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel getAssetPerformanceLabel() { com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel result = com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel.forNumber(assetPerformanceLabel_); return result == null ? com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel.UNRECOGNIZED : result; } public static final int POLICY_SUMMARY_INFO_FIELD_NUMBER = 6; private com.google.ads.googleads.v17.common.AdAssetPolicySummary policySummaryInfo_; /** *
   * The policy summary of this text asset.
   * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; * @return Whether the policySummaryInfo field is set. */ @java.lang.Override public boolean hasPolicySummaryInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The policy summary of this text asset.
   * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; * @return The policySummaryInfo. */ @java.lang.Override public com.google.ads.googleads.v17.common.AdAssetPolicySummary getPolicySummaryInfo() { return policySummaryInfo_ == null ? com.google.ads.googleads.v17.common.AdAssetPolicySummary.getDefaultInstance() : policySummaryInfo_; } /** *
   * The policy summary of this text asset.
   * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; */ @java.lang.Override public com.google.ads.googleads.v17.common.AdAssetPolicySummaryOrBuilder getPolicySummaryInfoOrBuilder() { return policySummaryInfo_ == null ? com.google.ads.googleads.v17.common.AdAssetPolicySummary.getDefaultInstance() : policySummaryInfo_; } 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 (pinnedField_ != com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType.UNSPECIFIED.getNumber()) { output.writeEnum(2, pinnedField_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, text_); } if (assetPerformanceLabel_ != com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel.UNSPECIFIED.getNumber()) { output.writeEnum(5, assetPerformanceLabel_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getPolicySummaryInfo()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (pinnedField_ != com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, pinnedField_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, text_); } if (assetPerformanceLabel_ != com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, assetPerformanceLabel_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPolicySummaryInfo()); } 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.AdTextAsset)) { return super.equals(obj); } com.google.ads.googleads.v17.common.AdTextAsset other = (com.google.ads.googleads.v17.common.AdTextAsset) obj; if (hasText() != other.hasText()) return false; if (hasText()) { if (!getText() .equals(other.getText())) return false; } if (pinnedField_ != other.pinnedField_) return false; if (assetPerformanceLabel_ != other.assetPerformanceLabel_) return false; if (hasPolicySummaryInfo() != other.hasPolicySummaryInfo()) return false; if (hasPolicySummaryInfo()) { if (!getPolicySummaryInfo() .equals(other.getPolicySummaryInfo())) 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 (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } hash = (37 * hash) + PINNED_FIELD_FIELD_NUMBER; hash = (53 * hash) + pinnedField_; hash = (37 * hash) + ASSET_PERFORMANCE_LABEL_FIELD_NUMBER; hash = (53 * hash) + assetPerformanceLabel_; if (hasPolicySummaryInfo()) { hash = (37 * hash) + POLICY_SUMMARY_INFO_FIELD_NUMBER; hash = (53 * hash) + getPolicySummaryInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.AdTextAsset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.AdTextAsset 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.AdTextAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.AdTextAsset 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.AdTextAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.AdTextAsset 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.AdTextAsset 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.AdTextAsset 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.AdTextAsset 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.AdTextAsset 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.AdTextAsset 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.AdTextAsset 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.AdTextAsset 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 text asset used inside an ad.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.AdTextAsset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.AdTextAsset) com.google.ads.googleads.v17.common.AdTextAssetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AdAssetProto.internal_static_google_ads_googleads_v17_common_AdTextAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AdAssetProto.internal_static_google_ads_googleads_v17_common_AdTextAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.AdTextAsset.class, com.google.ads.googleads.v17.common.AdTextAsset.Builder.class); } // Construct using com.google.ads.googleads.v17.common.AdTextAsset.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPolicySummaryInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; text_ = ""; pinnedField_ = 0; assetPerformanceLabel_ = 0; policySummaryInfo_ = null; if (policySummaryInfoBuilder_ != null) { policySummaryInfoBuilder_.dispose(); policySummaryInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.AdAssetProto.internal_static_google_ads_googleads_v17_common_AdTextAsset_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.AdTextAsset getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.AdTextAsset build() { com.google.ads.googleads.v17.common.AdTextAsset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.AdTextAsset buildPartial() { com.google.ads.googleads.v17.common.AdTextAsset result = new com.google.ads.googleads.v17.common.AdTextAsset(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.AdTextAsset result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.text_ = text_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.pinnedField_ = pinnedField_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.assetPerformanceLabel_ = assetPerformanceLabel_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.policySummaryInfo_ = policySummaryInfoBuilder_ == null ? policySummaryInfo_ : policySummaryInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.AdTextAsset) { return mergeFrom((com.google.ads.googleads.v17.common.AdTextAsset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.AdTextAsset other) { if (other == com.google.ads.googleads.v17.common.AdTextAsset.getDefaultInstance()) return this; if (other.hasText()) { text_ = other.text_; bitField0_ |= 0x00000001; onChanged(); } if (other.pinnedField_ != 0) { setPinnedFieldValue(other.getPinnedFieldValue()); } if (other.assetPerformanceLabel_ != 0) { setAssetPerformanceLabelValue(other.getAssetPerformanceLabelValue()); } if (other.hasPolicySummaryInfo()) { mergePolicySummaryInfo(other.getPolicySummaryInfo()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 16: { pinnedField_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 34: { text_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 34 case 40: { assetPerformanceLabel_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 40 case 50: { input.readMessage( getPolicySummaryInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object text_ = ""; /** *
     * Asset text.
     * 
* * optional string text = 4; * @return Whether the text field is set. */ public boolean hasText() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Asset text.
     * 
* * optional string text = 4; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Asset text.
     * 
* * optional string text = 4; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Asset text.
     * 
* * optional string text = 4; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } text_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Asset text.
     * 
* * optional string text = 4; * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Asset text.
     * 
* * optional string text = 4; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); text_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int pinnedField_ = 0; /** *
     * The pinned field of the asset. This restricts the asset to only serve
     * within this field. Multiple assets can be pinned to the same field. An
     * asset that is unpinned or pinned to a different field will not serve in a
     * field where some other asset has been pinned.
     * 
* * .google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; * @return The enum numeric value on the wire for pinnedField. */ @java.lang.Override public int getPinnedFieldValue() { return pinnedField_; } /** *
     * The pinned field of the asset. This restricts the asset to only serve
     * within this field. Multiple assets can be pinned to the same field. An
     * asset that is unpinned or pinned to a different field will not serve in a
     * field where some other asset has been pinned.
     * 
* * .google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; * @param value The enum numeric value on the wire for pinnedField to set. * @return This builder for chaining. */ public Builder setPinnedFieldValue(int value) { pinnedField_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The pinned field of the asset. This restricts the asset to only serve
     * within this field. Multiple assets can be pinned to the same field. An
     * asset that is unpinned or pinned to a different field will not serve in a
     * field where some other asset has been pinned.
     * 
* * .google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; * @return The pinnedField. */ @java.lang.Override public com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType getPinnedField() { com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType result = com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType.forNumber(pinnedField_); return result == null ? com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType.UNRECOGNIZED : result; } /** *
     * The pinned field of the asset. This restricts the asset to only serve
     * within this field. Multiple assets can be pinned to the same field. An
     * asset that is unpinned or pinned to a different field will not serve in a
     * field where some other asset has been pinned.
     * 
* * .google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; * @param value The pinnedField to set. * @return This builder for chaining. */ public Builder setPinnedField(com.google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; pinnedField_ = value.getNumber(); onChanged(); return this; } /** *
     * The pinned field of the asset. This restricts the asset to only serve
     * within this field. Multiple assets can be pinned to the same field. An
     * asset that is unpinned or pinned to a different field will not serve in a
     * field where some other asset has been pinned.
     * 
* * .google.ads.googleads.v17.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; * @return This builder for chaining. */ public Builder clearPinnedField() { bitField0_ = (bitField0_ & ~0x00000002); pinnedField_ = 0; onChanged(); return this; } private int assetPerformanceLabel_ = 0; /** *
     * The performance label of this text asset.
     * 
* * .google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5; * @return The enum numeric value on the wire for assetPerformanceLabel. */ @java.lang.Override public int getAssetPerformanceLabelValue() { return assetPerformanceLabel_; } /** *
     * The performance label of this text asset.
     * 
* * .google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5; * @param value The enum numeric value on the wire for assetPerformanceLabel to set. * @return This builder for chaining. */ public Builder setAssetPerformanceLabelValue(int value) { assetPerformanceLabel_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The performance label of this text asset.
     * 
* * .google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5; * @return The assetPerformanceLabel. */ @java.lang.Override public com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel getAssetPerformanceLabel() { com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel result = com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel.forNumber(assetPerformanceLabel_); return result == null ? com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel.UNRECOGNIZED : result; } /** *
     * The performance label of this text asset.
     * 
* * .google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5; * @param value The assetPerformanceLabel to set. * @return This builder for chaining. */ public Builder setAssetPerformanceLabel(com.google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; assetPerformanceLabel_ = value.getNumber(); onChanged(); return this; } /** *
     * The performance label of this text asset.
     * 
* * .google.ads.googleads.v17.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5; * @return This builder for chaining. */ public Builder clearAssetPerformanceLabel() { bitField0_ = (bitField0_ & ~0x00000004); assetPerformanceLabel_ = 0; onChanged(); return this; } private com.google.ads.googleads.v17.common.AdAssetPolicySummary policySummaryInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.AdAssetPolicySummary, com.google.ads.googleads.v17.common.AdAssetPolicySummary.Builder, com.google.ads.googleads.v17.common.AdAssetPolicySummaryOrBuilder> policySummaryInfoBuilder_; /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; * @return Whether the policySummaryInfo field is set. */ public boolean hasPolicySummaryInfo() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; * @return The policySummaryInfo. */ public com.google.ads.googleads.v17.common.AdAssetPolicySummary getPolicySummaryInfo() { if (policySummaryInfoBuilder_ == null) { return policySummaryInfo_ == null ? com.google.ads.googleads.v17.common.AdAssetPolicySummary.getDefaultInstance() : policySummaryInfo_; } else { return policySummaryInfoBuilder_.getMessage(); } } /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; */ public Builder setPolicySummaryInfo(com.google.ads.googleads.v17.common.AdAssetPolicySummary value) { if (policySummaryInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } policySummaryInfo_ = value; } else { policySummaryInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; */ public Builder setPolicySummaryInfo( com.google.ads.googleads.v17.common.AdAssetPolicySummary.Builder builderForValue) { if (policySummaryInfoBuilder_ == null) { policySummaryInfo_ = builderForValue.build(); } else { policySummaryInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; */ public Builder mergePolicySummaryInfo(com.google.ads.googleads.v17.common.AdAssetPolicySummary value) { if (policySummaryInfoBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && policySummaryInfo_ != null && policySummaryInfo_ != com.google.ads.googleads.v17.common.AdAssetPolicySummary.getDefaultInstance()) { getPolicySummaryInfoBuilder().mergeFrom(value); } else { policySummaryInfo_ = value; } } else { policySummaryInfoBuilder_.mergeFrom(value); } if (policySummaryInfo_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; */ public Builder clearPolicySummaryInfo() { bitField0_ = (bitField0_ & ~0x00000008); policySummaryInfo_ = null; if (policySummaryInfoBuilder_ != null) { policySummaryInfoBuilder_.dispose(); policySummaryInfoBuilder_ = null; } onChanged(); return this; } /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; */ public com.google.ads.googleads.v17.common.AdAssetPolicySummary.Builder getPolicySummaryInfoBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPolicySummaryInfoFieldBuilder().getBuilder(); } /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; */ public com.google.ads.googleads.v17.common.AdAssetPolicySummaryOrBuilder getPolicySummaryInfoOrBuilder() { if (policySummaryInfoBuilder_ != null) { return policySummaryInfoBuilder_.getMessageOrBuilder(); } else { return policySummaryInfo_ == null ? com.google.ads.googleads.v17.common.AdAssetPolicySummary.getDefaultInstance() : policySummaryInfo_; } } /** *
     * The policy summary of this text asset.
     * 
* * .google.ads.googleads.v17.common.AdAssetPolicySummary policy_summary_info = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.AdAssetPolicySummary, com.google.ads.googleads.v17.common.AdAssetPolicySummary.Builder, com.google.ads.googleads.v17.common.AdAssetPolicySummaryOrBuilder> getPolicySummaryInfoFieldBuilder() { if (policySummaryInfoBuilder_ == null) { policySummaryInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.AdAssetPolicySummary, com.google.ads.googleads.v17.common.AdAssetPolicySummary.Builder, com.google.ads.googleads.v17.common.AdAssetPolicySummaryOrBuilder>( getPolicySummaryInfo(), getParentForChildren(), isClean()); policySummaryInfo_ = null; } return policySummaryInfoBuilder_; } @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.AdTextAsset) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.AdTextAsset) private static final com.google.ads.googleads.v17.common.AdTextAsset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.AdTextAsset(); } public static com.google.ads.googleads.v17.common.AdTextAsset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AdTextAsset 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.AdTextAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy