diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DaiSessionServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DaiSessionServiceClient.java new file mode 100644 index 000000000000..6d79e0e33fd1 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/DaiSessionServiceClient.java @@ -0,0 +1,320 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1; + +import com.google.ads.admanager.v1.stub.DaiSessionServiceStub; +import com.google.ads.admanager.v1.stub.DaiSessionServiceStubSettings; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `DaiSession` objects. + * + *
This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DaiSessionServiceClient daiSessionServiceClient = DaiSessionServiceClient.create()) {
+ * DaiSessionName name = DaiSessionName.of("[NETWORK_CODE]", "[DAI_SESSION]");
+ * DaiSession response = daiSessionServiceClient.getDaiSession(name);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the DaiSessionServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *
| Method | + *Description | + *Method Variants | + *
|---|---|---|
GetDaiSession |
+ * Retrieves a `DaiSession` object. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of DaiSessionServiceSettings to + * create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DaiSessionServiceSettings daiSessionServiceSettings =
+ * DaiSessionServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * DaiSessionServiceClient daiSessionServiceClient =
+ * DaiSessionServiceClient.create(daiSessionServiceSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DaiSessionServiceSettings daiSessionServiceSettings =
+ * DaiSessionServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DaiSessionServiceClient daiSessionServiceClient =
+ * DaiSessionServiceClient.create(daiSessionServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class DaiSessionServiceClient implements BackgroundResource { + private final @Nullable DaiSessionServiceSettings settings; + private final DaiSessionServiceStub stub; + + /** Constructs an instance of DaiSessionServiceClient with default settings. */ + public static final DaiSessionServiceClient create() throws IOException { + return create(DaiSessionServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DaiSessionServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DaiSessionServiceClient create(DaiSessionServiceSettings settings) + throws IOException { + return new DaiSessionServiceClient(settings); + } + + /** + * Constructs an instance of DaiSessionServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(DaiSessionServiceSettings). + */ + public static final DaiSessionServiceClient create(DaiSessionServiceStub stub) { + return new DaiSessionServiceClient(stub); + } + + /** + * Constructs an instance of DaiSessionServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected DaiSessionServiceClient(DaiSessionServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DaiSessionServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected DaiSessionServiceClient(DaiSessionServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable DaiSessionServiceSettings getSettings() { + return settings; + } + + public DaiSessionServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `DaiSession` object. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DaiSessionServiceClient daiSessionServiceClient = DaiSessionServiceClient.create()) {
+ * DaiSessionName name = DaiSessionName.of("[NETWORK_CODE]", "[DAI_SESSION]");
+ * DaiSession response = daiSessionServiceClient.getDaiSession(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the DaiSession. The dai_session can be either the
+ * session ID or debug key, that DAI returns on stream create. For details, see [Locate a DAI
+ * session ID or debug key](https://support.google.com/admanager/answer/7257678).
+ * Format: `networks/{network_code}/daiSessions/{dai_session}` Format: + * `networks/{network_code}/daiSessions/{session_id}` Format: + * `networks/{network_code}/daiSessions/{debug_key}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DaiSession getDaiSession(@Nullable DaiSessionName name) { + GetDaiSessionRequest request = + GetDaiSessionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDaiSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `DaiSession` object. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DaiSessionServiceClient daiSessionServiceClient = DaiSessionServiceClient.create()) {
+ * String name = DaiSessionName.of("[NETWORK_CODE]", "[DAI_SESSION]").toString();
+ * DaiSession response = daiSessionServiceClient.getDaiSession(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the DaiSession. The dai_session can be either the
+ * session ID or debug key, that DAI returns on stream create. For details, see [Locate a DAI
+ * session ID or debug key](https://support.google.com/admanager/answer/7257678).
+ * Format: `networks/{network_code}/daiSessions/{dai_session}` Format: + * `networks/{network_code}/daiSessions/{session_id}` Format: + * `networks/{network_code}/daiSessions/{debug_key}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DaiSession getDaiSession(String name) { + GetDaiSessionRequest request = GetDaiSessionRequest.newBuilder().setName(name).build(); + return getDaiSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a `DaiSession` object. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DaiSessionServiceClient daiSessionServiceClient = DaiSessionServiceClient.create()) {
+ * GetDaiSessionRequest request =
+ * GetDaiSessionRequest.newBuilder()
+ * .setName(DaiSessionName.of("[NETWORK_CODE]", "[DAI_SESSION]").toString())
+ * .build();
+ * DaiSession response = daiSessionServiceClient.getDaiSession(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final DaiSession getDaiSession(GetDaiSessionRequest request) {
+ return getDaiSessionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `DaiSession` object.
+ *
+ * Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DaiSessionServiceClient daiSessionServiceClient = DaiSessionServiceClient.create()) {
+ * GetDaiSessionRequest request =
+ * GetDaiSessionRequest.newBuilder()
+ * .setName(DaiSessionName.of("[NETWORK_CODE]", "[DAI_SESSION]").toString())
+ * .build();
+ * ApiFuture future =
+ * daiSessionServiceClient.getDaiSessionCallable().futureCall(request);
+ * // Do something.
+ * DaiSession response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getDaiSession: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DaiSessionServiceSettings.Builder daiSessionServiceSettingsBuilder =
+ * DaiSessionServiceSettings.newBuilder();
+ * daiSessionServiceSettingsBuilder
+ * .getDaiSessionSettings()
+ * .setRetrySettings(
+ * daiSessionServiceSettingsBuilder
+ * .getDaiSessionSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * DaiSessionServiceSettings daiSessionServiceSettings = daiSessionServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class DaiSessionServiceSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction ======================= DaiSessionServiceClient =======================
+ *
+ * Service Description: Provides methods for handling `DaiSession` objects.
+ *
+ * Sample for DaiSessionServiceClient:
+ *
+ * ======================= DeviceCapabilityServiceClient =======================
*
* Service Description: Provides methods for handling `DeviceCapability` objects.
diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DaiSessionServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DaiSessionServiceStub.java
new file mode 100644
index 000000000000..842ff411154b
--- /dev/null
+++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/DaiSessionServiceStub.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2026 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.ads.admanager.v1.stub;
+
+import com.google.ads.admanager.v1.DaiSession;
+import com.google.ads.admanager.v1.GetDaiSessionRequest;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import javax.annotation.Generated;
+import org.jspecify.annotations.NullMarked;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the DaiSessionService service API.
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public abstract class DaiSessionServiceStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the
+ * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
+ * of getDaiSession:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class HttpJsonDaiSessionServiceCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+public class HttpJsonDaiSessionServiceStub extends DaiSessionServiceStub {
+ private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build();
+
+ private static final ApiMethodDescriptor{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (DaiSessionServiceClient daiSessionServiceClient = DaiSessionServiceClient.create()) {
+ * DaiSessionName name = DaiSessionName.of("[NETWORK_CODE]", "[DAI_SESSION]");
+ * DaiSession response = daiSessionServiceClient.getDaiSession(name);
+ * }
+ * }
+ *
*
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * DaiSessionServiceStubSettings.Builder daiSessionServiceSettingsBuilder =
+ * DaiSessionServiceStubSettings.newBuilder();
+ * daiSessionServiceSettingsBuilder
+ * .getDaiSessionSettings()
+ * .setRetrySettings(
+ * daiSessionServiceSettingsBuilder
+ * .getDaiSessionSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ * .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ * .setMaxAttempts(5)
+ * .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ * .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ * .setRetryDelayMultiplier(1.3)
+ * .setRpcTimeoutMultiplier(1.5)
+ * .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ * .build());
+ * DaiSessionServiceStubSettings daiSessionServiceSettings =
+ * daiSessionServiceSettingsBuilder.build();
+ * }
+ *
+ * Please refer to the [Client Side Retry
+ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
+ * retries.
+ */
+@NullMarked
+@Generated("by gapic-generator-java")
+@SuppressWarnings("CanonicalDuration")
+public class DaiSessionServiceStubSettings extends StubSettings
+ * Wrapper message for
+ * [AdBreakFindingType][google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.AdBreakFindingTypeEnum}
+ */
+@com.google.protobuf.Generated
+public final class AdBreakFindingTypeEnum extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AdBreakFindingTypeEnum)
+ AdBreakFindingTypeEnumOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdBreakFindingTypeEnum");
+ }
+
+ // Use AdBreakFindingTypeEnum.newBuilder() to construct.
+ private AdBreakFindingTypeEnum(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private AdBreakFindingTypeEnum() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_AdBreakFindingTypeEnum_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_AdBreakFindingTypeEnum_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.AdBreakFindingTypeEnum.class,
+ com.google.ads.admanager.v1.AdBreakFindingTypeEnum.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred while serving an ad break for a session.
+ *
+ *
+ * Protobuf enum {@code google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType}
+ */
+ public enum AdBreakFindingType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * AD_BREAK_FINDING_TYPE_UNSPECIFIED = 0;
+ */
+ AD_BREAK_FINDING_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Internal DAI error.
+ *
+ *
+ * INTERNAL_ERROR = 1;
+ */
+ INTERNAL_ERROR(1),
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped, the number of ad breaks is less than the number of
+ * decisioned ad pods.
+ *
+ *
+ * AD_POD_DROPPED_TOO_MANY_AD_PODS = 2;
+ */
+ AD_POD_DROPPED_TOO_MANY_AD_PODS(2),
+ /**
+ *
+ *
+ *
+ * Ad pod doesn't contain enough ads - requires more filler than
+ * specified.
+ *
+ *
+ * EXCEEDS_MAX_FILLER = 3;
+ */
+ EXCEEDS_MAX_FILLER(3),
+ /**
+ *
+ *
+ *
+ * The midroll ad break was skipped due to overlapping with preroll.
+ *
+ *
+ * ADS_STATUS_DROPPED_FOR_PREROLL = 4;
+ */
+ ADS_STATUS_DROPPED_FOR_PREROLL(4),
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped due to all of the ads in the pod missing their
+ * assets, probably due to the assets not yet being transcoded.
+ *
+ *
+ * ADS_STATUS_ALL_ADS_MISSING_ASSETS = 5;
+ */
+ ADS_STATUS_ALL_ADS_MISSING_ASSETS(5),
+ /**
+ *
+ *
+ *
+ * Ad pod is outside of the window at session creation time so ad pod was
+ * skipped and underlying content was stitched instead.
+ *
+ *
+ * ADS_STATUS_OUT_OF_WINDOW = 6;
+ */
+ ADS_STATUS_OUT_OF_WINDOW(6),
+ /**
+ *
+ *
+ *
+ * Ads are disabled for this session.
+ *
+ *
+ * ADS_STATUS_DISABLED = 7;
+ */
+ ADS_STATUS_DISABLED(7),
+ /**
+ *
+ *
+ *
+ * Decisioned ad pod couldn't be fetched from storage.
+ *
+ *
+ * ADS_STATUS_STORAGE_ERROR = 8;
+ */
+ ADS_STATUS_STORAGE_ERROR(8),
+ /**
+ *
+ *
+ *
+ * Ad pod expired because the ad request couldn't finish before the
+ * deadline.
+ *
+ *
+ * ADS_STATUS_EXPIRED = 9;
+ */
+ ADS_STATUS_EXPIRED(9),
+ /**
+ *
+ *
+ *
+ * Ad pod occurred within the configured ad holiday.
+ *
+ *
+ * ADS_STATUS_HOLIDAY = 10;
+ */
+ ADS_STATUS_HOLIDAY(10),
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped because slate was unavailable and underlying content
+ * was stitched instead.
+ *
+ *
+ * ADS_STATUS_DROPPED_SLATE_UNAVAILABLE = 11;
+ */
+ ADS_STATUS_DROPPED_SLATE_UNAVAILABLE(11),
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped because there were no ads available before the
+ * deadline.
+ *
+ *
+ * ADS_STATUS_NO_ADS_AVAILABLE_BEFORE_DEADLINE = 12;
+ */
+ ADS_STATUS_NO_ADS_AVAILABLE_BEFORE_DEADLINE(12),
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped due to an invalid pod request.
+ *
+ *
+ * ADS_STATUS_INVALID_POD_REQUEST = 13;
+ */
+ ADS_STATUS_INVALID_POD_REQUEST(13),
+ /**
+ *
+ *
+ *
+ * The requested pre-roll break would overlap with a mid-roll ad break.
+ *
+ *
+ * ADS_STATUS_DROPPED_FOR_MIDROLL = 14;
+ */
+ ADS_STATUS_DROPPED_FOR_MIDROLL(14),
+ /**
+ *
+ *
+ *
+ * The duration of the ad break was too short to request ads.
+ *
+ *
+ * ADS_STATUS_DROPPED_BREAK_DURATION_TOO_SHORT = 15;
+ */
+ ADS_STATUS_DROPPED_BREAK_DURATION_TOO_SHORT(15),
+ /**
+ *
+ *
+ *
+ * Session created after the ad break ended.
+ *
+ *
+ * ADS_STATUS_DROPPED_STREAM_CREATED_AFTER_BREAK = 16;
+ */
+ ADS_STATUS_DROPPED_STREAM_CREATED_AFTER_BREAK(16),
+ /**
+ *
+ *
+ *
+ * Information about the content stream that is required to stitch the ads
+ * is missing or unavailable.
+ *
+ *
+ * ADS_STATUS_DROPPED_MEDIA_ANALYSIS_UNAVAILABLE = 17;
+ */
+ ADS_STATUS_DROPPED_MEDIA_ANALYSIS_UNAVAILABLE(17),
+ /**
+ *
+ *
+ *
+ * The serving or insertion status of the ad break is unknown.
+ *
+ *
+ * ADS_STATUS_UNKNOWN = 18;
+ */
+ ADS_STATUS_UNKNOWN(18),
+ /**
+ *
+ *
+ *
+ * Ad break was not served.
+ *
+ *
+ * UNSERVED_BREAK = 19;
+ */
+ UNSERVED_BREAK(19),
+ /**
+ *
+ *
+ *
+ * The content segment boundary at the end of the preroll has misaligned
+ * video and audio segments.
+ *
+ *
+ * PREROLL_AUDIO_VIDEO_MISALIGNMENT = 20;
+ */
+ PREROLL_AUDIO_VIDEO_MISALIGNMENT(20),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdBreakFindingType");
+ }
+
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * AD_BREAK_FINDING_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int AD_BREAK_FINDING_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Internal DAI error.
+ *
+ *
+ * INTERNAL_ERROR = 1;
+ */
+ public static final int INTERNAL_ERROR_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped, the number of ad breaks is less than the number of
+ * decisioned ad pods.
+ *
+ *
+ * AD_POD_DROPPED_TOO_MANY_AD_PODS = 2;
+ */
+ public static final int AD_POD_DROPPED_TOO_MANY_AD_PODS_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Ad pod doesn't contain enough ads - requires more filler than
+ * specified.
+ *
+ *
+ * EXCEEDS_MAX_FILLER = 3;
+ */
+ public static final int EXCEEDS_MAX_FILLER_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * The midroll ad break was skipped due to overlapping with preroll.
+ *
+ *
+ * ADS_STATUS_DROPPED_FOR_PREROLL = 4;
+ */
+ public static final int ADS_STATUS_DROPPED_FOR_PREROLL_VALUE = 4;
+
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped due to all of the ads in the pod missing their
+ * assets, probably due to the assets not yet being transcoded.
+ *
+ *
+ * ADS_STATUS_ALL_ADS_MISSING_ASSETS = 5;
+ */
+ public static final int ADS_STATUS_ALL_ADS_MISSING_ASSETS_VALUE = 5;
+
+ /**
+ *
+ *
+ *
+ * Ad pod is outside of the window at session creation time so ad pod was
+ * skipped and underlying content was stitched instead.
+ *
+ *
+ * ADS_STATUS_OUT_OF_WINDOW = 6;
+ */
+ public static final int ADS_STATUS_OUT_OF_WINDOW_VALUE = 6;
+
+ /**
+ *
+ *
+ *
+ * Ads are disabled for this session.
+ *
+ *
+ * ADS_STATUS_DISABLED = 7;
+ */
+ public static final int ADS_STATUS_DISABLED_VALUE = 7;
+
+ /**
+ *
+ *
+ *
+ * Decisioned ad pod couldn't be fetched from storage.
+ *
+ *
+ * ADS_STATUS_STORAGE_ERROR = 8;
+ */
+ public static final int ADS_STATUS_STORAGE_ERROR_VALUE = 8;
+
+ /**
+ *
+ *
+ *
+ * Ad pod expired because the ad request couldn't finish before the
+ * deadline.
+ *
+ *
+ * ADS_STATUS_EXPIRED = 9;
+ */
+ public static final int ADS_STATUS_EXPIRED_VALUE = 9;
+
+ /**
+ *
+ *
+ *
+ * Ad pod occurred within the configured ad holiday.
+ *
+ *
+ * ADS_STATUS_HOLIDAY = 10;
+ */
+ public static final int ADS_STATUS_HOLIDAY_VALUE = 10;
+
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped because slate was unavailable and underlying content
+ * was stitched instead.
+ *
+ *
+ * ADS_STATUS_DROPPED_SLATE_UNAVAILABLE = 11;
+ */
+ public static final int ADS_STATUS_DROPPED_SLATE_UNAVAILABLE_VALUE = 11;
+
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped because there were no ads available before the
+ * deadline.
+ *
+ *
+ * ADS_STATUS_NO_ADS_AVAILABLE_BEFORE_DEADLINE = 12;
+ */
+ public static final int ADS_STATUS_NO_ADS_AVAILABLE_BEFORE_DEADLINE_VALUE = 12;
+
+ /**
+ *
+ *
+ *
+ * Ad pod was dropped due to an invalid pod request.
+ *
+ *
+ * ADS_STATUS_INVALID_POD_REQUEST = 13;
+ */
+ public static final int ADS_STATUS_INVALID_POD_REQUEST_VALUE = 13;
+
+ /**
+ *
+ *
+ *
+ * The requested pre-roll break would overlap with a mid-roll ad break.
+ *
+ *
+ * ADS_STATUS_DROPPED_FOR_MIDROLL = 14;
+ */
+ public static final int ADS_STATUS_DROPPED_FOR_MIDROLL_VALUE = 14;
+
+ /**
+ *
+ *
+ *
+ * The duration of the ad break was too short to request ads.
+ *
+ *
+ * ADS_STATUS_DROPPED_BREAK_DURATION_TOO_SHORT = 15;
+ */
+ public static final int ADS_STATUS_DROPPED_BREAK_DURATION_TOO_SHORT_VALUE = 15;
+
+ /**
+ *
+ *
+ *
+ * Session created after the ad break ended.
+ *
+ *
+ * ADS_STATUS_DROPPED_STREAM_CREATED_AFTER_BREAK = 16;
+ */
+ public static final int ADS_STATUS_DROPPED_STREAM_CREATED_AFTER_BREAK_VALUE = 16;
+
+ /**
+ *
+ *
+ *
+ * Information about the content stream that is required to stitch the ads
+ * is missing or unavailable.
+ *
+ *
+ * ADS_STATUS_DROPPED_MEDIA_ANALYSIS_UNAVAILABLE = 17;
+ */
+ public static final int ADS_STATUS_DROPPED_MEDIA_ANALYSIS_UNAVAILABLE_VALUE = 17;
+
+ /**
+ *
+ *
+ *
+ * The serving or insertion status of the ad break is unknown.
+ *
+ *
+ * ADS_STATUS_UNKNOWN = 18;
+ */
+ public static final int ADS_STATUS_UNKNOWN_VALUE = 18;
+
+ /**
+ *
+ *
+ *
+ * Ad break was not served.
+ *
+ *
+ * UNSERVED_BREAK = 19;
+ */
+ public static final int UNSERVED_BREAK_VALUE = 19;
+
+ /**
+ *
+ *
+ *
+ * The content segment boundary at the end of the preroll has misaligned
+ * video and audio segments.
+ *
+ *
+ * PREROLL_AUDIO_VIDEO_MISALIGNMENT = 20;
+ */
+ public static final int PREROLL_AUDIO_VIDEO_MISALIGNMENT_VALUE = 20;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static AdBreakFindingType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static AdBreakFindingType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return AD_BREAK_FINDING_TYPE_UNSPECIFIED;
+ case 1:
+ return INTERNAL_ERROR;
+ case 2:
+ return AD_POD_DROPPED_TOO_MANY_AD_PODS;
+ case 3:
+ return EXCEEDS_MAX_FILLER;
+ case 4:
+ return ADS_STATUS_DROPPED_FOR_PREROLL;
+ case 5:
+ return ADS_STATUS_ALL_ADS_MISSING_ASSETS;
+ case 6:
+ return ADS_STATUS_OUT_OF_WINDOW;
+ case 7:
+ return ADS_STATUS_DISABLED;
+ case 8:
+ return ADS_STATUS_STORAGE_ERROR;
+ case 9:
+ return ADS_STATUS_EXPIRED;
+ case 10:
+ return ADS_STATUS_HOLIDAY;
+ case 11:
+ return ADS_STATUS_DROPPED_SLATE_UNAVAILABLE;
+ case 12:
+ return ADS_STATUS_NO_ADS_AVAILABLE_BEFORE_DEADLINE;
+ case 13:
+ return ADS_STATUS_INVALID_POD_REQUEST;
+ case 14:
+ return ADS_STATUS_DROPPED_FOR_MIDROLL;
+ case 15:
+ return ADS_STATUS_DROPPED_BREAK_DURATION_TOO_SHORT;
+ case 16:
+ return ADS_STATUS_DROPPED_STREAM_CREATED_AFTER_BREAK;
+ case 17:
+ return ADS_STATUS_DROPPED_MEDIA_ANALYSIS_UNAVAILABLE;
+ case 18:
+ return ADS_STATUS_UNKNOWN;
+ case 19:
+ return UNSERVED_BREAK;
+ case 20:
+ return PREROLL_AUDIO_VIDEO_MISALIGNMENT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Wrapper message for
+ * [AdBreakFindingType][google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.AdBreakFindingTypeEnum}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Wrapper message for
+ * [AdRequestFindingType][google.ads.admanager.v1.AdRequestFindingTypeEnum.AdRequestFindingType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.AdRequestFindingTypeEnum}
+ */
+@com.google.protobuf.Generated
+public final class AdRequestFindingTypeEnum extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AdRequestFindingTypeEnum)
+ AdRequestFindingTypeEnumOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdRequestFindingTypeEnum");
+ }
+
+ // Use AdRequestFindingTypeEnum.newBuilder() to construct.
+ private AdRequestFindingTypeEnum(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private AdRequestFindingTypeEnum() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_AdRequestFindingTypeEnum_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_AdRequestFindingTypeEnum_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.AdRequestFindingTypeEnum.class,
+ com.google.ads.admanager.v1.AdRequestFindingTypeEnum.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred while making an ad request.
+ *
+ *
+ * Protobuf enum {@code google.ads.admanager.v1.AdRequestFindingTypeEnum.AdRequestFindingType}
+ */
+ public enum AdRequestFindingType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * AD_REQUEST_FINDING_TYPE_UNSPECIFIED = 0;
+ */
+ AD_REQUEST_FINDING_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Internal DAI error.
+ *
+ *
+ * INTERNAL_ERROR = 1;
+ */
+ INTERNAL_ERROR(1),
+ /**
+ *
+ *
+ *
+ * An error while making an ad request.
+ *
+ *
+ * AD_REQUEST_ERROR = 2;
+ */
+ AD_REQUEST_ERROR(2),
+ /**
+ *
+ *
+ *
+ * Generic VAST parsing error.
+ *
+ *
+ * VAST_PARSE_ERROR = 3;
+ */
+ VAST_PARSE_ERROR(3),
+ /**
+ *
+ *
+ *
+ * AdSystem reported in VAST is not supported.
+ *
+ *
+ * UNSUPPORTED_AD_SYSTEM = 4;
+ */
+ UNSUPPORTED_AD_SYSTEM(4),
+ /**
+ *
+ *
+ *
+ * Ad element does not contain enough information to generate a unique
+ * transcode ID.
+ *
+ *
+ * CANNOT_FIND_UNIQUE_TRANSCODE_ID = 5;
+ */
+ CANNOT_FIND_UNIQUE_TRANSCODE_ID(5),
+ /**
+ *
+ *
+ *
+ * No InLine elements found in the Ad.
+ *
+ *
+ * MISSING_INLINE_ELEMENTS = 7;
+ */
+ MISSING_INLINE_ELEMENTS(7),
+ /**
+ *
+ *
+ *
+ * Reached the maximum number of VAST redirects.
+ *
+ *
+ * MAX_WRAPPER_DEPTH_REACHED = 8;
+ */
+ MAX_WRAPPER_DEPTH_REACHED(8),
+ /**
+ *
+ *
+ *
+ * Error while parsing ad tag.
+ *
+ *
+ * AD_TAG_PARSE_ERROR = 9;
+ */
+ AD_TAG_PARSE_ERROR(9),
+ /**
+ *
+ *
+ *
+ * Generic VMAP parsing error.
+ *
+ *
+ * VMAP_PARSE_ERROR = 10;
+ */
+ VMAP_PARSE_ERROR(10),
+ /**
+ *
+ *
+ *
+ * Invalid VMAP data (Able to parse VMAP but XML attributes have invalid
+ * data).
+ *
+ *
+ * INVALID_VMAP_RESPONSE = 11;
+ */
+ INVALID_VMAP_RESPONSE(11),
+ /**
+ *
+ *
+ *
+ * VMAP response contains no ad breaks.
+ *
+ *
+ * NO_AD_BREAKS_IN_VMAP = 12;
+ */
+ NO_AD_BREAKS_IN_VMAP(12),
+ /**
+ *
+ *
+ *
+ * VMAP contains custom ad source which is not supported.
+ *
+ *
+ * CUSTOM_AD_SOURCE_IN_VMAP = 13;
+ */
+ CUSTOM_AD_SOURCE_IN_VMAP(13),
+ /**
+ *
+ *
+ *
+ * VMAP contains an adbreak that is not supported.
+ *
+ *
+ * AD_BREAK_TYPE_NOT_SUPPORTED = 14;
+ */
+ AD_BREAK_TYPE_NOT_SUPPORTED(14),
+ /**
+ *
+ *
+ *
+ * VMAP contains an adbreak that has neither ad source nor tracking
+ * events.
+ *
+ *
+ * NEITHER_AD_SOURCE_NOR_TRACKING = 15;
+ */
+ NEITHER_AD_SOURCE_NOR_TRACKING(15),
+ /**
+ *
+ *
+ *
+ * Client doesn't support skippable ads. The ad was a skippable ad.
+ *
+ *
+ * SKIPPABLE_AD_NOT_SUPPORTED = 16;
+ */
+ SKIPPABLE_AD_NOT_SUPPORTED(16),
+ /**
+ *
+ *
+ *
+ * The request has timed out.
+ *
+ *
+ * AD_REQUEST_TIMEOUT = 17;
+ */
+ AD_REQUEST_TIMEOUT(17),
+ /**
+ *
+ *
+ *
+ * The same ad tag was already used in the same pod.
+ *
+ *
+ * DUPLICATE_AD_TAG = 18;
+ */
+ DUPLICATE_AD_TAG(18),
+ /**
+ *
+ *
+ *
+ * VMAP AdSource followRedirects is set as false.
+ *
+ *
+ * FOLLOW_REDIRECTS_IS_FALSE = 19;
+ */
+ FOLLOW_REDIRECTS_IS_FALSE(19),
+ /**
+ *
+ *
+ *
+ * VAST version is not supported.
+ *
+ *
+ * UNSUPPORTED_VAST_VERSION = 20;
+ */
+ UNSUPPORTED_VAST_VERSION(20),
+ /**
+ *
+ *
+ *
+ * No media files were found in the VAST ad.
+ *
+ *
+ * NO_VALID_MEDIAFILES_FOUND = 21;
+ */
+ NO_VALID_MEDIAFILES_FOUND(21),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdRequestFindingType");
+ }
+
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * AD_REQUEST_FINDING_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int AD_REQUEST_FINDING_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Internal DAI error.
+ *
+ *
+ * INTERNAL_ERROR = 1;
+ */
+ public static final int INTERNAL_ERROR_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * An error while making an ad request.
+ *
+ *
+ * AD_REQUEST_ERROR = 2;
+ */
+ public static final int AD_REQUEST_ERROR_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Generic VAST parsing error.
+ *
+ *
+ * VAST_PARSE_ERROR = 3;
+ */
+ public static final int VAST_PARSE_ERROR_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * AdSystem reported in VAST is not supported.
+ *
+ *
+ * UNSUPPORTED_AD_SYSTEM = 4;
+ */
+ public static final int UNSUPPORTED_AD_SYSTEM_VALUE = 4;
+
+ /**
+ *
+ *
+ *
+ * Ad element does not contain enough information to generate a unique
+ * transcode ID.
+ *
+ *
+ * CANNOT_FIND_UNIQUE_TRANSCODE_ID = 5;
+ */
+ public static final int CANNOT_FIND_UNIQUE_TRANSCODE_ID_VALUE = 5;
+
+ /**
+ *
+ *
+ *
+ * No InLine elements found in the Ad.
+ *
+ *
+ * MISSING_INLINE_ELEMENTS = 7;
+ */
+ public static final int MISSING_INLINE_ELEMENTS_VALUE = 7;
+
+ /**
+ *
+ *
+ *
+ * Reached the maximum number of VAST redirects.
+ *
+ *
+ * MAX_WRAPPER_DEPTH_REACHED = 8;
+ */
+ public static final int MAX_WRAPPER_DEPTH_REACHED_VALUE = 8;
+
+ /**
+ *
+ *
+ *
+ * Error while parsing ad tag.
+ *
+ *
+ * AD_TAG_PARSE_ERROR = 9;
+ */
+ public static final int AD_TAG_PARSE_ERROR_VALUE = 9;
+
+ /**
+ *
+ *
+ *
+ * Generic VMAP parsing error.
+ *
+ *
+ * VMAP_PARSE_ERROR = 10;
+ */
+ public static final int VMAP_PARSE_ERROR_VALUE = 10;
+
+ /**
+ *
+ *
+ *
+ * Invalid VMAP data (Able to parse VMAP but XML attributes have invalid
+ * data).
+ *
+ *
+ * INVALID_VMAP_RESPONSE = 11;
+ */
+ public static final int INVALID_VMAP_RESPONSE_VALUE = 11;
+
+ /**
+ *
+ *
+ *
+ * VMAP response contains no ad breaks.
+ *
+ *
+ * NO_AD_BREAKS_IN_VMAP = 12;
+ */
+ public static final int NO_AD_BREAKS_IN_VMAP_VALUE = 12;
+
+ /**
+ *
+ *
+ *
+ * VMAP contains custom ad source which is not supported.
+ *
+ *
+ * CUSTOM_AD_SOURCE_IN_VMAP = 13;
+ */
+ public static final int CUSTOM_AD_SOURCE_IN_VMAP_VALUE = 13;
+
+ /**
+ *
+ *
+ *
+ * VMAP contains an adbreak that is not supported.
+ *
+ *
+ * AD_BREAK_TYPE_NOT_SUPPORTED = 14;
+ */
+ public static final int AD_BREAK_TYPE_NOT_SUPPORTED_VALUE = 14;
+
+ /**
+ *
+ *
+ *
+ * VMAP contains an adbreak that has neither ad source nor tracking
+ * events.
+ *
+ *
+ * NEITHER_AD_SOURCE_NOR_TRACKING = 15;
+ */
+ public static final int NEITHER_AD_SOURCE_NOR_TRACKING_VALUE = 15;
+
+ /**
+ *
+ *
+ *
+ * Client doesn't support skippable ads. The ad was a skippable ad.
+ *
+ *
+ * SKIPPABLE_AD_NOT_SUPPORTED = 16;
+ */
+ public static final int SKIPPABLE_AD_NOT_SUPPORTED_VALUE = 16;
+
+ /**
+ *
+ *
+ *
+ * The request has timed out.
+ *
+ *
+ * AD_REQUEST_TIMEOUT = 17;
+ */
+ public static final int AD_REQUEST_TIMEOUT_VALUE = 17;
+
+ /**
+ *
+ *
+ *
+ * The same ad tag was already used in the same pod.
+ *
+ *
+ * DUPLICATE_AD_TAG = 18;
+ */
+ public static final int DUPLICATE_AD_TAG_VALUE = 18;
+
+ /**
+ *
+ *
+ *
+ * VMAP AdSource followRedirects is set as false.
+ *
+ *
+ * FOLLOW_REDIRECTS_IS_FALSE = 19;
+ */
+ public static final int FOLLOW_REDIRECTS_IS_FALSE_VALUE = 19;
+
+ /**
+ *
+ *
+ *
+ * VAST version is not supported.
+ *
+ *
+ * UNSUPPORTED_VAST_VERSION = 20;
+ */
+ public static final int UNSUPPORTED_VAST_VERSION_VALUE = 20;
+
+ /**
+ *
+ *
+ *
+ * No media files were found in the VAST ad.
+ *
+ *
+ * NO_VALID_MEDIAFILES_FOUND = 21;
+ */
+ public static final int NO_VALID_MEDIAFILES_FOUND_VALUE = 21;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static AdRequestFindingType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static AdRequestFindingType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return AD_REQUEST_FINDING_TYPE_UNSPECIFIED;
+ case 1:
+ return INTERNAL_ERROR;
+ case 2:
+ return AD_REQUEST_ERROR;
+ case 3:
+ return VAST_PARSE_ERROR;
+ case 4:
+ return UNSUPPORTED_AD_SYSTEM;
+ case 5:
+ return CANNOT_FIND_UNIQUE_TRANSCODE_ID;
+ case 7:
+ return MISSING_INLINE_ELEMENTS;
+ case 8:
+ return MAX_WRAPPER_DEPTH_REACHED;
+ case 9:
+ return AD_TAG_PARSE_ERROR;
+ case 10:
+ return VMAP_PARSE_ERROR;
+ case 11:
+ return INVALID_VMAP_RESPONSE;
+ case 12:
+ return NO_AD_BREAKS_IN_VMAP;
+ case 13:
+ return CUSTOM_AD_SOURCE_IN_VMAP;
+ case 14:
+ return AD_BREAK_TYPE_NOT_SUPPORTED;
+ case 15:
+ return NEITHER_AD_SOURCE_NOR_TRACKING;
+ case 16:
+ return SKIPPABLE_AD_NOT_SUPPORTED;
+ case 17:
+ return AD_REQUEST_TIMEOUT;
+ case 18:
+ return DUPLICATE_AD_TAG;
+ case 19:
+ return FOLLOW_REDIRECTS_IS_FALSE;
+ case 20:
+ return UNSUPPORTED_VAST_VERSION;
+ case 21:
+ return NO_VALID_MEDIAFILES_FOUND;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Wrapper message for
+ * [AdRequestFindingType][google.ads.admanager.v1.AdRequestFindingTypeEnum.AdRequestFindingType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.AdRequestFindingTypeEnum}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Wrapper message for
+ * [AdResponseType][google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.AdResponseTypeEnum}
+ */
+@com.google.protobuf.Generated
+public final class AdResponseTypeEnum extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.AdResponseTypeEnum)
+ AdResponseTypeEnumOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdResponseTypeEnum");
+ }
+
+ // Use AdResponseTypeEnum.newBuilder() to construct.
+ private AdResponseTypeEnum(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private AdResponseTypeEnum() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_AdResponseTypeEnum_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_AdResponseTypeEnum_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.AdResponseTypeEnum.class,
+ com.google.ads.admanager.v1.AdResponseTypeEnum.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * The type of the ad response.
+ *
+ *
+ * Protobuf enum {@code google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType}
+ */
+ public enum AdResponseType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * AD_RESPONSE_TYPE_UNSPECIFIED = 0;
+ */
+ AD_RESPONSE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * The ad response is VAST (Video Ad Serving Template).
+ *
+ *
+ * VAST = 1;
+ */
+ VAST(1),
+ /**
+ *
+ *
+ *
+ * The ad response is VMAP (Video Multiple Ad Playlist).
+ *
+ *
+ * VMAP = 2;
+ */
+ VMAP(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdResponseType");
+ }
+
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * AD_RESPONSE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int AD_RESPONSE_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * The ad response is VAST (Video Ad Serving Template).
+ *
+ *
+ * VAST = 1;
+ */
+ public static final int VAST_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * The ad response is VMAP (Video Multiple Ad Playlist).
+ *
+ *
+ * VMAP = 2;
+ */
+ public static final int VMAP_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static AdResponseType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static AdResponseType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return AD_RESPONSE_TYPE_UNSPECIFIED;
+ case 1:
+ return VAST;
+ case 2:
+ return VMAP;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Wrapper message for
+ * [AdResponseType][google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.AdResponseTypeEnum}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Wrapper message for
+ * [BreakType][google.ads.admanager.v1.BreakTypeEnum.BreakType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.BreakTypeEnum}
+ */
+@com.google.protobuf.Generated
+public final class BreakTypeEnum extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BreakTypeEnum)
+ BreakTypeEnumOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "BreakTypeEnum");
+ }
+
+ // Use BreakTypeEnum.newBuilder() to construct.
+ private BreakTypeEnum(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private BreakTypeEnum() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_BreakTypeEnum_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_BreakTypeEnum_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.BreakTypeEnum.class,
+ com.google.ads.admanager.v1.BreakTypeEnum.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Different break types that DAI supports for ad insertion.
+ *
+ *
+ * Protobuf enum {@code google.ads.admanager.v1.BreakTypeEnum.BreakType}
+ */
+ public enum BreakType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * BREAK_TYPE_UNSPECIFIED = 0;
+ */
+ BREAK_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Before content.
+ *
+ *
+ * PREROLL = 1;
+ */
+ PREROLL(1),
+ /**
+ *
+ *
+ *
+ * In the middle of content.
+ *
+ *
+ * MIDROLL = 2;
+ */
+ MIDROLL(2),
+ /**
+ *
+ *
+ *
+ * After content.
+ *
+ *
+ * POSTROLL = 3;
+ */
+ POSTROLL(3),
+ /**
+ *
+ *
+ *
+ * Non-linear auxiliary ads run concurrently with the content (e.g., Pause
+ * Ads).
+ *
+ *
+ * AUXILIARY = 4;
+ */
+ AUXILIARY(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "BreakType");
+ }
+
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * BREAK_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int BREAK_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Before content.
+ *
+ *
+ * PREROLL = 1;
+ */
+ public static final int PREROLL_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * In the middle of content.
+ *
+ *
+ * MIDROLL = 2;
+ */
+ public static final int MIDROLL_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * After content.
+ *
+ *
+ * POSTROLL = 3;
+ */
+ public static final int POSTROLL_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * Non-linear auxiliary ads run concurrently with the content (e.g., Pause
+ * Ads).
+ *
+ *
+ * AUXILIARY = 4;
+ */
+ public static final int AUXILIARY_VALUE = 4;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static BreakType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static BreakType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return BREAK_TYPE_UNSPECIFIED;
+ case 1:
+ return PREROLL;
+ case 2:
+ return MIDROLL;
+ case 3:
+ return POSTROLL;
+ case 4:
+ return AUXILIARY;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Wrapper message for
+ * [BreakType][google.ads.admanager.v1.BreakTypeEnum.BreakType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.BreakTypeEnum}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Wrapper message for
+ * [CreativeFindingType][google.ads.admanager.v1.CreativeFindingTypeEnum.CreativeFindingType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.CreativeFindingTypeEnum}
+ */
+@com.google.protobuf.Generated
+public final class CreativeFindingTypeEnum extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeFindingTypeEnum)
+ CreativeFindingTypeEnumOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "CreativeFindingTypeEnum");
+ }
+
+ // Use CreativeFindingTypeEnum.newBuilder() to construct.
+ private CreativeFindingTypeEnum(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private CreativeFindingTypeEnum() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_CreativeFindingTypeEnum_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_CreativeFindingTypeEnum_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.CreativeFindingTypeEnum.class,
+ com.google.ads.admanager.v1.CreativeFindingTypeEnum.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred while looking up creative information.
+ *
+ *
+ * Protobuf enum {@code google.ads.admanager.v1.CreativeFindingTypeEnum.CreativeFindingType}
+ */
+ public enum CreativeFindingType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * CREATIVE_FINDING_TYPE_UNSPECIFIED = 0;
+ */
+ CREATIVE_FINDING_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Ad was dropped because the VAST document returned did not contain
+ * enough information to successfully identify the creative media.
+ *
+ *
+ * UNIDENTIFIED_AD_CREATIVE = 1;
+ */
+ UNIDENTIFIED_AD_CREATIVE(1),
+ /**
+ *
+ *
+ *
+ * Ad was dropped because the system has no knowledge of the creative
+ * media to insert into the DAI session. Creative will be reactively loaded
+ * into the system for subsequent use.
+ *
+ *
+ * UNKNOWN_AD_CREATIVE = 2;
+ */
+ UNKNOWN_AD_CREATIVE(2),
+ /**
+ *
+ *
+ *
+ * Error occurred when performing lookup on the ad creative for insertion
+ * into the DAI session.
+ *
+ *
+ * AD_CREATIVE_LOOKUP_FAILED = 3;
+ */
+ AD_CREATIVE_LOOKUP_FAILED(3),
+ /**
+ *
+ *
+ *
+ * Creative has been disabled from serving.
+ *
+ *
+ * DISABLED_AD_CREATIVE = 4;
+ */
+ DISABLED_AD_CREATIVE(4),
+ /**
+ *
+ *
+ *
+ * Ad creative is known but failed to acquire / transcode for serving.
+ *
+ *
+ * FAILED_AD_CREATIVE = 5;
+ */
+ FAILED_AD_CREATIVE(5),
+ /**
+ *
+ *
+ *
+ * Ad creative does not have suitable encodings available to be
+ * successfully stitched into a DAI session.
+ *
+ *
+ * AD_CREATIVE_ENCODING_MATCH_FAILURE = 6;
+ */
+ AD_CREATIVE_ENCODING_MATCH_FAILURE(6),
+ /**
+ *
+ *
+ *
+ * Incorrect number of frames available for creative when exact frame
+ * count is required for a specific duration.
+ *
+ *
+ * MISMATCHED_FRAME_COUNT = 7;
+ */
+ MISMATCHED_FRAME_COUNT(7),
+ /**
+ *
+ *
+ *
+ * Ad creative doesn't have any encodings available.
+ *
+ *
+ * MISSING_TRANSCODES = 8;
+ */
+ MISSING_TRANSCODES(8),
+ /**
+ *
+ *
+ *
+ * Ad creative is dropped due to pod trimming to fit the break.
+ *
+ *
+ * AD_DROPPED_TO_FIT_BREAK = 9;
+ */
+ AD_DROPPED_TO_FIT_BREAK(9),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "CreativeFindingType");
+ }
+
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * CREATIVE_FINDING_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int CREATIVE_FINDING_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * Ad was dropped because the VAST document returned did not contain
+ * enough information to successfully identify the creative media.
+ *
+ *
+ * UNIDENTIFIED_AD_CREATIVE = 1;
+ */
+ public static final int UNIDENTIFIED_AD_CREATIVE_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * Ad was dropped because the system has no knowledge of the creative
+ * media to insert into the DAI session. Creative will be reactively loaded
+ * into the system for subsequent use.
+ *
+ *
+ * UNKNOWN_AD_CREATIVE = 2;
+ */
+ public static final int UNKNOWN_AD_CREATIVE_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Error occurred when performing lookup on the ad creative for insertion
+ * into the DAI session.
+ *
+ *
+ * AD_CREATIVE_LOOKUP_FAILED = 3;
+ */
+ public static final int AD_CREATIVE_LOOKUP_FAILED_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * Creative has been disabled from serving.
+ *
+ *
+ * DISABLED_AD_CREATIVE = 4;
+ */
+ public static final int DISABLED_AD_CREATIVE_VALUE = 4;
+
+ /**
+ *
+ *
+ *
+ * Ad creative is known but failed to acquire / transcode for serving.
+ *
+ *
+ * FAILED_AD_CREATIVE = 5;
+ */
+ public static final int FAILED_AD_CREATIVE_VALUE = 5;
+
+ /**
+ *
+ *
+ *
+ * Ad creative does not have suitable encodings available to be
+ * successfully stitched into a DAI session.
+ *
+ *
+ * AD_CREATIVE_ENCODING_MATCH_FAILURE = 6;
+ */
+ public static final int AD_CREATIVE_ENCODING_MATCH_FAILURE_VALUE = 6;
+
+ /**
+ *
+ *
+ *
+ * Incorrect number of frames available for creative when exact frame
+ * count is required for a specific duration.
+ *
+ *
+ * MISMATCHED_FRAME_COUNT = 7;
+ */
+ public static final int MISMATCHED_FRAME_COUNT_VALUE = 7;
+
+ /**
+ *
+ *
+ *
+ * Ad creative doesn't have any encodings available.
+ *
+ *
+ * MISSING_TRANSCODES = 8;
+ */
+ public static final int MISSING_TRANSCODES_VALUE = 8;
+
+ /**
+ *
+ *
+ *
+ * Ad creative is dropped due to pod trimming to fit the break.
+ *
+ *
+ * AD_DROPPED_TO_FIT_BREAK = 9;
+ */
+ public static final int AD_DROPPED_TO_FIT_BREAK_VALUE = 9;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static CreativeFindingType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CreativeFindingType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CREATIVE_FINDING_TYPE_UNSPECIFIED;
+ case 1:
+ return UNIDENTIFIED_AD_CREATIVE;
+ case 2:
+ return UNKNOWN_AD_CREATIVE;
+ case 3:
+ return AD_CREATIVE_LOOKUP_FAILED;
+ case 4:
+ return DISABLED_AD_CREATIVE;
+ case 5:
+ return FAILED_AD_CREATIVE;
+ case 6:
+ return AD_CREATIVE_ENCODING_MATCH_FAILURE;
+ case 7:
+ return MISMATCHED_FRAME_COUNT;
+ case 8:
+ return MISSING_TRANSCODES;
+ case 9:
+ return AD_DROPPED_TO_FIT_BREAK;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Wrapper message for
+ * [CreativeFindingType][google.ads.admanager.v1.CreativeFindingTypeEnum.CreativeFindingType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.CreativeFindingTypeEnum}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Wrapper message for
+ * [CreativeIdType][google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.CreativeIdTypeEnum}
+ */
+@com.google.protobuf.Generated
+public final class CreativeIdTypeEnum extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreativeIdTypeEnum)
+ CreativeIdTypeEnumOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "CreativeIdTypeEnum");
+ }
+
+ // Use CreativeIdTypeEnum.newBuilder() to construct.
+ private CreativeIdTypeEnum(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private CreativeIdTypeEnum() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_CreativeIdTypeEnum_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionEnumsProto
+ .internal_static_google_ads_admanager_v1_CreativeIdTypeEnum_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.CreativeIdTypeEnum.class,
+ com.google.ads.admanager.v1.CreativeIdTypeEnum.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * The ID types in a VAST response to uniquely identify a creative.
+ *
+ *
+ * Protobuf enum {@code google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType}
+ */
+ public enum CreativeIdType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * CREATIVE_ID_TYPE_UNSPECIFIED = 0;
+ */
+ CREATIVE_ID_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * An ad server-defined ID string for the ad.
+ *
+ *
+ * AD_ID = 1;
+ */
+ AD_ID(1),
+ /**
+ *
+ *
+ *
+ * An ad server-defined ID for the creative.
+ *
+ *
+ * CREATIVE_ID = 2;
+ */
+ CREATIVE_ID(2),
+ /**
+ *
+ *
+ *
+ * Identifies the ad with which the creative is served. This is an
+ * optional attribute of Creative element in the VAST specification.
+ *
+ *
+ * CREATIVE_AD_ID = 3;
+ */
+ CREATIVE_AD_ID(3),
+ /**
+ *
+ *
+ *
+ * A media URI was used to generate a hash value, hopefully unique to this
+ * creative.
+ *
+ *
+ * MEDIA_URI_HASH = 4;
+ */
+ MEDIA_URI_HASH(4),
+ /**
+ *
+ *
+ *
+ * Universal Ad ID of the creative as defined in the VAST 4.0 spec:
+ * http://www.iab.com/wp-content/uploads/2016/04/VAST4.0_Updated_April_2016.pdf
+ * Section 3.7.1
+ * The ID string format is "<Registry>|<Universal Ad ID>".
+ *
+ *
+ * UNIVERSAL_AD_ID = 5;
+ */
+ UNIVERSAL_AD_ID(5),
+ /**
+ *
+ *
+ *
+ * ID value is the path of the URL of the highest bitrate mediafile found in
+ * the response.
+ *
+ *
+ * MEDIA_URI_PATH = 6;
+ */
+ MEDIA_URI_PATH(6),
+ /**
+ *
+ *
+ *
+ * ID value is the VAST/Ad/Inline/Creative `adId` attribute. If absent, the
+ * value will fallback to the VAST/Ad/Inline/Creative `id` attribute. If
+ * that is also absent, the value will again fallback to the VAST/Ad `id`
+ * attribute.
+ *
+ *
+ * CREATIVE_AD_ID_WITH_FALLBACK = 8;
+ */
+ CREATIVE_AD_ID_WITH_FALLBACK(8),
+ /**
+ *
+ *
+ *
+ * ID value is the URL of the highest bitrate mediafile found in the
+ * response.
+ *
+ *
+ * MEDIA_URI = 9;
+ */
+ MEDIA_URI(9),
+ /**
+ *
+ *
+ *
+ * ID value is a projection of the URL of the highest bitrate mediafile
+ * found in the response.
+ *
+ *
+ * CANONICALIZED_MEDIA_URI = 11;
+ */
+ CANONICALIZED_MEDIA_URI(11),
+ /**
+ *
+ *
+ *
+ * ID value is the Google Video Registry ID.
+ *
+ *
+ * GOOGLE_VIDEO_REGISTRY_ID = 10;
+ */
+ GOOGLE_VIDEO_REGISTRY_ID(10),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "CreativeIdType");
+ }
+
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ *
+ * CREATIVE_ID_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int CREATIVE_ID_TYPE_UNSPECIFIED_VALUE = 0;
+
+ /**
+ *
+ *
+ *
+ * An ad server-defined ID string for the ad.
+ *
+ *
+ * AD_ID = 1;
+ */
+ public static final int AD_ID_VALUE = 1;
+
+ /**
+ *
+ *
+ *
+ * An ad server-defined ID for the creative.
+ *
+ *
+ * CREATIVE_ID = 2;
+ */
+ public static final int CREATIVE_ID_VALUE = 2;
+
+ /**
+ *
+ *
+ *
+ * Identifies the ad with which the creative is served. This is an
+ * optional attribute of Creative element in the VAST specification.
+ *
+ *
+ * CREATIVE_AD_ID = 3;
+ */
+ public static final int CREATIVE_AD_ID_VALUE = 3;
+
+ /**
+ *
+ *
+ *
+ * A media URI was used to generate a hash value, hopefully unique to this
+ * creative.
+ *
+ *
+ * MEDIA_URI_HASH = 4;
+ */
+ public static final int MEDIA_URI_HASH_VALUE = 4;
+
+ /**
+ *
+ *
+ *
+ * Universal Ad ID of the creative as defined in the VAST 4.0 spec:
+ * http://www.iab.com/wp-content/uploads/2016/04/VAST4.0_Updated_April_2016.pdf
+ * Section 3.7.1
+ * The ID string format is "<Registry>|<Universal Ad ID>".
+ *
+ *
+ * UNIVERSAL_AD_ID = 5;
+ */
+ public static final int UNIVERSAL_AD_ID_VALUE = 5;
+
+ /**
+ *
+ *
+ *
+ * ID value is the path of the URL of the highest bitrate mediafile found in
+ * the response.
+ *
+ *
+ * MEDIA_URI_PATH = 6;
+ */
+ public static final int MEDIA_URI_PATH_VALUE = 6;
+
+ /**
+ *
+ *
+ *
+ * ID value is the VAST/Ad/Inline/Creative `adId` attribute. If absent, the
+ * value will fallback to the VAST/Ad/Inline/Creative `id` attribute. If
+ * that is also absent, the value will again fallback to the VAST/Ad `id`
+ * attribute.
+ *
+ *
+ * CREATIVE_AD_ID_WITH_FALLBACK = 8;
+ */
+ public static final int CREATIVE_AD_ID_WITH_FALLBACK_VALUE = 8;
+
+ /**
+ *
+ *
+ *
+ * ID value is the URL of the highest bitrate mediafile found in the
+ * response.
+ *
+ *
+ * MEDIA_URI = 9;
+ */
+ public static final int MEDIA_URI_VALUE = 9;
+
+ /**
+ *
+ *
+ *
+ * ID value is a projection of the URL of the highest bitrate mediafile
+ * found in the response.
+ *
+ *
+ * CANONICALIZED_MEDIA_URI = 11;
+ */
+ public static final int CANONICALIZED_MEDIA_URI_VALUE = 11;
+
+ /**
+ *
+ *
+ *
+ * ID value is the Google Video Registry ID.
+ *
+ *
+ * GOOGLE_VIDEO_REGISTRY_ID = 10;
+ */
+ public static final int GOOGLE_VIDEO_REGISTRY_ID_VALUE = 10;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static CreativeIdType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CreativeIdType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CREATIVE_ID_TYPE_UNSPECIFIED;
+ case 1:
+ return AD_ID;
+ case 2:
+ return CREATIVE_ID;
+ case 3:
+ return CREATIVE_AD_ID;
+ case 4:
+ return MEDIA_URI_HASH;
+ case 5:
+ return UNIVERSAL_AD_ID;
+ case 6:
+ return MEDIA_URI_PATH;
+ case 8:
+ return CREATIVE_AD_ID_WITH_FALLBACK;
+ case 9:
+ return MEDIA_URI;
+ case 11:
+ return CANONICALIZED_MEDIA_URI;
+ case 10:
+ return GOOGLE_VIDEO_REGISTRY_ID;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Wrapper message for
+ * [CreativeIdType][google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType]
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.CreativeIdTypeEnum}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Representation of an individual Dynamic Ad Insertion (DAI) session watching a
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resource or VOD
+ * [Content][google.ads.admanager.v1.Content] resource. Use the
+ * Stream Activity Monitor (SAM) on the Google Ad Manager UI to look up this
+ * session. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession}
+ */
+@com.google.protobuf.Generated
+public final class DaiSession extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession)
+ DaiSessionOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "DaiSession");
+ }
+
+ // Use DaiSession.newBuilder() to construct.
+ private DaiSession(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private DaiSession() {
+ name_ = "";
+ findings_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 5:
+ return internalGetAdSelections();
+ case 6:
+ return internalGetAdPods();
+ case 7:
+ return internalGetAdBreaks();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.class,
+ com.google.ads.admanager.v1.DaiSession.Builder.class);
+ }
+
+ public interface CreationContextOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DaiSession.CreationContext)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the linearInfo field is set.
+ */
+ boolean hasLinearInfo();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The linearInfo.
+ */
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo getLinearInfo();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfoOrBuilder
+ getLinearInfoOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the vodInfo field is set.
+ */
+ boolean hasVodInfo();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The vodInfo.
+ */
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo getVodInfo();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfoOrBuilder getVodInfoOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the debugKey field is set.
+ */
+ boolean hasDebugKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The debugKey.
+ */
+ java.lang.String getDebugKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for debugKey.
+ */
+ com.google.protobuf.ByteString getDebugKeyBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the contentTitle field is set.
+ */
+ boolean hasContentTitle();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The contentTitle.
+ */
+ java.lang.String getContentTitle();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for contentTitle.
+ */
+ com.google.protobuf.ByteString getContentTitleBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the sessionTitle field is set.
+ */
+ boolean hasSessionTitle();
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The sessionTitle.
+ */
+ java.lang.String getSessionTitle();
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for sessionTitle.
+ */
+ com.google.protobuf.ByteString getSessionTitleBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the streamCreateRequest field is set.
+ */
+ boolean hasStreamCreateRequest();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The streamCreateRequest.
+ */
+ com.google.ads.admanager.v1.DaiSession.HttpRequest getStreamCreateRequest();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder getStreamCreateRequestOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the stitchingType field is set.
+ */
+ boolean hasStitchingType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for stitchingType.
+ */
+ int getStitchingTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The stitchingType.
+ */
+ com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType getStitchingType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the reportingType field is set.
+ */
+ boolean hasReportingType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for reportingType.
+ */
+ int getReportingTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The reportingType.
+ */
+ com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType getReportingType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the parameter `dai-istl` on the stream request is
+ * set to true. This parameter is only accepted for
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resources
+ * with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional bool interstitial_enabled = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the interstitialEnabled field is set.
+ */
+ boolean hasInterstitialEnabled();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the parameter `dai-istl` on the stream request is
+ * set to true. This parameter is only accepted for
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resources
+ * with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional bool interstitial_enabled = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The interstitialEnabled.
+ */
+ boolean getInterstitialEnabled();
+
+ com.google.ads.admanager.v1.DaiSession.CreationContext.ContentInfoCase getContentInfoCase();
+ }
+
+ /**
+ *
+ *
+ *
+ * Context data to create the DAI session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.CreationContext}
+ */
+ public static final class CreationContext extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.CreationContext)
+ CreationContextOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "CreationContext");
+ }
+
+ // Use CreationContext.newBuilder() to construct.
+ private CreationContext(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private CreationContext() {
+ debugKey_ = "";
+ contentTitle_ = "";
+ sessionTitle_ = "";
+ stitchingType_ = 0;
+ reportingType_ = 0;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_CreationContext_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_CreationContext_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.class,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.Builder.class);
+ }
+
+ public interface VodInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DaiSession.CreationContext.VodInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the content field is set.
+ */
+ boolean hasContent();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The content.
+ */
+ java.lang.String getContent();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for content.
+ */
+ com.google.protobuf.ByteString getContentBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The identifier of the content source from which Google Ad
+ * Manager ingested the [Content][google.ads.admanager.v1.Content]
+ * resource associated with this session. For more information, see
+ * [Create a content source for video on
+ * demand](https://support.google.com/admanager/answer/7064112).
+ *
+ *
+ * optional int64 cms_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the cmsId field is set.
+ */
+ boolean hasCmsId();
+
+ /**
+ *
+ *
+ *
+ * Output only. The identifier of the content source from which Google Ad
+ * Manager ingested the [Content][google.ads.admanager.v1.Content]
+ * resource associated with this session. For more information, see
+ * [Create a content source for video on
+ * demand](https://support.google.com/admanager/answer/7064112).
+ *
+ *
+ * optional int64 cms_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The cmsId.
+ */
+ long getCmsId();
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the vid field is set.
+ */
+ boolean hasVid();
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The vid.
+ */
+ java.lang.String getVid();
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for vid.
+ */
+ com.google.protobuf.ByteString getVidBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return A list containing the cuePoints.
+ */
+ java.util.List
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of cuePoints.
+ */
+ int getCuePointsCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param index The index of the element to return.
+ * @return The cuePoints at the given index.
+ */
+ long getCuePoints(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the contentDuration field is set.
+ */
+ boolean hasContentDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The contentDuration.
+ */
+ com.google.protobuf.Duration getContentDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getContentDurationOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The VOD [Content][google.ads.admanager.v1.Content] resource
+ * in the stream request that creates the DAI session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.CreationContext.VodInfo}
+ */
+ public static final class VodInfo extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.CreationContext.VodInfo)
+ VodInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "VodInfo");
+ }
+
+ // Use VodInfo.newBuilder() to construct.
+ private VodInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private VodInfo() {
+ content_ = "";
+ vid_ = "";
+ cuePoints_ = emptyLongList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_CreationContext_VodInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_CreationContext_VodInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.class,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int CONTENT_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object content_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the content field is set.
+ */
+ @java.lang.Override
+ public boolean hasContent() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The content.
+ */
+ @java.lang.Override
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ 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();
+ content_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for content.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CMS_ID_FIELD_NUMBER = 1;
+ private long cmsId_ = 0L;
+
+ /**
+ *
+ *
+ *
+ * Output only. The identifier of the content source from which Google Ad
+ * Manager ingested the [Content][google.ads.admanager.v1.Content]
+ * resource associated with this session. For more information, see
+ * [Create a content source for video on
+ * demand](https://support.google.com/admanager/answer/7064112).
+ *
+ *
+ * optional int64 cms_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the cmsId field is set.
+ */
+ @java.lang.Override
+ public boolean hasCmsId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The identifier of the content source from which Google Ad
+ * Manager ingested the [Content][google.ads.admanager.v1.Content]
+ * resource associated with this session. For more information, see
+ * [Create a content source for video on
+ * demand](https://support.google.com/admanager/answer/7064112).
+ *
+ *
+ * optional int64 cms_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The cmsId.
+ */
+ @java.lang.Override
+ public long getCmsId() {
+ return cmsId_;
+ }
+
+ public static final int VID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object vid_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the vid field is set.
+ */
+ @java.lang.Override
+ public boolean hasVid() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The vid.
+ */
+ @java.lang.Override
+ public java.lang.String getVid() {
+ java.lang.Object ref = vid_;
+ 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();
+ vid_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for vid.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getVidBytes() {
+ java.lang.Object ref = vid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ vid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CUE_POINTS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.LongList cuePoints_ = emptyLongList();
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return A list containing the cuePoints.
+ */
+ @java.lang.Override
+ public java.util.List
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of cuePoints.
+ */
+ public int getCuePointsCount() {
+ return cuePoints_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param index The index of the element to return.
+ * @return The cuePoints at the given index.
+ */
+ public long getCuePoints(int index) {
+ return cuePoints_.getLong(index);
+ }
+
+ private int cuePointsMemoizedSerializedSize = -1;
+
+ public static final int CONTENT_DURATION_FIELD_NUMBER = 5;
+ private com.google.protobuf.Duration contentDuration_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the contentDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasContentDuration() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The contentDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getContentDuration() {
+ return contentDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : contentDuration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getContentDurationOrBuilder() {
+ return contentDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : contentDuration_;
+ }
+
+ 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 {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(1, cmsId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, vid_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, content_);
+ }
+ if (getCuePointsList().size() > 0) {
+ output.writeUInt32NoTag(34);
+ output.writeUInt32NoTag(cuePointsMemoizedSerializedSize);
+ }
+ for (int i = 0; i < cuePoints_.size(); i++) {
+ output.writeInt64NoTag(cuePoints_.getLong(i));
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(5, getContentDuration());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, cmsId_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, vid_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, content_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < cuePoints_.size(); i++) {
+ dataSize +=
+ com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(cuePoints_.getLong(i));
+ }
+ size += dataSize;
+ if (!getCuePointsList().isEmpty()) {
+ size += 1;
+ size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
+ }
+ cuePointsMemoizedSerializedSize = dataSize;
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getContentDuration());
+ }
+ 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.admanager.v1.DaiSession.CreationContext.VodInfo)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo other =
+ (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo) obj;
+
+ if (hasContent() != other.hasContent()) return false;
+ if (hasContent()) {
+ if (!getContent().equals(other.getContent())) return false;
+ }
+ if (hasCmsId() != other.hasCmsId()) return false;
+ if (hasCmsId()) {
+ if (getCmsId() != other.getCmsId()) return false;
+ }
+ if (hasVid() != other.hasVid()) return false;
+ if (hasVid()) {
+ if (!getVid().equals(other.getVid())) return false;
+ }
+ if (!getCuePointsList().equals(other.getCuePointsList())) return false;
+ if (hasContentDuration() != other.hasContentDuration()) return false;
+ if (hasContentDuration()) {
+ if (!getContentDuration().equals(other.getContentDuration())) 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 (hasContent()) {
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ }
+ if (hasCmsId()) {
+ hash = (37 * hash) + CMS_ID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCmsId());
+ }
+ if (hasVid()) {
+ hash = (37 * hash) + VID_FIELD_NUMBER;
+ hash = (53 * hash) + getVid().hashCode();
+ }
+ if (getCuePointsCount() > 0) {
+ hash = (37 * hash) + CUE_POINTS_FIELD_NUMBER;
+ hash = (53 * hash) + getCuePointsList().hashCode();
+ }
+ if (hasContentDuration()) {
+ hash = (37 * hash) + CONTENT_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getContentDuration().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo 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.admanager.v1.DaiSession.CreationContext.VodInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo 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.admanager.v1.DaiSession.CreationContext.VodInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.CreationContext.VodInfo 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The VOD [Content][google.ads.admanager.v1.Content] resource
+ * in the stream request that creates the DAI session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.CreationContext.VodInfo}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the content field is set.
+ */
+ public boolean hasContent() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The content.
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for content.
+ */
+ public com.google.protobuf.ByteString getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ content_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearContent() {
+ content_ = getDefaultInstance().getContent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.Content.name] field of
+ * the VOD [Content][google.ads.admanager.v1.Content]
+ * resource.
+ *
+ *
+ *
+ * optional string content = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ content_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private long cmsId_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The identifier of the content source from which Google Ad
+ * Manager ingested the [Content][google.ads.admanager.v1.Content]
+ * resource associated with this session. For more information, see
+ * [Create a content source for video on
+ * demand](https://support.google.com/admanager/answer/7064112).
+ *
+ *
+ * optional int64 cms_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the cmsId field is set.
+ */
+ @java.lang.Override
+ public boolean hasCmsId() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The identifier of the content source from which Google Ad
+ * Manager ingested the [Content][google.ads.admanager.v1.Content]
+ * resource associated with this session. For more information, see
+ * [Create a content source for video on
+ * demand](https://support.google.com/admanager/answer/7064112).
+ *
+ *
+ * optional int64 cms_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The cmsId.
+ */
+ @java.lang.Override
+ public long getCmsId() {
+ return cmsId_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The identifier of the content source from which Google Ad
+ * Manager ingested the [Content][google.ads.admanager.v1.Content]
+ * resource associated with this session. For more information, see
+ * [Create a content source for video on
+ * demand](https://support.google.com/admanager/answer/7064112).
+ *
+ *
+ * optional int64 cms_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The cmsId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCmsId(long value) {
+
+ cmsId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The identifier of the content source from which Google Ad
+ * Manager ingested the [Content][google.ads.admanager.v1.Content]
+ * resource associated with this session. For more information, see
+ * [Create a content source for video on
+ * demand](https://support.google.com/admanager/answer/7064112).
+ *
+ *
+ * optional int64 cms_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCmsId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ cmsId_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object vid_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the vid field is set.
+ */
+ public boolean hasVid() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The vid.
+ */
+ public java.lang.String getVid() {
+ java.lang.Object ref = vid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ vid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for vid.
+ */
+ public com.google.protobuf.ByteString getVidBytes() {
+ java.lang.Object ref = vid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ vid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The vid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ vid_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearVid() {
+ vid_ = getDefaultInstance().getVid();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The video ID of the
+ * [Content][google.ads.admanager.v1.Content] resource
+ * that this session is associated with. This value is the same as the
+ * [CmsContent.cms_content_id][google.ads.admanager.v1.CmsContent.cms_content_id]
+ * field. For details, see [Content ingestion and best
+ * practices](https://support.google.com/admanager/answer/6057894).
+ *
+ *
+ * optional string vid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for vid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setVidBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ vid_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Internal.LongList cuePoints_ = emptyLongList();
+
+ private void ensureCuePointsIsMutable() {
+ if (!cuePoints_.isModifiable()) {
+ cuePoints_ = makeMutableCopy(cuePoints_);
+ }
+ bitField0_ |= 0x00000008;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return A list containing the cuePoints.
+ */
+ public java.util.List
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of cuePoints.
+ */
+ public int getCuePointsCount() {
+ return cuePoints_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param index The index of the element to return.
+ * @return The cuePoints at the given index.
+ */
+ public long getCuePoints(int index) {
+ return cuePoints_.getLong(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param index The index to set the value at.
+ * @param value The cuePoints to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCuePoints(int index, long value) {
+
+ ensureCuePointsIsMutable();
+ cuePoints_.setLong(index, value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The cuePoints to add.
+ * @return This builder for chaining.
+ */
+ public Builder addCuePoints(long value) {
+
+ ensureCuePointsIsMutable();
+ cuePoints_.addLong(value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param values The cuePoints to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllCuePoints(java.lang.Iterable extends java.lang.Long> values) {
+ ensureCuePointsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cuePoints_);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The cue points detected in the ingested VOD content
+ * manifest. Stored in milliseconds starting from the beginning of the
+ * content.
+ *
+ *
+ * repeated int64 cue_points = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCuePoints() {
+ cuePoints_ = emptyLongList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration contentDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ contentDurationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the contentDuration field is set.
+ */
+ public boolean hasContentDuration() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The contentDuration.
+ */
+ public com.google.protobuf.Duration getContentDuration() {
+ if (contentDurationBuilder_ == null) {
+ return contentDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : contentDuration_;
+ } else {
+ return contentDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setContentDuration(com.google.protobuf.Duration value) {
+ if (contentDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ contentDuration_ = value;
+ } else {
+ contentDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setContentDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (contentDurationBuilder_ == null) {
+ contentDuration_ = builderForValue.build();
+ } else {
+ contentDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeContentDuration(com.google.protobuf.Duration value) {
+ if (contentDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && contentDuration_ != null
+ && contentDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getContentDurationBuilder().mergeFrom(value);
+ } else {
+ contentDuration_ = value;
+ }
+ } else {
+ contentDurationBuilder_.mergeFrom(value);
+ }
+ if (contentDuration_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearContentDuration() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ contentDuration_ = null;
+ if (contentDurationBuilder_ != null) {
+ contentDurationBuilder_.dispose();
+ contentDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getContentDurationBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return internalGetContentDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getContentDurationOrBuilder() {
+ if (contentDurationBuilder_ != null) {
+ return contentDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return contentDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : contentDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VOD
+ * [Content.duration][google.ads.admanager.v1.Content.duration]
+ * field. Represents the duration of the content without ads.
+ *
+ *
+ *
+ * .google.protobuf.Duration content_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetContentDurationFieldBuilder() {
+ if (contentDurationBuilder_ == null) {
+ contentDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getContentDuration(), getParentForChildren(), isClean());
+ contentDuration_ = null;
+ }
+ return contentDurationBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.CreationContext.VodInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.CreationContext.VodInfo)
+ private static final com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the liveStream field is set.
+ */
+ boolean hasLiveStream();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The liveStream.
+ */
+ java.lang.String getLiveStream();
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for liveStream.
+ */
+ com.google.protobuf.ByteString getLiveStreamBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the assetKey field is set.
+ */
+ boolean hasAssetKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The assetKey.
+ */
+ java.lang.String getAssetKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for assetKey.
+ */
+ com.google.protobuf.ByteString getAssetKeyBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the customAssetKey field is set.
+ */
+ boolean hasCustomAssetKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The customAssetKey.
+ */
+ java.lang.String getCustomAssetKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for customAssetKey.
+ */
+ com.google.protobuf.ByteString getCustomAssetKeyBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the
+ * [LiveStream.prefetch_enabled][google.ads.admanager.v1.LiveStream.prefetch_enabled]
+ * field is set to true.
+ *
+ *
+ * optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the prefetchEnabled field is set.
+ */
+ boolean hasPrefetchEnabled();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the
+ * [LiveStream.prefetch_enabled][google.ads.admanager.v1.LiveStream.prefetch_enabled]
+ * field is set to true.
+ *
+ *
+ * optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The prefetchEnabled.
+ */
+ boolean getPrefetchEnabled();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad pod trimming is enabled for the DAI session.
+ *
+ *
+ * optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the podTrimmingEnabled field is set.
+ */
+ boolean hasPodTrimmingEnabled();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad pod trimming is enabled for the DAI session.
+ *
+ *
+ * optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The podTrimmingEnabled.
+ */
+ boolean getPodTrimmingEnabled();
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the podTrimTolerance field is set.
+ */
+ boolean hasPodTrimTolerance();
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The podTrimTolerance.
+ */
+ com.google.protobuf.Duration getPodTrimTolerance();
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getPodTrimToleranceOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ *
+ * @return Whether the eventStartTime field is set.
+ */
+ boolean hasEventStartTime();
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ *
+ * @return The eventStartTime.
+ */
+ com.google.protobuf.Timestamp getEventStartTime();
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ com.google.protobuf.TimestampOrBuilder getEventStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the eventEndTime field is set.
+ */
+ boolean hasEventEndTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The eventEndTime.
+ */
+ com.google.protobuf.Timestamp getEventEndTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getEventEndTimeOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The [LiveStream][google.ads.admanager.v1.LiveStream] resource
+ * in the stream request that creates the DAI session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo}
+ */
+ public static final class LinearInfo extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo)
+ LinearInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "LinearInfo");
+ }
+
+ // Use LinearInfo.newBuilder() to construct.
+ private LinearInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private LinearInfo() {
+ liveStream_ = "";
+ assetKey_ = "";
+ customAssetKey_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_CreationContext_LinearInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_CreationContext_LinearInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.class,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int LIVE_STREAM_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object liveStream_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the liveStream field is set.
+ */
+ @java.lang.Override
+ public boolean hasLiveStream() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The liveStream.
+ */
+ @java.lang.Override
+ public java.lang.String getLiveStream() {
+ java.lang.Object ref = liveStream_;
+ 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();
+ liveStream_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for liveStream.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLiveStreamBytes() {
+ java.lang.Object ref = liveStream_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ liveStream_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ASSET_KEY_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object assetKey_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the assetKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasAssetKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The assetKey.
+ */
+ @java.lang.Override
+ public java.lang.String getAssetKey() {
+ java.lang.Object ref = assetKey_;
+ 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();
+ assetKey_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for assetKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAssetKeyBytes() {
+ java.lang.Object ref = assetKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ assetKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CUSTOM_ASSET_KEY_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object customAssetKey_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the customAssetKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasCustomAssetKey() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The customAssetKey.
+ */
+ @java.lang.Override
+ public java.lang.String getCustomAssetKey() {
+ java.lang.Object ref = customAssetKey_;
+ 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();
+ customAssetKey_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for customAssetKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCustomAssetKeyBytes() {
+ java.lang.Object ref = customAssetKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ customAssetKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PREFETCH_ENABLED_FIELD_NUMBER = 3;
+ private boolean prefetchEnabled_ = false;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the
+ * [LiveStream.prefetch_enabled][google.ads.admanager.v1.LiveStream.prefetch_enabled]
+ * field is set to true.
+ *
+ *
+ * optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the prefetchEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrefetchEnabled() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the
+ * [LiveStream.prefetch_enabled][google.ads.admanager.v1.LiveStream.prefetch_enabled]
+ * field is set to true.
+ *
+ *
+ * optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The prefetchEnabled.
+ */
+ @java.lang.Override
+ public boolean getPrefetchEnabled() {
+ return prefetchEnabled_;
+ }
+
+ public static final int POD_TRIMMING_ENABLED_FIELD_NUMBER = 4;
+ private boolean podTrimmingEnabled_ = false;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad pod trimming is enabled for the DAI session.
+ *
+ *
+ * optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the podTrimmingEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasPodTrimmingEnabled() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad pod trimming is enabled for the DAI session.
+ *
+ *
+ * optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The podTrimmingEnabled.
+ */
+ @java.lang.Override
+ public boolean getPodTrimmingEnabled() {
+ return podTrimmingEnabled_;
+ }
+
+ public static final int POD_TRIM_TOLERANCE_FIELD_NUMBER = 8;
+ private com.google.protobuf.Duration podTrimTolerance_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the podTrimTolerance field is set.
+ */
+ @java.lang.Override
+ public boolean hasPodTrimTolerance() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The podTrimTolerance.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getPodTrimTolerance() {
+ return podTrimTolerance_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : podTrimTolerance_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getPodTrimToleranceOrBuilder() {
+ return podTrimTolerance_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : podTrimTolerance_;
+ }
+
+ public static final int EVENT_START_TIME_FIELD_NUMBER = 6;
+ private com.google.protobuf.Timestamp eventStartTime_;
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ *
+ * @return Whether the eventStartTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventStartTime() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ *
+ * @return The eventStartTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEventStartTime() {
+ return eventStartTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : eventStartTime_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEventStartTimeOrBuilder() {
+ return eventStartTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : eventStartTime_;
+ }
+
+ public static final int EVENT_END_TIME_FIELD_NUMBER = 7;
+ private com.google.protobuf.Timestamp eventEndTime_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the eventEndTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventEndTime() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The eventEndTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEventEndTime() {
+ return eventEndTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : eventEndTime_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEventEndTimeOrBuilder() {
+ return eventEndTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : eventEndTime_;
+ }
+
+ 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 (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, assetKey_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, customAssetKey_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeBool(3, prefetchEnabled_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeBool(4, podTrimmingEnabled_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, liveStream_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(6, getEventStartTime());
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ output.writeMessage(7, getEventEndTime());
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(8, getPodTrimTolerance());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, assetKey_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, customAssetKey_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, prefetchEnabled_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, podTrimmingEnabled_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, liveStream_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEventStartTime());
+ }
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEventEndTime());
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPodTrimTolerance());
+ }
+ 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.admanager.v1.DaiSession.CreationContext.LinearInfo)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo other =
+ (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo) obj;
+
+ if (hasLiveStream() != other.hasLiveStream()) return false;
+ if (hasLiveStream()) {
+ if (!getLiveStream().equals(other.getLiveStream())) return false;
+ }
+ if (hasAssetKey() != other.hasAssetKey()) return false;
+ if (hasAssetKey()) {
+ if (!getAssetKey().equals(other.getAssetKey())) return false;
+ }
+ if (hasCustomAssetKey() != other.hasCustomAssetKey()) return false;
+ if (hasCustomAssetKey()) {
+ if (!getCustomAssetKey().equals(other.getCustomAssetKey())) return false;
+ }
+ if (hasPrefetchEnabled() != other.hasPrefetchEnabled()) return false;
+ if (hasPrefetchEnabled()) {
+ if (getPrefetchEnabled() != other.getPrefetchEnabled()) return false;
+ }
+ if (hasPodTrimmingEnabled() != other.hasPodTrimmingEnabled()) return false;
+ if (hasPodTrimmingEnabled()) {
+ if (getPodTrimmingEnabled() != other.getPodTrimmingEnabled()) return false;
+ }
+ if (hasPodTrimTolerance() != other.hasPodTrimTolerance()) return false;
+ if (hasPodTrimTolerance()) {
+ if (!getPodTrimTolerance().equals(other.getPodTrimTolerance())) return false;
+ }
+ if (hasEventStartTime() != other.hasEventStartTime()) return false;
+ if (hasEventStartTime()) {
+ if (!getEventStartTime().equals(other.getEventStartTime())) return false;
+ }
+ if (hasEventEndTime() != other.hasEventEndTime()) return false;
+ if (hasEventEndTime()) {
+ if (!getEventEndTime().equals(other.getEventEndTime())) 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 (hasLiveStream()) {
+ hash = (37 * hash) + LIVE_STREAM_FIELD_NUMBER;
+ hash = (53 * hash) + getLiveStream().hashCode();
+ }
+ if (hasAssetKey()) {
+ hash = (37 * hash) + ASSET_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getAssetKey().hashCode();
+ }
+ if (hasCustomAssetKey()) {
+ hash = (37 * hash) + CUSTOM_ASSET_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomAssetKey().hashCode();
+ }
+ if (hasPrefetchEnabled()) {
+ hash = (37 * hash) + PREFETCH_ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrefetchEnabled());
+ }
+ if (hasPodTrimmingEnabled()) {
+ hash = (37 * hash) + POD_TRIMMING_ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPodTrimmingEnabled());
+ }
+ if (hasPodTrimTolerance()) {
+ hash = (37 * hash) + POD_TRIM_TOLERANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getPodTrimTolerance().hashCode();
+ }
+ if (hasEventStartTime()) {
+ hash = (37 * hash) + EVENT_START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEventStartTime().hashCode();
+ }
+ if (hasEventEndTime()) {
+ hash = (37 * hash) + EVENT_END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEventEndTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo 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.admanager.v1.DaiSession.CreationContext.LinearInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo 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.admanager.v1.DaiSession.CreationContext.LinearInfo parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.CreationContext.LinearInfo 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The [LiveStream][google.ads.admanager.v1.LiveStream] resource
+ * in the stream request that creates the DAI session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the liveStream field is set.
+ */
+ public boolean hasLiveStream() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The liveStream.
+ */
+ public java.lang.String getLiveStream() {
+ java.lang.Object ref = liveStream_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ liveStream_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for liveStream.
+ */
+ public com.google.protobuf.ByteString getLiveStreamBytes() {
+ java.lang.Object ref = liveStream_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ liveStream_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The liveStream to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLiveStream(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ liveStream_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLiveStream() {
+ liveStream_ = getDefaultInstance().getLiveStream();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [name][google.ads.admanager.v1.LiveStream.name] field
+ * of the [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource.
+ *
+ *
+ *
+ * optional string live_stream = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for liveStream to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLiveStreamBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ liveStream_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object assetKey_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the assetKey field is set.
+ */
+ public boolean hasAssetKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The assetKey.
+ */
+ public java.lang.String getAssetKey() {
+ java.lang.Object ref = assetKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ assetKey_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for assetKey.
+ */
+ public com.google.protobuf.ByteString getAssetKeyBytes() {
+ java.lang.Object ref = assetKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ assetKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The assetKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssetKey(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ assetKey_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAssetKey() {
+ assetKey_ = getDefaultInstance().getAssetKey();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.asset_key][google.ads.admanager.v1.LiveStream.asset_key]
+ * field. Google Ad Manager only generates this field for livestreams with
+ * the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional string asset_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for assetKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssetKeyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ assetKey_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object customAssetKey_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the customAssetKey field is set.
+ */
+ public boolean hasCustomAssetKey() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The customAssetKey.
+ */
+ public java.lang.String getCustomAssetKey() {
+ java.lang.Object ref = customAssetKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ customAssetKey_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for customAssetKey.
+ */
+ public com.google.protobuf.ByteString getCustomAssetKeyBytes() {
+ java.lang.Object ref = customAssetKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ customAssetKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The customAssetKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomAssetKey(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ customAssetKey_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCustomAssetKey() {
+ customAssetKey_ = getDefaultInstance().getCustomAssetKey();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.custom_asset_key][google.ads.admanager.v1.LiveStream.custom_asset_key]
+ * field. This field is only populated for livestreams with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.POD_SERVING_MANIFEST][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_MANIFEST]
+ * value or
+ * [DynamicAdInsertionType.POD_SERVING_REDIRECT][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.POD_SERVING_REDIRECT]
+ * value.
+ *
+ *
+ * optional string custom_asset_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for customAssetKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCustomAssetKeyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ customAssetKey_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private boolean prefetchEnabled_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the
+ * [LiveStream.prefetch_enabled][google.ads.admanager.v1.LiveStream.prefetch_enabled]
+ * field is set to true.
+ *
+ *
+ * optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the prefetchEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrefetchEnabled() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the
+ * [LiveStream.prefetch_enabled][google.ads.admanager.v1.LiveStream.prefetch_enabled]
+ * field is set to true.
+ *
+ *
+ * optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The prefetchEnabled.
+ */
+ @java.lang.Override
+ public boolean getPrefetchEnabled() {
+ return prefetchEnabled_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the
+ * [LiveStream.prefetch_enabled][google.ads.admanager.v1.LiveStream.prefetch_enabled]
+ * field is set to true.
+ *
+ *
+ * optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The prefetchEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrefetchEnabled(boolean value) {
+
+ prefetchEnabled_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the
+ * [LiveStream.prefetch_enabled][google.ads.admanager.v1.LiveStream.prefetch_enabled]
+ * field is set to true.
+ *
+ *
+ * optional bool prefetch_enabled = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPrefetchEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ prefetchEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean podTrimmingEnabled_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad pod trimming is enabled for the DAI session.
+ *
+ *
+ *
+ * optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the podTrimmingEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasPodTrimmingEnabled() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad pod trimming is enabled for the DAI session.
+ *
+ *
+ *
+ * optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The podTrimmingEnabled.
+ */
+ @java.lang.Override
+ public boolean getPodTrimmingEnabled() {
+ return podTrimmingEnabled_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad pod trimming is enabled for the DAI session.
+ *
+ *
+ *
+ * optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The podTrimmingEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPodTrimmingEnabled(boolean value) {
+
+ podTrimmingEnabled_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad pod trimming is enabled for the DAI session.
+ *
+ *
+ *
+ * optional bool pod_trimming_enabled = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPodTrimmingEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ podTrimmingEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration podTrimTolerance_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ podTrimToleranceBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the podTrimTolerance field is set.
+ */
+ public boolean hasPodTrimTolerance() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The podTrimTolerance.
+ */
+ public com.google.protobuf.Duration getPodTrimTolerance() {
+ if (podTrimToleranceBuilder_ == null) {
+ return podTrimTolerance_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : podTrimTolerance_;
+ } else {
+ return podTrimToleranceBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPodTrimTolerance(com.google.protobuf.Duration value) {
+ if (podTrimToleranceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ podTrimTolerance_ = value;
+ } else {
+ podTrimToleranceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPodTrimTolerance(com.google.protobuf.Duration.Builder builderForValue) {
+ if (podTrimToleranceBuilder_ == null) {
+ podTrimTolerance_ = builderForValue.build();
+ } else {
+ podTrimToleranceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePodTrimTolerance(com.google.protobuf.Duration value) {
+ if (podTrimToleranceBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && podTrimTolerance_ != null
+ && podTrimTolerance_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getPodTrimToleranceBuilder().mergeFrom(value);
+ } else {
+ podTrimTolerance_ = value;
+ }
+ } else {
+ podTrimToleranceBuilder_.mergeFrom(value);
+ }
+ if (podTrimTolerance_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPodTrimTolerance() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ podTrimTolerance_ = null;
+ if (podTrimToleranceBuilder_ != null) {
+ podTrimToleranceBuilder_.dispose();
+ podTrimToleranceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getPodTrimToleranceBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return internalGetPodTrimToleranceFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getPodTrimToleranceOrBuilder() {
+ if (podTrimToleranceBuilder_ != null) {
+ return podTrimToleranceBuilder_.getMessageOrBuilder();
+ } else {
+ return podTrimTolerance_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : podTrimTolerance_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Optional. The maximum duration allowed to be trimmed from an ad pod
+ * before whole ads are dropped. This field is only populated when pod
+ * trimming is enabled.
+ *
+ *
+ *
+ * optional .google.protobuf.Duration pod_trim_tolerance = 8 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetPodTrimToleranceFieldBuilder() {
+ if (podTrimToleranceBuilder_ == null) {
+ podTrimToleranceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getPodTrimTolerance(), getParentForChildren(), isClean());
+ podTrimTolerance_ = null;
+ }
+ return podTrimToleranceBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp eventStartTime_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ eventStartTimeBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ *
+ * @return Whether the eventStartTime field is set.
+ */
+ public boolean hasEventStartTime() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ *
+ * @return The eventStartTime.
+ */
+ public com.google.protobuf.Timestamp getEventStartTime() {
+ if (eventStartTimeBuilder_ == null) {
+ return eventStartTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : eventStartTime_;
+ } else {
+ return eventStartTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ public Builder setEventStartTime(com.google.protobuf.Timestamp value) {
+ if (eventStartTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventStartTime_ = value;
+ } else {
+ eventStartTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ public Builder setEventStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (eventStartTimeBuilder_ == null) {
+ eventStartTime_ = builderForValue.build();
+ } else {
+ eventStartTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ public Builder mergeEventStartTime(com.google.protobuf.Timestamp value) {
+ if (eventStartTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && eventStartTime_ != null
+ && eventStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getEventStartTimeBuilder().mergeFrom(value);
+ } else {
+ eventStartTime_ = value;
+ }
+ } else {
+ eventStartTimeBuilder_.mergeFrom(value);
+ }
+ if (eventStartTime_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ public Builder clearEventStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ eventStartTime_ = null;
+ if (eventStartTimeBuilder_ != null) {
+ eventStartTimeBuilder_.dispose();
+ eventStartTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ public com.google.protobuf.Timestamp.Builder getEventStartTimeBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return internalGetEventStartTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEventStartTimeOrBuilder() {
+ if (eventStartTimeBuilder_ != null) {
+ return eventStartTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return eventStartTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : eventStartTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * The
+ * [LiveStream.start_time][google.ads.admanager.v1.LiveStream.start_time]
+ * field.
+ *
+ *
+ * .google.protobuf.Timestamp event_start_time = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetEventStartTimeFieldBuilder() {
+ if (eventStartTimeBuilder_ == null) {
+ eventStartTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEventStartTime(), getParentForChildren(), isClean());
+ eventStartTime_ = null;
+ }
+ return eventStartTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp eventEndTime_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ eventEndTimeBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the eventEndTime field is set.
+ */
+ public boolean hasEventEndTime() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The eventEndTime.
+ */
+ public com.google.protobuf.Timestamp getEventEndTime() {
+ if (eventEndTimeBuilder_ == null) {
+ return eventEndTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : eventEndTime_;
+ } else {
+ return eventEndTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setEventEndTime(com.google.protobuf.Timestamp value) {
+ if (eventEndTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventEndTime_ = value;
+ } else {
+ eventEndTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setEventEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (eventEndTimeBuilder_ == null) {
+ eventEndTime_ = builderForValue.build();
+ } else {
+ eventEndTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeEventEndTime(com.google.protobuf.Timestamp value) {
+ if (eventEndTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && eventEndTime_ != null
+ && eventEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getEventEndTimeBuilder().mergeFrom(value);
+ } else {
+ eventEndTime_ = value;
+ }
+ } else {
+ eventEndTimeBuilder_.mergeFrom(value);
+ }
+ if (eventEndTime_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearEventEndTime() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ eventEndTime_ = null;
+ if (eventEndTimeBuilder_ != null) {
+ eventEndTimeBuilder_.dispose();
+ eventEndTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getEventEndTimeBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return internalGetEventEndTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getEventEndTimeOrBuilder() {
+ if (eventEndTimeBuilder_ != null) {
+ return eventEndTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return eventEndTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : eventEndTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.end_time][google.ads.admanager.v1.LiveStream.end_time]
+ * field.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp event_end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetEventEndTimeFieldBuilder() {
+ if (eventEndTimeBuilder_ == null) {
+ eventEndTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEventEndTime(), getParentForChildren(), isClean());
+ eventEndTime_ = null;
+ }
+ return eventEndTimeBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo)
+ private static final com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the linearInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasLinearInfo() {
+ return contentInfoCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The linearInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo getLinearInfo() {
+ if (contentInfoCase_ == 2) {
+ return (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo) contentInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfoOrBuilder
+ getLinearInfoOrBuilder() {
+ if (contentInfoCase_ == 2) {
+ return (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo) contentInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.getDefaultInstance();
+ }
+
+ public static final int VOD_INFO_FIELD_NUMBER = 3;
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the vodInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasVodInfo() {
+ return contentInfoCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The vodInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo getVodInfo() {
+ if (contentInfoCase_ == 3) {
+ return (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo) contentInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfoOrBuilder
+ getVodInfoOrBuilder() {
+ if (contentInfoCase_ == 3) {
+ return (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo) contentInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.getDefaultInstance();
+ }
+
+ public static final int DEBUG_KEY_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object debugKey_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the debugKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasDebugKey() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The debugKey.
+ */
+ @java.lang.Override
+ public java.lang.String getDebugKey() {
+ java.lang.Object ref = debugKey_;
+ 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();
+ debugKey_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for debugKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDebugKeyBytes() {
+ java.lang.Object ref = debugKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ debugKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTENT_TITLE_FIELD_NUMBER = 10;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object contentTitle_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the contentTitle field is set.
+ */
+ @java.lang.Override
+ public boolean hasContentTitle() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The contentTitle.
+ */
+ @java.lang.Override
+ public java.lang.String getContentTitle() {
+ java.lang.Object ref = contentTitle_;
+ 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();
+ contentTitle_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for contentTitle.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getContentTitleBytes() {
+ java.lang.Object ref = contentTitle_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ contentTitle_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SESSION_TITLE_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object sessionTitle_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the sessionTitle field is set.
+ */
+ @java.lang.Override
+ public boolean hasSessionTitle() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The sessionTitle.
+ */
+ @java.lang.Override
+ public java.lang.String getSessionTitle() {
+ java.lang.Object ref = sessionTitle_;
+ 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();
+ sessionTitle_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for sessionTitle.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSessionTitleBytes() {
+ java.lang.Object ref = sessionTitle_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sessionTitle_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STREAM_CREATE_REQUEST_FIELD_NUMBER = 1;
+ private com.google.ads.admanager.v1.DaiSession.HttpRequest streamCreateRequest_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the streamCreateRequest field is set.
+ */
+ @java.lang.Override
+ public boolean hasStreamCreateRequest() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The streamCreateRequest.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest getStreamCreateRequest() {
+ return streamCreateRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : streamCreateRequest_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder
+ getStreamCreateRequestOrBuilder() {
+ return streamCreateRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : streamCreateRequest_;
+ }
+
+ public static final int STITCHING_TYPE_FIELD_NUMBER = 4;
+ private int stitchingType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the stitchingType field is set.
+ */
+ @java.lang.Override
+ public boolean hasStitchingType() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for stitchingType.
+ */
+ @java.lang.Override
+ public int getStitchingTypeValue() {
+ return stitchingType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The stitchingType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType getStitchingType() {
+ com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType result =
+ com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType.forNumber(stitchingType_);
+ return result == null
+ ? com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int REPORTING_TYPE_FIELD_NUMBER = 5;
+ private int reportingType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the reportingType field is set.
+ */
+ @java.lang.Override
+ public boolean hasReportingType() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for reportingType.
+ */
+ @java.lang.Override
+ public int getReportingTypeValue() {
+ return reportingType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The reportingType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType getReportingType() {
+ com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType result =
+ com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType.forNumber(reportingType_);
+ return result == null
+ ? com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int INTERSTITIAL_ENABLED_FIELD_NUMBER = 6;
+ private boolean interstitialEnabled_ = false;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the parameter `dai-istl` on the stream request is
+ * set to true. This parameter is only accepted for
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resources
+ * with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional bool interstitial_enabled = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the interstitialEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasInterstitialEnabled() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the parameter `dai-istl` on the stream request is
+ * set to true. This parameter is only accepted for
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resources
+ * with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional bool interstitial_enabled = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The interstitialEnabled.
+ */
+ @java.lang.Override
+ public boolean getInterstitialEnabled() {
+ return interstitialEnabled_;
+ }
+
+ 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 (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(1, getStreamCreateRequest());
+ }
+ if (contentInfoCase_ == 2) {
+ output.writeMessage(
+ 2, (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo) contentInfo_);
+ }
+ if (contentInfoCase_ == 3) {
+ output.writeMessage(
+ 3, (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo) contentInfo_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeEnum(4, stitchingType_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeEnum(5, reportingType_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeBool(6, interstitialEnabled_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 8, debugKey_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 9, sessionTitle_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, contentTitle_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStreamCreateRequest());
+ }
+ if (contentInfoCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2,
+ (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo) contentInfo_);
+ }
+ if (contentInfoCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo) contentInfo_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, stitchingType_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, reportingType_);
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, interstitialEnabled_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(8, debugKey_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(9, sessionTitle_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(10, contentTitle_);
+ }
+ 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.admanager.v1.DaiSession.CreationContext)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.CreationContext other =
+ (com.google.ads.admanager.v1.DaiSession.CreationContext) obj;
+
+ if (hasDebugKey() != other.hasDebugKey()) return false;
+ if (hasDebugKey()) {
+ if (!getDebugKey().equals(other.getDebugKey())) return false;
+ }
+ if (hasContentTitle() != other.hasContentTitle()) return false;
+ if (hasContentTitle()) {
+ if (!getContentTitle().equals(other.getContentTitle())) return false;
+ }
+ if (hasSessionTitle() != other.hasSessionTitle()) return false;
+ if (hasSessionTitle()) {
+ if (!getSessionTitle().equals(other.getSessionTitle())) return false;
+ }
+ if (hasStreamCreateRequest() != other.hasStreamCreateRequest()) return false;
+ if (hasStreamCreateRequest()) {
+ if (!getStreamCreateRequest().equals(other.getStreamCreateRequest())) return false;
+ }
+ if (hasStitchingType() != other.hasStitchingType()) return false;
+ if (hasStitchingType()) {
+ if (stitchingType_ != other.stitchingType_) return false;
+ }
+ if (hasReportingType() != other.hasReportingType()) return false;
+ if (hasReportingType()) {
+ if (reportingType_ != other.reportingType_) return false;
+ }
+ if (hasInterstitialEnabled() != other.hasInterstitialEnabled()) return false;
+ if (hasInterstitialEnabled()) {
+ if (getInterstitialEnabled() != other.getInterstitialEnabled()) return false;
+ }
+ if (!getContentInfoCase().equals(other.getContentInfoCase())) return false;
+ switch (contentInfoCase_) {
+ case 2:
+ if (!getLinearInfo().equals(other.getLinearInfo())) return false;
+ break;
+ case 3:
+ if (!getVodInfo().equals(other.getVodInfo())) 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 (hasDebugKey()) {
+ hash = (37 * hash) + DEBUG_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getDebugKey().hashCode();
+ }
+ if (hasContentTitle()) {
+ hash = (37 * hash) + CONTENT_TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getContentTitle().hashCode();
+ }
+ if (hasSessionTitle()) {
+ hash = (37 * hash) + SESSION_TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionTitle().hashCode();
+ }
+ if (hasStreamCreateRequest()) {
+ hash = (37 * hash) + STREAM_CREATE_REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getStreamCreateRequest().hashCode();
+ }
+ if (hasStitchingType()) {
+ hash = (37 * hash) + STITCHING_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + stitchingType_;
+ }
+ if (hasReportingType()) {
+ hash = (37 * hash) + REPORTING_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + reportingType_;
+ }
+ if (hasInterstitialEnabled()) {
+ hash = (37 * hash) + INTERSTITIAL_ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterstitialEnabled());
+ }
+ switch (contentInfoCase_) {
+ case 2:
+ hash = (37 * hash) + LINEAR_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getLinearInfo().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + VOD_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getVodInfo().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext 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.admanager.v1.DaiSession.CreationContext parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext 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.admanager.v1.DaiSession.CreationContext parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.CreationContext 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Context data to create the DAI session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.CreationContext}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the linearInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasLinearInfo() {
+ return contentInfoCase_ == 2;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The linearInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo getLinearInfo() {
+ if (linearInfoBuilder_ == null) {
+ if (contentInfoCase_ == 2) {
+ return (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo) contentInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ .getDefaultInstance();
+ } else {
+ if (contentInfoCase_ == 2) {
+ return linearInfoBuilder_.getMessage();
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLinearInfo(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo value) {
+ if (linearInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ contentInfo_ = value;
+ onChanged();
+ } else {
+ linearInfoBuilder_.setMessage(value);
+ }
+ contentInfoCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLinearInfo(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.Builder
+ builderForValue) {
+ if (linearInfoBuilder_ == null) {
+ contentInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ linearInfoBuilder_.setMessage(builderForValue.build());
+ }
+ contentInfoCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeLinearInfo(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo value) {
+ if (linearInfoBuilder_ == null) {
+ if (contentInfoCase_ == 2
+ && contentInfo_
+ != com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ .getDefaultInstance()) {
+ contentInfo_ =
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.newBuilder(
+ (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo)
+ contentInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ contentInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (contentInfoCase_ == 2) {
+ linearInfoBuilder_.mergeFrom(value);
+ } else {
+ linearInfoBuilder_.setMessage(value);
+ }
+ }
+ contentInfoCase_ = 2;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearLinearInfo() {
+ if (linearInfoBuilder_ == null) {
+ if (contentInfoCase_ == 2) {
+ contentInfoCase_ = 0;
+ contentInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (contentInfoCase_ == 2) {
+ contentInfoCase_ = 0;
+ contentInfo_ = null;
+ }
+ linearInfoBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.Builder
+ getLinearInfoBuilder() {
+ return internalGetLinearInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfoOrBuilder
+ getLinearInfoOrBuilder() {
+ if ((contentInfoCase_ == 2) && (linearInfoBuilder_ != null)) {
+ return linearInfoBuilder_.getMessageOrBuilder();
+ } else {
+ if (contentInfoCase_ == 2) {
+ return (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo) contentInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [LiveStream][google.ads.admanager.v1.LiveStream]
+ * resource in the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo linear_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.Builder,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfoOrBuilder>
+ internalGetLinearInfoFieldBuilder() {
+ if (linearInfoBuilder_ == null) {
+ if (!(contentInfoCase_ == 2)) {
+ contentInfo_ =
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo
+ .getDefaultInstance();
+ }
+ linearInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo.Builder,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfoOrBuilder>(
+ (com.google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo) contentInfo_,
+ getParentForChildren(),
+ isClean());
+ contentInfo_ = null;
+ }
+ contentInfoCase_ = 2;
+ onChanged();
+ return linearInfoBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.Builder,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfoOrBuilder>
+ vodInfoBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the vodInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasVodInfo() {
+ return contentInfoCase_ == 3;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The vodInfo.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo getVodInfo() {
+ if (vodInfoBuilder_ == null) {
+ if (contentInfoCase_ == 3) {
+ return (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo) contentInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo
+ .getDefaultInstance();
+ } else {
+ if (contentInfoCase_ == 3) {
+ return vodInfoBuilder_.getMessage();
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setVodInfo(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo value) {
+ if (vodInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ contentInfo_ = value;
+ onChanged();
+ } else {
+ vodInfoBuilder_.setMessage(value);
+ }
+ contentInfoCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setVodInfo(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.Builder builderForValue) {
+ if (vodInfoBuilder_ == null) {
+ contentInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ vodInfoBuilder_.setMessage(builderForValue.build());
+ }
+ contentInfoCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeVodInfo(
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo value) {
+ if (vodInfoBuilder_ == null) {
+ if (contentInfoCase_ == 3
+ && contentInfo_
+ != com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo
+ .getDefaultInstance()) {
+ contentInfo_ =
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.newBuilder(
+ (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo)
+ contentInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ contentInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (contentInfoCase_ == 3) {
+ vodInfoBuilder_.mergeFrom(value);
+ } else {
+ vodInfoBuilder_.setMessage(value);
+ }
+ }
+ contentInfoCase_ = 3;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearVodInfo() {
+ if (vodInfoBuilder_ == null) {
+ if (contentInfoCase_ == 3) {
+ contentInfoCase_ = 0;
+ contentInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (contentInfoCase_ == 3) {
+ contentInfoCase_ = 0;
+ contentInfo_ = null;
+ }
+ vodInfoBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.Builder
+ getVodInfoBuilder() {
+ return internalGetVodInfoFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfoOrBuilder
+ getVodInfoOrBuilder() {
+ if ((contentInfoCase_ == 3) && (vodInfoBuilder_ != null)) {
+ return vodInfoBuilder_.getMessageOrBuilder();
+ } else {
+ if (contentInfoCase_ == 3) {
+ return (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo) contentInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The [Content][google.ads.admanager.v1.Content] resource in
+ * the stream request that creates the DAI session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.CreationContext.VodInfo vod_info = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.Builder,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfoOrBuilder>
+ internalGetVodInfoFieldBuilder() {
+ if (vodInfoBuilder_ == null) {
+ if (!(contentInfoCase_ == 3)) {
+ contentInfo_ =
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.getDefaultInstance();
+ }
+ vodInfoBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo.Builder,
+ com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfoOrBuilder>(
+ (com.google.ads.admanager.v1.DaiSession.CreationContext.VodInfo) contentInfo_,
+ getParentForChildren(),
+ isClean());
+ contentInfo_ = null;
+ }
+ contentInfoCase_ = 3;
+ onChanged();
+ return vodInfoBuilder_;
+ }
+
+ private java.lang.Object debugKey_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the debugKey field is set.
+ */
+ public boolean hasDebugKey() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The debugKey.
+ */
+ public java.lang.String getDebugKey() {
+ java.lang.Object ref = debugKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ debugKey_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for debugKey.
+ */
+ public com.google.protobuf.ByteString getDebugKeyBytes() {
+ java.lang.Object ref = debugKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ debugKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The debugKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDebugKey(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ debugKey_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDebugKey() {
+ debugKey_ = getDefaultInstance().getDebugKey();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `dai-sam-id` parameter sets in the DAI stream
+ * request. For details, see [Locate a DAI session ID or debug
+ * key](https://support.google.com/admanager/answer/7257678).
+ *
+ *
+ * optional string debug_key = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for debugKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDebugKeyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ debugKey_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object contentTitle_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the contentTitle field is set.
+ */
+ public boolean hasContentTitle() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The contentTitle.
+ */
+ public java.lang.String getContentTitle() {
+ java.lang.Object ref = contentTitle_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ contentTitle_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for contentTitle.
+ */
+ public com.google.protobuf.ByteString getContentTitleBytes() {
+ java.lang.Object ref = contentTitle_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ contentTitle_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The contentTitle to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ contentTitle_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearContentTitle() {
+ contentTitle_ = getDefaultInstance().getContentTitle();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The
+ * [LiveStream.display_name][google.ads.admanager.v1.LiveStream.display_name]
+ * field or
+ * [Content.display_name][google.ads.admanager.v1.Content.display_name]
+ * field associated with the DAI session.
+ *
+ *
+ * optional string content_title = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for contentTitle to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ contentTitle_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sessionTitle_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the sessionTitle field is set.
+ */
+ public boolean hasSessionTitle() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The sessionTitle.
+ */
+ public java.lang.String getSessionTitle() {
+ java.lang.Object ref = sessionTitle_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionTitle_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for sessionTitle.
+ */
+ public com.google.protobuf.ByteString getSessionTitleBytes() {
+ java.lang.Object ref = sessionTitle_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sessionTitle_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The sessionTitle to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSessionTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sessionTitle_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSessionTitle() {
+ sessionTitle_ = getDefaultInstance().getSessionTitle();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The string the `session_title` parameter sets in the DAI
+ * stream request. For details, see
+ * [CreateStreamOptions](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).
+ *
+ *
+ * optional string session_title = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for sessionTitle to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSessionTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sessionTitle_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private com.google.ads.admanager.v1.DaiSession.HttpRequest streamCreateRequest_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>
+ streamCreateRequestBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the streamCreateRequest field is set.
+ */
+ public boolean hasStreamCreateRequest() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The streamCreateRequest.
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest getStreamCreateRequest() {
+ if (streamCreateRequestBuilder_ == null) {
+ return streamCreateRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : streamCreateRequest_;
+ } else {
+ return streamCreateRequestBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStreamCreateRequest(
+ com.google.ads.admanager.v1.DaiSession.HttpRequest value) {
+ if (streamCreateRequestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamCreateRequest_ = value;
+ } else {
+ streamCreateRequestBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setStreamCreateRequest(
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder builderForValue) {
+ if (streamCreateRequestBuilder_ == null) {
+ streamCreateRequest_ = builderForValue.build();
+ } else {
+ streamCreateRequestBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeStreamCreateRequest(
+ com.google.ads.admanager.v1.DaiSession.HttpRequest value) {
+ if (streamCreateRequestBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && streamCreateRequest_ != null
+ && streamCreateRequest_
+ != com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()) {
+ getStreamCreateRequestBuilder().mergeFrom(value);
+ } else {
+ streamCreateRequest_ = value;
+ }
+ } else {
+ streamCreateRequestBuilder_.mergeFrom(value);
+ }
+ if (streamCreateRequest_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearStreamCreateRequest() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ streamCreateRequest_ = null;
+ if (streamCreateRequestBuilder_ != null) {
+ streamCreateRequestBuilder_.dispose();
+ streamCreateRequestBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder
+ getStreamCreateRequestBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return internalGetStreamCreateRequestFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder
+ getStreamCreateRequestOrBuilder() {
+ if (streamCreateRequestBuilder_ != null) {
+ return streamCreateRequestBuilder_.getMessageOrBuilder();
+ } else {
+ return streamCreateRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : streamCreateRequest_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request creating the DAI session. For details, see
+ * [Linear
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
+ * [VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
+ * [pod serving live
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
+ * and [pod serving VOD
+ * API](/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest stream_create_request = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>
+ internalGetStreamCreateRequestFieldBuilder() {
+ if (streamCreateRequestBuilder_ == null) {
+ streamCreateRequestBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>(
+ getStreamCreateRequest(), getParentForChildren(), isClean());
+ streamCreateRequest_ = null;
+ }
+ return streamCreateRequestBuilder_;
+ }
+
+ private int stitchingType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the stitchingType field is set.
+ */
+ @java.lang.Override
+ public boolean hasStitchingType() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for stitchingType.
+ */
+ @java.lang.Override
+ public int getStitchingTypeValue() {
+ return stitchingType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for stitchingType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStitchingTypeValue(int value) {
+ stitchingType_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The stitchingType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType getStitchingType() {
+ com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType result =
+ com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType.forNumber(stitchingType_);
+ return result == null
+ ? com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The stitchingType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStitchingType(
+ com.google.ads.admanager.v1.StitchingTypeEnum.StitchingType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ stitchingType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the stream request is for [Full-service
+ * DAI](/ad-manager/dynamic-ad-insertion/full-service)
+ * or [Pod
+ * serving](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.StitchingTypeEnum.StitchingType stitching_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStitchingType() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ stitchingType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int reportingType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the reportingType field is set.
+ */
+ @java.lang.Override
+ public boolean hasReportingType() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for reportingType.
+ */
+ @java.lang.Override
+ public int getReportingTypeValue() {
+ return reportingType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for reportingType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReportingTypeValue(int value) {
+ reportingType_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The reportingType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType getReportingType() {
+ com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType result =
+ com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType.forNumber(reportingType_);
+ return result == null
+ ? com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The reportingType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReportingType(
+ com.google.ads.admanager.v1.ReportingTypeEnum.ReportingType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ reportingType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether ad tracking URLs are pinged on the client side or
+ * server side. If IMA SDK is used to make the stream requests, IMA SDK
+ * pings the ad tracking URLs on the client side. For server-side beaconing,
+ * see [Integrate with DAI using server-side beaconing
+ * (SSB)](https://support.google.com/admanager/answer/7299051).
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.ReportingTypeEnum.ReportingType reporting_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReportingType() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ reportingType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean interstitialEnabled_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the parameter `dai-istl` on the stream request is
+ * set to true. This parameter is only accepted for
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resources
+ * with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional bool interstitial_enabled = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the interstitialEnabled field is set.
+ */
+ @java.lang.Override
+ public boolean hasInterstitialEnabled() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the parameter `dai-istl` on the stream request is
+ * set to true. This parameter is only accepted for
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resources
+ * with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional bool interstitial_enabled = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The interstitialEnabled.
+ */
+ @java.lang.Override
+ public boolean getInterstitialEnabled() {
+ return interstitialEnabled_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the parameter `dai-istl` on the stream request is
+ * set to true. This parameter is only accepted for
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resources
+ * with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional bool interstitial_enabled = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The interstitialEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInterstitialEnabled(boolean value) {
+
+ interstitialEnabled_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether the parameter `dai-istl` on the stream request is
+ * set to true. This parameter is only accepted for
+ * [LiveStream][google.ads.admanager.v1.LiveStream] resources
+ * with the
+ * [dynamic_ad_insertion_type][google.ads.admanager.v1.LiveStream.dynamic_ad_insertion_type]
+ * field set to
+ * [DynamicAdInsertionType.LINEAR][google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType.LINEAR]
+ * value.
+ *
+ *
+ * optional bool interstitial_enabled = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInterstitialEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ interstitialEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.CreationContext)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.CreationContext)
+ private static final com.google.ads.admanager.v1.DaiSession.CreationContext DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.CreationContext();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.CreationContext getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ boolean hasType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType getType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adRequest field is set.
+ */
+ boolean hasAdRequest();
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adRequest.
+ */
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest getAdRequest();
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder getAdRequestOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * The ad requests, ad response, and nested ads in the DAI session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdSelection}
+ */
+ public static final class AdSelection extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.AdSelection)
+ AdSelectionOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdSelection");
+ }
+
+ // Use AdSelection.newBuilder() to construct.
+ private AdSelection(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private AdSelection() {
+ type_ = 0;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdSelection_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdSelection_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.AdSelection.class,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.Builder.class);
+ }
+
+ public interface AdRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DaiSession.AdSelection.AdRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID.
+ *
+ *
+ * optional int64 ad_request_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adRequestKey field is set.
+ */
+ boolean hasAdRequestKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID.
+ *
+ *
+ * optional int64 ad_request_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adRequestKey.
+ */
+ long getAdRequestKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the httpRequest field is set.
+ */
+ boolean hasHttpRequest();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The httpRequest.
+ */
+ com.google.ads.admanager.v1.DaiSession.HttpRequest getHttpRequest();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder getHttpRequestOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest getChildRequests(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getChildRequestsCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List<
+ ? extends com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder>
+ getChildRequestsOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder
+ getChildRequestsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adTag field is set.
+ */
+ boolean hasAdTag();
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adTag.
+ */
+ java.lang.String getAdTag();
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adTag.
+ */
+ com.google.protobuf.ByteString getAdTagBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the effectiveAdRequestUrl field is set.
+ */
+ boolean hasEffectiveAdRequestUrl();
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The effectiveAdRequestUrl.
+ */
+ java.lang.String getEffectiveAdRequestUrl();
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for effectiveAdRequestUrl.
+ */
+ com.google.protobuf.ByteString getEffectiveAdRequestUrlBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * Top-level ad request.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdSelection.AdRequest}
+ */
+ public static final class AdRequest extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.AdSelection.AdRequest)
+ AdRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdRequest");
+ }
+
+ // Use AdRequest.newBuilder() to construct.
+ private AdRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private AdRequest() {
+ childRequests_ = java.util.Collections.emptyList();
+ adTag_ = "";
+ effectiveAdRequestUrl_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdSelection_AdRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdSelection_AdRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.class,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int AD_REQUEST_KEY_FIELD_NUMBER = 1;
+ private long adRequestKey_ = 0L;
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID.
+ *
+ *
+ * optional int64 ad_request_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adRequestKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdRequestKey() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID.
+ *
+ *
+ * optional int64 ad_request_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adRequestKey.
+ */
+ @java.lang.Override
+ public long getAdRequestKey() {
+ return adRequestKey_;
+ }
+
+ public static final int HTTP_REQUEST_FIELD_NUMBER = 2;
+ private com.google.ads.admanager.v1.DaiSession.HttpRequest httpRequest_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the httpRequest field is set.
+ */
+ @java.lang.Override
+ public boolean hasHttpRequest() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The httpRequest.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest getHttpRequest() {
+ return httpRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : httpRequest_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder getHttpRequestOrBuilder() {
+ return httpRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : httpRequest_;
+ }
+
+ public static final int CHILD_REQUESTS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder>
+ getChildRequestsOrBuilderList() {
+ return childRequests_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getChildRequestsCount() {
+ return childRequests_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest getChildRequests(
+ int index) {
+ return childRequests_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder
+ getChildRequestsOrBuilder(int index) {
+ return childRequests_.get(index);
+ }
+
+ public static final int AD_TAG_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adTag_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adTag field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdTag() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adTag.
+ */
+ @java.lang.Override
+ public java.lang.String getAdTag() {
+ java.lang.Object ref = adTag_;
+ 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();
+ adTag_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adTag.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdTagBytes() {
+ java.lang.Object ref = adTag_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adTag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EFFECTIVE_AD_REQUEST_URL_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object effectiveAdRequestUrl_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the effectiveAdRequestUrl field is set.
+ */
+ @java.lang.Override
+ public boolean hasEffectiveAdRequestUrl() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The effectiveAdRequestUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getEffectiveAdRequestUrl() {
+ java.lang.Object ref = effectiveAdRequestUrl_;
+ 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();
+ effectiveAdRequestUrl_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for effectiveAdRequestUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEffectiveAdRequestUrlBytes() {
+ java.lang.Object ref = effectiveAdRequestUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ effectiveAdRequestUrl_ = 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(1, adRequestKey_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getHttpRequest());
+ }
+ for (int i = 0; i < childRequests_.size(); i++) {
+ output.writeMessage(3, childRequests_.get(i));
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, adTag_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, effectiveAdRequestUrl_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, adRequestKey_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHttpRequest());
+ }
+ for (int i = 0; i < childRequests_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, childRequests_.get(i));
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, adTag_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, effectiveAdRequestUrl_);
+ }
+ 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.admanager.v1.DaiSession.AdSelection.AdRequest)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest other =
+ (com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest) obj;
+
+ if (hasAdRequestKey() != other.hasAdRequestKey()) return false;
+ if (hasAdRequestKey()) {
+ if (getAdRequestKey() != other.getAdRequestKey()) return false;
+ }
+ if (hasHttpRequest() != other.hasHttpRequest()) return false;
+ if (hasHttpRequest()) {
+ if (!getHttpRequest().equals(other.getHttpRequest())) return false;
+ }
+ if (!getChildRequestsList().equals(other.getChildRequestsList())) return false;
+ if (hasAdTag() != other.hasAdTag()) return false;
+ if (hasAdTag()) {
+ if (!getAdTag().equals(other.getAdTag())) return false;
+ }
+ if (hasEffectiveAdRequestUrl() != other.hasEffectiveAdRequestUrl()) return false;
+ if (hasEffectiveAdRequestUrl()) {
+ if (!getEffectiveAdRequestUrl().equals(other.getEffectiveAdRequestUrl())) 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 (hasAdRequestKey()) {
+ hash = (37 * hash) + AD_REQUEST_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAdRequestKey());
+ }
+ if (hasHttpRequest()) {
+ hash = (37 * hash) + HTTP_REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getHttpRequest().hashCode();
+ }
+ if (getChildRequestsCount() > 0) {
+ hash = (37 * hash) + CHILD_REQUESTS_FIELD_NUMBER;
+ hash = (53 * hash) + getChildRequestsList().hashCode();
+ }
+ if (hasAdTag()) {
+ hash = (37 * hash) + AD_TAG_FIELD_NUMBER;
+ hash = (53 * hash) + getAdTag().hashCode();
+ }
+ if (hasEffectiveAdRequestUrl()) {
+ hash = (37 * hash) + EFFECTIVE_AD_REQUEST_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getEffectiveAdRequestUrl().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest 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.admanager.v1.DaiSession.AdSelection.AdRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest 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.admanager.v1.DaiSession.AdSelection.AdRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.AdSelection.AdRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Top-level ad request.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdSelection.AdRequest}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Ad request ID.
+ *
+ *
+ * optional int64 ad_request_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adRequestKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdRequestKey() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID.
+ *
+ *
+ * optional int64 ad_request_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adRequestKey.
+ */
+ @java.lang.Override
+ public long getAdRequestKey() {
+ return adRequestKey_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID.
+ *
+ *
+ * optional int64 ad_request_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The adRequestKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdRequestKey(long value) {
+
+ adRequestKey_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID.
+ *
+ *
+ * optional int64 ad_request_key = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdRequestKey() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ adRequestKey_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.ads.admanager.v1.DaiSession.HttpRequest httpRequest_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>
+ httpRequestBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the httpRequest field is set.
+ */
+ public boolean hasHttpRequest() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The httpRequest.
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest getHttpRequest() {
+ if (httpRequestBuilder_ == null) {
+ return httpRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : httpRequest_;
+ } else {
+ return httpRequestBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setHttpRequest(com.google.ads.admanager.v1.DaiSession.HttpRequest value) {
+ if (httpRequestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ httpRequest_ = value;
+ } else {
+ httpRequestBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setHttpRequest(
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder builderForValue) {
+ if (httpRequestBuilder_ == null) {
+ httpRequest_ = builderForValue.build();
+ } else {
+ httpRequestBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeHttpRequest(com.google.ads.admanager.v1.DaiSession.HttpRequest value) {
+ if (httpRequestBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && httpRequest_ != null
+ && httpRequest_
+ != com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()) {
+ getHttpRequestBuilder().mergeFrom(value);
+ } else {
+ httpRequest_ = value;
+ }
+ } else {
+ httpRequestBuilder_.mergeFrom(value);
+ }
+ if (httpRequest_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearHttpRequest() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ httpRequest_ = null;
+ if (httpRequestBuilder_ != null) {
+ httpRequestBuilder_.dispose();
+ httpRequestBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder getHttpRequestBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetHttpRequestFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder
+ getHttpRequestOrBuilder() {
+ if (httpRequestBuilder_ != null) {
+ return httpRequestBuilder_.getMessageOrBuilder();
+ } else {
+ return httpRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : httpRequest_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request of the ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest http_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>
+ internalGetHttpRequestFieldBuilder() {
+ if (httpRequestBuilder_ == null) {
+ httpRequestBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>(
+ getHttpRequest(), getParentForChildren(), isClean());
+ httpRequest_ = null;
+ }
+ return httpRequestBuilder_;
+ }
+
+ private java.util.List
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getChildRequestsCount() {
+ if (childRequestsBuilder_ == null) {
+ return childRequests_.size();
+ } else {
+ return childRequestsBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest getChildRequests(
+ int index) {
+ if (childRequestsBuilder_ == null) {
+ return childRequests_.get(index);
+ } else {
+ return childRequestsBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setChildRequests(
+ int index, com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest value) {
+ if (childRequestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChildRequestsIsMutable();
+ childRequests_.set(index, value);
+ onChanged();
+ } else {
+ childRequestsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setChildRequests(
+ int index,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder builderForValue) {
+ if (childRequestsBuilder_ == null) {
+ ensureChildRequestsIsMutable();
+ childRequests_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ childRequestsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addChildRequests(
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest value) {
+ if (childRequestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChildRequestsIsMutable();
+ childRequests_.add(value);
+ onChanged();
+ } else {
+ childRequestsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addChildRequests(
+ int index, com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest value) {
+ if (childRequestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChildRequestsIsMutable();
+ childRequests_.add(index, value);
+ onChanged();
+ } else {
+ childRequestsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addChildRequests(
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder builderForValue) {
+ if (childRequestsBuilder_ == null) {
+ ensureChildRequestsIsMutable();
+ childRequests_.add(builderForValue.build());
+ onChanged();
+ } else {
+ childRequestsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addChildRequests(
+ int index,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder builderForValue) {
+ if (childRequestsBuilder_ == null) {
+ ensureChildRequestsIsMutable();
+ childRequests_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ childRequestsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllChildRequests(
+ java.lang.Iterable<
+ ? extends com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest>
+ values) {
+ if (childRequestsBuilder_ == null) {
+ ensureChildRequestsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childRequests_);
+ onChanged();
+ } else {
+ childRequestsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearChildRequests() {
+ if (childRequestsBuilder_ == null) {
+ childRequests_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ childRequestsBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeChildRequests(int index) {
+ if (childRequestsBuilder_ == null) {
+ ensureChildRequestsIsMutable();
+ childRequests_.remove(index);
+ onChanged();
+ } else {
+ childRequestsBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder
+ getChildRequestsBuilder(int index) {
+ return internalGetChildRequestsFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder
+ getChildRequestsOrBuilder(int index) {
+ if (childRequestsBuilder_ == null) {
+ return childRequests_.get(index);
+ } else {
+ return childRequestsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder>
+ getChildRequestsOrBuilderList() {
+ if (childRequestsBuilder_ != null) {
+ return childRequestsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(childRequests_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder
+ addChildRequestsBuilder() {
+ return internalGetChildRequestsFieldBuilder()
+ .addBuilder(
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder
+ addChildRequestsBuilder(int index) {
+ return internalGetChildRequestsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest
+ .getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad requests made to follow redirects or unwrap a previous
+ * VMAP or VAST wrapper ad response.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest child_requests = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adTag field is set.
+ */
+ public boolean hasAdTag() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adTag.
+ */
+ public java.lang.String getAdTag() {
+ java.lang.Object ref = adTag_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adTag_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adTag.
+ */
+ public com.google.protobuf.ByteString getAdTagBytes() {
+ java.lang.Object ref = adTag_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adTag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The adTag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdTag(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adTag_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdTag() {
+ adTag_ = getDefaultInstance().getAdTag();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad request URL.
+ *
+ *
+ * optional string ad_tag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for adTag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdTagBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adTag_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object effectiveAdRequestUrl_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the effectiveAdRequestUrl field is set.
+ */
+ public boolean hasEffectiveAdRequestUrl() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The effectiveAdRequestUrl.
+ */
+ public java.lang.String getEffectiveAdRequestUrl() {
+ java.lang.Object ref = effectiveAdRequestUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ effectiveAdRequestUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for effectiveAdRequestUrl.
+ */
+ public com.google.protobuf.ByteString getEffectiveAdRequestUrlBytes() {
+ java.lang.Object ref = effectiveAdRequestUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ effectiveAdRequestUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The effectiveAdRequestUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEffectiveAdRequestUrl(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ effectiveAdRequestUrl_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEffectiveAdRequestUrl() {
+ effectiveAdRequestUrl_ = getDefaultInstance().getEffectiveAdRequestUrl();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The effective ad request URL header value on the ad
+ * response. This value is only populated for VMAP ad requests when video
+ * playlist internal redirects are enabled. For details, see [Internal
+ * redirect to Google Campaign Manager
+ * 360](https://support.google.com/admanager/answer/9580500?hl=en&sjid=487826991051851731-NA).
+ *
+ *
+ *
+ * optional string effective_ad_request_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for effectiveAdRequestUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEffectiveAdRequestUrlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ effectiveAdRequestUrl_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.AdSelection.AdRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.AdSelection.AdRequest)
+ private static final com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType getType() {
+ com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType result =
+ com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType.forNumber(type_);
+ return result == null
+ ? com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int AD_REQUEST_FIELD_NUMBER = 2;
+ private com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest adRequest_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adRequest field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdRequest() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adRequest.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest getAdRequest() {
+ return adRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.getDefaultInstance()
+ : adRequest_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder
+ getAdRequestOrBuilder() {
+ return adRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.getDefaultInstance()
+ : adRequest_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(1, type_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getAdRequest());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAdRequest());
+ }
+ 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.admanager.v1.DaiSession.AdSelection)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.AdSelection other =
+ (com.google.ads.admanager.v1.DaiSession.AdSelection) obj;
+
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (type_ != other.type_) return false;
+ }
+ if (hasAdRequest() != other.hasAdRequest()) return false;
+ if (hasAdRequest()) {
+ if (!getAdRequest().equals(other.getAdRequest())) 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 (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasAdRequest()) {
+ hash = (37 * hash) + AD_REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getAdRequest().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection 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.admanager.v1.DaiSession.AdSelection parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection 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.admanager.v1.DaiSession.AdSelection parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.AdSelection 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * The ad requests, ad response, and nested ads in the DAI session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdSelection}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+ type_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType getType() {
+ com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType result =
+ com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType.forNumber(type_);
+ return result == null
+ ? com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(com.google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Response type of the parent ad request.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdResponseTypeEnum.AdResponseType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest adRequest_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder>
+ adRequestBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adRequest field is set.
+ */
+ public boolean hasAdRequest() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adRequest.
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest getAdRequest() {
+ if (adRequestBuilder_ == null) {
+ return adRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.getDefaultInstance()
+ : adRequest_;
+ } else {
+ return adRequestBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAdRequest(
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest value) {
+ if (adRequestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adRequest_ = value;
+ } else {
+ adRequestBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAdRequest(
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder builderForValue) {
+ if (adRequestBuilder_ == null) {
+ adRequest_ = builderForValue.build();
+ } else {
+ adRequestBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeAdRequest(
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest value) {
+ if (adRequestBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && adRequest_ != null
+ && adRequest_
+ != com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest
+ .getDefaultInstance()) {
+ getAdRequestBuilder().mergeFrom(value);
+ } else {
+ adRequest_ = value;
+ }
+ } else {
+ adRequestBuilder_.mergeFrom(value);
+ }
+ if (adRequest_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearAdRequest() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ adRequest_ = null;
+ if (adRequestBuilder_ != null) {
+ adRequestBuilder_.dispose();
+ adRequestBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder
+ getAdRequestBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetAdRequestFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder
+ getAdRequestOrBuilder() {
+ if (adRequestBuilder_ != null) {
+ return adRequestBuilder_.getMessageOrBuilder();
+ } else {
+ return adRequest_ == null
+ ? com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.getDefaultInstance()
+ : adRequest_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Top-level ad request.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdSelection.AdRequest ad_request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder>
+ internalGetAdRequestFieldBuilder() {
+ if (adRequestBuilder_ == null) {
+ adRequestBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.AdSelection.AdRequestOrBuilder>(
+ getAdRequest(), getParentForChildren(), isClean());
+ adRequest_ = null;
+ }
+ return adRequestBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.AdSelection)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.AdSelection)
+ private static final com.google.ads.admanager.v1.DaiSession.AdSelection DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.AdSelection();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdSelection getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the requestedBreakType field is set.
+ */
+ boolean hasRequestedBreakType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for requestedBreakType.
+ */
+ int getRequestedBreakTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The requestedBreakType.
+ */
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType getRequestedBreakType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID that links to the ad request that resulted in
+ * this ad pod.
+ *
+ *
+ * optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adRequestKey field is set.
+ */
+ boolean hasAdRequestKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID that links to the ad request that resulted in
+ * this ad pod.
+ *
+ *
+ * optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adRequestKey.
+ */
+ long getAdRequestKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getCreativesCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ boolean containsCreatives(long key);
+
+ /** Use {@link #getCreativesMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ /* nullable */
+ com.google.ads.admanager.v1.DaiSession.Creative getCreativesOrDefault(
+ long key,
+ /* nullable */
+ com.google.ads.admanager.v1.DaiSession.Creative defaultValue);
+
+ /**
+ *
+ *
+ *
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Creative getCreativesOrThrow(long key);
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the prefetchStage field is set.
+ */
+ boolean hasPrefetchStage();
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for prefetchStage.
+ */
+ int getPrefetchStageValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The prefetchStage.
+ */
+ com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType getPrefetchStage();
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBreakId field is set.
+ */
+ boolean hasAdBreakId();
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBreakId.
+ */
+ java.lang.String getAdBreakId();
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adBreakId.
+ */
+ com.google.protobuf.ByteString getAdBreakIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the label field is set.
+ */
+ boolean hasLabel();
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The label.
+ */
+ java.lang.String getLabel();
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for label.
+ */
+ com.google.protobuf.ByteString getLabelBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * Information about a single decisioned ad pod in this session. This message
+ * pertains to the smallest unit of ads to insert in a session, and
+ * might be a pod fragment.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdPod}
+ */
+ public static final class AdPod extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.AdPod)
+ AdPodOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdPod");
+ }
+
+ // Use AdPod.newBuilder() to construct.
+ private AdPod(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private AdPod() {
+ requestedBreakType_ = 0;
+ prefetchStage_ = 0;
+ adBreakId_ = "";
+ label_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdPod_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 3:
+ return internalGetCreatives();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdPod_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.AdPod.class,
+ com.google.ads.admanager.v1.DaiSession.AdPod.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int REQUESTED_BREAK_TYPE_FIELD_NUMBER = 1;
+ private int requestedBreakType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the requestedBreakType field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequestedBreakType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for requestedBreakType.
+ */
+ @java.lang.Override
+ public int getRequestedBreakTypeValue() {
+ return requestedBreakType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The requestedBreakType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.BreakTypeEnum.BreakType getRequestedBreakType() {
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType result =
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType.forNumber(requestedBreakType_);
+ return result == null
+ ? com.google.ads.admanager.v1.BreakTypeEnum.BreakType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int AD_REQUEST_KEY_FIELD_NUMBER = 2;
+ private long adRequestKey_ = 0L;
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID that links to the ad request that resulted in
+ * this ad pod.
+ *
+ *
+ * optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adRequestKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdRequestKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID that links to the ad request that resulted in
+ * this ad pod.
+ *
+ *
+ * optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adRequestKey.
+ */
+ @java.lang.Override
+ public long getAdRequestKey() {
+ return adRequestKey_;
+ }
+
+ public static final int CREATIVES_FIELD_NUMBER = 3;
+
+ private static final class CreativesDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.Creative>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public boolean containsCreatives(long key) {
+
+ return internalGetCreatives().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getCreativesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.ads.admanager.v1.DaiSession.Creative getCreativesOrDefault(
+ long key,
+ /* nullable */
+ com.google.ads.admanager.v1.DaiSession.Creative defaultValue) {
+
+ java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.Creative getCreativesOrThrow(long key) {
+
+ java.util.Map
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the prefetchStage field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrefetchStage() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for prefetchStage.
+ */
+ @java.lang.Override
+ public int getPrefetchStageValue() {
+ return prefetchStage_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The prefetchStage.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType getPrefetchStage() {
+ com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType result =
+ com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.forNumber(
+ prefetchStage_);
+ return result == null
+ ? com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int AD_BREAK_ID_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adBreakId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBreakId field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdBreakId() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBreakId.
+ */
+ @java.lang.Override
+ public java.lang.String getAdBreakId() {
+ java.lang.Object ref = adBreakId_;
+ 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();
+ adBreakId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adBreakId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdBreakIdBytes() {
+ java.lang.Object ref = adBreakId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adBreakId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LABEL_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object label_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the label field is set.
+ */
+ @java.lang.Override
+ public boolean hasLabel() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The label.
+ */
+ @java.lang.Override
+ public java.lang.String getLabel() {
+ java.lang.Object ref = label_;
+ 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();
+ label_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for label.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLabelBytes() {
+ java.lang.Object ref = label_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ label_ = 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(1, requestedBreakType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, adRequestKey_);
+ }
+ com.google.protobuf.GeneratedMessage.serializeLongMapTo(
+ output, internalGetCreatives(), CreativesDefaultEntryHolder.defaultEntry, 3);
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeEnum(4, prefetchStage_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, adBreakId_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, label_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, requestedBreakType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, adRequestKey_);
+ }
+ for (java.util.Map.Entry
+ * Information about a single decisioned ad pod in this session. This message
+ * pertains to the smallest unit of ads to insert in a session, and
+ * might be a pod fragment.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdPod}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the requestedBreakType field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequestedBreakType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for requestedBreakType.
+ */
+ @java.lang.Override
+ public int getRequestedBreakTypeValue() {
+ return requestedBreakType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for requestedBreakType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRequestedBreakTypeValue(int value) {
+ requestedBreakType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The requestedBreakType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.BreakTypeEnum.BreakType getRequestedBreakType() {
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType result =
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType.forNumber(requestedBreakType_);
+ return result == null
+ ? com.google.ads.admanager.v1.BreakTypeEnum.BreakType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The requestedBreakType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRequestedBreakType(
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ requestedBreakType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of ad break this ad pod was decisioned for.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType requested_break_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRequestedBreakType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ requestedBreakType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long adRequestKey_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID that links to the ad request that resulted in
+ * this ad pod.
+ *
+ *
+ * optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adRequestKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdRequestKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID that links to the ad request that resulted in
+ * this ad pod.
+ *
+ *
+ * optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adRequestKey.
+ */
+ @java.lang.Override
+ public long getAdRequestKey() {
+ return adRequestKey_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID that links to the ad request that resulted in
+ * this ad pod.
+ *
+ *
+ * optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The adRequestKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdRequestKey(long value) {
+
+ adRequestKey_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad request ID that links to the ad request that resulted in
+ * this ad pod.
+ *
+ *
+ * optional int64 ad_request_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdRequestKey() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ adRequestKey_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private static final class CreativesConverter
+ implements com.google.protobuf.MapFieldBuilder.Converter<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.CreativeOrBuilder,
+ com.google.ads.admanager.v1.DaiSession.Creative> {
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.Creative build(
+ com.google.ads.admanager.v1.DaiSession.CreativeOrBuilder val) {
+ if (val instanceof com.google.ads.admanager.v1.DaiSession.Creative) {
+ return (com.google.ads.admanager.v1.DaiSession.Creative) val;
+ }
+ return ((com.google.ads.admanager.v1.DaiSession.Creative.Builder) val).build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.Creative>
+ defaultEntry() {
+ return CreativesDefaultEntryHolder.defaultEntry;
+ }
+ }
+ ;
+
+ private static final CreativesConverter creativesConverter = new CreativesConverter();
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.CreativeOrBuilder,
+ com.google.ads.admanager.v1.DaiSession.Creative,
+ com.google.ads.admanager.v1.DaiSession.Creative.Builder>
+ creatives_;
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.CreativeOrBuilder,
+ com.google.ads.admanager.v1.DaiSession.Creative,
+ com.google.ads.admanager.v1.DaiSession.Creative.Builder>
+ internalGetCreatives() {
+ if (creatives_ == null) {
+ return new com.google.protobuf.MapFieldBuilder<>(creativesConverter);
+ }
+ return creatives_;
+ }
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.CreativeOrBuilder,
+ com.google.ads.admanager.v1.DaiSession.Creative,
+ com.google.ads.admanager.v1.DaiSession.Creative.Builder>
+ internalGetMutableCreatives() {
+ if (creatives_ == null) {
+ creatives_ = new com.google.protobuf.MapFieldBuilder<>(creativesConverter);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return creatives_;
+ }
+
+ public int getCreativesCount() {
+ return internalGetCreatives().ensureBuilderMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public boolean containsCreatives(long key) {
+
+ return internalGetCreatives().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getCreativesMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.ads.admanager.v1.DaiSession.Creative getCreativesOrDefault(
+ long key,
+ /* nullable */
+ com.google.ads.admanager.v1.DaiSession.Creative defaultValue) {
+
+ java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.Creative getCreativesOrThrow(long key) {
+
+ java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeCreatives(long key) {
+
+ internalGetMutableCreatives().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder putCreatives(long key, com.google.ads.admanager.v1.DaiSession.Creative value) {
+
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableCreatives().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder putAllCreatives(
+ java.util.Map
+ * Output only. The creatives in this ad pod. Keyed by a unique ID used to
+ * reference this creative from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.Creative> creatives = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.Creative.Builder putCreativesBuilderIfAbsent(
+ long key) {
+ java.util.Map
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the prefetchStage field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrefetchStage() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for prefetchStage.
+ */
+ @java.lang.Override
+ public int getPrefetchStageValue() {
+ return prefetchStage_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for prefetchStage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrefetchStageValue(int value) {
+ prefetchStage_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The prefetchStage.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType
+ getPrefetchStage() {
+ com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType result =
+ com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.forNumber(
+ prefetchStage_);
+ return result == null
+ ? com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The prefetchStage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrefetchStage(
+ com.google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ prefetchStage_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Indicates the prefetch stage for this ad pod. If prefetch is
+ * not enabled this stage is set to the
+ * [PrefetchStageType.DISABLED][google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType.DISABLED]
+ * value.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PrefetchStageTypeEnum.PrefetchStageType prefetch_stage = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPrefetchStage() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ prefetchStage_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object adBreakId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBreakId field is set.
+ */
+ public boolean hasAdBreakId() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBreakId.
+ */
+ public java.lang.String getAdBreakId() {
+ java.lang.Object ref = adBreakId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adBreakId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adBreakId.
+ */
+ public com.google.protobuf.ByteString getAdBreakIdBytes() {
+ java.lang.Object ref = adBreakId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adBreakId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The adBreakId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdBreakId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adBreakId_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdBreakId() {
+ adBreakId_ = getDefaultInstance().getAdBreakId();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for adBreakId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdBreakIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adBreakId_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object label_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the label field is set.
+ */
+ public boolean hasLabel() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The label.
+ */
+ public java.lang.String getLabel() {
+ java.lang.Object ref = label_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ label_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for label.
+ */
+ public com.google.protobuf.ByteString getLabelBytes() {
+ java.lang.Object ref = label_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ label_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The label to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLabel(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ label_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLabel() {
+ label_ = getDefaultInstance().getLabel();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Descriptive label for this ad pod, used to distinguish ad
+ * pods from one another in this session. e.g. "midroll-1", "2".
+ *
+ *
+ * optional string label = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for label to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLabelBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ label_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.AdPod)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.AdPod)
+ private static final com.google.ads.admanager.v1.DaiSession.AdPod DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.AdPod();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdPod getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the linear field is set.
+ */
+ boolean hasLinear();
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The linear.
+ */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak getLinear();
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreakOrBuilder getLinearOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the vod field is set.
+ */
+ boolean hasVod();
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The vod.
+ */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak getVod();
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreakOrBuilder getVodOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return A list containing the podKeys.
+ */
+ java.util.List
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of podKeys.
+ */
+ int getPodKeysCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param index The index of the element to return.
+ * @return The podKeys at the given index.
+ */
+ long getPodKeys(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBreakId field is set.
+ */
+ boolean hasAdBreakId();
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBreakId.
+ */
+ java.lang.String getAdBreakId();
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adBreakId.
+ */
+ com.google.protobuf.ByteString getAdBreakIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the breakType field is set.
+ */
+ boolean hasBreakType();
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for breakType.
+ */
+ int getBreakTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The breakType.
+ */
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType getBreakType();
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of this ad break in the session.
+ *
+ *
+ * optional int64 break_sequence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the breakSequence field is set.
+ */
+ boolean hasBreakSequence();
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of this ad break in the session.
+ *
+ *
+ * optional int64 break_sequence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The breakSequence.
+ */
+ long getBreakSequence();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the servedAdsDuration field is set.
+ */
+ boolean hasServedAdsDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The servedAdsDuration.
+ */
+ com.google.protobuf.Duration getServedAdsDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getServedAdsDurationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the executedBreakDuration field is set.
+ */
+ boolean hasExecutedBreakDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The executedBreakDuration.
+ */
+ com.google.protobuf.Duration getExecutedBreakDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getExecutedBreakDurationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getTrackingPingsCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ boolean containsTrackingPings(long key);
+
+ /** Use {@link #getTrackingPingsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.Map
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ /* nullable */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing getTrackingPingsOrDefault(
+ long key,
+ /* nullable */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing defaultValue);
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing getTrackingPingsOrThrow(long key);
+
+ com.google.ads.admanager.v1.DaiSession.AdBreak.StreamTypeInfoCase getStreamTypeInfoCase();
+ }
+
+ /**
+ *
+ *
+ *
+ * Information about an ad break in this session. Includes statuses such as ad
+ * and slate durations.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdBreak}
+ */
+ public static final class AdBreak extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.AdBreak)
+ AdBreakOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdBreak");
+ }
+
+ // Use AdBreak.newBuilder() to construct.
+ private AdBreak(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private AdBreak() {
+ podKeys_ = emptyLongList();
+ adBreakId_ = "";
+ breakType_ = 0;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdBreak_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 9:
+ return internalGetTrackingPings();
+ default:
+ throw new RuntimeException("Invalid map field number: " + number);
+ }
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdBreak_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.AdBreak.class,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.Builder.class);
+ }
+
+ public interface VodBreakOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DaiSession.AdBreak.VodBreak)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the timeOffset field is set.
+ */
+ boolean hasTimeOffset();
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The timeOffset.
+ */
+ com.google.protobuf.Duration getTimeOffset();
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Represents Video on Demand related break information.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdBreak.VodBreak}
+ */
+ public static final class VodBreak extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.AdBreak.VodBreak)
+ VodBreakOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "VodBreak");
+ }
+
+ // Use VodBreak.newBuilder() to construct.
+ private VodBreak(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private VodBreak() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdBreak_VodBreak_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdBreak_VodBreak_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.class,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TIME_OFFSET_FIELD_NUMBER = 1;
+ private com.google.protobuf.Duration timeOffset_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the timeOffset field is set.
+ */
+ @java.lang.Override
+ public boolean hasTimeOffset() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The timeOffset.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getTimeOffset() {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getTimeOffset());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeOffset());
+ }
+ 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.admanager.v1.DaiSession.AdBreak.VodBreak)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak other =
+ (com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak) obj;
+
+ if (hasTimeOffset() != other.hasTimeOffset()) return false;
+ if (hasTimeOffset()) {
+ if (!getTimeOffset().equals(other.getTimeOffset())) 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 (hasTimeOffset()) {
+ hash = (37 * hash) + TIME_OFFSET_FIELD_NUMBER;
+ hash = (53 * hash) + getTimeOffset().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak 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.admanager.v1.DaiSession.AdBreak.VodBreak parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak 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.admanager.v1.DaiSession.AdBreak.VodBreak parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.AdBreak.VodBreak 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Represents Video on Demand related break information.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdBreak.VodBreak}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the timeOffset field is set.
+ */
+ public boolean hasTimeOffset() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The timeOffset.
+ */
+ public com.google.protobuf.Duration getTimeOffset() {
+ if (timeOffsetBuilder_ == null) {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ } else {
+ return timeOffsetBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setTimeOffset(com.google.protobuf.Duration value) {
+ if (timeOffsetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ timeOffset_ = value;
+ } else {
+ timeOffsetBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) {
+ if (timeOffsetBuilder_ == null) {
+ timeOffset_ = builderForValue.build();
+ } else {
+ timeOffsetBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
+ if (timeOffsetBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && timeOffset_ != null
+ && timeOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getTimeOffsetBuilder().mergeFrom(value);
+ } else {
+ timeOffset_ = value;
+ }
+ } else {
+ timeOffsetBuilder_.mergeFrom(value);
+ }
+ if (timeOffset_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearTimeOffset() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ timeOffset_ = null;
+ if (timeOffsetBuilder_ != null) {
+ timeOffsetBuilder_.dispose();
+ timeOffsetBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetTimeOffsetFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
+ if (timeOffsetBuilder_ != null) {
+ return timeOffsetBuilder_.getMessageOrBuilder();
+ } else {
+ return timeOffset_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : timeOffset_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time difference between the start of this break and
+ * the start of the session. Includes the time for any preceding ad
+ * breaks.
+ *
+ *
+ *
+ * .google.protobuf.Duration time_offset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetTimeOffsetFieldBuilder() {
+ if (timeOffsetBuilder_ == null) {
+ timeOffsetBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getTimeOffset(), getParentForChildren(), isClean());
+ timeOffset_ = null;
+ }
+ return timeOffsetBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.AdBreak.VodBreak)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.AdBreak.VodBreak)
+ private static final com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the breakStartTime field is set.
+ */
+ boolean hasBreakStartTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The breakStartTime.
+ */
+ com.google.protobuf.Timestamp getBreakStartTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getBreakStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expectedBreakDuration field is set.
+ */
+ boolean hasExpectedBreakDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expectedBreakDuration.
+ */
+ com.google.protobuf.Duration getExpectedBreakDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getExpectedBreakDurationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the slateDuration field is set.
+ */
+ boolean hasSlateDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The slateDuration.
+ */
+ com.google.protobuf.Duration getSlateDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getSlateDurationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the underlyingDuration field is set.
+ */
+ boolean hasUnderlyingDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The underlyingDuration.
+ */
+ com.google.protobuf.Duration getUnderlyingDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getUnderlyingDurationOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Represents linear session related break information.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak}
+ */
+ public static final class LinearBreak extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak)
+ LinearBreakOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "LinearBreak");
+ }
+
+ // Use LinearBreak.newBuilder() to construct.
+ private LinearBreak(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private LinearBreak() {}
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdBreak_LinearBreak_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdBreak_LinearBreak_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.class,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int BREAK_START_TIME_FIELD_NUMBER = 3;
+ private com.google.protobuf.Timestamp breakStartTime_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the breakStartTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasBreakStartTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The breakStartTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getBreakStartTime() {
+ return breakStartTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : breakStartTime_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getBreakStartTimeOrBuilder() {
+ return breakStartTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : breakStartTime_;
+ }
+
+ public static final int EXPECTED_BREAK_DURATION_FIELD_NUMBER = 4;
+ private com.google.protobuf.Duration expectedBreakDuration_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expectedBreakDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpectedBreakDuration() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expectedBreakDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getExpectedBreakDuration() {
+ return expectedBreakDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : expectedBreakDuration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getExpectedBreakDurationOrBuilder() {
+ return expectedBreakDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : expectedBreakDuration_;
+ }
+
+ public static final int SLATE_DURATION_FIELD_NUMBER = 5;
+ private com.google.protobuf.Duration slateDuration_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the slateDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasSlateDuration() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The slateDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getSlateDuration() {
+ return slateDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : slateDuration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getSlateDurationOrBuilder() {
+ return slateDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : slateDuration_;
+ }
+
+ public static final int UNDERLYING_DURATION_FIELD_NUMBER = 6;
+ private com.google.protobuf.Duration underlyingDuration_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the underlyingDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasUnderlyingDuration() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The underlyingDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getUnderlyingDuration() {
+ return underlyingDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : underlyingDuration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getUnderlyingDurationOrBuilder() {
+ return underlyingDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : underlyingDuration_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getBreakStartTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(4, getExpectedBreakDuration());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(5, getSlateDuration());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getUnderlyingDuration());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBreakStartTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, getExpectedBreakDuration());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSlateDuration());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUnderlyingDuration());
+ }
+ 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.admanager.v1.DaiSession.AdBreak.LinearBreak)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak other =
+ (com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak) obj;
+
+ if (hasBreakStartTime() != other.hasBreakStartTime()) return false;
+ if (hasBreakStartTime()) {
+ if (!getBreakStartTime().equals(other.getBreakStartTime())) return false;
+ }
+ if (hasExpectedBreakDuration() != other.hasExpectedBreakDuration()) return false;
+ if (hasExpectedBreakDuration()) {
+ if (!getExpectedBreakDuration().equals(other.getExpectedBreakDuration())) return false;
+ }
+ if (hasSlateDuration() != other.hasSlateDuration()) return false;
+ if (hasSlateDuration()) {
+ if (!getSlateDuration().equals(other.getSlateDuration())) return false;
+ }
+ if (hasUnderlyingDuration() != other.hasUnderlyingDuration()) return false;
+ if (hasUnderlyingDuration()) {
+ if (!getUnderlyingDuration().equals(other.getUnderlyingDuration())) 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 (hasBreakStartTime()) {
+ hash = (37 * hash) + BREAK_START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getBreakStartTime().hashCode();
+ }
+ if (hasExpectedBreakDuration()) {
+ hash = (37 * hash) + EXPECTED_BREAK_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getExpectedBreakDuration().hashCode();
+ }
+ if (hasSlateDuration()) {
+ hash = (37 * hash) + SLATE_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getSlateDuration().hashCode();
+ }
+ if (hasUnderlyingDuration()) {
+ hash = (37 * hash) + UNDERLYING_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getUnderlyingDuration().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak 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.admanager.v1.DaiSession.AdBreak.LinearBreak parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak 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.admanager.v1.DaiSession.AdBreak.LinearBreak parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.AdBreak.LinearBreak 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Represents linear session related break information.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the breakStartTime field is set.
+ */
+ public boolean hasBreakStartTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The breakStartTime.
+ */
+ public com.google.protobuf.Timestamp getBreakStartTime() {
+ if (breakStartTimeBuilder_ == null) {
+ return breakStartTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : breakStartTime_;
+ } else {
+ return breakStartTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBreakStartTime(com.google.protobuf.Timestamp value) {
+ if (breakStartTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ breakStartTime_ = value;
+ } else {
+ breakStartTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setBreakStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (breakStartTimeBuilder_ == null) {
+ breakStartTime_ = builderForValue.build();
+ } else {
+ breakStartTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeBreakStartTime(com.google.protobuf.Timestamp value) {
+ if (breakStartTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && breakStartTime_ != null
+ && breakStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getBreakStartTimeBuilder().mergeFrom(value);
+ } else {
+ breakStartTime_ = value;
+ }
+ } else {
+ breakStartTimeBuilder_.mergeFrom(value);
+ }
+ if (breakStartTime_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearBreakStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ breakStartTime_ = null;
+ if (breakStartTimeBuilder_ != null) {
+ breakStartTimeBuilder_.dispose();
+ breakStartTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getBreakStartTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetBreakStartTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getBreakStartTimeOrBuilder() {
+ if (breakStartTimeBuilder_ != null) {
+ return breakStartTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return breakStartTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : breakStartTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The timestamp of when the break started.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp break_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetBreakStartTimeFieldBuilder() {
+ if (breakStartTimeBuilder_ == null) {
+ breakStartTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getBreakStartTime(), getParentForChildren(), isClean());
+ breakStartTime_ = null;
+ }
+ return breakStartTimeBuilder_;
+ }
+
+ private com.google.protobuf.Duration expectedBreakDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ expectedBreakDurationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expectedBreakDuration field is set.
+ */
+ public boolean hasExpectedBreakDuration() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expectedBreakDuration.
+ */
+ public com.google.protobuf.Duration getExpectedBreakDuration() {
+ if (expectedBreakDurationBuilder_ == null) {
+ return expectedBreakDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : expectedBreakDuration_;
+ } else {
+ return expectedBreakDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setExpectedBreakDuration(com.google.protobuf.Duration value) {
+ if (expectedBreakDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expectedBreakDuration_ = value;
+ } else {
+ expectedBreakDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setExpectedBreakDuration(
+ com.google.protobuf.Duration.Builder builderForValue) {
+ if (expectedBreakDurationBuilder_ == null) {
+ expectedBreakDuration_ = builderForValue.build();
+ } else {
+ expectedBreakDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeExpectedBreakDuration(com.google.protobuf.Duration value) {
+ if (expectedBreakDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && expectedBreakDuration_ != null
+ && expectedBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getExpectedBreakDurationBuilder().mergeFrom(value);
+ } else {
+ expectedBreakDuration_ = value;
+ }
+ } else {
+ expectedBreakDurationBuilder_.mergeFrom(value);
+ }
+ if (expectedBreakDuration_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearExpectedBreakDuration() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ expectedBreakDuration_ = null;
+ if (expectedBreakDurationBuilder_ != null) {
+ expectedBreakDurationBuilder_.dispose();
+ expectedBreakDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getExpectedBreakDurationBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetExpectedBreakDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getExpectedBreakDurationOrBuilder() {
+ if (expectedBreakDurationBuilder_ != null) {
+ return expectedBreakDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return expectedBreakDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : expectedBreakDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of the placement opportunity associated with
+ * the break.
+ *
+ *
+ *
+ * .google.protobuf.Duration expected_break_duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetExpectedBreakDurationFieldBuilder() {
+ if (expectedBreakDurationBuilder_ == null) {
+ expectedBreakDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getExpectedBreakDuration(), getParentForChildren(), isClean());
+ expectedBreakDuration_ = null;
+ }
+ return expectedBreakDurationBuilder_;
+ }
+
+ private com.google.protobuf.Duration slateDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ slateDurationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the slateDuration field is set.
+ */
+ public boolean hasSlateDuration() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The slateDuration.
+ */
+ public com.google.protobuf.Duration getSlateDuration() {
+ if (slateDurationBuilder_ == null) {
+ return slateDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : slateDuration_;
+ } else {
+ return slateDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setSlateDuration(com.google.protobuf.Duration value) {
+ if (slateDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ slateDuration_ = value;
+ } else {
+ slateDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setSlateDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (slateDurationBuilder_ == null) {
+ slateDuration_ = builderForValue.build();
+ } else {
+ slateDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeSlateDuration(com.google.protobuf.Duration value) {
+ if (slateDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && slateDuration_ != null
+ && slateDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getSlateDurationBuilder().mergeFrom(value);
+ } else {
+ slateDuration_ = value;
+ }
+ } else {
+ slateDurationBuilder_.mergeFrom(value);
+ }
+ if (slateDuration_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearSlateDuration() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ slateDuration_ = null;
+ if (slateDurationBuilder_ != null) {
+ slateDurationBuilder_.dispose();
+ slateDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getSlateDurationBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return internalGetSlateDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getSlateDurationOrBuilder() {
+ if (slateDurationBuilder_ != null) {
+ return slateDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return slateDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : slateDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of slate that was inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration slate_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetSlateDurationFieldBuilder() {
+ if (slateDurationBuilder_ == null) {
+ slateDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getSlateDuration(), getParentForChildren(), isClean());
+ slateDuration_ = null;
+ }
+ return slateDurationBuilder_;
+ }
+
+ private com.google.protobuf.Duration underlyingDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ underlyingDurationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the underlyingDuration field is set.
+ */
+ public boolean hasUnderlyingDuration() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The underlyingDuration.
+ */
+ public com.google.protobuf.Duration getUnderlyingDuration() {
+ if (underlyingDurationBuilder_ == null) {
+ return underlyingDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : underlyingDuration_;
+ } else {
+ return underlyingDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUnderlyingDuration(com.google.protobuf.Duration value) {
+ if (underlyingDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ underlyingDuration_ = value;
+ } else {
+ underlyingDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUnderlyingDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (underlyingDurationBuilder_ == null) {
+ underlyingDuration_ = builderForValue.build();
+ } else {
+ underlyingDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeUnderlyingDuration(com.google.protobuf.Duration value) {
+ if (underlyingDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && underlyingDuration_ != null
+ && underlyingDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getUnderlyingDurationBuilder().mergeFrom(value);
+ } else {
+ underlyingDuration_ = value;
+ }
+ } else {
+ underlyingDurationBuilder_.mergeFrom(value);
+ }
+ if (underlyingDuration_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearUnderlyingDuration() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ underlyingDuration_ = null;
+ if (underlyingDurationBuilder_ != null) {
+ underlyingDurationBuilder_.dispose();
+ underlyingDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getUnderlyingDurationBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return internalGetUnderlyingDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getUnderlyingDurationOrBuilder() {
+ if (underlyingDurationBuilder_ != null) {
+ return underlyingDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return underlyingDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : underlyingDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of underlying content that was inserted for
+ * this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration underlying_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetUnderlyingDurationFieldBuilder() {
+ if (underlyingDurationBuilder_ == null) {
+ underlyingDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getUnderlyingDuration(), getParentForChildren(), isClean());
+ underlyingDuration_ = null;
+ }
+ return underlyingDurationBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak)
+ private static final com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the originalTrackingEventId field is set.
+ */
+ boolean hasOriginalTrackingEventId();
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The originalTrackingEventId.
+ */
+ java.lang.String getOriginalTrackingEventId();
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for originalTrackingEventId.
+ */
+ com.google.protobuf.ByteString getOriginalTrackingEventIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the request field is set.
+ */
+ boolean hasRequest();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The request.
+ */
+ com.google.ads.admanager.v1.DaiSession.HttpRequest getRequest();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder getRequestOrBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Information about a tracking ping issued for a break.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing}
+ */
+ public static final class TrackingPing extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing)
+ TrackingPingOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "TrackingPing");
+ }
+
+ // Use TrackingPing.newBuilder() to construct.
+ private TrackingPing(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private TrackingPing() {
+ originalTrackingEventId_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdBreak_TrackingPing_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_AdBreak_TrackingPing_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.class,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int ORIGINAL_TRACKING_EVENT_ID_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object originalTrackingEventId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the originalTrackingEventId field is set.
+ */
+ @java.lang.Override
+ public boolean hasOriginalTrackingEventId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The originalTrackingEventId.
+ */
+ @java.lang.Override
+ public java.lang.String getOriginalTrackingEventId() {
+ java.lang.Object ref = originalTrackingEventId_;
+ 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();
+ originalTrackingEventId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for originalTrackingEventId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOriginalTrackingEventIdBytes() {
+ java.lang.Object ref = originalTrackingEventId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ originalTrackingEventId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REQUEST_FIELD_NUMBER = 2;
+ private com.google.ads.admanager.v1.DaiSession.HttpRequest request_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the request field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequest() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The request.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest getRequest() {
+ return request_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : request_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder getRequestOrBuilder() {
+ return request_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : request_;
+ }
+
+ 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 (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getRequest());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, originalTrackingEventId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequest());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size +=
+ com.google.protobuf.GeneratedMessage.computeStringSize(4, originalTrackingEventId_);
+ }
+ 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.admanager.v1.DaiSession.AdBreak.TrackingPing)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing other =
+ (com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing) obj;
+
+ if (hasOriginalTrackingEventId() != other.hasOriginalTrackingEventId()) return false;
+ if (hasOriginalTrackingEventId()) {
+ if (!getOriginalTrackingEventId().equals(other.getOriginalTrackingEventId()))
+ return false;
+ }
+ if (hasRequest() != other.hasRequest()) return false;
+ if (hasRequest()) {
+ if (!getRequest().equals(other.getRequest())) 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 (hasOriginalTrackingEventId()) {
+ hash = (37 * hash) + ORIGINAL_TRACKING_EVENT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOriginalTrackingEventId().hashCode();
+ }
+ if (hasRequest()) {
+ hash = (37 * hash) + REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getRequest().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing 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.admanager.v1.DaiSession.AdBreak.TrackingPing parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing 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.admanager.v1.DaiSession.AdBreak.TrackingPing parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.AdBreak.TrackingPing 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Information about a tracking ping issued for a break.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the originalTrackingEventId field is set.
+ */
+ public boolean hasOriginalTrackingEventId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The originalTrackingEventId.
+ */
+ public java.lang.String getOriginalTrackingEventId() {
+ java.lang.Object ref = originalTrackingEventId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ originalTrackingEventId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for originalTrackingEventId.
+ */
+ public com.google.protobuf.ByteString getOriginalTrackingEventIdBytes() {
+ java.lang.Object ref = originalTrackingEventId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ originalTrackingEventId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The originalTrackingEventId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOriginalTrackingEventId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ originalTrackingEventId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOriginalTrackingEventId() {
+ originalTrackingEventId_ = getDefaultInstance().getOriginalTrackingEventId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. A unique ID for this tracking event, which is the ID3 tag
+ * in client-side reporting.
+ *
+ *
+ *
+ * optional string original_tracking_event_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for originalTrackingEventId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOriginalTrackingEventIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ originalTrackingEventId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.ads.admanager.v1.DaiSession.HttpRequest request_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>
+ requestBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The request.
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest getRequest() {
+ if (requestBuilder_ == null) {
+ return request_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : request_;
+ } else {
+ return requestBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRequest(com.google.ads.admanager.v1.DaiSession.HttpRequest value) {
+ if (requestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ request_ = value;
+ } else {
+ requestBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRequest(
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder builderForValue) {
+ if (requestBuilder_ == null) {
+ request_ = builderForValue.build();
+ } else {
+ requestBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeRequest(com.google.ads.admanager.v1.DaiSession.HttpRequest value) {
+ if (requestBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && request_ != null
+ && request_
+ != com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()) {
+ getRequestBuilder().mergeFrom(value);
+ } else {
+ request_ = value;
+ }
+ } else {
+ requestBuilder_.mergeFrom(value);
+ }
+ if (request_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearRequest() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ request_ = null;
+ if (requestBuilder_ != null) {
+ requestBuilder_.dispose();
+ requestBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder getRequestBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetRequestFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder getRequestOrBuilder() {
+ if (requestBuilder_ != null) {
+ return requestBuilder_.getMessageOrBuilder();
+ } else {
+ return request_ == null
+ ? com.google.ads.admanager.v1.DaiSession.HttpRequest.getDefaultInstance()
+ : request_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP request made to the ad server for this tracking
+ * ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.HttpRequest request = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>
+ internalGetRequestFieldBuilder() {
+ if (requestBuilder_ == null) {
+ requestBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.HttpRequest,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder,
+ com.google.ads.admanager.v1.DaiSession.HttpRequestOrBuilder>(
+ getRequest(), getParentForChildren(), isClean());
+ request_ = null;
+ }
+ return requestBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing)
+ private static final com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the linear field is set.
+ */
+ @java.lang.Override
+ public boolean hasLinear() {
+ return streamTypeInfoCase_ == 7;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The linear.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak getLinear() {
+ if (streamTypeInfoCase_ == 7) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak) streamTypeInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreakOrBuilder
+ getLinearOrBuilder() {
+ if (streamTypeInfoCase_ == 7) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak) streamTypeInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.getDefaultInstance();
+ }
+
+ public static final int VOD_FIELD_NUMBER = 8;
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the vod field is set.
+ */
+ @java.lang.Override
+ public boolean hasVod() {
+ return streamTypeInfoCase_ == 8;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The vod.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak getVod() {
+ if (streamTypeInfoCase_ == 8) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak) streamTypeInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreakOrBuilder getVodOrBuilder() {
+ if (streamTypeInfoCase_ == 8) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak) streamTypeInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.getDefaultInstance();
+ }
+
+ public static final int POD_KEYS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.LongList podKeys_ = emptyLongList();
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return A list containing the podKeys.
+ */
+ @java.lang.Override
+ public java.util.List
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of podKeys.
+ */
+ public int getPodKeysCount() {
+ return podKeys_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param index The index of the element to return.
+ * @return The podKeys at the given index.
+ */
+ public long getPodKeys(int index) {
+ return podKeys_.getLong(index);
+ }
+
+ private int podKeysMemoizedSerializedSize = -1;
+
+ public static final int AD_BREAK_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adBreakId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBreakId field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdBreakId() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBreakId.
+ */
+ @java.lang.Override
+ public java.lang.String getAdBreakId() {
+ java.lang.Object ref = adBreakId_;
+ 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();
+ adBreakId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adBreakId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdBreakIdBytes() {
+ java.lang.Object ref = adBreakId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adBreakId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BREAK_TYPE_FIELD_NUMBER = 3;
+ private int breakType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the breakType field is set.
+ */
+ @java.lang.Override
+ public boolean hasBreakType() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for breakType.
+ */
+ @java.lang.Override
+ public int getBreakTypeValue() {
+ return breakType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The breakType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.BreakTypeEnum.BreakType getBreakType() {
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType result =
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType.forNumber(breakType_);
+ return result == null
+ ? com.google.ads.admanager.v1.BreakTypeEnum.BreakType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int BREAK_SEQUENCE_FIELD_NUMBER = 4;
+ private long breakSequence_ = 0L;
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of this ad break in the session.
+ *
+ *
+ * optional int64 break_sequence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the breakSequence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBreakSequence() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of this ad break in the session.
+ *
+ *
+ * optional int64 break_sequence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The breakSequence.
+ */
+ @java.lang.Override
+ public long getBreakSequence() {
+ return breakSequence_;
+ }
+
+ public static final int SERVED_ADS_DURATION_FIELD_NUMBER = 5;
+ private com.google.protobuf.Duration servedAdsDuration_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the servedAdsDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasServedAdsDuration() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The servedAdsDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getServedAdsDuration() {
+ return servedAdsDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : servedAdsDuration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getServedAdsDurationOrBuilder() {
+ return servedAdsDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : servedAdsDuration_;
+ }
+
+ public static final int EXECUTED_BREAK_DURATION_FIELD_NUMBER = 6;
+ private com.google.protobuf.Duration executedBreakDuration_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the executedBreakDuration field is set.
+ */
+ @java.lang.Override
+ public boolean hasExecutedBreakDuration() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The executedBreakDuration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getExecutedBreakDuration() {
+ return executedBreakDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : executedBreakDuration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getExecutedBreakDurationOrBuilder() {
+ return executedBreakDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : executedBreakDuration_;
+ }
+
+ public static final int TRACKING_PINGS_FIELD_NUMBER = 9;
+
+ private static final class TrackingPingsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing>
+ defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public boolean containsTrackingPings(long key) {
+
+ return internalGetTrackingPings().getMap().containsKey(key);
+ }
+
+ /** Use {@link #getTrackingPingsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing>
+ getTrackingPings() {
+ return getTrackingPingsMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing>
+ getTrackingPingsMap() {
+ return internalGetTrackingPings().getMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing
+ getTrackingPingsOrDefault(
+ long key,
+ /* nullable */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing defaultValue) {
+
+ java.util.Map
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing getTrackingPingsOrThrow(
+ long key) {
+
+ java.util.Map
+ * Information about an ad break in this session. Includes statuses such as ad
+ * and slate durations.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.AdBreak}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the linear field is set.
+ */
+ @java.lang.Override
+ public boolean hasLinear() {
+ return streamTypeInfoCase_ == 7;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The linear.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak getLinear() {
+ if (linearBuilder_ == null) {
+ if (streamTypeInfoCase_ == 7) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak) streamTypeInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.getDefaultInstance();
+ } else {
+ if (streamTypeInfoCase_ == 7) {
+ return linearBuilder_.getMessage();
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLinear(com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak value) {
+ if (linearBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamTypeInfo_ = value;
+ onChanged();
+ } else {
+ linearBuilder_.setMessage(value);
+ }
+ streamTypeInfoCase_ = 7;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLinear(
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.Builder builderForValue) {
+ if (linearBuilder_ == null) {
+ streamTypeInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ linearBuilder_.setMessage(builderForValue.build());
+ }
+ streamTypeInfoCase_ = 7;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeLinear(com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak value) {
+ if (linearBuilder_ == null) {
+ if (streamTypeInfoCase_ == 7
+ && streamTypeInfo_
+ != com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak
+ .getDefaultInstance()) {
+ streamTypeInfo_ =
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.newBuilder(
+ (com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak)
+ streamTypeInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ streamTypeInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (streamTypeInfoCase_ == 7) {
+ linearBuilder_.mergeFrom(value);
+ } else {
+ linearBuilder_.setMessage(value);
+ }
+ }
+ streamTypeInfoCase_ = 7;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearLinear() {
+ if (linearBuilder_ == null) {
+ if (streamTypeInfoCase_ == 7) {
+ streamTypeInfoCase_ = 0;
+ streamTypeInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (streamTypeInfoCase_ == 7) {
+ streamTypeInfoCase_ = 0;
+ streamTypeInfo_ = null;
+ }
+ linearBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.Builder getLinearBuilder() {
+ return internalGetLinearFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreakOrBuilder
+ getLinearOrBuilder() {
+ if ((streamTypeInfoCase_ == 7) && (linearBuilder_ != null)) {
+ return linearBuilder_.getMessageOrBuilder();
+ } else {
+ if (streamTypeInfoCase_ == 7) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak) streamTypeInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a linear session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak linear = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.Builder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreakOrBuilder>
+ internalGetLinearFieldBuilder() {
+ if (linearBuilder_ == null) {
+ if (!(streamTypeInfoCase_ == 7)) {
+ streamTypeInfo_ =
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.getDefaultInstance();
+ }
+ linearBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak.Builder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreakOrBuilder>(
+ (com.google.ads.admanager.v1.DaiSession.AdBreak.LinearBreak) streamTypeInfo_,
+ getParentForChildren(),
+ isClean());
+ streamTypeInfo_ = null;
+ }
+ streamTypeInfoCase_ = 7;
+ onChanged();
+ return linearBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.Builder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreakOrBuilder>
+ vodBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the vod field is set.
+ */
+ @java.lang.Override
+ public boolean hasVod() {
+ return streamTypeInfoCase_ == 8;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The vod.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak getVod() {
+ if (vodBuilder_ == null) {
+ if (streamTypeInfoCase_ == 8) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak) streamTypeInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.getDefaultInstance();
+ } else {
+ if (streamTypeInfoCase_ == 8) {
+ return vodBuilder_.getMessage();
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setVod(com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak value) {
+ if (vodBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ streamTypeInfo_ = value;
+ onChanged();
+ } else {
+ vodBuilder_.setMessage(value);
+ }
+ streamTypeInfoCase_ = 8;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setVod(
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.Builder builderForValue) {
+ if (vodBuilder_ == null) {
+ streamTypeInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ vodBuilder_.setMessage(builderForValue.build());
+ }
+ streamTypeInfoCase_ = 8;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeVod(com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak value) {
+ if (vodBuilder_ == null) {
+ if (streamTypeInfoCase_ == 8
+ && streamTypeInfo_
+ != com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.getDefaultInstance()) {
+ streamTypeInfo_ =
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.newBuilder(
+ (com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak) streamTypeInfo_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ streamTypeInfo_ = value;
+ }
+ onChanged();
+ } else {
+ if (streamTypeInfoCase_ == 8) {
+ vodBuilder_.mergeFrom(value);
+ } else {
+ vodBuilder_.setMessage(value);
+ }
+ }
+ streamTypeInfoCase_ = 8;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearVod() {
+ if (vodBuilder_ == null) {
+ if (streamTypeInfoCase_ == 8) {
+ streamTypeInfoCase_ = 0;
+ streamTypeInfo_ = null;
+ onChanged();
+ }
+ } else {
+ if (streamTypeInfoCase_ == 8) {
+ streamTypeInfoCase_ = 0;
+ streamTypeInfo_ = null;
+ }
+ vodBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.Builder getVodBuilder() {
+ return internalGetVodFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreakOrBuilder getVodOrBuilder() {
+ if ((streamTypeInfoCase_ == 8) && (vodBuilder_ != null)) {
+ return vodBuilder_.getMessageOrBuilder();
+ } else {
+ if (streamTypeInfoCase_ == 8) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak) streamTypeInfo_;
+ }
+ return com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Information on the break for a VOD session.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.AdBreak.VodBreak vod = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.Builder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreakOrBuilder>
+ internalGetVodFieldBuilder() {
+ if (vodBuilder_ == null) {
+ if (!(streamTypeInfoCase_ == 8)) {
+ streamTypeInfo_ =
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.getDefaultInstance();
+ }
+ vodBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak.Builder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreakOrBuilder>(
+ (com.google.ads.admanager.v1.DaiSession.AdBreak.VodBreak) streamTypeInfo_,
+ getParentForChildren(),
+ isClean());
+ streamTypeInfo_ = null;
+ }
+ streamTypeInfoCase_ = 8;
+ onChanged();
+ return vodBuilder_;
+ }
+
+ private com.google.protobuf.Internal.LongList podKeys_ = emptyLongList();
+
+ private void ensurePodKeysIsMutable() {
+ if (!podKeys_.isModifiable()) {
+ podKeys_ = makeMutableCopy(podKeys_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return A list containing the podKeys.
+ */
+ public java.util.List
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The count of podKeys.
+ */
+ public int getPodKeysCount() {
+ return podKeys_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param index The index of the element to return.
+ * @return The podKeys at the given index.
+ */
+ public long getPodKeys(int index) {
+ return podKeys_.getLong(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param index The index to set the value at.
+ * @param value The podKeys to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPodKeys(int index, long value) {
+
+ ensurePodKeysIsMutable();
+ podKeys_.setLong(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The podKeys to add.
+ * @return This builder for chaining.
+ */
+ public Builder addPodKeys(long value) {
+
+ ensurePodKeysIsMutable();
+ podKeys_.addLong(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param values The podKeys to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllPodKeys(java.lang.Iterable extends java.lang.Long> values) {
+ ensurePodKeysIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, podKeys_);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Ad pod ID that links to one or more decisioned ad pods for
+ * this break. Most types of sessions will have a single pod key, but in the
+ * case of prefetched pods there will be two pod keys.
+ *
+ *
+ * repeated int64 pod_keys = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPodKeys() {
+ podKeys_ = emptyLongList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object adBreakId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBreakId field is set.
+ */
+ public boolean hasAdBreakId() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBreakId.
+ */
+ public java.lang.String getAdBreakId() {
+ java.lang.Object ref = adBreakId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adBreakId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adBreakId.
+ */
+ public com.google.protobuf.ByteString getAdBreakIdBytes() {
+ java.lang.Object ref = adBreakId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adBreakId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The adBreakId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdBreakId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adBreakId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdBreakId() {
+ adBreakId_ = getDefaultInstance().getAdBreakId();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Publisher-provided or DAI-generated break ID for the [Ad
+ * break API](/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
+ * API](/ad-manager/dynamic-ad-insertion/pod-serving).
+ *
+ *
+ * optional string ad_break_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for adBreakId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdBreakIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adBreakId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private int breakType_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the breakType field is set.
+ */
+ @java.lang.Override
+ public boolean hasBreakType() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for breakType.
+ */
+ @java.lang.Override
+ public int getBreakTypeValue() {
+ return breakType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for breakType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBreakTypeValue(int value) {
+ breakType_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The breakType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.BreakTypeEnum.BreakType getBreakType() {
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType result =
+ com.google.ads.admanager.v1.BreakTypeEnum.BreakType.forNumber(breakType_);
+ return result == null
+ ? com.google.ads.admanager.v1.BreakTypeEnum.BreakType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The breakType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBreakType(com.google.ads.admanager.v1.BreakTypeEnum.BreakType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ breakType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Type of break this represents.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.BreakTypeEnum.BreakType break_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBreakType() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ breakType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long breakSequence_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of this ad break in the session.
+ *
+ *
+ * optional int64 break_sequence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the breakSequence field is set.
+ */
+ @java.lang.Override
+ public boolean hasBreakSequence() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of this ad break in the session.
+ *
+ *
+ * optional int64 break_sequence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The breakSequence.
+ */
+ @java.lang.Override
+ public long getBreakSequence() {
+ return breakSequence_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of this ad break in the session.
+ *
+ *
+ * optional int64 break_sequence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The breakSequence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBreakSequence(long value) {
+
+ breakSequence_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The index of this ad break in the session.
+ *
+ *
+ * optional int64 break_sequence = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBreakSequence() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ breakSequence_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration servedAdsDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ servedAdsDurationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the servedAdsDuration field is set.
+ */
+ public boolean hasServedAdsDuration() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The servedAdsDuration.
+ */
+ public com.google.protobuf.Duration getServedAdsDuration() {
+ if (servedAdsDurationBuilder_ == null) {
+ return servedAdsDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : servedAdsDuration_;
+ } else {
+ return servedAdsDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setServedAdsDuration(com.google.protobuf.Duration value) {
+ if (servedAdsDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ servedAdsDuration_ = value;
+ } else {
+ servedAdsDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setServedAdsDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (servedAdsDurationBuilder_ == null) {
+ servedAdsDuration_ = builderForValue.build();
+ } else {
+ servedAdsDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeServedAdsDuration(com.google.protobuf.Duration value) {
+ if (servedAdsDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0)
+ && servedAdsDuration_ != null
+ && servedAdsDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getServedAdsDurationBuilder().mergeFrom(value);
+ } else {
+ servedAdsDuration_ = value;
+ }
+ } else {
+ servedAdsDurationBuilder_.mergeFrom(value);
+ }
+ if (servedAdsDuration_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearServedAdsDuration() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ servedAdsDuration_ = null;
+ if (servedAdsDurationBuilder_ != null) {
+ servedAdsDurationBuilder_.dispose();
+ servedAdsDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getServedAdsDurationBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return internalGetServedAdsDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getServedAdsDurationOrBuilder() {
+ if (servedAdsDurationBuilder_ != null) {
+ return servedAdsDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return servedAdsDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : servedAdsDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The duration of ads that were inserted for this break.
+ *
+ *
+ *
+ * .google.protobuf.Duration served_ads_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetServedAdsDurationFieldBuilder() {
+ if (servedAdsDurationBuilder_ == null) {
+ servedAdsDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getServedAdsDuration(), getParentForChildren(), isClean());
+ servedAdsDuration_ = null;
+ }
+ return servedAdsDurationBuilder_;
+ }
+
+ private com.google.protobuf.Duration executedBreakDuration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ executedBreakDurationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the executedBreakDuration field is set.
+ */
+ public boolean hasExecutedBreakDuration() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The executedBreakDuration.
+ */
+ public com.google.protobuf.Duration getExecutedBreakDuration() {
+ if (executedBreakDurationBuilder_ == null) {
+ return executedBreakDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : executedBreakDuration_;
+ } else {
+ return executedBreakDurationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setExecutedBreakDuration(com.google.protobuf.Duration value) {
+ if (executedBreakDurationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ executedBreakDuration_ = value;
+ } else {
+ executedBreakDurationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setExecutedBreakDuration(
+ com.google.protobuf.Duration.Builder builderForValue) {
+ if (executedBreakDurationBuilder_ == null) {
+ executedBreakDuration_ = builderForValue.build();
+ } else {
+ executedBreakDurationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeExecutedBreakDuration(com.google.protobuf.Duration value) {
+ if (executedBreakDurationBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)
+ && executedBreakDuration_ != null
+ && executedBreakDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getExecutedBreakDurationBuilder().mergeFrom(value);
+ } else {
+ executedBreakDuration_ = value;
+ }
+ } else {
+ executedBreakDurationBuilder_.mergeFrom(value);
+ }
+ if (executedBreakDuration_ != null) {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearExecutedBreakDuration() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ executedBreakDuration_ = null;
+ if (executedBreakDurationBuilder_ != null) {
+ executedBreakDurationBuilder_.dispose();
+ executedBreakDurationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getExecutedBreakDurationBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return internalGetExecutedBreakDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getExecutedBreakDurationOrBuilder() {
+ if (executedBreakDurationBuilder_ != null) {
+ return executedBreakDurationBuilder_.getMessageOrBuilder();
+ } else {
+ return executedBreakDuration_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : executedBreakDuration_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The total duration of the break as it was served by DAI. In
+ * VOD, this value is the duration of ads inserted in between content. In
+ * linear, this value is the duration between cue out and cue in.
+ *
+ *
+ *
+ * .google.protobuf.Duration executed_break_duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetExecutedBreakDurationFieldBuilder() {
+ if (executedBreakDurationBuilder_ == null) {
+ executedBreakDurationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getExecutedBreakDuration(), getParentForChildren(), isClean());
+ executedBreakDuration_ = null;
+ }
+ return executedBreakDurationBuilder_;
+ }
+
+ private static final class TrackingPingsConverter
+ implements com.google.protobuf.MapFieldBuilder.Converter<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> {
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing build(
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder val) {
+ if (val instanceof com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing) {
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing) val;
+ }
+ return ((com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.Builder) val)
+ .build();
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.MapEntry<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing>
+ defaultEntry() {
+ return TrackingPingsDefaultEntryHolder.defaultEntry;
+ }
+ }
+ ;
+
+ private static final TrackingPingsConverter trackingPingsConverter =
+ new TrackingPingsConverter();
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.Builder>
+ trackingPings_;
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.Builder>
+ internalGetTrackingPings() {
+ if (trackingPings_ == null) {
+ return new com.google.protobuf.MapFieldBuilder<>(trackingPingsConverter);
+ }
+ return trackingPings_;
+ }
+
+ private com.google.protobuf.MapFieldBuilder<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.Builder>
+ internalGetMutableTrackingPings() {
+ if (trackingPings_ == null) {
+ trackingPings_ = new com.google.protobuf.MapFieldBuilder<>(trackingPingsConverter);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return trackingPings_;
+ }
+
+ public int getTrackingPingsCount() {
+ return internalGetTrackingPings().ensureBuilderMap().size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public boolean containsTrackingPings(long key) {
+
+ return internalGetTrackingPings().ensureBuilderMap().containsKey(key);
+ }
+
+ /** Use {@link #getTrackingPingsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing>
+ getTrackingPings() {
+ return getTrackingPingsMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing>
+ getTrackingPingsMap() {
+ return internalGetTrackingPings().getImmutableMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public /* nullable */ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing
+ getTrackingPingsOrDefault(
+ long key,
+ /* nullable */
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing defaultValue) {
+
+ java.util.Map<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder>
+ map = internalGetMutableTrackingPings().ensureBuilderMap();
+ return map.containsKey(key) ? trackingPingsConverter.build(map.get(key)) : defaultValue;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing getTrackingPingsOrThrow(
+ long key) {
+
+ java.util.Map<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder>
+ map = internalGetMutableTrackingPings().ensureBuilderMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return trackingPingsConverter.build(map.get(key));
+ }
+
+ public Builder clearTrackingPings() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ internalGetMutableTrackingPings().clear();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeTrackingPings(long key) {
+
+ internalGetMutableTrackingPings().ensureBuilderMap().remove(key);
+ return this;
+ }
+
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map<
+ java.lang.Long, com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing>
+ getMutableTrackingPings() {
+ bitField0_ |= 0x00000100;
+ return internalGetMutableTrackingPings().ensureMessageMap();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder putTrackingPings(
+ long key, com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing value) {
+
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableTrackingPings().ensureBuilderMap().put(key, value);
+ bitField0_ |= 0x00000100;
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder putAllTrackingPings(
+ java.util.Map
+ * Output only. Tracking pings that were issued for this break. Keyed by a
+ * unique ID to reference this tracking ping from a different submessage.
+ *
+ *
+ *
+ * map<int64, .google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing> tracking_pings = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.Builder
+ putTrackingPingsBuilderIfAbsent(long key) {
+ java.util.Map<
+ java.lang.Long,
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder>
+ builderMap = internalGetMutableTrackingPings().ensureBuilderMap();
+ com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPingOrBuilder entry =
+ builderMap.get(key);
+ if (entry == null) {
+ entry = com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.newBuilder();
+ builderMap.put(key, entry);
+ }
+ if (entry instanceof com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing) {
+ entry = ((com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing) entry).toBuilder();
+ builderMap.put(key, entry);
+ }
+ return (com.google.ads.admanager.v1.DaiSession.AdBreak.TrackingPing.Builder) entry;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.AdBreak)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.AdBreak)
+ private static final com.google.ads.admanager.v1.DaiSession.AdBreak DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.AdBreak();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.AdBreak getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the requestTime field is set.
+ */
+ boolean hasRequestTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The requestTime.
+ */
+ com.google.protobuf.Timestamp getRequestTime();
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the latency field is set.
+ */
+ boolean hasLatency();
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The latency.
+ */
+ com.google.protobuf.Duration getLatency();
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getLatencyOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the url field is set.
+ */
+ boolean hasUrl();
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The url.
+ */
+ java.lang.String getUrl();
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for url.
+ */
+ com.google.protobuf.ByteString getUrlBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the userAgent field is set.
+ */
+ boolean hasUserAgent();
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The userAgent.
+ */
+ java.lang.String getUserAgent();
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for userAgent.
+ */
+ com.google.protobuf.ByteString getUserAgentBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP response code.
+ *
+ *
+ * optional int32 response_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the responseCode field is set.
+ */
+ boolean hasResponseCode();
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP response code.
+ *
+ *
+ * optional int32 response_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The responseCode.
+ */
+ int getResponseCode();
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the responseBody field is set.
+ */
+ boolean hasResponseBody();
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The responseBody.
+ */
+ java.lang.String getResponseBody();
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for responseBody.
+ */
+ com.google.protobuf.ByteString getResponseBodyBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * An HTTP request made by DAI.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.HttpRequest}
+ */
+ public static final class HttpRequest extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.HttpRequest)
+ HttpRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "HttpRequest");
+ }
+
+ // Use HttpRequest.newBuilder() to construct.
+ private HttpRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private HttpRequest() {
+ url_ = "";
+ userAgent_ = "";
+ responseBody_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_HttpRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_HttpRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.class,
+ com.google.ads.admanager.v1.DaiSession.HttpRequest.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int REQUEST_TIME_FIELD_NUMBER = 1;
+ private com.google.protobuf.Timestamp requestTime_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the requestTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequestTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The requestTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getRequestTime() {
+ return requestTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : requestTime_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() {
+ return requestTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : requestTime_;
+ }
+
+ public static final int LATENCY_FIELD_NUMBER = 2;
+ private com.google.protobuf.Duration latency_;
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the latency field is set.
+ */
+ @java.lang.Override
+ public boolean hasLatency() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The latency.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getLatency() {
+ return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() {
+ return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
+ }
+
+ public static final int URL_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object url_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the url field is set.
+ */
+ @java.lang.Override
+ public boolean hasUrl() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The url.
+ */
+ @java.lang.Override
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ 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();
+ url_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for url.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USER_AGENT_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userAgent_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the userAgent field is set.
+ */
+ @java.lang.Override
+ public boolean hasUserAgent() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The userAgent.
+ */
+ @java.lang.Override
+ public java.lang.String getUserAgent() {
+ java.lang.Object ref = userAgent_;
+ 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();
+ userAgent_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for userAgent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUserAgentBytes() {
+ java.lang.Object ref = userAgent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ userAgent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RESPONSE_CODE_FIELD_NUMBER = 5;
+ private int responseCode_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP response code.
+ *
+ *
+ * optional int32 response_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the responseCode field is set.
+ */
+ @java.lang.Override
+ public boolean hasResponseCode() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP response code.
+ *
+ *
+ * optional int32 response_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The responseCode.
+ */
+ @java.lang.Override
+ public int getResponseCode() {
+ return responseCode_;
+ }
+
+ public static final int RESPONSE_BODY_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object responseBody_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the responseBody field is set.
+ */
+ @java.lang.Override
+ public boolean hasResponseBody() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The responseBody.
+ */
+ @java.lang.Override
+ public java.lang.String getResponseBody() {
+ java.lang.Object ref = responseBody_;
+ 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();
+ responseBody_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for responseBody.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResponseBodyBytes() {
+ java.lang.Object ref = responseBody_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ responseBody_ = 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getRequestTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getLatency());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, url_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, userAgent_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt32(5, responseCode_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, responseBody_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRequestTime());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLatency());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, url_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, userAgent_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, responseCode_);
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(6, responseBody_);
+ }
+ 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.admanager.v1.DaiSession.HttpRequest)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.HttpRequest other =
+ (com.google.ads.admanager.v1.DaiSession.HttpRequest) obj;
+
+ if (hasRequestTime() != other.hasRequestTime()) return false;
+ if (hasRequestTime()) {
+ if (!getRequestTime().equals(other.getRequestTime())) return false;
+ }
+ if (hasLatency() != other.hasLatency()) return false;
+ if (hasLatency()) {
+ if (!getLatency().equals(other.getLatency())) return false;
+ }
+ if (hasUrl() != other.hasUrl()) return false;
+ if (hasUrl()) {
+ if (!getUrl().equals(other.getUrl())) return false;
+ }
+ if (hasUserAgent() != other.hasUserAgent()) return false;
+ if (hasUserAgent()) {
+ if (!getUserAgent().equals(other.getUserAgent())) return false;
+ }
+ if (hasResponseCode() != other.hasResponseCode()) return false;
+ if (hasResponseCode()) {
+ if (getResponseCode() != other.getResponseCode()) return false;
+ }
+ if (hasResponseBody() != other.hasResponseBody()) return false;
+ if (hasResponseBody()) {
+ if (!getResponseBody().equals(other.getResponseBody())) 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 (hasRequestTime()) {
+ hash = (37 * hash) + REQUEST_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getRequestTime().hashCode();
+ }
+ if (hasLatency()) {
+ hash = (37 * hash) + LATENCY_FIELD_NUMBER;
+ hash = (53 * hash) + getLatency().hashCode();
+ }
+ if (hasUrl()) {
+ hash = (37 * hash) + URL_FIELD_NUMBER;
+ hash = (53 * hash) + getUrl().hashCode();
+ }
+ if (hasUserAgent()) {
+ hash = (37 * hash) + USER_AGENT_FIELD_NUMBER;
+ hash = (53 * hash) + getUserAgent().hashCode();
+ }
+ if (hasResponseCode()) {
+ hash = (37 * hash) + RESPONSE_CODE_FIELD_NUMBER;
+ hash = (53 * hash) + getResponseCode();
+ }
+ if (hasResponseBody()) {
+ hash = (37 * hash) + RESPONSE_BODY_FIELD_NUMBER;
+ hash = (53 * hash) + getResponseBody().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest 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.admanager.v1.DaiSession.HttpRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest 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.admanager.v1.DaiSession.HttpRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.HttpRequest 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * An HTTP request made by DAI.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.HttpRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the requestTime field is set.
+ */
+ public boolean hasRequestTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The requestTime.
+ */
+ public com.google.protobuf.Timestamp getRequestTime() {
+ if (requestTimeBuilder_ == null) {
+ return requestTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : requestTime_;
+ } else {
+ return requestTimeBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRequestTime(com.google.protobuf.Timestamp value) {
+ if (requestTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ requestTime_ = value;
+ } else {
+ requestTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setRequestTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (requestTimeBuilder_ == null) {
+ requestTime_ = builderForValue.build();
+ } else {
+ requestTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeRequestTime(com.google.protobuf.Timestamp value) {
+ if (requestTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && requestTime_ != null
+ && requestTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getRequestTimeBuilder().mergeFrom(value);
+ } else {
+ requestTime_ = value;
+ }
+ } else {
+ requestTimeBuilder_.mergeFrom(value);
+ }
+ if (requestTime_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearRequestTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ requestTime_ = null;
+ if (requestTimeBuilder_ != null) {
+ requestTimeBuilder_.dispose();
+ requestTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getRequestTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return internalGetRequestTimeFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getRequestTimeOrBuilder() {
+ if (requestTimeBuilder_ != null) {
+ return requestTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return requestTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : requestTime_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The time when the request was made.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp request_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ internalGetRequestTimeFieldBuilder() {
+ if (requestTimeBuilder_ == null) {
+ requestTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getRequestTime(), getParentForChildren(), isClean());
+ requestTime_ = null;
+ }
+ return requestTimeBuilder_;
+ }
+
+ private com.google.protobuf.Duration latency_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ latencyBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the latency field is set.
+ */
+ public boolean hasLatency() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The latency.
+ */
+ public com.google.protobuf.Duration getLatency() {
+ if (latencyBuilder_ == null) {
+ return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
+ } else {
+ return latencyBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLatency(com.google.protobuf.Duration value) {
+ if (latencyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ latency_ = value;
+ } else {
+ latencyBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setLatency(com.google.protobuf.Duration.Builder builderForValue) {
+ if (latencyBuilder_ == null) {
+ latency_ = builderForValue.build();
+ } else {
+ latencyBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeLatency(com.google.protobuf.Duration value) {
+ if (latencyBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && latency_ != null
+ && latency_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getLatencyBuilder().mergeFrom(value);
+ } else {
+ latency_ = value;
+ }
+ } else {
+ latencyBuilder_.mergeFrom(value);
+ }
+ if (latency_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearLatency() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ latency_ = null;
+ if (latencyBuilder_ != null) {
+ latencyBuilder_.dispose();
+ latencyBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getLatencyBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return internalGetLatencyFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getLatencyOrBuilder() {
+ if (latencyBuilder_ != null) {
+ return latencyBuilder_.getMessageOrBuilder();
+ } else {
+ return latency_ == null ? com.google.protobuf.Duration.getDefaultInstance() : latency_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. How long the request took to complete.
+ *
+ *
+ * .google.protobuf.Duration latency = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetLatencyFieldBuilder() {
+ if (latencyBuilder_ == null) {
+ latencyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getLatency(), getParentForChildren(), isClean());
+ latency_ = null;
+ }
+ return latencyBuilder_;
+ }
+
+ private java.lang.Object url_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the url field is set.
+ */
+ public boolean hasUrl() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The url.
+ */
+ public java.lang.String getUrl() {
+ java.lang.Object ref = url_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ url_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for url.
+ */
+ public com.google.protobuf.ByteString getUrlBytes() {
+ java.lang.Object ref = url_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ url_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrl(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ url_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUrl() {
+ url_ = getDefaultInstance().getUrl();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The URL sent in the request.
+ *
+ *
+ * optional string url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for url to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUrlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ url_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object userAgent_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the userAgent field is set.
+ */
+ public boolean hasUserAgent() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The userAgent.
+ */
+ public java.lang.String getUserAgent() {
+ java.lang.Object ref = userAgent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ userAgent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for userAgent.
+ */
+ public com.google.protobuf.ByteString getUserAgentBytes() {
+ java.lang.Object ref = userAgent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ userAgent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The userAgent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserAgent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ userAgent_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUserAgent() {
+ userAgent_ = getDefaultInstance().getUserAgent();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The user agent sent with the request.
+ *
+ *
+ * optional string user_agent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for userAgent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ userAgent_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private int responseCode_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP response code.
+ *
+ *
+ * optional int32 response_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the responseCode field is set.
+ */
+ @java.lang.Override
+ public boolean hasResponseCode() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP response code.
+ *
+ *
+ * optional int32 response_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The responseCode.
+ */
+ @java.lang.Override
+ public int getResponseCode() {
+ return responseCode_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP response code.
+ *
+ *
+ * optional int32 response_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The responseCode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseCode(int value) {
+
+ responseCode_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The HTTP response code.
+ *
+ *
+ * optional int32 response_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResponseCode() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ responseCode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object responseBody_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the responseBody field is set.
+ */
+ public boolean hasResponseBody() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The responseBody.
+ */
+ public java.lang.String getResponseBody() {
+ java.lang.Object ref = responseBody_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ responseBody_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for responseBody.
+ */
+ public com.google.protobuf.ByteString getResponseBodyBytes() {
+ java.lang.Object ref = responseBody_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ responseBody_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The responseBody to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseBody(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ responseBody_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResponseBody() {
+ responseBody_ = getDefaultInstance().getResponseBody();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The full response body.
+ *
+ *
+ * optional string response_body = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for responseBody to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResponseBodyBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ responseBody_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.HttpRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.HttpRequest)
+ private static final com.google.ads.admanager.v1.DaiSession.HttpRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.HttpRequest();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.HttpRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the idType field is set.
+ */
+ boolean hasIdType();
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for idType.
+ */
+ int getIdTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The idType.
+ */
+ com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType getIdType();
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the idValue field is set.
+ */
+ boolean hasIdValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The idValue.
+ */
+ java.lang.String getIdValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for idValue.
+ */
+ com.google.protobuf.ByteString getIdValueBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adSystem field is set.
+ */
+ boolean hasAdSystem();
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adSystem.
+ */
+ java.lang.String getAdSystem();
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adSystem.
+ */
+ com.google.protobuf.ByteString getAdSystemBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the duration field is set.
+ */
+ boolean hasDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The duration.
+ */
+ com.google.protobuf.Duration getDuration();
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.DurationOrBuilder getDurationOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The index at which this creative appeared in the ad pod.
+ *
+ *
+ * optional int32 pod_sequence = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the podSequence field is set.
+ */
+ boolean hasPodSequence();
+
+ /**
+ *
+ *
+ *
+ * Output only. The index at which this creative appeared in the ad pod.
+ *
+ *
+ * optional int32 pod_sequence = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The podSequence.
+ */
+ int getPodSequence();
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo getVastInfos(int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getVastInfosCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.ads.admanager.v1.DaiSession.Creative.VastInfoOrBuilder>
+ getVastInfosOrBuilderList();
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfoOrBuilder getVastInfosOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this creative was from ad buffet.
+ *
+ *
+ * optional bool ad_buffet = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBuffet field is set.
+ */
+ boolean hasAdBuffet();
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this creative was from ad buffet.
+ *
+ *
+ * optional bool ad_buffet = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBuffet.
+ */
+ boolean getAdBuffet();
+ }
+
+ /**
+ *
+ *
+ *
+ * Information about a single creative.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Creative}
+ */
+ public static final class Creative extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.Creative)
+ CreativeOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "Creative");
+ }
+
+ // Use Creative.newBuilder() to construct.
+ private Creative(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Creative() {
+ idType_ = 0;
+ idValue_ = "";
+ adSystem_ = "";
+ vastInfos_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Creative_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Creative_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.Creative.class,
+ com.google.ads.admanager.v1.DaiSession.Creative.Builder.class);
+ }
+
+ public interface VastInfoOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DaiSession.Creative.VastInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adSystem field is set.
+ */
+ boolean hasAdSystem();
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adSystem.
+ */
+ java.lang.String getAdSystem();
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adSystem.
+ */
+ com.google.protobuf.ByteString getAdSystemBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adSystemVersion field is set.
+ */
+ boolean hasAdSystemVersion();
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adSystemVersion.
+ */
+ java.lang.String getAdSystemVersion();
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for adSystemVersion.
+ */
+ com.google.protobuf.ByteString getAdSystemVersionBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adTitle field is set.
+ */
+ boolean hasAdTitle();
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adTitle.
+ */
+ java.lang.String getAdTitle();
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adTitle.
+ */
+ com.google.protobuf.ByteString getAdTitleBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the description field is set.
+ */
+ boolean hasDescription();
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the creativeId field is set.
+ */
+ boolean hasCreativeId();
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The creativeId.
+ */
+ java.lang.String getCreativeId();
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for creativeId.
+ */
+ com.google.protobuf.ByteString getCreativeIdBytes();
+ }
+
+ /**
+ *
+ *
+ *
+ * Details about a single VAST info.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Creative.VastInfo}
+ */
+ public static final class VastInfo extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.Creative.VastInfo)
+ VastInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "VastInfo");
+ }
+
+ // Use VastInfo.newBuilder() to construct.
+ private VastInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private VastInfo() {
+ adSystem_ = "";
+ adSystemVersion_ = "";
+ adTitle_ = "";
+ description_ = "";
+ creativeId_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Creative_VastInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Creative_VastInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.class,
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int AD_SYSTEM_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adSystem_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adSystem field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdSystem() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adSystem.
+ */
+ @java.lang.Override
+ public java.lang.String getAdSystem() {
+ java.lang.Object ref = adSystem_;
+ 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();
+ adSystem_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adSystem.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdSystemBytes() {
+ java.lang.Object ref = adSystem_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adSystem_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_SYSTEM_VERSION_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adSystemVersion_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adSystemVersion field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdSystemVersion() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adSystemVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getAdSystemVersion() {
+ java.lang.Object ref = adSystemVersion_;
+ 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();
+ adSystemVersion_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for adSystemVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdSystemVersionBytes() {
+ java.lang.Object ref = adSystemVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adSystemVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_TITLE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adTitle_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adTitle field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdTitle() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adTitle.
+ */
+ @java.lang.Override
+ public java.lang.String getAdTitle() {
+ java.lang.Object ref = adTitle_;
+ 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();
+ adTitle_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adTitle.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdTitleBytes() {
+ java.lang.Object ref = adTitle_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adTitle_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object description_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the description field is set.
+ */
+ @java.lang.Override
+ public boolean hasDescription() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ 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();
+ description_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CREATIVE_ID_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object creativeId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the creativeId field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreativeId() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The creativeId.
+ */
+ @java.lang.Override
+ public java.lang.String getCreativeId() {
+ java.lang.Object ref = creativeId_;
+ 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();
+ creativeId_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for creativeId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCreativeIdBytes() {
+ java.lang.Object ref = creativeId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ creativeId_ = 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 (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, adSystem_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, adSystemVersion_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, adTitle_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, description_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, creativeId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, adSystem_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, adSystemVersion_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, adTitle_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_);
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, creativeId_);
+ }
+ 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.admanager.v1.DaiSession.Creative.VastInfo)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo other =
+ (com.google.ads.admanager.v1.DaiSession.Creative.VastInfo) obj;
+
+ if (hasAdSystem() != other.hasAdSystem()) return false;
+ if (hasAdSystem()) {
+ if (!getAdSystem().equals(other.getAdSystem())) return false;
+ }
+ if (hasAdSystemVersion() != other.hasAdSystemVersion()) return false;
+ if (hasAdSystemVersion()) {
+ if (!getAdSystemVersion().equals(other.getAdSystemVersion())) return false;
+ }
+ if (hasAdTitle() != other.hasAdTitle()) return false;
+ if (hasAdTitle()) {
+ if (!getAdTitle().equals(other.getAdTitle())) return false;
+ }
+ if (hasDescription() != other.hasDescription()) return false;
+ if (hasDescription()) {
+ if (!getDescription().equals(other.getDescription())) return false;
+ }
+ if (hasCreativeId() != other.hasCreativeId()) return false;
+ if (hasCreativeId()) {
+ if (!getCreativeId().equals(other.getCreativeId())) 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 (hasAdSystem()) {
+ hash = (37 * hash) + AD_SYSTEM_FIELD_NUMBER;
+ hash = (53 * hash) + getAdSystem().hashCode();
+ }
+ if (hasAdSystemVersion()) {
+ hash = (37 * hash) + AD_SYSTEM_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getAdSystemVersion().hashCode();
+ }
+ if (hasAdTitle()) {
+ hash = (37 * hash) + AD_TITLE_FIELD_NUMBER;
+ hash = (53 * hash) + getAdTitle().hashCode();
+ }
+ if (hasDescription()) {
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ }
+ if (hasCreativeId()) {
+ hash = (37 * hash) + CREATIVE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getCreativeId().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo 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.admanager.v1.DaiSession.Creative.VastInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo 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.admanager.v1.DaiSession.Creative.VastInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.Creative.VastInfo 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Details about a single VAST info.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Creative.VastInfo}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adSystem field is set.
+ */
+ public boolean hasAdSystem() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adSystem.
+ */
+ public java.lang.String getAdSystem() {
+ java.lang.Object ref = adSystem_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adSystem_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adSystem.
+ */
+ public com.google.protobuf.ByteString getAdSystemBytes() {
+ java.lang.Object ref = adSystem_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adSystem_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The adSystem to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdSystem(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adSystem_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdSystem() {
+ adSystem_ = getDefaultInstance().getAdSystem();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for adSystem to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdSystemBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adSystem_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object adSystemVersion_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adSystemVersion field is set.
+ */
+ public boolean hasAdSystemVersion() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adSystemVersion.
+ */
+ public java.lang.String getAdSystemVersion() {
+ java.lang.Object ref = adSystemVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adSystemVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for adSystemVersion.
+ */
+ public com.google.protobuf.ByteString getAdSystemVersionBytes() {
+ java.lang.Object ref = adSystemVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adSystemVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The adSystemVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdSystemVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adSystemVersion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdSystemVersion() {
+ adSystemVersion_ = getDefaultInstance().getAdSystemVersion();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Version attribute from VAST/Ad/InLine/AdSystem.
+ *
+ *
+ * optional string ad_system_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for adSystemVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdSystemVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adSystemVersion_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object adTitle_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adTitle field is set.
+ */
+ public boolean hasAdTitle() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adTitle.
+ */
+ public java.lang.String getAdTitle() {
+ java.lang.Object ref = adTitle_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adTitle_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adTitle.
+ */
+ public com.google.protobuf.ByteString getAdTitleBytes() {
+ java.lang.Object ref = adTitle_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adTitle_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The adTitle to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdTitle(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adTitle_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdTitle() {
+ adTitle_ = getDefaultInstance().getAdTitle();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/AdTitle.
+ *
+ *
+ * optional string ad_title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for adTitle to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdTitleBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adTitle_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the description field is set.
+ */
+ public boolean hasDescription() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ description_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+ description_ = getDefaultInstance().getDescription();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Value of VAST/Ad/InLine/Description.
+ *
+ *
+ * optional string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ description_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object creativeId_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the creativeId field is set.
+ */
+ public boolean hasCreativeId() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The creativeId.
+ */
+ public java.lang.String getCreativeId() {
+ java.lang.Object ref = creativeId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ creativeId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The bytes for creativeId.
+ */
+ public com.google.protobuf.ByteString getCreativeIdBytes() {
+ java.lang.Object ref = creativeId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ creativeId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The creativeId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCreativeId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ creativeId_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCreativeId() {
+ creativeId_ = getDefaultInstance().getCreativeId();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The `id` attribute from VAST/Ad/InLine/Creatives/Creative.
+ *
+ *
+ * optional string creative_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The bytes for creativeId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCreativeIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ creativeId_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.Creative.VastInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.Creative.VastInfo)
+ private static final com.google.ads.admanager.v1.DaiSession.Creative.VastInfo
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.Creative.VastInfo();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative.VastInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the idType field is set.
+ */
+ @java.lang.Override
+ public boolean hasIdType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for idType.
+ */
+ @java.lang.Override
+ public int getIdTypeValue() {
+ return idType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The idType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType getIdType() {
+ com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType result =
+ com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType.forNumber(idType_);
+ return result == null
+ ? com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int ID_VALUE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object idValue_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the idValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasIdValue() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The idValue.
+ */
+ @java.lang.Override
+ public java.lang.String getIdValue() {
+ java.lang.Object ref = idValue_;
+ 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();
+ idValue_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for idValue.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIdValueBytes() {
+ java.lang.Object ref = idValue_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ idValue_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int AD_SYSTEM_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object adSystem_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adSystem field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdSystem() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adSystem.
+ */
+ @java.lang.Override
+ public java.lang.String getAdSystem() {
+ java.lang.Object ref = adSystem_;
+ 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();
+ adSystem_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adSystem.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAdSystemBytes() {
+ java.lang.Object ref = adSystem_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adSystem_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DURATION_FIELD_NUMBER = 4;
+ private com.google.protobuf.Duration duration_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the duration field is set.
+ */
+ @java.lang.Override
+ public boolean hasDuration() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The duration.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getDuration() {
+ return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
+ return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+ }
+
+ public static final int POD_SEQUENCE_FIELD_NUMBER = 5;
+ private int podSequence_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. The index at which this creative appeared in the ad pod.
+ *
+ *
+ * optional int32 pod_sequence = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the podSequence field is set.
+ */
+ @java.lang.Override
+ public boolean hasPodSequence() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The index at which this creative appeared in the ad pod.
+ *
+ *
+ * optional int32 pod_sequence = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The podSequence.
+ */
+ @java.lang.Override
+ public int getPodSequence() {
+ return podSequence_;
+ }
+
+ public static final int VAST_INFOS_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.ads.admanager.v1.DaiSession.Creative.VastInfoOrBuilder>
+ getVastInfosOrBuilderList() {
+ return vastInfos_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getVastInfosCount() {
+ return vastInfos_.size();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.Creative.VastInfo getVastInfos(int index) {
+ return vastInfos_.get(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.DaiSession.Creative.VastInfoOrBuilder getVastInfosOrBuilder(
+ int index) {
+ return vastInfos_.get(index);
+ }
+
+ public static final int AD_BUFFET_FIELD_NUMBER = 7;
+ private boolean adBuffet_ = false;
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this creative was from ad buffet.
+ *
+ *
+ * optional bool ad_buffet = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBuffet field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdBuffet() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this creative was from ad buffet.
+ *
+ *
+ * optional bool ad_buffet = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBuffet.
+ */
+ @java.lang.Override
+ public boolean getAdBuffet() {
+ return adBuffet_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(1, idType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, idValue_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, adSystem_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(4, getDuration());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeInt32(5, podSequence_);
+ }
+ for (int i = 0; i < vastInfos_.size(); i++) {
+ output.writeMessage(6, vastInfos_.get(i));
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeBool(7, adBuffet_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, idType_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, idValue_);
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, adSystem_);
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDuration());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, podSequence_);
+ }
+ for (int i = 0; i < vastInfos_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, vastInfos_.get(i));
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, adBuffet_);
+ }
+ 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.admanager.v1.DaiSession.Creative)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.Creative other =
+ (com.google.ads.admanager.v1.DaiSession.Creative) obj;
+
+ if (hasIdType() != other.hasIdType()) return false;
+ if (hasIdType()) {
+ if (idType_ != other.idType_) return false;
+ }
+ if (hasIdValue() != other.hasIdValue()) return false;
+ if (hasIdValue()) {
+ if (!getIdValue().equals(other.getIdValue())) return false;
+ }
+ if (hasAdSystem() != other.hasAdSystem()) return false;
+ if (hasAdSystem()) {
+ if (!getAdSystem().equals(other.getAdSystem())) return false;
+ }
+ if (hasDuration() != other.hasDuration()) return false;
+ if (hasDuration()) {
+ if (!getDuration().equals(other.getDuration())) return false;
+ }
+ if (hasPodSequence() != other.hasPodSequence()) return false;
+ if (hasPodSequence()) {
+ if (getPodSequence() != other.getPodSequence()) return false;
+ }
+ if (!getVastInfosList().equals(other.getVastInfosList())) return false;
+ if (hasAdBuffet() != other.hasAdBuffet()) return false;
+ if (hasAdBuffet()) {
+ if (getAdBuffet() != other.getAdBuffet()) 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 (hasIdType()) {
+ hash = (37 * hash) + ID_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + idType_;
+ }
+ if (hasIdValue()) {
+ hash = (37 * hash) + ID_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getIdValue().hashCode();
+ }
+ if (hasAdSystem()) {
+ hash = (37 * hash) + AD_SYSTEM_FIELD_NUMBER;
+ hash = (53 * hash) + getAdSystem().hashCode();
+ }
+ if (hasDuration()) {
+ hash = (37 * hash) + DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + getDuration().hashCode();
+ }
+ if (hasPodSequence()) {
+ hash = (37 * hash) + POD_SEQUENCE_FIELD_NUMBER;
+ hash = (53 * hash) + getPodSequence();
+ }
+ if (getVastInfosCount() > 0) {
+ hash = (37 * hash) + VAST_INFOS_FIELD_NUMBER;
+ hash = (53 * hash) + getVastInfosList().hashCode();
+ }
+ if (hasAdBuffet()) {
+ hash = (37 * hash) + AD_BUFFET_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdBuffet());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative 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.admanager.v1.DaiSession.Creative parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative 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.admanager.v1.DaiSession.Creative parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.Creative 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * Information about a single creative.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Creative}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the idType field is set.
+ */
+ @java.lang.Override
+ public boolean hasIdType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for idType.
+ */
+ @java.lang.Override
+ public int getIdTypeValue() {
+ return idType_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for idType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdTypeValue(int value) {
+ idType_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The idType.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType getIdType() {
+ com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType result =
+ com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType.forNumber(idType_);
+ return result == null
+ ? com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The idType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdType(
+ com.google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ idType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The type of ID that is used to identify this creative.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.CreativeIdTypeEnum.CreativeIdType id_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIdType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ idType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object idValue_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the idValue field is set.
+ */
+ public boolean hasIdValue() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The idValue.
+ */
+ public java.lang.String getIdValue() {
+ java.lang.Object ref = idValue_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ idValue_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for idValue.
+ */
+ public com.google.protobuf.ByteString getIdValueBytes() {
+ java.lang.Object ref = idValue_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ idValue_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The idValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ idValue_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIdValue() {
+ idValue_ = getDefaultInstance().getIdValue();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The value for the given ID type.
+ *
+ *
+ * optional string id_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for idValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ idValue_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object adSystem_ = "";
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adSystem field is set.
+ */
+ public boolean hasAdSystem() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adSystem.
+ */
+ public java.lang.String getAdSystem() {
+ java.lang.Object ref = adSystem_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ adSystem_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for adSystem.
+ */
+ public com.google.protobuf.ByteString getAdSystemBytes() {
+ java.lang.Object ref = adSystem_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ adSystem_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The adSystem to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdSystem(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ adSystem_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdSystem() {
+ adSystem_ = getDefaultInstance().getAdSystem();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ad system that provided this creative.
+ *
+ *
+ * optional string ad_system = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for adSystem to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdSystemBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ adSystem_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration duration_;
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ durationBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the duration field is set.
+ */
+ public boolean hasDuration() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The duration.
+ */
+ public com.google.protobuf.Duration getDuration() {
+ if (durationBuilder_ == null) {
+ return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+ } else {
+ return durationBuilder_.getMessage();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDuration(com.google.protobuf.Duration value) {
+ if (durationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ duration_ = value;
+ } else {
+ durationBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) {
+ if (durationBuilder_ == null) {
+ duration_ = builderForValue.build();
+ } else {
+ durationBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeDuration(com.google.protobuf.Duration value) {
+ if (durationBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && duration_ != null
+ && duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getDurationBuilder().mergeFrom(value);
+ } else {
+ duration_ = value;
+ }
+ } else {
+ durationBuilder_.mergeFrom(value);
+ }
+ if (duration_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearDuration() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ duration_ = null;
+ if (durationBuilder_ != null) {
+ durationBuilder_.dispose();
+ durationBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Duration.Builder getDurationBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return internalGetDurationFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
+ if (durationBuilder_ != null) {
+ return durationBuilder_.getMessageOrBuilder();
+ } else {
+ return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Duration of the creative.
+ *
+ *
+ * .google.protobuf.Duration duration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ internalGetDurationFieldBuilder() {
+ if (durationBuilder_ == null) {
+ durationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getDuration(), getParentForChildren(), isClean());
+ duration_ = null;
+ }
+ return durationBuilder_;
+ }
+
+ private int podSequence_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The index at which this creative appeared in the ad pod.
+ *
+ *
+ * optional int32 pod_sequence = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the podSequence field is set.
+ */
+ @java.lang.Override
+ public boolean hasPodSequence() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The index at which this creative appeared in the ad pod.
+ *
+ *
+ * optional int32 pod_sequence = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The podSequence.
+ */
+ @java.lang.Override
+ public int getPodSequence() {
+ return podSequence_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The index at which this creative appeared in the ad pod.
+ *
+ *
+ * optional int32 pod_sequence = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The podSequence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPodSequence(int value) {
+
+ podSequence_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The index at which this creative appeared in the ad pod.
+ *
+ *
+ * optional int32 pod_sequence = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPodSequence() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ podSequence_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getVastInfosCount() {
+ if (vastInfosBuilder_ == null) {
+ return vastInfos_.size();
+ } else {
+ return vastInfosBuilder_.getCount();
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.Creative.VastInfo getVastInfos(int index) {
+ if (vastInfosBuilder_ == null) {
+ return vastInfos_.get(index);
+ } else {
+ return vastInfosBuilder_.getMessage(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setVastInfos(
+ int index, com.google.ads.admanager.v1.DaiSession.Creative.VastInfo value) {
+ if (vastInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVastInfosIsMutable();
+ vastInfos_.set(index, value);
+ onChanged();
+ } else {
+ vastInfosBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setVastInfos(
+ int index,
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.Builder builderForValue) {
+ if (vastInfosBuilder_ == null) {
+ ensureVastInfosIsMutable();
+ vastInfos_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ vastInfosBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addVastInfos(com.google.ads.admanager.v1.DaiSession.Creative.VastInfo value) {
+ if (vastInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVastInfosIsMutable();
+ vastInfos_.add(value);
+ onChanged();
+ } else {
+ vastInfosBuilder_.addMessage(value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addVastInfos(
+ int index, com.google.ads.admanager.v1.DaiSession.Creative.VastInfo value) {
+ if (vastInfosBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVastInfosIsMutable();
+ vastInfos_.add(index, value);
+ onChanged();
+ } else {
+ vastInfosBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addVastInfos(
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.Builder builderForValue) {
+ if (vastInfosBuilder_ == null) {
+ ensureVastInfosIsMutable();
+ vastInfos_.add(builderForValue.build());
+ onChanged();
+ } else {
+ vastInfosBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addVastInfos(
+ int index,
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.Builder builderForValue) {
+ if (vastInfosBuilder_ == null) {
+ ensureVastInfosIsMutable();
+ vastInfos_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ vastInfosBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllVastInfos(
+ java.lang.Iterable extends com.google.ads.admanager.v1.DaiSession.Creative.VastInfo>
+ values) {
+ if (vastInfosBuilder_ == null) {
+ ensureVastInfosIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vastInfos_);
+ onChanged();
+ } else {
+ vastInfosBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearVastInfos() {
+ if (vastInfosBuilder_ == null) {
+ vastInfos_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ vastInfosBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeVastInfos(int index) {
+ if (vastInfosBuilder_ == null) {
+ ensureVastInfosIsMutable();
+ vastInfos_.remove(index);
+ onChanged();
+ } else {
+ vastInfosBuilder_.remove(index);
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.Builder getVastInfosBuilder(
+ int index) {
+ return internalGetVastInfosFieldBuilder().getBuilder(index);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.Creative.VastInfoOrBuilder
+ getVastInfosOrBuilder(int index) {
+ if (vastInfosBuilder_ == null) {
+ return vastInfos_.get(index);
+ } else {
+ return vastInfosBuilder_.getMessageOrBuilder(index);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List<
+ ? extends com.google.ads.admanager.v1.DaiSession.Creative.VastInfoOrBuilder>
+ getVastInfosOrBuilderList() {
+ if (vastInfosBuilder_ != null) {
+ return vastInfosBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(vastInfos_);
+ }
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.Builder
+ addVastInfosBuilder() {
+ return internalGetVastInfosFieldBuilder()
+ .addBuilder(
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.Builder addVastInfosBuilder(
+ int index) {
+ return internalGetVastInfosFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.ads.admanager.v1.DaiSession.Creative.VastInfo.getDefaultInstance());
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The VAST infos that resulted in this creative.
+ *
+ *
+ *
+ * repeated .google.ads.admanager.v1.DaiSession.Creative.VastInfo vast_infos = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * Output only. Whether this creative was from ad buffet.
+ *
+ *
+ * optional bool ad_buffet = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the adBuffet field is set.
+ */
+ @java.lang.Override
+ public boolean hasAdBuffet() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this creative was from ad buffet.
+ *
+ *
+ * optional bool ad_buffet = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The adBuffet.
+ */
+ @java.lang.Override
+ public boolean getAdBuffet() {
+ return adBuffet_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this creative was from ad buffet.
+ *
+ *
+ * optional bool ad_buffet = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The adBuffet to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAdBuffet(boolean value) {
+
+ adBuffet_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. Whether this creative was from ad buffet.
+ *
+ *
+ * optional bool ad_buffet = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAdBuffet() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ adBuffet_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.Creative)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.Creative)
+ private static final com.google.ads.admanager.v1.DaiSession.Creative DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.Creative();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Creative getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. A finding related to building an ad pod.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.PodFinding pod_finding = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the podFinding field is set.
+ */
+ boolean hasPodFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to building an ad pod.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.PodFinding pod_finding = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The podFinding.
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.PodFinding getPodFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to building an ad pod.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.PodFinding pod_finding = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.PodFindingOrBuilder getPodFindingOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to the slate creative.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.SlateFinding slate_finding = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the slateFinding field is set.
+ */
+ boolean hasSlateFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to the slate creative.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.SlateFinding slate_finding = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The slateFinding.
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding getSlateFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to the slate creative.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.SlateFinding slate_finding = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.SlateFindingOrBuilder getSlateFindingOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to an ad break.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding ad_break_finding = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adBreakFinding field is set.
+ */
+ boolean hasAdBreakFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to an ad break.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding ad_break_finding = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adBreakFinding.
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding getAdBreakFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to an ad break.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding ad_break_finding = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFindingOrBuilder
+ getAdBreakFindingOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to a tracking ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.TrackingPingFinding tracking_finding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the trackingFinding field is set.
+ */
+ boolean hasTrackingFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to a tracking ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.TrackingPingFinding tracking_finding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The trackingFinding.
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.TrackingPingFinding getTrackingFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to a tracking ping.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.TrackingPingFinding tracking_finding = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.TrackingPingFindingOrBuilder
+ getTrackingFindingOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to a creative.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.CreativeFinding creative_finding = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the creativeFinding field is set.
+ */
+ boolean hasCreativeFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to a creative.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.CreativeFinding creative_finding = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The creativeFinding.
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.CreativeFinding getCreativeFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to a creative.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.CreativeFinding creative_finding = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.CreativeFindingOrBuilder
+ getCreativeFindingOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to an ad request within ad selection.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.AdRequestFinding ad_request_finding = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the adRequestFinding field is set.
+ */
+ boolean hasAdRequestFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to an ad request within ad selection.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.AdRequestFinding ad_request_finding = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The adRequestFinding.
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.AdRequestFinding getAdRequestFinding();
+
+ /**
+ *
+ *
+ *
+ * Output only. A finding related to an ad request within ad selection.
+ *
+ *
+ *
+ * .google.ads.admanager.v1.DaiSession.Finding.AdRequestFinding ad_request_finding = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.ads.admanager.v1.DaiSession.Finding.AdRequestFindingOrBuilder
+ getAdRequestFindingOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The severity of the finding to the session.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SessionFindingSeverityEnum.SessionFindingSeverity severity = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the severity field is set.
+ */
+ boolean hasSeverity();
+
+ /**
+ *
+ *
+ *
+ * Output only. The severity of the finding to the session.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SessionFindingSeverityEnum.SessionFindingSeverity severity = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for severity.
+ */
+ int getSeverityValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. The severity of the finding to the session.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SessionFindingSeverityEnum.SessionFindingSeverity severity = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The severity.
+ */
+ com.google.ads.admanager.v1.SessionFindingSeverityEnum.SessionFindingSeverity getSeverity();
+
+ /**
+ *
+ *
+ *
+ * Output only. A description of the finding.
+ *
+ *
+ * optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the description field is set.
+ */
+ boolean hasDescription();
+
+ /**
+ *
+ *
+ *
+ * Output only. A description of the finding.
+ *
+ *
+ * optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+
+ /**
+ *
+ *
+ *
+ * Output only. A description of the finding.
+ *
+ *
+ * optional string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ com.google.ads.admanager.v1.DaiSession.Finding.TypeCase getTypeCase();
+ }
+
+ /**
+ *
+ *
+ *
+ * Information about errors or notable discoveries that occurred during a
+ * session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Finding}
+ */
+ public static final class Finding extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.Finding)
+ FindingOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "Finding");
+ }
+
+ // Use Finding.newBuilder() to construct.
+ private Finding(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private Finding() {
+ severity_ = 0;
+ description_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Finding_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Finding_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.Finding.class,
+ com.google.ads.admanager.v1.DaiSession.Finding.Builder.class);
+ }
+
+ public interface PodFindingOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.DaiSession.Finding.PodFinding)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ boolean hasType();
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType getType();
+
+ /**
+ *
+ *
+ *
+ * Output only. ID that links to the relevant ad pod.
+ *
+ *
+ * optional int64 pod_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the podKey field is set.
+ */
+ boolean hasPodKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. ID that links to the relevant ad pod.
+ *
+ *
+ * optional int64 pod_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The podKey.
+ */
+ long getPodKey();
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred while decisioning an ad pod.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Finding.PodFinding}
+ */
+ public static final class PodFinding extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.Finding.PodFinding)
+ PodFindingOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "PodFinding");
+ }
+
+ // Use PodFinding.newBuilder() to construct.
+ private PodFinding(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private PodFinding() {
+ type_ = 0;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Finding_PodFinding_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Finding_PodFinding_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.Finding.PodFinding.class,
+ com.google.ads.admanager.v1.DaiSession.Finding.PodFinding.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TYPE_FIELD_NUMBER = 1;
+ private int type_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType getType() {
+ com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType result =
+ com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType.forNumber(type_);
+ return result == null
+ ? com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int POD_KEY_FIELD_NUMBER = 2;
+ private long podKey_ = 0L;
+
+ /**
+ *
+ *
+ *
+ * Output only. ID that links to the relevant ad pod.
+ *
+ *
+ * optional int64 pod_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the podKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasPodKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. ID that links to the relevant ad pod.
+ *
+ *
+ * optional int64 pod_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The podKey.
+ */
+ @java.lang.Override
+ public long getPodKey() {
+ return podKey_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(1, type_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, podKey_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, podKey_);
+ }
+ 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.admanager.v1.DaiSession.Finding.PodFinding)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.Finding.PodFinding other =
+ (com.google.ads.admanager.v1.DaiSession.Finding.PodFinding) obj;
+
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (type_ != other.type_) return false;
+ }
+ if (hasPodKey() != other.hasPodKey()) return false;
+ if (hasPodKey()) {
+ if (getPodKey() != other.getPodKey()) 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 (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasPodKey()) {
+ hash = (37 * hash) + POD_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPodKey());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding 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.admanager.v1.DaiSession.Finding.PodFinding parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding 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.admanager.v1.DaiSession.Finding.PodFinding parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.Finding.PodFinding 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred while decisioning an ad pod.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Finding.PodFinding}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+ type_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType getType() {
+ com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType result =
+ com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType.forNumber(type_);
+ return result == null
+ ? com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ com.google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.PodFindingTypeEnum.PodFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long podKey_;
+
+ /**
+ *
+ *
+ *
+ * Output only. ID that links to the relevant ad pod.
+ *
+ *
+ * optional int64 pod_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the podKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasPodKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. ID that links to the relevant ad pod.
+ *
+ *
+ * optional int64 pod_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The podKey.
+ */
+ @java.lang.Override
+ public long getPodKey() {
+ return podKey_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. ID that links to the relevant ad pod.
+ *
+ *
+ * optional int64 pod_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The podKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPodKey(long value) {
+
+ podKey_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. ID that links to the relevant ad pod.
+ *
+ *
+ * optional int64 pod_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPodKey() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ podKey_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.Finding.PodFinding)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.Finding.PodFinding)
+ private static final com.google.ads.admanager.v1.DaiSession.Finding.PodFinding
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.Finding.PodFinding();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.PodFinding getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ boolean hasType();
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType getType();
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred regarding the slate creative, which can be found
+ * at the
+ * [DaiSession.slate][google.ads.admanager.v1.DaiSession.slate]
+ * field.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Finding.SlateFinding}
+ */
+ public static final class SlateFinding extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.Finding.SlateFinding)
+ SlateFindingOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "SlateFinding");
+ }
+
+ // Use SlateFinding.newBuilder() to construct.
+ private SlateFinding(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private SlateFinding() {
+ type_ = 0;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Finding_SlateFinding_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Finding_SlateFinding_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding.class,
+ com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TYPE_FIELD_NUMBER = 1;
+ private int type_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType getType() {
+ com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType result =
+ com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType.forNumber(type_);
+ return result == null
+ ? com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(1, type_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ 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.admanager.v1.DaiSession.Finding.SlateFinding)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding other =
+ (com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding) obj;
+
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (type_ != other.type_) 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 (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding 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.admanager.v1.DaiSession.Finding.SlateFinding parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding 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.admanager.v1.DaiSession.Finding.SlateFinding parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.Finding.SlateFinding 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred regarding the slate creative, which can be found
+ * at the
+ * [DaiSession.slate][google.ads.admanager.v1.DaiSession.slate]
+ * field.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Finding.SlateFinding}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+ type_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType getType() {
+ com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType result =
+ com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType.forNumber(type_);
+ return result == null
+ ? com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ com.google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.SlateFindingTypeEnum.SlateFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.Finding.SlateFinding)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.Finding.SlateFinding)
+ private static final com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.SlateFinding
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ boolean hasType();
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType getType();
+
+ /**
+ *
+ *
+ *
+ * Output only. The ID that links to the relevant ad break.
+ *
+ *
+ * optional int64 break_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the breakKey field is set.
+ */
+ boolean hasBreakKey();
+
+ /**
+ *
+ *
+ *
+ * Output only. The ID that links to the relevant ad break.
+ *
+ *
+ * optional int64 break_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The breakKey.
+ */
+ long getBreakKey();
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred while serving ads for a session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding}
+ */
+ public static final class AdBreakFinding extends com.google.protobuf.GeneratedMessage
+ implements
+ // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding)
+ AdBreakFindingOrBuilder {
+ private static final long serialVersionUID = 0L;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 33,
+ /* patch= */ 6,
+ /* suffix= */ "",
+ "AdBreakFinding");
+ }
+
+ // Use AdBreakFinding.newBuilder() to construct.
+ private AdBreakFinding(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+
+ private AdBreakFinding() {
+ type_ = 0;
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Finding_AdBreakFinding_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.ads.admanager.v1.DaiSessionMessagesProto
+ .internal_static_google_ads_admanager_v1_DaiSession_Finding_AdBreakFinding_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding.class,
+ com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int TYPE_FIELD_NUMBER = 1;
+ private int type_ = 0;
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType getType() {
+ com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType result =
+ com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType.forNumber(type_);
+ return result == null
+ ? com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int BREAK_KEY_FIELD_NUMBER = 2;
+ private long breakKey_ = 0L;
+
+ /**
+ *
+ *
+ *
+ * Output only. The ID that links to the relevant ad break.
+ *
+ *
+ * optional int64 break_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the breakKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasBreakKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ID that links to the relevant ad break.
+ *
+ *
+ * optional int64 break_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The breakKey.
+ */
+ @java.lang.Override
+ public long getBreakKey() {
+ return breakKey_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeEnum(1, type_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeInt64(2, breakKey_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, breakKey_);
+ }
+ 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.admanager.v1.DaiSession.Finding.AdBreakFinding)) {
+ return super.equals(obj);
+ }
+ com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding other =
+ (com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding) obj;
+
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (type_ != other.type_) return false;
+ }
+ if (hasBreakKey() != other.hasBreakKey()) return false;
+ if (hasBreakKey()) {
+ if (getBreakKey() != other.getBreakKey()) 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 (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasBreakKey()) {
+ hash = (37 * hash) + BREAK_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBreakKey());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding 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.admanager.v1.DaiSession.Finding.AdBreakFinding parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding 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.admanager.v1.DaiSession.Finding.AdBreakFinding parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.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.admanager.v1.DaiSession.Finding.AdBreakFinding 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.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ *
+ * A finding that occurred while serving ads for a session.
+ *
+ *
+ * Protobuf type {@code google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+ type_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType getType() {
+ com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType result =
+ com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType.forNumber(
+ type_);
+ return result == null
+ ? com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType.UNRECOGNIZED
+ : result;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ com.google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The finding's type.
+ *
+ *
+ *
+ * optional .google.ads.admanager.v1.AdBreakFindingTypeEnum.AdBreakFindingType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private long breakKey_;
+
+ /**
+ *
+ *
+ *
+ * Output only. The ID that links to the relevant ad break.
+ *
+ *
+ * optional int64 break_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the breakKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasBreakKey() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ID that links to the relevant ad break.
+ *
+ *
+ * optional int64 break_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The breakKey.
+ */
+ @java.lang.Override
+ public long getBreakKey() {
+ return breakKey_;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ID that links to the relevant ad break.
+ *
+ *
+ * optional int64 break_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The breakKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBreakKey(long value) {
+
+ breakKey_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * Output only. The ID that links to the relevant ad break.
+ *
+ *
+ * optional int64 break_key = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBreakKey() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ breakKey_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding)
+ private static final com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding();
+ }
+
+ public static com.google.ads.admanager.v1.DaiSession.Finding.AdBreakFinding
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser