/*
 * Copyright 2020 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.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/video/stitcher/v1/sessions.proto

package com.google.cloud.video.stitcher.v1;

/**
 *
 *
 * <pre>
 * Metadata for a VOD session.
 * </pre>
 *
 * Protobuf type {@code google.cloud.video.stitcher.v1.VodSession}
 */
public final class VodSession extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.VodSession)
    VodSessionOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use VodSession.newBuilder() to construct.
  private VodSession(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private VodSession() {
    name_ = "";
    playUri_ = "";
    sourceUri_ = "";
    adTagUri_ = "";
    assetId_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new VodSession();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.video.stitcher.v1.SessionsProto
        .internal_static_google_cloud_video_stitcher_v1_VodSession_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(int number) {
    switch (number) {
      case 7:
        return internalGetAdTagMacroMap();
      default:
        throw new RuntimeException("Invalid map field number: " + number);
    }
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.video.stitcher.v1.SessionsProto
        .internal_static_google_cloud_video_stitcher_v1_VodSession_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.video.stitcher.v1.VodSession.class,
            com.google.cloud.video.stitcher.v1.VodSession.Builder.class);
  }

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The name of the VOD session, in the form of
   * `projects/{project_number}/locations/{location}/vodSessions/{id}`.
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The name.
   */
  @java.lang.Override
  public java.lang.String getName() {
    java.lang.Object ref = name_;
    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();
      name_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The name of the VOD session, in the form of
   * `projects/{project_number}/locations/{location}/vodSessions/{id}`.
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for name.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INTERSTITIALS_FIELD_NUMBER = 2;
  private com.google.cloud.video.stitcher.v1.Interstitials interstitials_;
  /**
   *
   *
   * <pre>
   * Output only. Metadata of what was stitched into the content.
   * </pre>
   *
   * <code>
   * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the interstitials field is set.
   */
  @java.lang.Override
  public boolean hasInterstitials() {
    return interstitials_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Metadata of what was stitched into the content.
   * </pre>
   *
   * <code>
   * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The interstitials.
   */
  @java.lang.Override
  public com.google.cloud.video.stitcher.v1.Interstitials getInterstitials() {
    return interstitials_ == null
        ? com.google.cloud.video.stitcher.v1.Interstitials.getDefaultInstance()
        : interstitials_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Metadata of what was stitched into the content.
   * </pre>
   *
   * <code>
   * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.video.stitcher.v1.InterstitialsOrBuilder getInterstitialsOrBuilder() {
    return interstitials_ == null
        ? com.google.cloud.video.stitcher.v1.Interstitials.getDefaultInstance()
        : interstitials_;
  }

  public static final int PLAY_URI_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object playUri_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The playback URI of the stitched content.
   * </pre>
   *
   * <code>string play_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The playUri.
   */
  @java.lang.Override
  public java.lang.String getPlayUri() {
    java.lang.Object ref = playUri_;
    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();
      playUri_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The playback URI of the stitched content.
   * </pre>
   *
   * <code>string play_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for playUri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getPlayUriBytes() {
    java.lang.Object ref = playUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      playUri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCE_URI_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object sourceUri_ = "";
  /**
   *
   *
   * <pre>
   * Required. URI of the media to stitch.
   * </pre>
   *
   * <code>string source_uri = 5 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The sourceUri.
   */
  @java.lang.Override
  public java.lang.String getSourceUri() {
    java.lang.Object ref = sourceUri_;
    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();
      sourceUri_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. URI of the media to stitch.
   * </pre>
   *
   * <code>string source_uri = 5 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for sourceUri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSourceUriBytes() {
    java.lang.Object ref = sourceUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      sourceUri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AD_TAG_URI_FIELD_NUMBER = 6;

  @SuppressWarnings("serial")
  private volatile java.lang.Object adTagUri_ = "";
  /**
   *
   *
   * <pre>
   * Required. Ad tag URI.
   * </pre>
   *
   * <code>string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The adTagUri.
   */
  @java.lang.Override
  public java.lang.String getAdTagUri() {
    java.lang.Object ref = adTagUri_;
    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();
      adTagUri_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required. Ad tag URI.
   * </pre>
   *
   * <code>string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for adTagUri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getAdTagUriBytes() {
    java.lang.Object ref = adTagUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      adTagUri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int AD_TAG_MACRO_MAP_FIELD_NUMBER = 7;

  private static final class AdTagMacroMapDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
        com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
            com.google.cloud.video.stitcher.v1.SessionsProto
                .internal_static_google_cloud_video_stitcher_v1_VodSession_AdTagMacroMapEntry_descriptor,
            com.google.protobuf.WireFormat.FieldType.STRING,
            "",
            com.google.protobuf.WireFormat.FieldType.STRING,
            "");
  }

  @SuppressWarnings("serial")
  private com.google.protobuf.MapField<java.lang.String, java.lang.String> adTagMacroMap_;

  private com.google.protobuf.MapField<java.lang.String, java.lang.String>
      internalGetAdTagMacroMap() {
    if (adTagMacroMap_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          AdTagMacroMapDefaultEntryHolder.defaultEntry);
    }
    return adTagMacroMap_;
  }

  public int getAdTagMacroMapCount() {
    return internalGetAdTagMacroMap().getMap().size();
  }
  /**
   *
   *
   * <pre>
   * Key value pairs for ad tag macro replacement. If the
   * specified ad tag URI has macros, this field provides the mapping
   * to the value that will replace the macro in the ad tag URI.
   * Macros are designated by square brackets.
   * For example:
   *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
   *   Ad tag macro map: `{"geoId": "123"}`
   *   Fully qualified ad tag:
   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
   * </pre>
   *
   * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
   */
  @java.lang.Override
  public boolean containsAdTagMacroMap(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    return internalGetAdTagMacroMap().getMap().containsKey(key);
  }
  /** Use {@link #getAdTagMacroMapMap()} instead. */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getAdTagMacroMap() {
    return getAdTagMacroMapMap();
  }
  /**
   *
   *
   * <pre>
   * Key value pairs for ad tag macro replacement. If the
   * specified ad tag URI has macros, this field provides the mapping
   * to the value that will replace the macro in the ad tag URI.
   * Macros are designated by square brackets.
   * For example:
   *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
   *   Ad tag macro map: `{"geoId": "123"}`
   *   Fully qualified ad tag:
   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
   * </pre>
   *
   * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
   */
  @java.lang.Override
  public java.util.Map<java.lang.String, java.lang.String> getAdTagMacroMapMap() {
    return internalGetAdTagMacroMap().getMap();
  }
  /**
   *
   *
   * <pre>
   * Key value pairs for ad tag macro replacement. If the
   * specified ad tag URI has macros, this field provides the mapping
   * to the value that will replace the macro in the ad tag URI.
   * Macros are designated by square brackets.
   * For example:
   *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
   *   Ad tag macro map: `{"geoId": "123"}`
   *   Fully qualified ad tag:
   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
   * </pre>
   *
   * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
   */
  @java.lang.Override
  public /* nullable */ java.lang.String getAdTagMacroMapOrDefault(
      java.lang.String key,
      /* nullable */
      java.lang.String defaultValue) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetAdTagMacroMap().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   *
   *
   * <pre>
   * Key value pairs for ad tag macro replacement. If the
   * specified ad tag URI has macros, this field provides the mapping
   * to the value that will replace the macro in the ad tag URI.
   * Macros are designated by square brackets.
   * For example:
   *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
   *   Ad tag macro map: `{"geoId": "123"}`
   *   Fully qualified ad tag:
   *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
   * </pre>
   *
   * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
   */
  @java.lang.Override
  public java.lang.String getAdTagMacroMapOrThrow(java.lang.String key) {
    if (key == null) {
      throw new NullPointerException("map key");
    }
    java.util.Map<java.lang.String, java.lang.String> map = internalGetAdTagMacroMap().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int CLIENT_AD_TRACKING_FIELD_NUMBER = 8;
  private boolean clientAdTracking_ = false;
  /**
   *
   *
   * <pre>
   * Indicates whether client side ad tracking is enabled. If client
   * side ad tracking is enabled, then the client player is expected
   * to trigger playback and activity events itself.
   * If this is set to false, server side ad tracking is enabled,
   * causing the Video Stitcher service will trigger playback events
   * on behalf of the client player.
   * </pre>
   *
   * <code>bool client_ad_tracking = 8;</code>
   *
   * @return The clientAdTracking.
   */
  @java.lang.Override
  public boolean getClientAdTracking() {
    return clientAdTracking_;
  }

  public static final int MANIFEST_OPTIONS_FIELD_NUMBER = 9;
  private com.google.cloud.video.stitcher.v1.ManifestOptions manifestOptions_;
  /**
   *
   *
   * <pre>
   * Additional options that affect the output of the manifest.
   * </pre>
   *
   * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
   *
   * @return Whether the manifestOptions field is set.
   */
  @java.lang.Override
  public boolean hasManifestOptions() {
    return manifestOptions_ != null;
  }
  /**
   *
   *
   * <pre>
   * Additional options that affect the output of the manifest.
   * </pre>
   *
   * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
   *
   * @return The manifestOptions.
   */
  @java.lang.Override
  public com.google.cloud.video.stitcher.v1.ManifestOptions getManifestOptions() {
    return manifestOptions_ == null
        ? com.google.cloud.video.stitcher.v1.ManifestOptions.getDefaultInstance()
        : manifestOptions_;
  }
  /**
   *
   *
   * <pre>
   * Additional options that affect the output of the manifest.
   * </pre>
   *
   * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
   */
  @java.lang.Override
  public com.google.cloud.video.stitcher.v1.ManifestOptionsOrBuilder getManifestOptionsOrBuilder() {
    return manifestOptions_ == null
        ? com.google.cloud.video.stitcher.v1.ManifestOptions.getDefaultInstance()
        : manifestOptions_;
  }

  public static final int ASSET_ID_FIELD_NUMBER = 10;

  @SuppressWarnings("serial")
  private volatile java.lang.Object assetId_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The generated ID of the VodSession's source media.
   * </pre>
   *
   * <code>string asset_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The assetId.
   */
  @java.lang.Override
  public java.lang.String getAssetId() {
    java.lang.Object ref = assetId_;
    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();
      assetId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Output only. The generated ID of the VodSession's source media.
   * </pre>
   *
   * <code>string asset_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for assetId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getAssetIdBytes() {
    java.lang.Object ref = assetId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      assetId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (interstitials_ != null) {
      output.writeMessage(2, getInterstitials());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(playUri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, playUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceUri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sourceUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adTagUri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, adTagUri_);
    }
    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
        output, internalGetAdTagMacroMap(), AdTagMacroMapDefaultEntryHolder.defaultEntry, 7);
    if (clientAdTracking_ != false) {
      output.writeBool(8, clientAdTracking_);
    }
    if (manifestOptions_ != null) {
      output.writeMessage(9, getManifestOptions());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, assetId_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (interstitials_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInterstitials());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(playUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, playUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adTagUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, adTagUri_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
        internalGetAdTagMacroMap().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String> adTagMacroMap__ =
          AdTagMacroMapDefaultEntryHolder.defaultEntry
              .newBuilderForType()
              .setKey(entry.getKey())
              .setValue(entry.getValue())
              .build();
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, adTagMacroMap__);
    }
    if (clientAdTracking_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, clientAdTracking_);
    }
    if (manifestOptions_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getManifestOptions());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetId_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, assetId_);
    }
    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.cloud.video.stitcher.v1.VodSession)) {
      return super.equals(obj);
    }
    com.google.cloud.video.stitcher.v1.VodSession other =
        (com.google.cloud.video.stitcher.v1.VodSession) obj;

    if (!getName().equals(other.getName())) return false;
    if (hasInterstitials() != other.hasInterstitials()) return false;
    if (hasInterstitials()) {
      if (!getInterstitials().equals(other.getInterstitials())) return false;
    }
    if (!getPlayUri().equals(other.getPlayUri())) return false;
    if (!getSourceUri().equals(other.getSourceUri())) return false;
    if (!getAdTagUri().equals(other.getAdTagUri())) return false;
    if (!internalGetAdTagMacroMap().equals(other.internalGetAdTagMacroMap())) return false;
    if (getClientAdTracking() != other.getClientAdTracking()) return false;
    if (hasManifestOptions() != other.hasManifestOptions()) return false;
    if (hasManifestOptions()) {
      if (!getManifestOptions().equals(other.getManifestOptions())) return false;
    }
    if (!getAssetId().equals(other.getAssetId())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    if (hasInterstitials()) {
      hash = (37 * hash) + INTERSTITIALS_FIELD_NUMBER;
      hash = (53 * hash) + getInterstitials().hashCode();
    }
    hash = (37 * hash) + PLAY_URI_FIELD_NUMBER;
    hash = (53 * hash) + getPlayUri().hashCode();
    hash = (37 * hash) + SOURCE_URI_FIELD_NUMBER;
    hash = (53 * hash) + getSourceUri().hashCode();
    hash = (37 * hash) + AD_TAG_URI_FIELD_NUMBER;
    hash = (53 * hash) + getAdTagUri().hashCode();
    if (!internalGetAdTagMacroMap().getMap().isEmpty()) {
      hash = (37 * hash) + AD_TAG_MACRO_MAP_FIELD_NUMBER;
      hash = (53 * hash) + internalGetAdTagMacroMap().hashCode();
    }
    hash = (37 * hash) + CLIENT_AD_TRACKING_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientAdTracking());
    if (hasManifestOptions()) {
      hash = (37 * hash) + MANIFEST_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getManifestOptions().hashCode();
    }
    hash = (37 * hash) + ASSET_ID_FIELD_NUMBER;
    hash = (53 * hash) + getAssetId().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession 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.cloud.video.stitcher.v1.VodSession parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.video.stitcher.v1.VodSession parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.video.stitcher.v1.VodSession prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Metadata for a VOD session.
   * </pre>
   *
   * Protobuf type {@code google.cloud.video.stitcher.v1.VodSession}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.VodSession)
      com.google.cloud.video.stitcher.v1.VodSessionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.video.stitcher.v1.SessionsProto
          .internal_static_google_cloud_video_stitcher_v1_VodSession_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(int number) {
      switch (number) {
        case 7:
          return internalGetAdTagMacroMap();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
      switch (number) {
        case 7:
          return internalGetMutableAdTagMacroMap();
        default:
          throw new RuntimeException("Invalid map field number: " + number);
      }
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.video.stitcher.v1.SessionsProto
          .internal_static_google_cloud_video_stitcher_v1_VodSession_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.video.stitcher.v1.VodSession.class,
              com.google.cloud.video.stitcher.v1.VodSession.Builder.class);
    }

    // Construct using com.google.cloud.video.stitcher.v1.VodSession.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      interstitials_ = null;
      if (interstitialsBuilder_ != null) {
        interstitialsBuilder_.dispose();
        interstitialsBuilder_ = null;
      }
      playUri_ = "";
      sourceUri_ = "";
      adTagUri_ = "";
      internalGetMutableAdTagMacroMap().clear();
      clientAdTracking_ = false;
      manifestOptions_ = null;
      if (manifestOptionsBuilder_ != null) {
        manifestOptionsBuilder_.dispose();
        manifestOptionsBuilder_ = null;
      }
      assetId_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.video.stitcher.v1.SessionsProto
          .internal_static_google_cloud_video_stitcher_v1_VodSession_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.video.stitcher.v1.VodSession getDefaultInstanceForType() {
      return com.google.cloud.video.stitcher.v1.VodSession.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.video.stitcher.v1.VodSession build() {
      com.google.cloud.video.stitcher.v1.VodSession result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.video.stitcher.v1.VodSession buildPartial() {
      com.google.cloud.video.stitcher.v1.VodSession result =
          new com.google.cloud.video.stitcher.v1.VodSession(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.video.stitcher.v1.VodSession result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.interstitials_ =
            interstitialsBuilder_ == null ? interstitials_ : interstitialsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.playUri_ = playUri_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.sourceUri_ = sourceUri_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.adTagUri_ = adTagUri_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.adTagMacroMap_ = internalGetAdTagMacroMap();
        result.adTagMacroMap_.makeImmutable();
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.clientAdTracking_ = clientAdTracking_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.manifestOptions_ =
            manifestOptionsBuilder_ == null ? manifestOptions_ : manifestOptionsBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.assetId_ = assetId_;
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.video.stitcher.v1.VodSession) {
        return mergeFrom((com.google.cloud.video.stitcher.v1.VodSession) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.video.stitcher.v1.VodSession other) {
      if (other == com.google.cloud.video.stitcher.v1.VodSession.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.hasInterstitials()) {
        mergeInterstitials(other.getInterstitials());
      }
      if (!other.getPlayUri().isEmpty()) {
        playUri_ = other.playUri_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getSourceUri().isEmpty()) {
        sourceUri_ = other.sourceUri_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getAdTagUri().isEmpty()) {
        adTagUri_ = other.adTagUri_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      internalGetMutableAdTagMacroMap().mergeFrom(other.internalGetAdTagMacroMap());
      bitField0_ |= 0x00000020;
      if (other.getClientAdTracking() != false) {
        setClientAdTracking(other.getClientAdTracking());
      }
      if (other.hasManifestOptions()) {
        mergeManifestOptions(other.getManifestOptions());
      }
      if (!other.getAssetId().isEmpty()) {
        assetId_ = other.assetId_;
        bitField0_ |= 0x00000100;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                name_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(getInterstitialsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 34:
              {
                playUri_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 34
            case 42:
              {
                sourceUri_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 42
            case 50:
              {
                adTagUri_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 50
            case 58:
              {
                com.google.protobuf.MapEntry<java.lang.String, java.lang.String> adTagMacroMap__ =
                    input.readMessage(
                        AdTagMacroMapDefaultEntryHolder.defaultEntry.getParserForType(),
                        extensionRegistry);
                internalGetMutableAdTagMacroMap()
                    .getMutableMap()
                    .put(adTagMacroMap__.getKey(), adTagMacroMap__.getValue());
                bitField0_ |= 0x00000020;
                break;
              } // case 58
            case 64:
              {
                clientAdTracking_ = input.readBool();
                bitField0_ |= 0x00000040;
                break;
              } // case 64
            case 74:
              {
                input.readMessage(getManifestOptionsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 74
            case 82:
              {
                assetId_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000100;
                break;
              } // case 82
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object name_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The name of the VOD session, in the form of
     * `projects/{project_number}/locations/{location}/vodSessions/{id}`.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The name.
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the VOD session, in the form of
     * `projects/{project_number}/locations/{location}/vodSessions/{id}`.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for name.
     */
    public com.google.protobuf.ByteString getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the VOD session, in the form of
     * `projects/{project_number}/locations/{location}/vodSessions/{id}`.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The name to set.
     * @return This builder for chaining.
     */
    public Builder setName(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the VOD session, in the form of
     * `projects/{project_number}/locations/{location}/vodSessions/{id}`.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The name of the VOD session, in the form of
     * `projects/{project_number}/locations/{location}/vodSessions/{id}`.
     * </pre>
     *
     * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    public Builder setNameBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private com.google.cloud.video.stitcher.v1.Interstitials interstitials_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.video.stitcher.v1.Interstitials,
            com.google.cloud.video.stitcher.v1.Interstitials.Builder,
            com.google.cloud.video.stitcher.v1.InterstitialsOrBuilder>
        interstitialsBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the interstitials field is set.
     */
    public boolean hasInterstitials() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The interstitials.
     */
    public com.google.cloud.video.stitcher.v1.Interstitials getInterstitials() {
      if (interstitialsBuilder_ == null) {
        return interstitials_ == null
            ? com.google.cloud.video.stitcher.v1.Interstitials.getDefaultInstance()
            : interstitials_;
      } else {
        return interstitialsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setInterstitials(com.google.cloud.video.stitcher.v1.Interstitials value) {
      if (interstitialsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        interstitials_ = value;
      } else {
        interstitialsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setInterstitials(
        com.google.cloud.video.stitcher.v1.Interstitials.Builder builderForValue) {
      if (interstitialsBuilder_ == null) {
        interstitials_ = builderForValue.build();
      } else {
        interstitialsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeInterstitials(com.google.cloud.video.stitcher.v1.Interstitials value) {
      if (interstitialsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && interstitials_ != null
            && interstitials_
                != com.google.cloud.video.stitcher.v1.Interstitials.getDefaultInstance()) {
          getInterstitialsBuilder().mergeFrom(value);
        } else {
          interstitials_ = value;
        }
      } else {
        interstitialsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearInterstitials() {
      bitField0_ = (bitField0_ & ~0x00000002);
      interstitials_ = null;
      if (interstitialsBuilder_ != null) {
        interstitialsBuilder_.dispose();
        interstitialsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.video.stitcher.v1.Interstitials.Builder getInterstitialsBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getInterstitialsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.video.stitcher.v1.InterstitialsOrBuilder getInterstitialsOrBuilder() {
      if (interstitialsBuilder_ != null) {
        return interstitialsBuilder_.getMessageOrBuilder();
      } else {
        return interstitials_ == null
            ? com.google.cloud.video.stitcher.v1.Interstitials.getDefaultInstance()
            : interstitials_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Metadata of what was stitched into the content.
     * </pre>
     *
     * <code>
     * .google.cloud.video.stitcher.v1.Interstitials interstitials = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.video.stitcher.v1.Interstitials,
            com.google.cloud.video.stitcher.v1.Interstitials.Builder,
            com.google.cloud.video.stitcher.v1.InterstitialsOrBuilder>
        getInterstitialsFieldBuilder() {
      if (interstitialsBuilder_ == null) {
        interstitialsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.video.stitcher.v1.Interstitials,
                com.google.cloud.video.stitcher.v1.Interstitials.Builder,
                com.google.cloud.video.stitcher.v1.InterstitialsOrBuilder>(
                getInterstitials(), getParentForChildren(), isClean());
        interstitials_ = null;
      }
      return interstitialsBuilder_;
    }

    private java.lang.Object playUri_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The playback URI of the stitched content.
     * </pre>
     *
     * <code>string play_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The playUri.
     */
    public java.lang.String getPlayUri() {
      java.lang.Object ref = playUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        playUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The playback URI of the stitched content.
     * </pre>
     *
     * <code>string play_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for playUri.
     */
    public com.google.protobuf.ByteString getPlayUriBytes() {
      java.lang.Object ref = playUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        playUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The playback URI of the stitched content.
     * </pre>
     *
     * <code>string play_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The playUri to set.
     * @return This builder for chaining.
     */
    public Builder setPlayUri(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      playUri_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The playback URI of the stitched content.
     * </pre>
     *
     * <code>string play_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPlayUri() {
      playUri_ = getDefaultInstance().getPlayUri();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The playback URI of the stitched content.
     * </pre>
     *
     * <code>string play_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for playUri to set.
     * @return This builder for chaining.
     */
    public Builder setPlayUriBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      playUri_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object sourceUri_ = "";
    /**
     *
     *
     * <pre>
     * Required. URI of the media to stitch.
     * </pre>
     *
     * <code>string source_uri = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The sourceUri.
     */
    public java.lang.String getSourceUri() {
      java.lang.Object ref = sourceUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sourceUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. URI of the media to stitch.
     * </pre>
     *
     * <code>string source_uri = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for sourceUri.
     */
    public com.google.protobuf.ByteString getSourceUriBytes() {
      java.lang.Object ref = sourceUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        sourceUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. URI of the media to stitch.
     * </pre>
     *
     * <code>string source_uri = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The sourceUri to set.
     * @return This builder for chaining.
     */
    public Builder setSourceUri(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      sourceUri_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. URI of the media to stitch.
     * </pre>
     *
     * <code>string source_uri = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSourceUri() {
      sourceUri_ = getDefaultInstance().getSourceUri();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. URI of the media to stitch.
     * </pre>
     *
     * <code>string source_uri = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for sourceUri to set.
     * @return This builder for chaining.
     */
    public Builder setSourceUriBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      sourceUri_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object adTagUri_ = "";
    /**
     *
     *
     * <pre>
     * Required. Ad tag URI.
     * </pre>
     *
     * <code>string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The adTagUri.
     */
    public java.lang.String getAdTagUri() {
      java.lang.Object ref = adTagUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        adTagUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Ad tag URI.
     * </pre>
     *
     * <code>string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for adTagUri.
     */
    public com.google.protobuf.ByteString getAdTagUriBytes() {
      java.lang.Object ref = adTagUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        adTagUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Ad tag URI.
     * </pre>
     *
     * <code>string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The adTagUri to set.
     * @return This builder for chaining.
     */
    public Builder setAdTagUri(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      adTagUri_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Ad tag URI.
     * </pre>
     *
     * <code>string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAdTagUri() {
      adTagUri_ = getDefaultInstance().getAdTagUri();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required. Ad tag URI.
     * </pre>
     *
     * <code>string ad_tag_uri = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @param value The bytes for adTagUri to set.
     * @return This builder for chaining.
     */
    public Builder setAdTagUriBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      adTagUri_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String> adTagMacroMap_;

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetAdTagMacroMap() {
      if (adTagMacroMap_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            AdTagMacroMapDefaultEntryHolder.defaultEntry);
      }
      return adTagMacroMap_;
    }

    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
        internalGetMutableAdTagMacroMap() {
      if (adTagMacroMap_ == null) {
        adTagMacroMap_ =
            com.google.protobuf.MapField.newMapField(AdTagMacroMapDefaultEntryHolder.defaultEntry);
      }
      if (!adTagMacroMap_.isMutable()) {
        adTagMacroMap_ = adTagMacroMap_.copy();
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return adTagMacroMap_;
    }

    public int getAdTagMacroMapCount() {
      return internalGetAdTagMacroMap().getMap().size();
    }
    /**
     *
     *
     * <pre>
     * Key value pairs for ad tag macro replacement. If the
     * specified ad tag URI has macros, this field provides the mapping
     * to the value that will replace the macro in the ad tag URI.
     * Macros are designated by square brackets.
     * For example:
     *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
     *   Ad tag macro map: `{"geoId": "123"}`
     *   Fully qualified ad tag:
     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
     * </pre>
     *
     * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
     */
    @java.lang.Override
    public boolean containsAdTagMacroMap(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      return internalGetAdTagMacroMap().getMap().containsKey(key);
    }
    /** Use {@link #getAdTagMacroMapMap()} instead. */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getAdTagMacroMap() {
      return getAdTagMacroMapMap();
    }
    /**
     *
     *
     * <pre>
     * Key value pairs for ad tag macro replacement. If the
     * specified ad tag URI has macros, this field provides the mapping
     * to the value that will replace the macro in the ad tag URI.
     * Macros are designated by square brackets.
     * For example:
     *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
     *   Ad tag macro map: `{"geoId": "123"}`
     *   Fully qualified ad tag:
     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
     * </pre>
     *
     * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
     */
    @java.lang.Override
    public java.util.Map<java.lang.String, java.lang.String> getAdTagMacroMapMap() {
      return internalGetAdTagMacroMap().getMap();
    }
    /**
     *
     *
     * <pre>
     * Key value pairs for ad tag macro replacement. If the
     * specified ad tag URI has macros, this field provides the mapping
     * to the value that will replace the macro in the ad tag URI.
     * Macros are designated by square brackets.
     * For example:
     *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
     *   Ad tag macro map: `{"geoId": "123"}`
     *   Fully qualified ad tag:
     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
     * </pre>
     *
     * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
     */
    @java.lang.Override
    public /* nullable */ java.lang.String getAdTagMacroMapOrDefault(
        java.lang.String key,
        /* nullable */
        java.lang.String defaultValue) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetAdTagMacroMap().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     *
     *
     * <pre>
     * Key value pairs for ad tag macro replacement. If the
     * specified ad tag URI has macros, this field provides the mapping
     * to the value that will replace the macro in the ad tag URI.
     * Macros are designated by square brackets.
     * For example:
     *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
     *   Ad tag macro map: `{"geoId": "123"}`
     *   Fully qualified ad tag:
     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
     * </pre>
     *
     * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
     */
    @java.lang.Override
    public java.lang.String getAdTagMacroMapOrThrow(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      java.util.Map<java.lang.String, java.lang.String> map = internalGetAdTagMacroMap().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearAdTagMacroMap() {
      bitField0_ = (bitField0_ & ~0x00000020);
      internalGetMutableAdTagMacroMap().getMutableMap().clear();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Key value pairs for ad tag macro replacement. If the
     * specified ad tag URI has macros, this field provides the mapping
     * to the value that will replace the macro in the ad tag URI.
     * Macros are designated by square brackets.
     * For example:
     *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
     *   Ad tag macro map: `{"geoId": "123"}`
     *   Fully qualified ad tag:
     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
     * </pre>
     *
     * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
     */
    public Builder removeAdTagMacroMap(java.lang.String key) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      internalGetMutableAdTagMacroMap().getMutableMap().remove(key);
      return this;
    }
    /** Use alternate mutation accessors instead. */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getMutableAdTagMacroMap() {
      bitField0_ |= 0x00000020;
      return internalGetMutableAdTagMacroMap().getMutableMap();
    }
    /**
     *
     *
     * <pre>
     * Key value pairs for ad tag macro replacement. If the
     * specified ad tag URI has macros, this field provides the mapping
     * to the value that will replace the macro in the ad tag URI.
     * Macros are designated by square brackets.
     * For example:
     *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
     *   Ad tag macro map: `{"geoId": "123"}`
     *   Fully qualified ad tag:
     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
     * </pre>
     *
     * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
     */
    public Builder putAdTagMacroMap(java.lang.String key, java.lang.String value) {
      if (key == null) {
        throw new NullPointerException("map key");
      }
      if (value == null) {
        throw new NullPointerException("map value");
      }
      internalGetMutableAdTagMacroMap().getMutableMap().put(key, value);
      bitField0_ |= 0x00000020;
      return this;
    }
    /**
     *
     *
     * <pre>
     * Key value pairs for ad tag macro replacement. If the
     * specified ad tag URI has macros, this field provides the mapping
     * to the value that will replace the macro in the ad tag URI.
     * Macros are designated by square brackets.
     * For example:
     *   Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"`
     *   Ad tag macro map: `{"geoId": "123"}`
     *   Fully qualified ad tag:
     *   `"`https://doubleclick.google.com/ad/1?geo_id=123"`
     * </pre>
     *
     * <code>map&lt;string, string&gt; ad_tag_macro_map = 7;</code>
     */
    public Builder putAllAdTagMacroMap(java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableAdTagMacroMap().getMutableMap().putAll(values);
      bitField0_ |= 0x00000020;
      return this;
    }

    private boolean clientAdTracking_;
    /**
     *
     *
     * <pre>
     * Indicates whether client side ad tracking is enabled. If client
     * side ad tracking is enabled, then the client player is expected
     * to trigger playback and activity events itself.
     * If this is set to false, server side ad tracking is enabled,
     * causing the Video Stitcher service will trigger playback events
     * on behalf of the client player.
     * </pre>
     *
     * <code>bool client_ad_tracking = 8;</code>
     *
     * @return The clientAdTracking.
     */
    @java.lang.Override
    public boolean getClientAdTracking() {
      return clientAdTracking_;
    }
    /**
     *
     *
     * <pre>
     * Indicates whether client side ad tracking is enabled. If client
     * side ad tracking is enabled, then the client player is expected
     * to trigger playback and activity events itself.
     * If this is set to false, server side ad tracking is enabled,
     * causing the Video Stitcher service will trigger playback events
     * on behalf of the client player.
     * </pre>
     *
     * <code>bool client_ad_tracking = 8;</code>
     *
     * @param value The clientAdTracking to set.
     * @return This builder for chaining.
     */
    public Builder setClientAdTracking(boolean value) {

      clientAdTracking_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Indicates whether client side ad tracking is enabled. If client
     * side ad tracking is enabled, then the client player is expected
     * to trigger playback and activity events itself.
     * If this is set to false, server side ad tracking is enabled,
     * causing the Video Stitcher service will trigger playback events
     * on behalf of the client player.
     * </pre>
     *
     * <code>bool client_ad_tracking = 8;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearClientAdTracking() {
      bitField0_ = (bitField0_ & ~0x00000040);
      clientAdTracking_ = false;
      onChanged();
      return this;
    }

    private com.google.cloud.video.stitcher.v1.ManifestOptions manifestOptions_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.video.stitcher.v1.ManifestOptions,
            com.google.cloud.video.stitcher.v1.ManifestOptions.Builder,
            com.google.cloud.video.stitcher.v1.ManifestOptionsOrBuilder>
        manifestOptionsBuilder_;
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     *
     * @return Whether the manifestOptions field is set.
     */
    public boolean hasManifestOptions() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     *
     * @return The manifestOptions.
     */
    public com.google.cloud.video.stitcher.v1.ManifestOptions getManifestOptions() {
      if (manifestOptionsBuilder_ == null) {
        return manifestOptions_ == null
            ? com.google.cloud.video.stitcher.v1.ManifestOptions.getDefaultInstance()
            : manifestOptions_;
      } else {
        return manifestOptionsBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     */
    public Builder setManifestOptions(com.google.cloud.video.stitcher.v1.ManifestOptions value) {
      if (manifestOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        manifestOptions_ = value;
      } else {
        manifestOptionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     */
    public Builder setManifestOptions(
        com.google.cloud.video.stitcher.v1.ManifestOptions.Builder builderForValue) {
      if (manifestOptionsBuilder_ == null) {
        manifestOptions_ = builderForValue.build();
      } else {
        manifestOptionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     */
    public Builder mergeManifestOptions(com.google.cloud.video.stitcher.v1.ManifestOptions value) {
      if (manifestOptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)
            && manifestOptions_ != null
            && manifestOptions_
                != com.google.cloud.video.stitcher.v1.ManifestOptions.getDefaultInstance()) {
          getManifestOptionsBuilder().mergeFrom(value);
        } else {
          manifestOptions_ = value;
        }
      } else {
        manifestOptionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     */
    public Builder clearManifestOptions() {
      bitField0_ = (bitField0_ & ~0x00000080);
      manifestOptions_ = null;
      if (manifestOptionsBuilder_ != null) {
        manifestOptionsBuilder_.dispose();
        manifestOptionsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     */
    public com.google.cloud.video.stitcher.v1.ManifestOptions.Builder getManifestOptionsBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return getManifestOptionsFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     */
    public com.google.cloud.video.stitcher.v1.ManifestOptionsOrBuilder
        getManifestOptionsOrBuilder() {
      if (manifestOptionsBuilder_ != null) {
        return manifestOptionsBuilder_.getMessageOrBuilder();
      } else {
        return manifestOptions_ == null
            ? com.google.cloud.video.stitcher.v1.ManifestOptions.getDefaultInstance()
            : manifestOptions_;
      }
    }
    /**
     *
     *
     * <pre>
     * Additional options that affect the output of the manifest.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.ManifestOptions manifest_options = 9;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.video.stitcher.v1.ManifestOptions,
            com.google.cloud.video.stitcher.v1.ManifestOptions.Builder,
            com.google.cloud.video.stitcher.v1.ManifestOptionsOrBuilder>
        getManifestOptionsFieldBuilder() {
      if (manifestOptionsBuilder_ == null) {
        manifestOptionsBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.video.stitcher.v1.ManifestOptions,
                com.google.cloud.video.stitcher.v1.ManifestOptions.Builder,
                com.google.cloud.video.stitcher.v1.ManifestOptionsOrBuilder>(
                getManifestOptions(), getParentForChildren(), isClean());
        manifestOptions_ = null;
      }
      return manifestOptionsBuilder_;
    }

    private java.lang.Object assetId_ = "";
    /**
     *
     *
     * <pre>
     * Output only. The generated ID of the VodSession's source media.
     * </pre>
     *
     * <code>string asset_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The assetId.
     */
    public java.lang.String getAssetId() {
      java.lang.Object ref = assetId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        assetId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The generated ID of the VodSession's source media.
     * </pre>
     *
     * <code>string asset_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The bytes for assetId.
     */
    public com.google.protobuf.ByteString getAssetIdBytes() {
      java.lang.Object ref = assetId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        assetId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The generated ID of the VodSession's source media.
     * </pre>
     *
     * <code>string asset_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The assetId to set.
     * @return This builder for chaining.
     */
    public Builder setAssetId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      assetId_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The generated ID of the VodSession's source media.
     * </pre>
     *
     * <code>string asset_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearAssetId() {
      assetId_ = getDefaultInstance().getAssetId();
      bitField0_ = (bitField0_ & ~0x00000100);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The generated ID of the VodSession's source media.
     * </pre>
     *
     * <code>string asset_id = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param value The bytes for assetId to set.
     * @return This builder for chaining.
     */
    public Builder setAssetIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      assetId_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.video.stitcher.v1.VodSession)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.video.stitcher.v1.VodSession)
  private static final com.google.cloud.video.stitcher.v1.VodSession DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.video.stitcher.v1.VodSession();
  }

  public static com.google.cloud.video.stitcher.v1.VodSession getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<VodSession> PARSER =
      new com.google.protobuf.AbstractParser<VodSession>() {
        @java.lang.Override
        public VodSession parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<VodSession> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<VodSession> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.video.stitcher.v1.VodSession getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
