/*
 * Copyright 2023 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/slates.proto

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

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

  private Slate() {
    name_ = "";
    uri_ = "";
  }

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

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

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

  public interface GamSlateOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.video.stitcher.v1.Slate.GamSlate)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Required. Ad Manager network code to associate with the live config.
     * </pre>
     *
     * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The networkCode.
     */
    java.lang.String getNetworkCode();
    /**
     *
     *
     * <pre>
     * Required. Ad Manager network code to associate with the live config.
     * </pre>
     *
     * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for networkCode.
     */
    com.google.protobuf.ByteString getNetworkCodeBytes();

    /**
     *
     *
     * <pre>
     * Output only. The identifier generated for the slate by GAM.
     * </pre>
     *
     * <code>int64 gam_slate_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The gamSlateId.
     */
    long getGamSlateId();
  }
  /**
   *
   *
   * <pre>
   * GamSlate object has Google Ad Manager (GAM) related properties for the
   * slate.
   * </pre>
   *
   * Protobuf type {@code google.cloud.video.stitcher.v1.Slate.GamSlate}
   */
  public static final class GamSlate extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.video.stitcher.v1.Slate.GamSlate)
      GamSlateOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use GamSlate.newBuilder() to construct.
    private GamSlate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private GamSlate() {
      networkCode_ = "";
    }

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

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

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.video.stitcher.v1.SlatesProto
          .internal_static_google_cloud_video_stitcher_v1_Slate_GamSlate_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.video.stitcher.v1.Slate.GamSlate.class,
              com.google.cloud.video.stitcher.v1.Slate.GamSlate.Builder.class);
    }

    public static final int NETWORK_CODE_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object networkCode_ = "";
    /**
     *
     *
     * <pre>
     * Required. Ad Manager network code to associate with the live config.
     * </pre>
     *
     * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The networkCode.
     */
    @java.lang.Override
    public java.lang.String getNetworkCode() {
      java.lang.Object ref = networkCode_;
      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();
        networkCode_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Required. Ad Manager network code to associate with the live config.
     * </pre>
     *
     * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     *
     * @return The bytes for networkCode.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getNetworkCodeBytes() {
      java.lang.Object ref = networkCode_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        networkCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int GAM_SLATE_ID_FIELD_NUMBER = 2;
    private long gamSlateId_ = 0L;
    /**
     *
     *
     * <pre>
     * Output only. The identifier generated for the slate by GAM.
     * </pre>
     *
     * <code>int64 gam_slate_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return The gamSlateId.
     */
    @java.lang.Override
    public long getGamSlateId() {
      return gamSlateId_;
    }

    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(networkCode_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkCode_);
      }
      if (gamSlateId_ != 0L) {
        output.writeInt64(2, gamSlateId_);
      }
      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(networkCode_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkCode_);
      }
      if (gamSlateId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, gamSlateId_);
      }
      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.Slate.GamSlate)) {
        return super.equals(obj);
      }
      com.google.cloud.video.stitcher.v1.Slate.GamSlate other =
          (com.google.cloud.video.stitcher.v1.Slate.GamSlate) obj;

      if (!getNetworkCode().equals(other.getNetworkCode())) return false;
      if (getGamSlateId() != other.getGamSlateId()) 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) + NETWORK_CODE_FIELD_NUMBER;
      hash = (53 * hash) + getNetworkCode().hashCode();
      hash = (37 * hash) + GAM_SLATE_ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGamSlateId());
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

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

    public static com.google.cloud.video.stitcher.v1.Slate.GamSlate 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.Slate.GamSlate 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.Slate.GamSlate 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.Slate.GamSlate 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.Slate.GamSlate 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.Slate.GamSlate 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.Slate.GamSlate 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.Slate.GamSlate 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>
     * GamSlate object has Google Ad Manager (GAM) related properties for the
     * slate.
     * </pre>
     *
     * Protobuf type {@code google.cloud.video.stitcher.v1.Slate.GamSlate}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.Slate.GamSlate)
        com.google.cloud.video.stitcher.v1.Slate.GamSlateOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.video.stitcher.v1.SlatesProto
            .internal_static_google_cloud_video_stitcher_v1_Slate_GamSlate_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.video.stitcher.v1.SlatesProto
            .internal_static_google_cloud_video_stitcher_v1_Slate_GamSlate_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.video.stitcher.v1.Slate.GamSlate.class,
                com.google.cloud.video.stitcher.v1.Slate.GamSlate.Builder.class);
      }

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

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        networkCode_ = "";
        gamSlateId_ = 0L;
        return this;
      }

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

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

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

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

      private void buildPartial0(com.google.cloud.video.stitcher.v1.Slate.GamSlate result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.networkCode_ = networkCode_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.gamSlateId_ = gamSlateId_;
        }
      }

      @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.Slate.GamSlate) {
          return mergeFrom((com.google.cloud.video.stitcher.v1.Slate.GamSlate) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.video.stitcher.v1.Slate.GamSlate other) {
        if (other == com.google.cloud.video.stitcher.v1.Slate.GamSlate.getDefaultInstance())
          return this;
        if (!other.getNetworkCode().isEmpty()) {
          networkCode_ = other.networkCode_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (other.getGamSlateId() != 0L) {
          setGamSlateId(other.getGamSlateId());
        }
        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:
                {
                  networkCode_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 16:
                {
                  gamSlateId_ = input.readInt64();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
              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 networkCode_ = "";
      /**
       *
       *
       * <pre>
       * Required. Ad Manager network code to associate with the live config.
       * </pre>
       *
       * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The networkCode.
       */
      public java.lang.String getNetworkCode() {
        java.lang.Object ref = networkCode_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          networkCode_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Ad Manager network code to associate with the live config.
       * </pre>
       *
       * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return The bytes for networkCode.
       */
      public com.google.protobuf.ByteString getNetworkCodeBytes() {
        java.lang.Object ref = networkCode_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          networkCode_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Required. Ad Manager network code to associate with the live config.
       * </pre>
       *
       * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The networkCode to set.
       * @return This builder for chaining.
       */
      public Builder setNetworkCode(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        networkCode_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. Ad Manager network code to associate with the live config.
       * </pre>
       *
       * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearNetworkCode() {
        networkCode_ = getDefaultInstance().getNetworkCode();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Required. Ad Manager network code to associate with the live config.
       * </pre>
       *
       * <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
       *
       * @param value The bytes for networkCode to set.
       * @return This builder for chaining.
       */
      public Builder setNetworkCodeBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        networkCode_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private long gamSlateId_;
      /**
       *
       *
       * <pre>
       * Output only. The identifier generated for the slate by GAM.
       * </pre>
       *
       * <code>int64 gam_slate_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return The gamSlateId.
       */
      @java.lang.Override
      public long getGamSlateId() {
        return gamSlateId_;
      }
      /**
       *
       *
       * <pre>
       * Output only. The identifier generated for the slate by GAM.
       * </pre>
       *
       * <code>int64 gam_slate_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @param value The gamSlateId to set.
       * @return This builder for chaining.
       */
      public Builder setGamSlateId(long value) {

        gamSlateId_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Output only. The identifier generated for the slate by GAM.
       * </pre>
       *
       * <code>int64 gam_slate_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearGamSlateId() {
        bitField0_ = (bitField0_ & ~0x00000002);
        gamSlateId_ = 0L;
        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.Slate.GamSlate)
    }

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

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

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

    private static final com.google.protobuf.Parser<GamSlate> PARSER =
        new com.google.protobuf.AbstractParser<GamSlate>() {
          @java.lang.Override
          public GamSlate 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<GamSlate> parser() {
      return PARSER;
    }

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

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

  public static final int NAME_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   *
   *
   * <pre>
   * Output only. The name of the slate, in the form of
   * `projects/{project_number}/locations/{location}/slates/{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 slate, in the form of
   * `projects/{project_number}/locations/{location}/slates/{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 URI_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object uri_ = "";
  /**
   *
   *
   * <pre>
   * The URI to fetch the source content for the slate. This URI must return an
   * MP4 video with at least one audio track.
   * </pre>
   *
   * <code>string uri = 2;</code>
   *
   * @return The uri.
   */
  @java.lang.Override
  public java.lang.String getUri() {
    java.lang.Object ref = uri_;
    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();
      uri_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The URI to fetch the source content for the slate. This URI must return an
   * MP4 video with at least one audio track.
   * </pre>
   *
   * <code>string uri = 2;</code>
   *
   * @return The bytes for uri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getUriBytes() {
    java.lang.Object ref = uri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      uri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GAM_SLATE_FIELD_NUMBER = 3;
  private com.google.cloud.video.stitcher.v1.Slate.GamSlate gamSlate_;
  /**
   *
   *
   * <pre>
   * gam_slate has all the GAM-related attributes of slates.
   * </pre>
   *
   * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
   *
   * @return Whether the gamSlate field is set.
   */
  @java.lang.Override
  public boolean hasGamSlate() {
    return gamSlate_ != null;
  }
  /**
   *
   *
   * <pre>
   * gam_slate has all the GAM-related attributes of slates.
   * </pre>
   *
   * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
   *
   * @return The gamSlate.
   */
  @java.lang.Override
  public com.google.cloud.video.stitcher.v1.Slate.GamSlate getGamSlate() {
    return gamSlate_ == null
        ? com.google.cloud.video.stitcher.v1.Slate.GamSlate.getDefaultInstance()
        : gamSlate_;
  }
  /**
   *
   *
   * <pre>
   * gam_slate has all the GAM-related attributes of slates.
   * </pre>
   *
   * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
   */
  @java.lang.Override
  public com.google.cloud.video.stitcher.v1.Slate.GamSlateOrBuilder getGamSlateOrBuilder() {
    return gamSlate_ == null
        ? com.google.cloud.video.stitcher.v1.Slate.GamSlate.getDefaultInstance()
        : gamSlate_;
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_);
    }
    if (gamSlate_ != null) {
      output.writeMessage(3, getGamSlate());
    }
    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_);
    }
    if (gamSlate_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getGamSlate());
    }
    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.Slate)) {
      return super.equals(obj);
    }
    com.google.cloud.video.stitcher.v1.Slate other = (com.google.cloud.video.stitcher.v1.Slate) obj;

    if (!getName().equals(other.getName())) return false;
    if (!getUri().equals(other.getUri())) return false;
    if (hasGamSlate() != other.hasGamSlate()) return false;
    if (hasGamSlate()) {
      if (!getGamSlate().equals(other.getGamSlate())) 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();
    hash = (37 * hash) + URI_FIELD_NUMBER;
    hash = (53 * hash) + getUri().hashCode();
    if (hasGamSlate()) {
      hash = (37 * hash) + GAM_SLATE_FIELD_NUMBER;
      hash = (53 * hash) + getGamSlate().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

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

  public static com.google.cloud.video.stitcher.v1.Slate 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.Slate 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.Slate 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.Slate 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.Slate 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.Slate 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.Slate 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.Slate 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>
   * Slate object
   * </pre>
   *
   * Protobuf type {@code google.cloud.video.stitcher.v1.Slate}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.video.stitcher.v1.Slate)
      com.google.cloud.video.stitcher.v1.SlateOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.video.stitcher.v1.SlatesProto
          .internal_static_google_cloud_video_stitcher_v1_Slate_descriptor;
    }

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

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      uri_ = "";
      gamSlate_ = null;
      if (gamSlateBuilder_ != null) {
        gamSlateBuilder_.dispose();
        gamSlateBuilder_ = null;
      }
      return this;
    }

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

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

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

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

    private void buildPartial0(com.google.cloud.video.stitcher.v1.Slate result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.uri_ = uri_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.gamSlate_ = gamSlateBuilder_ == null ? gamSlate_ : gamSlateBuilder_.build();
      }
    }

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

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

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

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

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

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

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

    public Builder mergeFrom(com.google.cloud.video.stitcher.v1.Slate other) {
      if (other == com.google.cloud.video.stitcher.v1.Slate.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getUri().isEmpty()) {
        uri_ = other.uri_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (other.hasGamSlate()) {
        mergeGamSlate(other.getGamSlate());
      }
      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:
              {
                uri_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(getGamSlateFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            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 slate, in the form of
     * `projects/{project_number}/locations/{location}/slates/{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 slate, in the form of
     * `projects/{project_number}/locations/{location}/slates/{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 slate, in the form of
     * `projects/{project_number}/locations/{location}/slates/{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 slate, in the form of
     * `projects/{project_number}/locations/{location}/slates/{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 slate, in the form of
     * `projects/{project_number}/locations/{location}/slates/{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 java.lang.Object uri_ = "";
    /**
     *
     *
     * <pre>
     * The URI to fetch the source content for the slate. This URI must return an
     * MP4 video with at least one audio track.
     * </pre>
     *
     * <code>string uri = 2;</code>
     *
     * @return The uri.
     */
    public java.lang.String getUri() {
      java.lang.Object ref = uri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        uri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The URI to fetch the source content for the slate. This URI must return an
     * MP4 video with at least one audio track.
     * </pre>
     *
     * <code>string uri = 2;</code>
     *
     * @return The bytes for uri.
     */
    public com.google.protobuf.ByteString getUriBytes() {
      java.lang.Object ref = uri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        uri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The URI to fetch the source content for the slate. This URI must return an
     * MP4 video with at least one audio track.
     * </pre>
     *
     * <code>string uri = 2;</code>
     *
     * @param value The uri to set.
     * @return This builder for chaining.
     */
    public Builder setUri(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      uri_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The URI to fetch the source content for the slate. This URI must return an
     * MP4 video with at least one audio track.
     * </pre>
     *
     * <code>string uri = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearUri() {
      uri_ = getDefaultInstance().getUri();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The URI to fetch the source content for the slate. This URI must return an
     * MP4 video with at least one audio track.
     * </pre>
     *
     * <code>string uri = 2;</code>
     *
     * @param value The bytes for uri to set.
     * @return This builder for chaining.
     */
    public Builder setUriBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      uri_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private com.google.cloud.video.stitcher.v1.Slate.GamSlate gamSlate_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.video.stitcher.v1.Slate.GamSlate,
            com.google.cloud.video.stitcher.v1.Slate.GamSlate.Builder,
            com.google.cloud.video.stitcher.v1.Slate.GamSlateOrBuilder>
        gamSlateBuilder_;
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     *
     * @return Whether the gamSlate field is set.
     */
    public boolean hasGamSlate() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     *
     * @return The gamSlate.
     */
    public com.google.cloud.video.stitcher.v1.Slate.GamSlate getGamSlate() {
      if (gamSlateBuilder_ == null) {
        return gamSlate_ == null
            ? com.google.cloud.video.stitcher.v1.Slate.GamSlate.getDefaultInstance()
            : gamSlate_;
      } else {
        return gamSlateBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     */
    public Builder setGamSlate(com.google.cloud.video.stitcher.v1.Slate.GamSlate value) {
      if (gamSlateBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        gamSlate_ = value;
      } else {
        gamSlateBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     */
    public Builder setGamSlate(
        com.google.cloud.video.stitcher.v1.Slate.GamSlate.Builder builderForValue) {
      if (gamSlateBuilder_ == null) {
        gamSlate_ = builderForValue.build();
      } else {
        gamSlateBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     */
    public Builder mergeGamSlate(com.google.cloud.video.stitcher.v1.Slate.GamSlate value) {
      if (gamSlateBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && gamSlate_ != null
            && gamSlate_
                != com.google.cloud.video.stitcher.v1.Slate.GamSlate.getDefaultInstance()) {
          getGamSlateBuilder().mergeFrom(value);
        } else {
          gamSlate_ = value;
        }
      } else {
        gamSlateBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     */
    public Builder clearGamSlate() {
      bitField0_ = (bitField0_ & ~0x00000004);
      gamSlate_ = null;
      if (gamSlateBuilder_ != null) {
        gamSlateBuilder_.dispose();
        gamSlateBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     */
    public com.google.cloud.video.stitcher.v1.Slate.GamSlate.Builder getGamSlateBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getGamSlateFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     */
    public com.google.cloud.video.stitcher.v1.Slate.GamSlateOrBuilder getGamSlateOrBuilder() {
      if (gamSlateBuilder_ != null) {
        return gamSlateBuilder_.getMessageOrBuilder();
      } else {
        return gamSlate_ == null
            ? com.google.cloud.video.stitcher.v1.Slate.GamSlate.getDefaultInstance()
            : gamSlate_;
      }
    }
    /**
     *
     *
     * <pre>
     * gam_slate has all the GAM-related attributes of slates.
     * </pre>
     *
     * <code>.google.cloud.video.stitcher.v1.Slate.GamSlate gam_slate = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.video.stitcher.v1.Slate.GamSlate,
            com.google.cloud.video.stitcher.v1.Slate.GamSlate.Builder,
            com.google.cloud.video.stitcher.v1.Slate.GamSlateOrBuilder>
        getGamSlateFieldBuilder() {
      if (gamSlateBuilder_ == null) {
        gamSlateBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.video.stitcher.v1.Slate.GamSlate,
                com.google.cloud.video.stitcher.v1.Slate.GamSlate.Builder,
                com.google.cloud.video.stitcher.v1.Slate.GamSlateOrBuilder>(
                getGamSlate(), getParentForChildren(), isClean());
        gamSlate_ = null;
      }
      return gamSlateBuilder_;
    }

    @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.Slate)
  }

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

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

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

  private static final com.google.protobuf.Parser<Slate> PARSER =
      new com.google.protobuf.AbstractParser<Slate>() {
        @java.lang.Override
        public Slate 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<Slate> parser() {
    return PARSER;
  }

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

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