All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.volcengine.service.vod.model.business.FlushUploadResult Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: volcengine/vod/business/vod_upload.proto

package com.volcengine.service.vod.model.business;

/**
 * Protobuf type {@code Volcengine.Vod.Models.Business.FlushUploadResult}
 */
public final class FlushUploadResult extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.FlushUploadResult)
    FlushUploadResultOrBuilder {
private static final long serialVersionUID = 0L;
  // Use FlushUploadResult.newBuilder() to construct.
  private FlushUploadResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private FlushUploadResult() {
    vid_ = "";
    mid_ = "";
    posterUri_ = "";
    callbackArgs_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private FlushUploadResult(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {

            flushUpload_ = input.readBool();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            vid_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();

            mid_ = s;
            break;
          }
          case 34: {
            com.volcengine.service.vod.model.business.VodSourceInfo.Builder subBuilder = null;
            if (sourceInfo_ != null) {
              subBuilder = sourceInfo_.toBuilder();
            }
            sourceInfo_ = input.readMessage(com.volcengine.service.vod.model.business.VodSourceInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(sourceInfo_);
              sourceInfo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            java.lang.String s = input.readStringRequireUtf8();

            posterUri_ = s;
            break;
          }
          case 50: {
            java.lang.String s = input.readStringRequireUtf8();

            callbackArgs_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.volcengine.service.vod.model.business.VodUpload.internal_static_Volcengine_Vod_Models_Business_FlushUploadResult_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.volcengine.service.vod.model.business.VodUpload.internal_static_Volcengine_Vod_Models_Business_FlushUploadResult_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.volcengine.service.vod.model.business.FlushUploadResult.class, com.volcengine.service.vod.model.business.FlushUploadResult.Builder.class);
  }

  public static final int FLUSHUPLOAD_FIELD_NUMBER = 1;
  private boolean flushUpload_;
  /**
   * bool FlushUpload = 1;
   * @return The flushUpload.
   */
  @java.lang.Override
  public boolean getFlushUpload() {
    return flushUpload_;
  }

  public static final int VID_FIELD_NUMBER = 2;
  private volatile java.lang.Object vid_;
  /**
   * string Vid = 2;
   * @return The vid.
   */
  @java.lang.Override
  public java.lang.String getVid() {
    java.lang.Object ref = vid_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      vid_ = s;
      return s;
    }
  }
  /**
   * string Vid = 2;
   * @return The bytes for vid.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getVidBytes() {
    java.lang.Object ref = vid_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      vid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int MID_FIELD_NUMBER = 3;
  private volatile java.lang.Object mid_;
  /**
   * string Mid = 3;
   * @return The mid.
   */
  @java.lang.Override
  public java.lang.String getMid() {
    java.lang.Object ref = mid_;
    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();
      mid_ = s;
      return s;
    }
  }
  /**
   * string Mid = 3;
   * @return The bytes for mid.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMidBytes() {
    java.lang.Object ref = mid_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      mid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SOURCEINFO_FIELD_NUMBER = 4;
  private com.volcengine.service.vod.model.business.VodSourceInfo sourceInfo_;
  /**
   * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
   * @return Whether the sourceInfo field is set.
   */
  @java.lang.Override
  public boolean hasSourceInfo() {
    return sourceInfo_ != null;
  }
  /**
   * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
   * @return The sourceInfo.
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.VodSourceInfo getSourceInfo() {
    return sourceInfo_ == null ? com.volcengine.service.vod.model.business.VodSourceInfo.getDefaultInstance() : sourceInfo_;
  }
  /**
   * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.VodSourceInfoOrBuilder getSourceInfoOrBuilder() {
    return getSourceInfo();
  }

  public static final int POSTERURI_FIELD_NUMBER = 5;
  private volatile java.lang.Object posterUri_;
  /**
   * string PosterUri = 5;
   * @return The posterUri.
   */
  @java.lang.Override
  public java.lang.String getPosterUri() {
    java.lang.Object ref = posterUri_;
    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();
      posterUri_ = s;
      return s;
    }
  }
  /**
   * string PosterUri = 5;
   * @return The bytes for posterUri.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPosterUriBytes() {
    java.lang.Object ref = posterUri_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      posterUri_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CALLBACKARGS_FIELD_NUMBER = 6;
  private volatile java.lang.Object callbackArgs_;
  /**
   * string CallbackArgs = 6;
   * @return The callbackArgs.
   */
  @java.lang.Override
  public java.lang.String getCallbackArgs() {
    java.lang.Object ref = callbackArgs_;
    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();
      callbackArgs_ = s;
      return s;
    }
  }
  /**
   * string CallbackArgs = 6;
   * @return The bytes for callbackArgs.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCallbackArgsBytes() {
    java.lang.Object ref = callbackArgs_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      callbackArgs_ = 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 (flushUpload_ != false) {
      output.writeBool(1, flushUpload_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vid_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mid_);
    }
    if (sourceInfo_ != null) {
      output.writeMessage(4, getSourceInfo());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(posterUri_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, posterUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callbackArgs_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, callbackArgs_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (flushUpload_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(1, flushUpload_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vid_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mid_);
    }
    if (sourceInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getSourceInfo());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(posterUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, posterUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callbackArgs_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, callbackArgs_);
    }
    size += unknownFields.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.volcengine.service.vod.model.business.FlushUploadResult)) {
      return super.equals(obj);
    }
    com.volcengine.service.vod.model.business.FlushUploadResult other = (com.volcengine.service.vod.model.business.FlushUploadResult) obj;

    if (getFlushUpload()
        != other.getFlushUpload()) return false;
    if (!getVid()
        .equals(other.getVid())) return false;
    if (!getMid()
        .equals(other.getMid())) return false;
    if (hasSourceInfo() != other.hasSourceInfo()) return false;
    if (hasSourceInfo()) {
      if (!getSourceInfo()
          .equals(other.getSourceInfo())) return false;
    }
    if (!getPosterUri()
        .equals(other.getPosterUri())) return false;
    if (!getCallbackArgs()
        .equals(other.getCallbackArgs())) return false;
    if (!unknownFields.equals(other.unknownFields)) 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) + FLUSHUPLOAD_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getFlushUpload());
    hash = (37 * hash) + VID_FIELD_NUMBER;
    hash = (53 * hash) + getVid().hashCode();
    hash = (37 * hash) + MID_FIELD_NUMBER;
    hash = (53 * hash) + getMid().hashCode();
    if (hasSourceInfo()) {
      hash = (37 * hash) + SOURCEINFO_FIELD_NUMBER;
      hash = (53 * hash) + getSourceInfo().hashCode();
    }
    hash = (37 * hash) + POSTERURI_FIELD_NUMBER;
    hash = (53 * hash) + getPosterUri().hashCode();
    hash = (37 * hash) + CALLBACKARGS_FIELD_NUMBER;
    hash = (53 * hash) + getCallbackArgs().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.volcengine.service.vod.model.business.FlushUploadResult parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult 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.volcengine.service.vod.model.business.FlushUploadResult parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult 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.volcengine.service.vod.model.business.FlushUploadResult parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.volcengine.service.vod.model.business.FlushUploadResult 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.volcengine.service.vod.model.business.FlushUploadResult 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;
  }
  /**
   * Protobuf type {@code Volcengine.Vod.Models.Business.FlushUploadResult}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.FlushUploadResult)
      com.volcengine.service.vod.model.business.FlushUploadResultOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.volcengine.service.vod.model.business.VodUpload.internal_static_Volcengine_Vod_Models_Business_FlushUploadResult_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.volcengine.service.vod.model.business.VodUpload.internal_static_Volcengine_Vod_Models_Business_FlushUploadResult_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.volcengine.service.vod.model.business.FlushUploadResult.class, com.volcengine.service.vod.model.business.FlushUploadResult.Builder.class);
    }

    // Construct using com.volcengine.service.vod.model.business.FlushUploadResult.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      flushUpload_ = false;

      vid_ = "";

      mid_ = "";

      if (sourceInfoBuilder_ == null) {
        sourceInfo_ = null;
      } else {
        sourceInfo_ = null;
        sourceInfoBuilder_ = null;
      }
      posterUri_ = "";

      callbackArgs_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.volcengine.service.vod.model.business.VodUpload.internal_static_Volcengine_Vod_Models_Business_FlushUploadResult_descriptor;
    }

    @java.lang.Override
    public com.volcengine.service.vod.model.business.FlushUploadResult getDefaultInstanceForType() {
      return com.volcengine.service.vod.model.business.FlushUploadResult.getDefaultInstance();
    }

    @java.lang.Override
    public com.volcengine.service.vod.model.business.FlushUploadResult build() {
      com.volcengine.service.vod.model.business.FlushUploadResult result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.volcengine.service.vod.model.business.FlushUploadResult buildPartial() {
      com.volcengine.service.vod.model.business.FlushUploadResult result = new com.volcengine.service.vod.model.business.FlushUploadResult(this);
      result.flushUpload_ = flushUpload_;
      result.vid_ = vid_;
      result.mid_ = mid_;
      if (sourceInfoBuilder_ == null) {
        result.sourceInfo_ = sourceInfo_;
      } else {
        result.sourceInfo_ = sourceInfoBuilder_.build();
      }
      result.posterUri_ = posterUri_;
      result.callbackArgs_ = callbackArgs_;
      onBuilt();
      return result;
    }

    @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.volcengine.service.vod.model.business.FlushUploadResult) {
        return mergeFrom((com.volcengine.service.vod.model.business.FlushUploadResult)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.volcengine.service.vod.model.business.FlushUploadResult other) {
      if (other == com.volcengine.service.vod.model.business.FlushUploadResult.getDefaultInstance()) return this;
      if (other.getFlushUpload() != false) {
        setFlushUpload(other.getFlushUpload());
      }
      if (!other.getVid().isEmpty()) {
        vid_ = other.vid_;
        onChanged();
      }
      if (!other.getMid().isEmpty()) {
        mid_ = other.mid_;
        onChanged();
      }
      if (other.hasSourceInfo()) {
        mergeSourceInfo(other.getSourceInfo());
      }
      if (!other.getPosterUri().isEmpty()) {
        posterUri_ = other.posterUri_;
        onChanged();
      }
      if (!other.getCallbackArgs().isEmpty()) {
        callbackArgs_ = other.callbackArgs_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      com.volcengine.service.vod.model.business.FlushUploadResult parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.volcengine.service.vod.model.business.FlushUploadResult) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private boolean flushUpload_ ;
    /**
     * bool FlushUpload = 1;
     * @return The flushUpload.
     */
    @java.lang.Override
    public boolean getFlushUpload() {
      return flushUpload_;
    }
    /**
     * bool FlushUpload = 1;
     * @param value The flushUpload to set.
     * @return This builder for chaining.
     */
    public Builder setFlushUpload(boolean value) {
      
      flushUpload_ = value;
      onChanged();
      return this;
    }
    /**
     * bool FlushUpload = 1;
     * @return This builder for chaining.
     */
    public Builder clearFlushUpload() {
      
      flushUpload_ = false;
      onChanged();
      return this;
    }

    private java.lang.Object vid_ = "";
    /**
     * string Vid = 2;
     * @return The vid.
     */
    public java.lang.String getVid() {
      java.lang.Object ref = vid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        vid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Vid = 2;
     * @return The bytes for vid.
     */
    public com.google.protobuf.ByteString
        getVidBytes() {
      java.lang.Object ref = vid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        vid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Vid = 2;
     * @param value The vid to set.
     * @return This builder for chaining.
     */
    public Builder setVid(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      vid_ = value;
      onChanged();
      return this;
    }
    /**
     * string Vid = 2;
     * @return This builder for chaining.
     */
    public Builder clearVid() {
      
      vid_ = getDefaultInstance().getVid();
      onChanged();
      return this;
    }
    /**
     * string Vid = 2;
     * @param value The bytes for vid to set.
     * @return This builder for chaining.
     */
    public Builder setVidBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      vid_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object mid_ = "";
    /**
     * string Mid = 3;
     * @return The mid.
     */
    public java.lang.String getMid() {
      java.lang.Object ref = mid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        mid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Mid = 3;
     * @return The bytes for mid.
     */
    public com.google.protobuf.ByteString
        getMidBytes() {
      java.lang.Object ref = mid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        mid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Mid = 3;
     * @param value The mid to set.
     * @return This builder for chaining.
     */
    public Builder setMid(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      mid_ = value;
      onChanged();
      return this;
    }
    /**
     * string Mid = 3;
     * @return This builder for chaining.
     */
    public Builder clearMid() {
      
      mid_ = getDefaultInstance().getMid();
      onChanged();
      return this;
    }
    /**
     * string Mid = 3;
     * @param value The bytes for mid to set.
     * @return This builder for chaining.
     */
    public Builder setMidBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      mid_ = value;
      onChanged();
      return this;
    }

    private com.volcengine.service.vod.model.business.VodSourceInfo sourceInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.volcengine.service.vod.model.business.VodSourceInfo, com.volcengine.service.vod.model.business.VodSourceInfo.Builder, com.volcengine.service.vod.model.business.VodSourceInfoOrBuilder> sourceInfoBuilder_;
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     * @return Whether the sourceInfo field is set.
     */
    public boolean hasSourceInfo() {
      return sourceInfoBuilder_ != null || sourceInfo_ != null;
    }
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     * @return The sourceInfo.
     */
    public com.volcengine.service.vod.model.business.VodSourceInfo getSourceInfo() {
      if (sourceInfoBuilder_ == null) {
        return sourceInfo_ == null ? com.volcengine.service.vod.model.business.VodSourceInfo.getDefaultInstance() : sourceInfo_;
      } else {
        return sourceInfoBuilder_.getMessage();
      }
    }
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     */
    public Builder setSourceInfo(com.volcengine.service.vod.model.business.VodSourceInfo value) {
      if (sourceInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        sourceInfo_ = value;
        onChanged();
      } else {
        sourceInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     */
    public Builder setSourceInfo(
        com.volcengine.service.vod.model.business.VodSourceInfo.Builder builderForValue) {
      if (sourceInfoBuilder_ == null) {
        sourceInfo_ = builderForValue.build();
        onChanged();
      } else {
        sourceInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     */
    public Builder mergeSourceInfo(com.volcengine.service.vod.model.business.VodSourceInfo value) {
      if (sourceInfoBuilder_ == null) {
        if (sourceInfo_ != null) {
          sourceInfo_ =
            com.volcengine.service.vod.model.business.VodSourceInfo.newBuilder(sourceInfo_).mergeFrom(value).buildPartial();
        } else {
          sourceInfo_ = value;
        }
        onChanged();
      } else {
        sourceInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     */
    public Builder clearSourceInfo() {
      if (sourceInfoBuilder_ == null) {
        sourceInfo_ = null;
        onChanged();
      } else {
        sourceInfo_ = null;
        sourceInfoBuilder_ = null;
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     */
    public com.volcengine.service.vod.model.business.VodSourceInfo.Builder getSourceInfoBuilder() {
      
      onChanged();
      return getSourceInfoFieldBuilder().getBuilder();
    }
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     */
    public com.volcengine.service.vod.model.business.VodSourceInfoOrBuilder getSourceInfoOrBuilder() {
      if (sourceInfoBuilder_ != null) {
        return sourceInfoBuilder_.getMessageOrBuilder();
      } else {
        return sourceInfo_ == null ?
            com.volcengine.service.vod.model.business.VodSourceInfo.getDefaultInstance() : sourceInfo_;
      }
    }
    /**
     * .Volcengine.Vod.Models.Business.VodSourceInfo SourceInfo = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.volcengine.service.vod.model.business.VodSourceInfo, com.volcengine.service.vod.model.business.VodSourceInfo.Builder, com.volcengine.service.vod.model.business.VodSourceInfoOrBuilder> 
        getSourceInfoFieldBuilder() {
      if (sourceInfoBuilder_ == null) {
        sourceInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.volcengine.service.vod.model.business.VodSourceInfo, com.volcengine.service.vod.model.business.VodSourceInfo.Builder, com.volcengine.service.vod.model.business.VodSourceInfoOrBuilder>(
                getSourceInfo(),
                getParentForChildren(),
                isClean());
        sourceInfo_ = null;
      }
      return sourceInfoBuilder_;
    }

    private java.lang.Object posterUri_ = "";
    /**
     * string PosterUri = 5;
     * @return The posterUri.
     */
    public java.lang.String getPosterUri() {
      java.lang.Object ref = posterUri_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        posterUri_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string PosterUri = 5;
     * @return The bytes for posterUri.
     */
    public com.google.protobuf.ByteString
        getPosterUriBytes() {
      java.lang.Object ref = posterUri_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        posterUri_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string PosterUri = 5;
     * @param value The posterUri to set.
     * @return This builder for chaining.
     */
    public Builder setPosterUri(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      posterUri_ = value;
      onChanged();
      return this;
    }
    /**
     * string PosterUri = 5;
     * @return This builder for chaining.
     */
    public Builder clearPosterUri() {
      
      posterUri_ = getDefaultInstance().getPosterUri();
      onChanged();
      return this;
    }
    /**
     * string PosterUri = 5;
     * @param value The bytes for posterUri to set.
     * @return This builder for chaining.
     */
    public Builder setPosterUriBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      posterUri_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object callbackArgs_ = "";
    /**
     * string CallbackArgs = 6;
     * @return The callbackArgs.
     */
    public java.lang.String getCallbackArgs() {
      java.lang.Object ref = callbackArgs_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        callbackArgs_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string CallbackArgs = 6;
     * @return The bytes for callbackArgs.
     */
    public com.google.protobuf.ByteString
        getCallbackArgsBytes() {
      java.lang.Object ref = callbackArgs_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        callbackArgs_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string CallbackArgs = 6;
     * @param value The callbackArgs to set.
     * @return This builder for chaining.
     */
    public Builder setCallbackArgs(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      callbackArgs_ = value;
      onChanged();
      return this;
    }
    /**
     * string CallbackArgs = 6;
     * @return This builder for chaining.
     */
    public Builder clearCallbackArgs() {
      
      callbackArgs_ = getDefaultInstance().getCallbackArgs();
      onChanged();
      return this;
    }
    /**
     * string CallbackArgs = 6;
     * @param value The bytes for callbackArgs to set.
     * @return This builder for chaining.
     */
    public Builder setCallbackArgsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      callbackArgs_ = value;
      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:Volcengine.Vod.Models.Business.FlushUploadResult)
  }

  // @@protoc_insertion_point(class_scope:Volcengine.Vod.Models.Business.FlushUploadResult)
  private static final com.volcengine.service.vod.model.business.FlushUploadResult DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.volcengine.service.vod.model.business.FlushUploadResult();
  }

  public static com.volcengine.service.vod.model.business.FlushUploadResult getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public FlushUploadResult parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new FlushUploadResult(input, extensionRegistry);
    }
  };

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

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

  @java.lang.Override
  public com.volcengine.service.vod.model.business.FlushUploadResult getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy