com.google.ads.googleads.v17.common.VideoAdInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v17/common/ad_type_infos.proto
// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;
/**
*
* A video ad.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.VideoAdInfo}
*/
public final class VideoAdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.VideoAdInfo)
VideoAdInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use VideoAdInfo.newBuilder() to construct.
private VideoAdInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VideoAdInfo() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new VideoAdInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_VideoAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_VideoAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.VideoAdInfo.class, com.google.ads.googleads.v17.common.VideoAdInfo.Builder.class);
}
private int bitField0_;
private int formatCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object format_;
public enum FormatCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
IN_STREAM(2),
BUMPER(3),
OUT_STREAM(4),
NON_SKIPPABLE(5),
IN_FEED(9),
FORMAT_NOT_SET(0);
private final int value;
private FormatCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FormatCase valueOf(int value) {
return forNumber(value);
}
public static FormatCase forNumber(int value) {
switch (value) {
case 2: return IN_STREAM;
case 3: return BUMPER;
case 4: return OUT_STREAM;
case 5: return NON_SKIPPABLE;
case 9: return IN_FEED;
case 0: return FORMAT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FormatCase
getFormatCase() {
return FormatCase.forNumber(
formatCase_);
}
public static final int VIDEO_FIELD_NUMBER = 8;
private com.google.ads.googleads.v17.common.AdVideoAsset video_;
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
* @return Whether the video field is set.
*/
@java.lang.Override
public boolean hasVideo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
* @return The video.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdVideoAsset getVideo() {
return video_ == null ? com.google.ads.googleads.v17.common.AdVideoAsset.getDefaultInstance() : video_;
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder getVideoOrBuilder() {
return video_ == null ? com.google.ads.googleads.v17.common.AdVideoAsset.getDefaultInstance() : video_;
}
public static final int IN_STREAM_FIELD_NUMBER = 2;
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
* @return Whether the inStream field is set.
*/
@java.lang.Override
public boolean hasInStream() {
return formatCase_ == 2;
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
* @return The inStream.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo getInStream() {
if (formatCase_ == 2) {
return (com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.getDefaultInstance();
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfoOrBuilder getInStreamOrBuilder() {
if (formatCase_ == 2) {
return (com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.getDefaultInstance();
}
public static final int BUMPER_FIELD_NUMBER = 3;
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
* @return Whether the bumper field is set.
*/
@java.lang.Override
public boolean hasBumper() {
return formatCase_ == 3;
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
* @return The bumper.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo getBumper() {
if (formatCase_ == 3) {
return (com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.getDefaultInstance();
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfoOrBuilder getBumperOrBuilder() {
if (formatCase_ == 3) {
return (com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.getDefaultInstance();
}
public static final int OUT_STREAM_FIELD_NUMBER = 4;
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
* @return Whether the outStream field is set.
*/
@java.lang.Override
public boolean hasOutStream() {
return formatCase_ == 4;
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
* @return The outStream.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoOutstreamAdInfo getOutStream() {
if (formatCase_ == 4) {
return (com.google.ads.googleads.v17.common.VideoOutstreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.getDefaultInstance();
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoOutstreamAdInfoOrBuilder getOutStreamOrBuilder() {
if (formatCase_ == 4) {
return (com.google.ads.googleads.v17.common.VideoOutstreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.getDefaultInstance();
}
public static final int NON_SKIPPABLE_FIELD_NUMBER = 5;
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
* @return Whether the nonSkippable field is set.
*/
@java.lang.Override
public boolean hasNonSkippable() {
return formatCase_ == 5;
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
* @return The nonSkippable.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo getNonSkippable() {
if (formatCase_ == 5) {
return (com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.getDefaultInstance();
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfoOrBuilder getNonSkippableOrBuilder() {
if (formatCase_ == 5) {
return (com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.getDefaultInstance();
}
public static final int IN_FEED_FIELD_NUMBER = 9;
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
* @return Whether the inFeed field is set.
*/
@java.lang.Override
public boolean hasInFeed() {
return formatCase_ == 9;
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
* @return The inFeed.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.InFeedVideoAdInfo getInFeed() {
if (formatCase_ == 9) {
return (com.google.ads.googleads.v17.common.InFeedVideoAdInfo) format_;
}
return com.google.ads.googleads.v17.common.InFeedVideoAdInfo.getDefaultInstance();
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.InFeedVideoAdInfoOrBuilder getInFeedOrBuilder() {
if (formatCase_ == 9) {
return (com.google.ads.googleads.v17.common.InFeedVideoAdInfo) format_;
}
return com.google.ads.googleads.v17.common.InFeedVideoAdInfo.getDefaultInstance();
}
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 (formatCase_ == 2) {
output.writeMessage(2, (com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo) format_);
}
if (formatCase_ == 3) {
output.writeMessage(3, (com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo) format_);
}
if (formatCase_ == 4) {
output.writeMessage(4, (com.google.ads.googleads.v17.common.VideoOutstreamAdInfo) format_);
}
if (formatCase_ == 5) {
output.writeMessage(5, (com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo) format_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(8, getVideo());
}
if (formatCase_ == 9) {
output.writeMessage(9, (com.google.ads.googleads.v17.common.InFeedVideoAdInfo) format_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (formatCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo) format_);
}
if (formatCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo) format_);
}
if (formatCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.google.ads.googleads.v17.common.VideoOutstreamAdInfo) format_);
}
if (formatCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo) format_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getVideo());
}
if (formatCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.google.ads.googleads.v17.common.InFeedVideoAdInfo) format_);
}
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.VideoAdInfo)) {
return super.equals(obj);
}
com.google.ads.googleads.v17.common.VideoAdInfo other = (com.google.ads.googleads.v17.common.VideoAdInfo) obj;
if (hasVideo() != other.hasVideo()) return false;
if (hasVideo()) {
if (!getVideo()
.equals(other.getVideo())) return false;
}
if (!getFormatCase().equals(other.getFormatCase())) return false;
switch (formatCase_) {
case 2:
if (!getInStream()
.equals(other.getInStream())) return false;
break;
case 3:
if (!getBumper()
.equals(other.getBumper())) return false;
break;
case 4:
if (!getOutStream()
.equals(other.getOutStream())) return false;
break;
case 5:
if (!getNonSkippable()
.equals(other.getNonSkippable())) return false;
break;
case 9:
if (!getInFeed()
.equals(other.getInFeed())) return false;
break;
case 0:
default:
}
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 (hasVideo()) {
hash = (37 * hash) + VIDEO_FIELD_NUMBER;
hash = (53 * hash) + getVideo().hashCode();
}
switch (formatCase_) {
case 2:
hash = (37 * hash) + IN_STREAM_FIELD_NUMBER;
hash = (53 * hash) + getInStream().hashCode();
break;
case 3:
hash = (37 * hash) + BUMPER_FIELD_NUMBER;
hash = (53 * hash) + getBumper().hashCode();
break;
case 4:
hash = (37 * hash) + OUT_STREAM_FIELD_NUMBER;
hash = (53 * hash) + getOutStream().hashCode();
break;
case 5:
hash = (37 * hash) + NON_SKIPPABLE_FIELD_NUMBER;
hash = (53 * hash) + getNonSkippable().hashCode();
break;
case 9:
hash = (37 * hash) + IN_FEED_FIELD_NUMBER;
hash = (53 * hash) + getInFeed().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.ads.googleads.v17.common.VideoAdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.VideoAdInfo 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.VideoAdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.VideoAdInfo 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.VideoAdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.ads.googleads.v17.common.VideoAdInfo 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.VideoAdInfo 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.VideoAdInfo 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.VideoAdInfo 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.VideoAdInfo 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.VideoAdInfo 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.VideoAdInfo 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.VideoAdInfo 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 video ad.
*
*
* Protobuf type {@code google.ads.googleads.v17.common.VideoAdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.VideoAdInfo)
com.google.ads.googleads.v17.common.VideoAdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_VideoAdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_VideoAdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.ads.googleads.v17.common.VideoAdInfo.class, com.google.ads.googleads.v17.common.VideoAdInfo.Builder.class);
}
// Construct using com.google.ads.googleads.v17.common.VideoAdInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getVideoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
video_ = null;
if (videoBuilder_ != null) {
videoBuilder_.dispose();
videoBuilder_ = null;
}
if (inStreamBuilder_ != null) {
inStreamBuilder_.clear();
}
if (bumperBuilder_ != null) {
bumperBuilder_.clear();
}
if (outStreamBuilder_ != null) {
outStreamBuilder_.clear();
}
if (nonSkippableBuilder_ != null) {
nonSkippableBuilder_.clear();
}
if (inFeedBuilder_ != null) {
inFeedBuilder_.clear();
}
formatCase_ = 0;
format_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.ads.googleads.v17.common.AdTypeInfosProto.internal_static_google_ads_googleads_v17_common_VideoAdInfo_descriptor;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoAdInfo getDefaultInstanceForType() {
return com.google.ads.googleads.v17.common.VideoAdInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoAdInfo build() {
com.google.ads.googleads.v17.common.VideoAdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoAdInfo buildPartial() {
com.google.ads.googleads.v17.common.VideoAdInfo result = new com.google.ads.googleads.v17.common.VideoAdInfo(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.ads.googleads.v17.common.VideoAdInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.video_ = videoBuilder_ == null
? video_
: videoBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.ads.googleads.v17.common.VideoAdInfo result) {
result.formatCase_ = formatCase_;
result.format_ = this.format_;
if (formatCase_ == 2 &&
inStreamBuilder_ != null) {
result.format_ = inStreamBuilder_.build();
}
if (formatCase_ == 3 &&
bumperBuilder_ != null) {
result.format_ = bumperBuilder_.build();
}
if (formatCase_ == 4 &&
outStreamBuilder_ != null) {
result.format_ = outStreamBuilder_.build();
}
if (formatCase_ == 5 &&
nonSkippableBuilder_ != null) {
result.format_ = nonSkippableBuilder_.build();
}
if (formatCase_ == 9 &&
inFeedBuilder_ != null) {
result.format_ = inFeedBuilder_.build();
}
}
@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.VideoAdInfo) {
return mergeFrom((com.google.ads.googleads.v17.common.VideoAdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.ads.googleads.v17.common.VideoAdInfo other) {
if (other == com.google.ads.googleads.v17.common.VideoAdInfo.getDefaultInstance()) return this;
if (other.hasVideo()) {
mergeVideo(other.getVideo());
}
switch (other.getFormatCase()) {
case IN_STREAM: {
mergeInStream(other.getInStream());
break;
}
case BUMPER: {
mergeBumper(other.getBumper());
break;
}
case OUT_STREAM: {
mergeOutStream(other.getOutStream());
break;
}
case NON_SKIPPABLE: {
mergeNonSkippable(other.getNonSkippable());
break;
}
case IN_FEED: {
mergeInFeed(other.getInFeed());
break;
}
case FORMAT_NOT_SET: {
break;
}
}
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 18: {
input.readMessage(
getInStreamFieldBuilder().getBuilder(),
extensionRegistry);
formatCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getBumperFieldBuilder().getBuilder(),
extensionRegistry);
formatCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getOutStreamFieldBuilder().getBuilder(),
extensionRegistry);
formatCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getNonSkippableFieldBuilder().getBuilder(),
extensionRegistry);
formatCase_ = 5;
break;
} // case 42
case 66: {
input.readMessage(
getVideoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 66
case 74: {
input.readMessage(
getInFeedFieldBuilder().getBuilder(),
extensionRegistry);
formatCase_ = 9;
break;
} // case 74
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 formatCase_ = 0;
private java.lang.Object format_;
public FormatCase
getFormatCase() {
return FormatCase.forNumber(
formatCase_);
}
public Builder clearFormat() {
formatCase_ = 0;
format_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.ads.googleads.v17.common.AdVideoAsset video_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdVideoAsset, com.google.ads.googleads.v17.common.AdVideoAsset.Builder, com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder> videoBuilder_;
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
* @return Whether the video field is set.
*/
public boolean hasVideo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
* @return The video.
*/
public com.google.ads.googleads.v17.common.AdVideoAsset getVideo() {
if (videoBuilder_ == null) {
return video_ == null ? com.google.ads.googleads.v17.common.AdVideoAsset.getDefaultInstance() : video_;
} else {
return videoBuilder_.getMessage();
}
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
*/
public Builder setVideo(com.google.ads.googleads.v17.common.AdVideoAsset value) {
if (videoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
video_ = value;
} else {
videoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
*/
public Builder setVideo(
com.google.ads.googleads.v17.common.AdVideoAsset.Builder builderForValue) {
if (videoBuilder_ == null) {
video_ = builderForValue.build();
} else {
videoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
*/
public Builder mergeVideo(com.google.ads.googleads.v17.common.AdVideoAsset value) {
if (videoBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
video_ != null &&
video_ != com.google.ads.googleads.v17.common.AdVideoAsset.getDefaultInstance()) {
getVideoBuilder().mergeFrom(value);
} else {
video_ = value;
}
} else {
videoBuilder_.mergeFrom(value);
}
if (video_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
*/
public Builder clearVideo() {
bitField0_ = (bitField0_ & ~0x00000001);
video_ = null;
if (videoBuilder_ != null) {
videoBuilder_.dispose();
videoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
*/
public com.google.ads.googleads.v17.common.AdVideoAsset.Builder getVideoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getVideoFieldBuilder().getBuilder();
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
*/
public com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder getVideoOrBuilder() {
if (videoBuilder_ != null) {
return videoBuilder_.getMessageOrBuilder();
} else {
return video_ == null ?
com.google.ads.googleads.v17.common.AdVideoAsset.getDefaultInstance() : video_;
}
}
/**
*
* The YouTube video assets used for the ad.
*
*
* .google.ads.googleads.v17.common.AdVideoAsset video = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdVideoAsset, com.google.ads.googleads.v17.common.AdVideoAsset.Builder, com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder>
getVideoFieldBuilder() {
if (videoBuilder_ == null) {
videoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.AdVideoAsset, com.google.ads.googleads.v17.common.AdVideoAsset.Builder, com.google.ads.googleads.v17.common.AdVideoAssetOrBuilder>(
getVideo(),
getParentForChildren(),
isClean());
video_ = null;
}
return videoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo, com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfoOrBuilder> inStreamBuilder_;
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
* @return Whether the inStream field is set.
*/
@java.lang.Override
public boolean hasInStream() {
return formatCase_ == 2;
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
* @return The inStream.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo getInStream() {
if (inStreamBuilder_ == null) {
if (formatCase_ == 2) {
return (com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.getDefaultInstance();
} else {
if (formatCase_ == 2) {
return inStreamBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.getDefaultInstance();
}
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
*/
public Builder setInStream(com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo value) {
if (inStreamBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
inStreamBuilder_.setMessage(value);
}
formatCase_ = 2;
return this;
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
*/
public Builder setInStream(
com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.Builder builderForValue) {
if (inStreamBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
inStreamBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 2;
return this;
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
*/
public Builder mergeInStream(com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo value) {
if (inStreamBuilder_ == null) {
if (formatCase_ == 2 &&
format_ != com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.getDefaultInstance()) {
format_ = com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.newBuilder((com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 2) {
inStreamBuilder_.mergeFrom(value);
} else {
inStreamBuilder_.setMessage(value);
}
}
formatCase_ = 2;
return this;
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
*/
public Builder clearInStream() {
if (inStreamBuilder_ == null) {
if (formatCase_ == 2) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 2) {
formatCase_ = 0;
format_ = null;
}
inStreamBuilder_.clear();
}
return this;
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
*/
public com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.Builder getInStreamBuilder() {
return getInStreamFieldBuilder().getBuilder();
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfoOrBuilder getInStreamOrBuilder() {
if ((formatCase_ == 2) && (inStreamBuilder_ != null)) {
return inStreamBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 2) {
return (com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.getDefaultInstance();
}
}
/**
*
* Video TrueView in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo in_stream = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo, com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfoOrBuilder>
getInStreamFieldBuilder() {
if (inStreamBuilder_ == null) {
if (!(formatCase_ == 2)) {
format_ = com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.getDefaultInstance();
}
inStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo, com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfoOrBuilder>(
(com.google.ads.googleads.v17.common.VideoTrueViewInStreamAdInfo) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 2;
onChanged();
return inStreamBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo, com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfoOrBuilder> bumperBuilder_;
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
* @return Whether the bumper field is set.
*/
@java.lang.Override
public boolean hasBumper() {
return formatCase_ == 3;
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
* @return The bumper.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo getBumper() {
if (bumperBuilder_ == null) {
if (formatCase_ == 3) {
return (com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.getDefaultInstance();
} else {
if (formatCase_ == 3) {
return bumperBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.getDefaultInstance();
}
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
*/
public Builder setBumper(com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo value) {
if (bumperBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
bumperBuilder_.setMessage(value);
}
formatCase_ = 3;
return this;
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
*/
public Builder setBumper(
com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.Builder builderForValue) {
if (bumperBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
bumperBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 3;
return this;
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
*/
public Builder mergeBumper(com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo value) {
if (bumperBuilder_ == null) {
if (formatCase_ == 3 &&
format_ != com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.getDefaultInstance()) {
format_ = com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.newBuilder((com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 3) {
bumperBuilder_.mergeFrom(value);
} else {
bumperBuilder_.setMessage(value);
}
}
formatCase_ = 3;
return this;
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
*/
public Builder clearBumper() {
if (bumperBuilder_ == null) {
if (formatCase_ == 3) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 3) {
formatCase_ = 0;
format_ = null;
}
bumperBuilder_.clear();
}
return this;
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
*/
public com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.Builder getBumperBuilder() {
return getBumperFieldBuilder().getBuilder();
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfoOrBuilder getBumperOrBuilder() {
if ((formatCase_ == 3) && (bumperBuilder_ != null)) {
return bumperBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 3) {
return (com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.getDefaultInstance();
}
}
/**
*
* Video bumper in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoBumperInStreamAdInfo bumper = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo, com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfoOrBuilder>
getBumperFieldBuilder() {
if (bumperBuilder_ == null) {
if (!(formatCase_ == 3)) {
format_ = com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.getDefaultInstance();
}
bumperBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo, com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfoOrBuilder>(
(com.google.ads.googleads.v17.common.VideoBumperInStreamAdInfo) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 3;
onChanged();
return bumperBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoOutstreamAdInfo, com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoOutstreamAdInfoOrBuilder> outStreamBuilder_;
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
* @return Whether the outStream field is set.
*/
@java.lang.Override
public boolean hasOutStream() {
return formatCase_ == 4;
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
* @return The outStream.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoOutstreamAdInfo getOutStream() {
if (outStreamBuilder_ == null) {
if (formatCase_ == 4) {
return (com.google.ads.googleads.v17.common.VideoOutstreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.getDefaultInstance();
} else {
if (formatCase_ == 4) {
return outStreamBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.getDefaultInstance();
}
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
*/
public Builder setOutStream(com.google.ads.googleads.v17.common.VideoOutstreamAdInfo value) {
if (outStreamBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
outStreamBuilder_.setMessage(value);
}
formatCase_ = 4;
return this;
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
*/
public Builder setOutStream(
com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.Builder builderForValue) {
if (outStreamBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
outStreamBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 4;
return this;
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
*/
public Builder mergeOutStream(com.google.ads.googleads.v17.common.VideoOutstreamAdInfo value) {
if (outStreamBuilder_ == null) {
if (formatCase_ == 4 &&
format_ != com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.getDefaultInstance()) {
format_ = com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.newBuilder((com.google.ads.googleads.v17.common.VideoOutstreamAdInfo) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 4) {
outStreamBuilder_.mergeFrom(value);
} else {
outStreamBuilder_.setMessage(value);
}
}
formatCase_ = 4;
return this;
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
*/
public Builder clearOutStream() {
if (outStreamBuilder_ == null) {
if (formatCase_ == 4) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 4) {
formatCase_ = 0;
format_ = null;
}
outStreamBuilder_.clear();
}
return this;
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
*/
public com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.Builder getOutStreamBuilder() {
return getOutStreamFieldBuilder().getBuilder();
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoOutstreamAdInfoOrBuilder getOutStreamOrBuilder() {
if ((formatCase_ == 4) && (outStreamBuilder_ != null)) {
return outStreamBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 4) {
return (com.google.ads.googleads.v17.common.VideoOutstreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.getDefaultInstance();
}
}
/**
*
* Video out-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoOutstreamAdInfo out_stream = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoOutstreamAdInfo, com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoOutstreamAdInfoOrBuilder>
getOutStreamFieldBuilder() {
if (outStreamBuilder_ == null) {
if (!(formatCase_ == 4)) {
format_ = com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.getDefaultInstance();
}
outStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoOutstreamAdInfo, com.google.ads.googleads.v17.common.VideoOutstreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoOutstreamAdInfoOrBuilder>(
(com.google.ads.googleads.v17.common.VideoOutstreamAdInfo) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 4;
onChanged();
return outStreamBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo, com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfoOrBuilder> nonSkippableBuilder_;
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
* @return Whether the nonSkippable field is set.
*/
@java.lang.Override
public boolean hasNonSkippable() {
return formatCase_ == 5;
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
* @return The nonSkippable.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo getNonSkippable() {
if (nonSkippableBuilder_ == null) {
if (formatCase_ == 5) {
return (com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.getDefaultInstance();
} else {
if (formatCase_ == 5) {
return nonSkippableBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.getDefaultInstance();
}
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
*/
public Builder setNonSkippable(com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo value) {
if (nonSkippableBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
nonSkippableBuilder_.setMessage(value);
}
formatCase_ = 5;
return this;
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
*/
public Builder setNonSkippable(
com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.Builder builderForValue) {
if (nonSkippableBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
nonSkippableBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 5;
return this;
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
*/
public Builder mergeNonSkippable(com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo value) {
if (nonSkippableBuilder_ == null) {
if (formatCase_ == 5 &&
format_ != com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.getDefaultInstance()) {
format_ = com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.newBuilder((com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 5) {
nonSkippableBuilder_.mergeFrom(value);
} else {
nonSkippableBuilder_.setMessage(value);
}
}
formatCase_ = 5;
return this;
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
*/
public Builder clearNonSkippable() {
if (nonSkippableBuilder_ == null) {
if (formatCase_ == 5) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 5) {
formatCase_ = 0;
format_ = null;
}
nonSkippableBuilder_.clear();
}
return this;
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
*/
public com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.Builder getNonSkippableBuilder() {
return getNonSkippableFieldBuilder().getBuilder();
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfoOrBuilder getNonSkippableOrBuilder() {
if ((formatCase_ == 5) && (nonSkippableBuilder_ != null)) {
return nonSkippableBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 5) {
return (com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo) format_;
}
return com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.getDefaultInstance();
}
}
/**
*
* Video non-skippable in-stream ad format.
*
*
* .google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo non_skippable = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo, com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfoOrBuilder>
getNonSkippableFieldBuilder() {
if (nonSkippableBuilder_ == null) {
if (!(formatCase_ == 5)) {
format_ = com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.getDefaultInstance();
}
nonSkippableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo, com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo.Builder, com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfoOrBuilder>(
(com.google.ads.googleads.v17.common.VideoNonSkippableInStreamAdInfo) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 5;
onChanged();
return nonSkippableBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.InFeedVideoAdInfo, com.google.ads.googleads.v17.common.InFeedVideoAdInfo.Builder, com.google.ads.googleads.v17.common.InFeedVideoAdInfoOrBuilder> inFeedBuilder_;
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
* @return Whether the inFeed field is set.
*/
@java.lang.Override
public boolean hasInFeed() {
return formatCase_ == 9;
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
* @return The inFeed.
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.InFeedVideoAdInfo getInFeed() {
if (inFeedBuilder_ == null) {
if (formatCase_ == 9) {
return (com.google.ads.googleads.v17.common.InFeedVideoAdInfo) format_;
}
return com.google.ads.googleads.v17.common.InFeedVideoAdInfo.getDefaultInstance();
} else {
if (formatCase_ == 9) {
return inFeedBuilder_.getMessage();
}
return com.google.ads.googleads.v17.common.InFeedVideoAdInfo.getDefaultInstance();
}
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
*/
public Builder setInFeed(com.google.ads.googleads.v17.common.InFeedVideoAdInfo value) {
if (inFeedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
format_ = value;
onChanged();
} else {
inFeedBuilder_.setMessage(value);
}
formatCase_ = 9;
return this;
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
*/
public Builder setInFeed(
com.google.ads.googleads.v17.common.InFeedVideoAdInfo.Builder builderForValue) {
if (inFeedBuilder_ == null) {
format_ = builderForValue.build();
onChanged();
} else {
inFeedBuilder_.setMessage(builderForValue.build());
}
formatCase_ = 9;
return this;
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
*/
public Builder mergeInFeed(com.google.ads.googleads.v17.common.InFeedVideoAdInfo value) {
if (inFeedBuilder_ == null) {
if (formatCase_ == 9 &&
format_ != com.google.ads.googleads.v17.common.InFeedVideoAdInfo.getDefaultInstance()) {
format_ = com.google.ads.googleads.v17.common.InFeedVideoAdInfo.newBuilder((com.google.ads.googleads.v17.common.InFeedVideoAdInfo) format_)
.mergeFrom(value).buildPartial();
} else {
format_ = value;
}
onChanged();
} else {
if (formatCase_ == 9) {
inFeedBuilder_.mergeFrom(value);
} else {
inFeedBuilder_.setMessage(value);
}
}
formatCase_ = 9;
return this;
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
*/
public Builder clearInFeed() {
if (inFeedBuilder_ == null) {
if (formatCase_ == 9) {
formatCase_ = 0;
format_ = null;
onChanged();
}
} else {
if (formatCase_ == 9) {
formatCase_ = 0;
format_ = null;
}
inFeedBuilder_.clear();
}
return this;
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
*/
public com.google.ads.googleads.v17.common.InFeedVideoAdInfo.Builder getInFeedBuilder() {
return getInFeedFieldBuilder().getBuilder();
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
*/
@java.lang.Override
public com.google.ads.googleads.v17.common.InFeedVideoAdInfoOrBuilder getInFeedOrBuilder() {
if ((formatCase_ == 9) && (inFeedBuilder_ != null)) {
return inFeedBuilder_.getMessageOrBuilder();
} else {
if (formatCase_ == 9) {
return (com.google.ads.googleads.v17.common.InFeedVideoAdInfo) format_;
}
return com.google.ads.googleads.v17.common.InFeedVideoAdInfo.getDefaultInstance();
}
}
/**
*
* In-feed video ad format.
*
*
* .google.ads.googleads.v17.common.InFeedVideoAdInfo in_feed = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.InFeedVideoAdInfo, com.google.ads.googleads.v17.common.InFeedVideoAdInfo.Builder, com.google.ads.googleads.v17.common.InFeedVideoAdInfoOrBuilder>
getInFeedFieldBuilder() {
if (inFeedBuilder_ == null) {
if (!(formatCase_ == 9)) {
format_ = com.google.ads.googleads.v17.common.InFeedVideoAdInfo.getDefaultInstance();
}
inFeedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.ads.googleads.v17.common.InFeedVideoAdInfo, com.google.ads.googleads.v17.common.InFeedVideoAdInfo.Builder, com.google.ads.googleads.v17.common.InFeedVideoAdInfoOrBuilder>(
(com.google.ads.googleads.v17.common.InFeedVideoAdInfo) format_,
getParentForChildren(),
isClean());
format_ = null;
}
formatCase_ = 9;
onChanged();
return inFeedBuilder_;
}
@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.VideoAdInfo)
}
// @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.VideoAdInfo)
private static final com.google.ads.googleads.v17.common.VideoAdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.VideoAdInfo();
}
public static com.google.ads.googleads.v17.common.VideoAdInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VideoAdInfo 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.VideoAdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy