/*
 * 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/datalabeling/v1beta1/data_payloads.proto

package com.google.cloud.datalabeling.v1beta1;

/**
 *
 *
 * <pre>
 * Container of information of a video.
 * </pre>
 *
 * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoPayload}
 */
public final class VideoPayload extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoPayload)
    VideoPayloadOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use VideoPayload.newBuilder() to construct.
  private VideoPayload(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private VideoPayload() {
    mimeType_ = "";
    videoUri_ = "";
    videoThumbnails_ = java.util.Collections.emptyList();
    signedUri_ = "";
  }

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

  @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.datalabeling.v1beta1.DataPayloads
        .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.datalabeling.v1beta1.DataPayloads
        .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.datalabeling.v1beta1.VideoPayload.class,
            com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class);
  }

  public static final int MIME_TYPE_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object mimeType_ = "";
  /**
   *
   *
   * <pre>
   * Video format.
   * </pre>
   *
   * <code>string mime_type = 1;</code>
   *
   * @return The mimeType.
   */
  @java.lang.Override
  public java.lang.String getMimeType() {
    java.lang.Object ref = mimeType_;
    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();
      mimeType_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Video format.
   * </pre>
   *
   * <code>string mime_type = 1;</code>
   *
   * @return The bytes for mimeType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getMimeTypeBytes() {
    java.lang.Object ref = mimeType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      mimeType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VIDEO_URI_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object videoUri_ = "";
  /**
   *
   *
   * <pre>
   * Video uri from the user bucket.
   * </pre>
   *
   * <code>string video_uri = 2;</code>
   *
   * @return The videoUri.
   */
  @java.lang.Override
  public java.lang.String getVideoUri() {
    java.lang.Object ref = videoUri_;
    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();
      videoUri_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Video uri from the user bucket.
   * </pre>
   *
   * <code>string video_uri = 2;</code>
   *
   * @return The bytes for videoUri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getVideoUriBytes() {
    java.lang.Object ref = videoUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      videoUri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VIDEO_THUMBNAILS_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.datalabeling.v1beta1.VideoThumbnail> videoThumbnails_;
  /**
   *
   *
   * <pre>
   * The list of video thumbnails.
   * </pre>
   *
   * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.datalabeling.v1beta1.VideoThumbnail>
      getVideoThumbnailsList() {
    return videoThumbnails_;
  }
  /**
   *
   *
   * <pre>
   * The list of video thumbnails.
   * </pre>
   *
   * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>
      getVideoThumbnailsOrBuilderList() {
    return videoThumbnails_;
  }
  /**
   *
   *
   * <pre>
   * The list of video thumbnails.
   * </pre>
   *
   * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
   */
  @java.lang.Override
  public int getVideoThumbnailsCount() {
    return videoThumbnails_.size();
  }
  /**
   *
   *
   * <pre>
   * The list of video thumbnails.
   * </pre>
   *
   * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
   */
  @java.lang.Override
  public com.google.cloud.datalabeling.v1beta1.VideoThumbnail getVideoThumbnails(int index) {
    return videoThumbnails_.get(index);
  }
  /**
   *
   *
   * <pre>
   * The list of video thumbnails.
   * </pre>
   *
   * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
   */
  @java.lang.Override
  public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder getVideoThumbnailsOrBuilder(
      int index) {
    return videoThumbnails_.get(index);
  }

  public static final int FRAME_RATE_FIELD_NUMBER = 4;
  private float frameRate_ = 0F;
  /**
   *
   *
   * <pre>
   * FPS of the video.
   * </pre>
   *
   * <code>float frame_rate = 4;</code>
   *
   * @return The frameRate.
   */
  @java.lang.Override
  public float getFrameRate() {
    return frameRate_;
  }

  public static final int SIGNED_URI_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object signedUri_ = "";
  /**
   *
   *
   * <pre>
   * Signed uri of the video file in the service bucket.
   * </pre>
   *
   * <code>string signed_uri = 5;</code>
   *
   * @return The signedUri.
   */
  @java.lang.Override
  public java.lang.String getSignedUri() {
    java.lang.Object ref = signedUri_;
    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();
      signedUri_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Signed uri of the video file in the service bucket.
   * </pre>
   *
   * <code>string signed_uri = 5;</code>
   *
   * @return The bytes for signedUri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getSignedUriBytes() {
    java.lang.Object ref = signedUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      signedUri_ = 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(mimeType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(videoUri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, videoUri_);
    }
    for (int i = 0; i < videoThumbnails_.size(); i++) {
      output.writeMessage(3, videoThumbnails_.get(i));
    }
    if (java.lang.Float.floatToRawIntBits(frameRate_) != 0) {
      output.writeFloat(4, frameRate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signedUri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, signedUri_);
    }
    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(mimeType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(videoUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, videoUri_);
    }
    for (int i = 0; i < videoThumbnails_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, videoThumbnails_.get(i));
    }
    if (java.lang.Float.floatToRawIntBits(frameRate_) != 0) {
      size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, frameRate_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signedUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signedUri_);
    }
    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.datalabeling.v1beta1.VideoPayload)) {
      return super.equals(obj);
    }
    com.google.cloud.datalabeling.v1beta1.VideoPayload other =
        (com.google.cloud.datalabeling.v1beta1.VideoPayload) obj;

    if (!getMimeType().equals(other.getMimeType())) return false;
    if (!getVideoUri().equals(other.getVideoUri())) return false;
    if (!getVideoThumbnailsList().equals(other.getVideoThumbnailsList())) return false;
    if (java.lang.Float.floatToIntBits(getFrameRate())
        != java.lang.Float.floatToIntBits(other.getFrameRate())) return false;
    if (!getSignedUri().equals(other.getSignedUri())) 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) + MIME_TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getMimeType().hashCode();
    hash = (37 * hash) + VIDEO_URI_FIELD_NUMBER;
    hash = (53 * hash) + getVideoUri().hashCode();
    if (getVideoThumbnailsCount() > 0) {
      hash = (37 * hash) + VIDEO_THUMBNAILS_FIELD_NUMBER;
      hash = (53 * hash) + getVideoThumbnailsList().hashCode();
    }
    hash = (37 * hash) + FRAME_RATE_FIELD_NUMBER;
    hash = (53 * hash) + java.lang.Float.floatToIntBits(getFrameRate());
    hash = (37 * hash) + SIGNED_URI_FIELD_NUMBER;
    hash = (53 * hash) + getSignedUri().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.datalabeling.v1beta1.VideoPayload 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.datalabeling.v1beta1.VideoPayload parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.datalabeling.v1beta1.VideoPayload 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.datalabeling.v1beta1.VideoPayload parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.datalabeling.v1beta1.VideoPayload 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.datalabeling.v1beta1.VideoPayload parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.datalabeling.v1beta1.VideoPayload 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.datalabeling.v1beta1.VideoPayload 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>
   * Container of information of a video.
   * </pre>
   *
   * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoPayload}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoPayload)
      com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.datalabeling.v1beta1.DataPayloads
          .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.datalabeling.v1beta1.DataPayloads
          .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.datalabeling.v1beta1.VideoPayload.class,
              com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class);
    }

    // Construct using com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      mimeType_ = "";
      videoUri_ = "";
      if (videoThumbnailsBuilder_ == null) {
        videoThumbnails_ = java.util.Collections.emptyList();
      } else {
        videoThumbnails_ = null;
        videoThumbnailsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      frameRate_ = 0F;
      signedUri_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.datalabeling.v1beta1.DataPayloads
          .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.datalabeling.v1beta1.VideoPayload getDefaultInstanceForType() {
      return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.datalabeling.v1beta1.VideoPayload build() {
      com.google.cloud.datalabeling.v1beta1.VideoPayload result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.datalabeling.v1beta1.VideoPayload buildPartial() {
      com.google.cloud.datalabeling.v1beta1.VideoPayload result =
          new com.google.cloud.datalabeling.v1beta1.VideoPayload(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.cloud.datalabeling.v1beta1.VideoPayload result) {
      if (videoThumbnailsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          videoThumbnails_ = java.util.Collections.unmodifiableList(videoThumbnails_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.videoThumbnails_ = videoThumbnails_;
      } else {
        result.videoThumbnails_ = videoThumbnailsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.datalabeling.v1beta1.VideoPayload result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.mimeType_ = mimeType_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.videoUri_ = videoUri_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.frameRate_ = frameRate_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.signedUri_ = signedUri_;
      }
    }

    @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.datalabeling.v1beta1.VideoPayload) {
        return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoPayload other) {
      if (other == com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance())
        return this;
      if (!other.getMimeType().isEmpty()) {
        mimeType_ = other.mimeType_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getVideoUri().isEmpty()) {
        videoUri_ = other.videoUri_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (videoThumbnailsBuilder_ == null) {
        if (!other.videoThumbnails_.isEmpty()) {
          if (videoThumbnails_.isEmpty()) {
            videoThumbnails_ = other.videoThumbnails_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureVideoThumbnailsIsMutable();
            videoThumbnails_.addAll(other.videoThumbnails_);
          }
          onChanged();
        }
      } else {
        if (!other.videoThumbnails_.isEmpty()) {
          if (videoThumbnailsBuilder_.isEmpty()) {
            videoThumbnailsBuilder_.dispose();
            videoThumbnailsBuilder_ = null;
            videoThumbnails_ = other.videoThumbnails_;
            bitField0_ = (bitField0_ & ~0x00000004);
            videoThumbnailsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getVideoThumbnailsFieldBuilder()
                    : null;
          } else {
            videoThumbnailsBuilder_.addAllMessages(other.videoThumbnails_);
          }
        }
      }
      if (other.getFrameRate() != 0F) {
        setFrameRate(other.getFrameRate());
      }
      if (!other.getSignedUri().isEmpty()) {
        signedUri_ = other.signedUri_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                mimeType_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                videoUri_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                com.google.cloud.datalabeling.v1beta1.VideoThumbnail m =
                    input.readMessage(
                        com.google.cloud.datalabeling.v1beta1.VideoThumbnail.parser(),
                        extensionRegistry);
                if (videoThumbnailsBuilder_ == null) {
                  ensureVideoThumbnailsIsMutable();
                  videoThumbnails_.add(m);
                } else {
                  videoThumbnailsBuilder_.addMessage(m);
                }
                break;
              } // case 26
            case 37:
              {
                frameRate_ = input.readFloat();
                bitField0_ |= 0x00000008;
                break;
              } // case 37
            case 42:
              {
                signedUri_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object mimeType_ = "";
    /**
     *
     *
     * <pre>
     * Video format.
     * </pre>
     *
     * <code>string mime_type = 1;</code>
     *
     * @return The mimeType.
     */
    public java.lang.String getMimeType() {
      java.lang.Object ref = mimeType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mimeType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Video format.
     * </pre>
     *
     * <code>string mime_type = 1;</code>
     *
     * @return The bytes for mimeType.
     */
    public com.google.protobuf.ByteString getMimeTypeBytes() {
      java.lang.Object ref = mimeType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        mimeType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Video format.
     * </pre>
     *
     * <code>string mime_type = 1;</code>
     *
     * @param value The mimeType to set.
     * @return This builder for chaining.
     */
    public Builder setMimeType(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      mimeType_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Video format.
     * </pre>
     *
     * <code>string mime_type = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearMimeType() {
      mimeType_ = getDefaultInstance().getMimeType();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Video format.
     * </pre>
     *
     * <code>string mime_type = 1;</code>
     *
     * @param value The bytes for mimeType to set.
     * @return This builder for chaining.
     */
    public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      mimeType_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object videoUri_ = "";
    /**
     *
     *
     * <pre>
     * Video uri from the user bucket.
     * </pre>
     *
     * <code>string video_uri = 2;</code>
     *
     * @return The videoUri.
     */
    public java.lang.String getVideoUri() {
      java.lang.Object ref = videoUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        videoUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Video uri from the user bucket.
     * </pre>
     *
     * <code>string video_uri = 2;</code>
     *
     * @return The bytes for videoUri.
     */
    public com.google.protobuf.ByteString getVideoUriBytes() {
      java.lang.Object ref = videoUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        videoUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Video uri from the user bucket.
     * </pre>
     *
     * <code>string video_uri = 2;</code>
     *
     * @param value The videoUri to set.
     * @return This builder for chaining.
     */
    public Builder setVideoUri(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      videoUri_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Video uri from the user bucket.
     * </pre>
     *
     * <code>string video_uri = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearVideoUri() {
      videoUri_ = getDefaultInstance().getVideoUri();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Video uri from the user bucket.
     * </pre>
     *
     * <code>string video_uri = 2;</code>
     *
     * @param value The bytes for videoUri to set.
     * @return This builder for chaining.
     */
    public Builder setVideoUriBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      videoUri_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.datalabeling.v1beta1.VideoThumbnail> videoThumbnails_ =
        java.util.Collections.emptyList();

    private void ensureVideoThumbnailsIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        videoThumbnails_ =
            new java.util.ArrayList<com.google.cloud.datalabeling.v1beta1.VideoThumbnail>(
                videoThumbnails_);
        bitField0_ |= 0x00000004;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.datalabeling.v1beta1.VideoThumbnail,
            com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder,
            com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>
        videoThumbnailsBuilder_;

    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public java.util.List<com.google.cloud.datalabeling.v1beta1.VideoThumbnail>
        getVideoThumbnailsList() {
      if (videoThumbnailsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(videoThumbnails_);
      } else {
        return videoThumbnailsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public int getVideoThumbnailsCount() {
      if (videoThumbnailsBuilder_ == null) {
        return videoThumbnails_.size();
      } else {
        return videoThumbnailsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public com.google.cloud.datalabeling.v1beta1.VideoThumbnail getVideoThumbnails(int index) {
      if (videoThumbnailsBuilder_ == null) {
        return videoThumbnails_.get(index);
      } else {
        return videoThumbnailsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder setVideoThumbnails(
        int index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail value) {
      if (videoThumbnailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureVideoThumbnailsIsMutable();
        videoThumbnails_.set(index, value);
        onChanged();
      } else {
        videoThumbnailsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder setVideoThumbnails(
        int index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder builderForValue) {
      if (videoThumbnailsBuilder_ == null) {
        ensureVideoThumbnailsIsMutable();
        videoThumbnails_.set(index, builderForValue.build());
        onChanged();
      } else {
        videoThumbnailsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder addVideoThumbnails(com.google.cloud.datalabeling.v1beta1.VideoThumbnail value) {
      if (videoThumbnailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureVideoThumbnailsIsMutable();
        videoThumbnails_.add(value);
        onChanged();
      } else {
        videoThumbnailsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder addVideoThumbnails(
        int index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail value) {
      if (videoThumbnailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureVideoThumbnailsIsMutable();
        videoThumbnails_.add(index, value);
        onChanged();
      } else {
        videoThumbnailsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder addVideoThumbnails(
        com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder builderForValue) {
      if (videoThumbnailsBuilder_ == null) {
        ensureVideoThumbnailsIsMutable();
        videoThumbnails_.add(builderForValue.build());
        onChanged();
      } else {
        videoThumbnailsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder addVideoThumbnails(
        int index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder builderForValue) {
      if (videoThumbnailsBuilder_ == null) {
        ensureVideoThumbnailsIsMutable();
        videoThumbnails_.add(index, builderForValue.build());
        onChanged();
      } else {
        videoThumbnailsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder addAllVideoThumbnails(
        java.lang.Iterable<? extends com.google.cloud.datalabeling.v1beta1.VideoThumbnail> values) {
      if (videoThumbnailsBuilder_ == null) {
        ensureVideoThumbnailsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, videoThumbnails_);
        onChanged();
      } else {
        videoThumbnailsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder clearVideoThumbnails() {
      if (videoThumbnailsBuilder_ == null) {
        videoThumbnails_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        videoThumbnailsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public Builder removeVideoThumbnails(int index) {
      if (videoThumbnailsBuilder_ == null) {
        ensureVideoThumbnailsIsMutable();
        videoThumbnails_.remove(index);
        onChanged();
      } else {
        videoThumbnailsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder getVideoThumbnailsBuilder(
        int index) {
      return getVideoThumbnailsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder
        getVideoThumbnailsOrBuilder(int index) {
      if (videoThumbnailsBuilder_ == null) {
        return videoThumbnails_.get(index);
      } else {
        return videoThumbnailsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public java.util.List<? extends com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>
        getVideoThumbnailsOrBuilderList() {
      if (videoThumbnailsBuilder_ != null) {
        return videoThumbnailsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(videoThumbnails_);
      }
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder
        addVideoThumbnailsBuilder() {
      return getVideoThumbnailsFieldBuilder()
          .addBuilder(com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder addVideoThumbnailsBuilder(
        int index) {
      return getVideoThumbnailsFieldBuilder()
          .addBuilder(
              index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * The list of video thumbnails.
     * </pre>
     *
     * <code>repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3;</code>
     */
    public java.util.List<com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder>
        getVideoThumbnailsBuilderList() {
      return getVideoThumbnailsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.datalabeling.v1beta1.VideoThumbnail,
            com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder,
            com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>
        getVideoThumbnailsFieldBuilder() {
      if (videoThumbnailsBuilder_ == null) {
        videoThumbnailsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.datalabeling.v1beta1.VideoThumbnail,
                com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder,
                com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>(
                videoThumbnails_,
                ((bitField0_ & 0x00000004) != 0),
                getParentForChildren(),
                isClean());
        videoThumbnails_ = null;
      }
      return videoThumbnailsBuilder_;
    }

    private float frameRate_;
    /**
     *
     *
     * <pre>
     * FPS of the video.
     * </pre>
     *
     * <code>float frame_rate = 4;</code>
     *
     * @return The frameRate.
     */
    @java.lang.Override
    public float getFrameRate() {
      return frameRate_;
    }
    /**
     *
     *
     * <pre>
     * FPS of the video.
     * </pre>
     *
     * <code>float frame_rate = 4;</code>
     *
     * @param value The frameRate to set.
     * @return This builder for chaining.
     */
    public Builder setFrameRate(float value) {

      frameRate_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * FPS of the video.
     * </pre>
     *
     * <code>float frame_rate = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearFrameRate() {
      bitField0_ = (bitField0_ & ~0x00000008);
      frameRate_ = 0F;
      onChanged();
      return this;
    }

    private java.lang.Object signedUri_ = "";
    /**
     *
     *
     * <pre>
     * Signed uri of the video file in the service bucket.
     * </pre>
     *
     * <code>string signed_uri = 5;</code>
     *
     * @return The signedUri.
     */
    public java.lang.String getSignedUri() {
      java.lang.Object ref = signedUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        signedUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Signed uri of the video file in the service bucket.
     * </pre>
     *
     * <code>string signed_uri = 5;</code>
     *
     * @return The bytes for signedUri.
     */
    public com.google.protobuf.ByteString getSignedUriBytes() {
      java.lang.Object ref = signedUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        signedUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Signed uri of the video file in the service bucket.
     * </pre>
     *
     * <code>string signed_uri = 5;</code>
     *
     * @param value The signedUri to set.
     * @return This builder for chaining.
     */
    public Builder setSignedUri(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      signedUri_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Signed uri of the video file in the service bucket.
     * </pre>
     *
     * <code>string signed_uri = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearSignedUri() {
      signedUri_ = getDefaultInstance().getSignedUri();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Signed uri of the video file in the service bucket.
     * </pre>
     *
     * <code>string signed_uri = 5;</code>
     *
     * @param value The bytes for signedUri to set.
     * @return This builder for chaining.
     */
    public Builder setSignedUriBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      signedUri_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

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

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

    // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoPayload)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoPayload)
  private static final com.google.cloud.datalabeling.v1beta1.VideoPayload DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoPayload();
  }

  public static com.google.cloud.datalabeling.v1beta1.VideoPayload getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public com.google.cloud.datalabeling.v1beta1.VideoPayload getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
