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

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

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

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

/**
 * 
 * An asset representing a mobile app.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.MobileAppAsset} */ public final class MobileAppAsset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.MobileAppAsset) MobileAppAssetOrBuilder { private static final long serialVersionUID = 0L; // Use MobileAppAsset.newBuilder() to construct. private MobileAppAsset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MobileAppAsset() { appId_ = ""; appStore_ = 0; linkText_ = ""; startDate_ = ""; endDate_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MobileAppAsset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_MobileAppAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_MobileAppAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.MobileAppAsset.class, com.google.ads.googleads.v17.common.MobileAppAsset.Builder.class); } public static final int APP_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object appId_ = ""; /** *
   * Required. A string that uniquely identifies a mobile application. It should
   * just contain the platform native id, like "com.android.ebay" for Android or
   * "12345689" for iOS.
   * 
* * string app_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The appId. */ @java.lang.Override public java.lang.String getAppId() { java.lang.Object ref = appId_; 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(); appId_ = s; return s; } } /** *
   * Required. A string that uniquely identifies a mobile application. It should
   * just contain the platform native id, like "com.android.ebay" for Android or
   * "12345689" for iOS.
   * 
* * string app_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for appId. */ @java.lang.Override public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int APP_STORE_FIELD_NUMBER = 2; private int appStore_ = 0; /** *
   * Required. The application store that distributes this specific app.
   * 
* * .google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor app_store = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for appStore. */ @java.lang.Override public int getAppStoreValue() { return appStore_; } /** *
   * Required. The application store that distributes this specific app.
   * 
* * .google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor app_store = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The appStore. */ @java.lang.Override public com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor getAppStore() { com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor result = com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor.forNumber(appStore_); return result == null ? com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor.UNRECOGNIZED : result; } public static final int LINK_TEXT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object linkText_ = ""; /** *
   * Required. The visible text displayed when the link is rendered in an ad.
   * The length of this string should be between 1 and 25, inclusive.
   * 
* * string link_text = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The linkText. */ @java.lang.Override public java.lang.String getLinkText() { java.lang.Object ref = linkText_; 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(); linkText_ = s; return s; } } /** *
   * Required. The visible text displayed when the link is rendered in an ad.
   * The length of this string should be between 1 and 25, inclusive.
   * 
* * string link_text = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for linkText. */ @java.lang.Override public com.google.protobuf.ByteString getLinkTextBytes() { java.lang.Object ref = linkText_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); linkText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_DATE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object startDate_ = ""; /** *
   * Start date of when this asset is effective and can begin serving, in
   * yyyy-MM-dd format.
   * 
* * string start_date = 4; * @return The startDate. */ @java.lang.Override public java.lang.String getStartDate() { java.lang.Object ref = startDate_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startDate_ = s; return s; } } /** *
   * Start date of when this asset is effective and can begin serving, in
   * yyyy-MM-dd format.
   * 
* * string start_date = 4; * @return The bytes for startDate. */ @java.lang.Override public com.google.protobuf.ByteString getStartDateBytes() { java.lang.Object ref = startDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int END_DATE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object endDate_ = ""; /** *
   * Last date of when this asset is effective and still serving, in yyyy-MM-dd
   * format.
   * 
* * string end_date = 5; * @return The endDate. */ @java.lang.Override public java.lang.String getEndDate() { java.lang.Object ref = endDate_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endDate_ = s; return s; } } /** *
   * Last date of when this asset is effective and still serving, in yyyy-MM-dd
   * format.
   * 
* * string end_date = 5; * @return The bytes for endDate. */ @java.lang.Override public com.google.protobuf.ByteString getEndDateBytes() { java.lang.Object ref = endDate_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appId_); } if (appStore_ != com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor.UNSPECIFIED.getNumber()) { output.writeEnum(2, appStore_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, linkText_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, startDate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, endDate_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, appId_); } if (appStore_ != com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, appStore_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, linkText_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, startDate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, endDate_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.ads.googleads.v17.common.MobileAppAsset)) { return super.equals(obj); } com.google.ads.googleads.v17.common.MobileAppAsset other = (com.google.ads.googleads.v17.common.MobileAppAsset) obj; if (!getAppId() .equals(other.getAppId())) return false; if (appStore_ != other.appStore_) return false; if (!getLinkText() .equals(other.getLinkText())) return false; if (!getStartDate() .equals(other.getStartDate())) return false; if (!getEndDate() .equals(other.getEndDate())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + APP_ID_FIELD_NUMBER; hash = (53 * hash) + getAppId().hashCode(); hash = (37 * hash) + APP_STORE_FIELD_NUMBER; hash = (53 * hash) + appStore_; hash = (37 * hash) + LINK_TEXT_FIELD_NUMBER; hash = (53 * hash) + getLinkText().hashCode(); hash = (37 * hash) + START_DATE_FIELD_NUMBER; hash = (53 * hash) + getStartDate().hashCode(); hash = (37 * hash) + END_DATE_FIELD_NUMBER; hash = (53 * hash) + getEndDate().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.MobileAppAsset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.MobileAppAsset 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.MobileAppAsset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.MobileAppAsset 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.MobileAppAsset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.MobileAppAsset 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.MobileAppAsset 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.MobileAppAsset 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.MobileAppAsset 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.MobileAppAsset 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.MobileAppAsset 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.MobileAppAsset 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.MobileAppAsset 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; } /** *
   * An asset representing a mobile app.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.MobileAppAsset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.MobileAppAsset) com.google.ads.googleads.v17.common.MobileAppAssetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_MobileAppAsset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_MobileAppAsset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.MobileAppAsset.class, com.google.ads.googleads.v17.common.MobileAppAsset.Builder.class); } // Construct using com.google.ads.googleads.v17.common.MobileAppAsset.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; appId_ = ""; appStore_ = 0; linkText_ = ""; startDate_ = ""; endDate_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.AssetTypesProto.internal_static_google_ads_googleads_v17_common_MobileAppAsset_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.MobileAppAsset getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.MobileAppAsset build() { com.google.ads.googleads.v17.common.MobileAppAsset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.MobileAppAsset buildPartial() { com.google.ads.googleads.v17.common.MobileAppAsset result = new com.google.ads.googleads.v17.common.MobileAppAsset(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.MobileAppAsset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.appId_ = appId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.appStore_ = appStore_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.linkText_ = linkText_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.startDate_ = startDate_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.endDate_ = endDate_; } } @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.MobileAppAsset) { return mergeFrom((com.google.ads.googleads.v17.common.MobileAppAsset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.MobileAppAsset other) { if (other == com.google.ads.googleads.v17.common.MobileAppAsset.getDefaultInstance()) return this; if (!other.getAppId().isEmpty()) { appId_ = other.appId_; bitField0_ |= 0x00000001; onChanged(); } if (other.appStore_ != 0) { setAppStoreValue(other.getAppStoreValue()); } if (!other.getLinkText().isEmpty()) { linkText_ = other.linkText_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getStartDate().isEmpty()) { startDate_ = other.startDate_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getEndDate().isEmpty()) { endDate_ = other.endDate_; bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { appId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { appStore_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { linkText_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { startDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { endDate_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; 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 java.lang.Object appId_ = ""; /** *
     * Required. A string that uniquely identifies a mobile application. It should
     * just contain the platform native id, like "com.android.ebay" for Android or
     * "12345689" for iOS.
     * 
* * string app_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The appId. */ public java.lang.String getAppId() { java.lang.Object ref = appId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); appId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. A string that uniquely identifies a mobile application. It should
     * just contain the platform native id, like "com.android.ebay" for Android or
     * "12345689" for iOS.
     * 
* * string app_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for appId. */ public com.google.protobuf.ByteString getAppIdBytes() { java.lang.Object ref = appId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); appId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. A string that uniquely identifies a mobile application. It should
     * just contain the platform native id, like "com.android.ebay" for Android or
     * "12345689" for iOS.
     * 
* * string app_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The appId to set. * @return This builder for chaining. */ public Builder setAppId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } appId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Required. A string that uniquely identifies a mobile application. It should
     * just contain the platform native id, like "com.android.ebay" for Android or
     * "12345689" for iOS.
     * 
* * string app_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Required. A string that uniquely identifies a mobile application. It should
     * just contain the platform native id, like "com.android.ebay" for Android or
     * "12345689" for iOS.
     * 
* * string app_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for appId to set. * @return This builder for chaining. */ public Builder setAppIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); appId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int appStore_ = 0; /** *
     * Required. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor app_store = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for appStore. */ @java.lang.Override public int getAppStoreValue() { return appStore_; } /** *
     * Required. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor app_store = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for appStore to set. * @return This builder for chaining. */ public Builder setAppStoreValue(int value) { appStore_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Required. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor app_store = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The appStore. */ @java.lang.Override public com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor getAppStore() { com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor result = com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor.forNumber(appStore_); return result == null ? com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor.UNRECOGNIZED : result; } /** *
     * Required. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor app_store = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The appStore to set. * @return This builder for chaining. */ public Builder setAppStore(com.google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; appStore_ = value.getNumber(); onChanged(); return this; } /** *
     * Required. The application store that distributes this specific app.
     * 
* * .google.ads.googleads.v17.enums.MobileAppVendorEnum.MobileAppVendor app_store = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAppStore() { bitField0_ = (bitField0_ & ~0x00000002); appStore_ = 0; onChanged(); return this; } private java.lang.Object linkText_ = ""; /** *
     * Required. The visible text displayed when the link is rendered in an ad.
     * The length of this string should be between 1 and 25, inclusive.
     * 
* * string link_text = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The linkText. */ public java.lang.String getLinkText() { java.lang.Object ref = linkText_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); linkText_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The visible text displayed when the link is rendered in an ad.
     * The length of this string should be between 1 and 25, inclusive.
     * 
* * string link_text = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for linkText. */ public com.google.protobuf.ByteString getLinkTextBytes() { java.lang.Object ref = linkText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); linkText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Required. The visible text displayed when the link is rendered in an ad.
     * The length of this string should be between 1 and 25, inclusive.
     * 
* * string link_text = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The linkText to set. * @return This builder for chaining. */ public Builder setLinkText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } linkText_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Required. The visible text displayed when the link is rendered in an ad.
     * The length of this string should be between 1 and 25, inclusive.
     * 
* * string link_text = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearLinkText() { linkText_ = getDefaultInstance().getLinkText(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Required. The visible text displayed when the link is rendered in an ad.
     * The length of this string should be between 1 and 25, inclusive.
     * 
* * string link_text = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for linkText to set. * @return This builder for chaining. */ public Builder setLinkTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); linkText_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object startDate_ = ""; /** *
     * Start date of when this asset is effective and can begin serving, in
     * yyyy-MM-dd format.
     * 
* * string start_date = 4; * @return The startDate. */ public java.lang.String getStartDate() { java.lang.Object ref = startDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); startDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Start date of when this asset is effective and can begin serving, in
     * yyyy-MM-dd format.
     * 
* * string start_date = 4; * @return The bytes for startDate. */ public com.google.protobuf.ByteString getStartDateBytes() { java.lang.Object ref = startDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); startDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Start date of when this asset is effective and can begin serving, in
     * yyyy-MM-dd format.
     * 
* * string start_date = 4; * @param value The startDate to set. * @return This builder for chaining. */ public Builder setStartDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } startDate_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Start date of when this asset is effective and can begin serving, in
     * yyyy-MM-dd format.
     * 
* * string start_date = 4; * @return This builder for chaining. */ public Builder clearStartDate() { startDate_ = getDefaultInstance().getStartDate(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Start date of when this asset is effective and can begin serving, in
     * yyyy-MM-dd format.
     * 
* * string start_date = 4; * @param value The bytes for startDate to set. * @return This builder for chaining. */ public Builder setStartDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); startDate_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object endDate_ = ""; /** *
     * Last date of when this asset is effective and still serving, in yyyy-MM-dd
     * format.
     * 
* * string end_date = 5; * @return The endDate. */ public java.lang.String getEndDate() { java.lang.Object ref = endDate_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); endDate_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Last date of when this asset is effective and still serving, in yyyy-MM-dd
     * format.
     * 
* * string end_date = 5; * @return The bytes for endDate. */ public com.google.protobuf.ByteString getEndDateBytes() { java.lang.Object ref = endDate_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); endDate_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Last date of when this asset is effective and still serving, in yyyy-MM-dd
     * format.
     * 
* * string end_date = 5; * @param value The endDate to set. * @return This builder for chaining. */ public Builder setEndDate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } endDate_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Last date of when this asset is effective and still serving, in yyyy-MM-dd
     * format.
     * 
* * string end_date = 5; * @return This builder for chaining. */ public Builder clearEndDate() { endDate_ = getDefaultInstance().getEndDate(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Last date of when this asset is effective and still serving, in yyyy-MM-dd
     * format.
     * 
* * string end_date = 5; * @param value The bytes for endDate to set. * @return This builder for chaining. */ public Builder setEndDateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); endDate_ = value; bitField0_ |= 0x00000010; 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.v17.common.MobileAppAsset) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.MobileAppAsset) private static final com.google.ads.googleads.v17.common.MobileAppAsset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.MobileAppAsset(); } public static com.google.ads.googleads.v17.common.MobileAppAsset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MobileAppAsset 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.MobileAppAsset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy