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

com.volcengine.service.vod.model.business.TextLogoDefinition 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_workflow.proto

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

/**
 * Protobuf type {@code Volcengine.Vod.Models.Business.TextLogoDefinition}
 */
public final class TextLogoDefinition extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.TextLogoDefinition)
    TextLogoDefinitionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TextLogoDefinition.newBuilder() to construct.
  private TextLogoDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TextLogoDefinition() {
    content_ = "";
    fontType_ = "";
    fontColor_ = "";
    locate_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TextLogoDefinition(
      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 10: {
            java.lang.String s = input.readStringRequireUtf8();

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

            fontType_ = s;
            break;
          }
          case 24: {

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

            fontColor_ = s;
            break;
          }
          case 40: {

            startTime_ = input.readInt32();
            break;
          }
          case 48: {

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

            locate_ = s;
            break;
          }
          case 64: {

            posX_ = input.readInt32();
            break;
          }
          case 72: {

            posY_ = input.readInt32();
            break;
          }
          case 80: {

            sizeX_ = input.readInt32();
            break;
          }
          case 88: {

            sizeY_ = input.readInt32();
            break;
          }
          case 97: {

            posRatioX_ = input.readDouble();
            break;
          }
          case 105: {

            posRatioY_ = input.readDouble();
            break;
          }
          case 113: {

            sizeRatioX_ = input.readDouble();
            break;
          }
          case 121: {

            sizeRatioY_ = input.readDouble();
            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.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_TextLogoDefinition_descriptor;
  }

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

  public static final int CONTENT_FIELD_NUMBER = 1;
  private volatile java.lang.Object content_;
  /**
   * string Content = 1;
   * @return The content.
   */
  @java.lang.Override
  public java.lang.String getContent() {
    java.lang.Object ref = content_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      content_ = s;
      return s;
    }
  }
  /**
   * string Content = 1;
   * @return The bytes for content.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getContentBytes() {
    java.lang.Object ref = content_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      content_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FONTTYPE_FIELD_NUMBER = 2;
  private volatile java.lang.Object fontType_;
  /**
   * string FontType = 2;
   * @return The fontType.
   */
  @java.lang.Override
  public java.lang.String getFontType() {
    java.lang.Object ref = fontType_;
    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();
      fontType_ = s;
      return s;
    }
  }
  /**
   * string FontType = 2;
   * @return The bytes for fontType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFontTypeBytes() {
    java.lang.Object ref = fontType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fontType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FONTSIZE_FIELD_NUMBER = 3;
  private int fontSize_;
  /**
   * int32 FontSize = 3;
   * @return The fontSize.
   */
  @java.lang.Override
  public int getFontSize() {
    return fontSize_;
  }

  public static final int FONTCOLOR_FIELD_NUMBER = 4;
  private volatile java.lang.Object fontColor_;
  /**
   * string FontColor = 4;
   * @return The fontColor.
   */
  @java.lang.Override
  public java.lang.String getFontColor() {
    java.lang.Object ref = fontColor_;
    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();
      fontColor_ = s;
      return s;
    }
  }
  /**
   * string FontColor = 4;
   * @return The bytes for fontColor.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFontColorBytes() {
    java.lang.Object ref = fontColor_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fontColor_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STARTTIME_FIELD_NUMBER = 5;
  private int startTime_;
  /**
   * int32 StartTime = 5;
   * @return The startTime.
   */
  @java.lang.Override
  public int getStartTime() {
    return startTime_;
  }

  public static final int ENDTIME_FIELD_NUMBER = 6;
  private int endTime_;
  /**
   * int32 EndTime = 6;
   * @return The endTime.
   */
  @java.lang.Override
  public int getEndTime() {
    return endTime_;
  }

  public static final int LOCATE_FIELD_NUMBER = 7;
  private volatile java.lang.Object locate_;
  /**
   * string Locate = 7;
   * @return The locate.
   */
  @java.lang.Override
  public java.lang.String getLocate() {
    java.lang.Object ref = locate_;
    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();
      locate_ = s;
      return s;
    }
  }
  /**
   * string Locate = 7;
   * @return The bytes for locate.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getLocateBytes() {
    java.lang.Object ref = locate_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      locate_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int POSX_FIELD_NUMBER = 8;
  private int posX_;
  /**
   * int32 PosX = 8;
   * @return The posX.
   */
  @java.lang.Override
  public int getPosX() {
    return posX_;
  }

  public static final int POSY_FIELD_NUMBER = 9;
  private int posY_;
  /**
   * int32 PosY = 9;
   * @return The posY.
   */
  @java.lang.Override
  public int getPosY() {
    return posY_;
  }

  public static final int SIZEX_FIELD_NUMBER = 10;
  private int sizeX_;
  /**
   * int32 SizeX = 10;
   * @return The sizeX.
   */
  @java.lang.Override
  public int getSizeX() {
    return sizeX_;
  }

  public static final int SIZEY_FIELD_NUMBER = 11;
  private int sizeY_;
  /**
   * int32 SizeY = 11;
   * @return The sizeY.
   */
  @java.lang.Override
  public int getSizeY() {
    return sizeY_;
  }

  public static final int POSRATIOX_FIELD_NUMBER = 12;
  private double posRatioX_;
  /**
   * double PosRatioX = 12;
   * @return The posRatioX.
   */
  @java.lang.Override
  public double getPosRatioX() {
    return posRatioX_;
  }

  public static final int POSRATIOY_FIELD_NUMBER = 13;
  private double posRatioY_;
  /**
   * double PosRatioY = 13;
   * @return The posRatioY.
   */
  @java.lang.Override
  public double getPosRatioY() {
    return posRatioY_;
  }

  public static final int SIZERATIOX_FIELD_NUMBER = 14;
  private double sizeRatioX_;
  /**
   * double SizeRatioX = 14;
   * @return The sizeRatioX.
   */
  @java.lang.Override
  public double getSizeRatioX() {
    return sizeRatioX_;
  }

  public static final int SIZERATIOY_FIELD_NUMBER = 15;
  private double sizeRatioY_;
  /**
   * double SizeRatioY = 15;
   * @return The sizeRatioY.
   */
  @java.lang.Override
  public double getSizeRatioY() {
    return sizeRatioY_;
  }

  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(content_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fontType_);
    }
    if (fontSize_ != 0) {
      output.writeInt32(3, fontSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontColor_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fontColor_);
    }
    if (startTime_ != 0) {
      output.writeInt32(5, startTime_);
    }
    if (endTime_ != 0) {
      output.writeInt32(6, endTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locate_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, locate_);
    }
    if (posX_ != 0) {
      output.writeInt32(8, posX_);
    }
    if (posY_ != 0) {
      output.writeInt32(9, posY_);
    }
    if (sizeX_ != 0) {
      output.writeInt32(10, sizeX_);
    }
    if (sizeY_ != 0) {
      output.writeInt32(11, sizeY_);
    }
    if (java.lang.Double.doubleToRawLongBits(posRatioX_) != 0) {
      output.writeDouble(12, posRatioX_);
    }
    if (java.lang.Double.doubleToRawLongBits(posRatioY_) != 0) {
      output.writeDouble(13, posRatioY_);
    }
    if (java.lang.Double.doubleToRawLongBits(sizeRatioX_) != 0) {
      output.writeDouble(14, sizeRatioX_);
    }
    if (java.lang.Double.doubleToRawLongBits(sizeRatioY_) != 0) {
      output.writeDouble(15, sizeRatioY_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fontType_);
    }
    if (fontSize_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, fontSize_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontColor_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fontColor_);
    }
    if (startTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(5, startTime_);
    }
    if (endTime_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(6, endTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locate_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, locate_);
    }
    if (posX_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(8, posX_);
    }
    if (posY_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, posY_);
    }
    if (sizeX_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(10, sizeX_);
    }
    if (sizeY_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(11, sizeY_);
    }
    if (java.lang.Double.doubleToRawLongBits(posRatioX_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(12, posRatioX_);
    }
    if (java.lang.Double.doubleToRawLongBits(posRatioY_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(13, posRatioY_);
    }
    if (java.lang.Double.doubleToRawLongBits(sizeRatioX_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(14, sizeRatioX_);
    }
    if (java.lang.Double.doubleToRawLongBits(sizeRatioY_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(15, sizeRatioY_);
    }
    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.TextLogoDefinition)) {
      return super.equals(obj);
    }
    com.volcengine.service.vod.model.business.TextLogoDefinition other = (com.volcengine.service.vod.model.business.TextLogoDefinition) obj;

    if (!getContent()
        .equals(other.getContent())) return false;
    if (!getFontType()
        .equals(other.getFontType())) return false;
    if (getFontSize()
        != other.getFontSize()) return false;
    if (!getFontColor()
        .equals(other.getFontColor())) return false;
    if (getStartTime()
        != other.getStartTime()) return false;
    if (getEndTime()
        != other.getEndTime()) return false;
    if (!getLocate()
        .equals(other.getLocate())) return false;
    if (getPosX()
        != other.getPosX()) return false;
    if (getPosY()
        != other.getPosY()) return false;
    if (getSizeX()
        != other.getSizeX()) return false;
    if (getSizeY()
        != other.getSizeY()) return false;
    if (java.lang.Double.doubleToLongBits(getPosRatioX())
        != java.lang.Double.doubleToLongBits(
            other.getPosRatioX())) return false;
    if (java.lang.Double.doubleToLongBits(getPosRatioY())
        != java.lang.Double.doubleToLongBits(
            other.getPosRatioY())) return false;
    if (java.lang.Double.doubleToLongBits(getSizeRatioX())
        != java.lang.Double.doubleToLongBits(
            other.getSizeRatioX())) return false;
    if (java.lang.Double.doubleToLongBits(getSizeRatioY())
        != java.lang.Double.doubleToLongBits(
            other.getSizeRatioY())) 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) + CONTENT_FIELD_NUMBER;
    hash = (53 * hash) + getContent().hashCode();
    hash = (37 * hash) + FONTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getFontType().hashCode();
    hash = (37 * hash) + FONTSIZE_FIELD_NUMBER;
    hash = (53 * hash) + getFontSize();
    hash = (37 * hash) + FONTCOLOR_FIELD_NUMBER;
    hash = (53 * hash) + getFontColor().hashCode();
    hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
    hash = (53 * hash) + getStartTime();
    hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
    hash = (53 * hash) + getEndTime();
    hash = (37 * hash) + LOCATE_FIELD_NUMBER;
    hash = (53 * hash) + getLocate().hashCode();
    hash = (37 * hash) + POSX_FIELD_NUMBER;
    hash = (53 * hash) + getPosX();
    hash = (37 * hash) + POSY_FIELD_NUMBER;
    hash = (53 * hash) + getPosY();
    hash = (37 * hash) + SIZEX_FIELD_NUMBER;
    hash = (53 * hash) + getSizeX();
    hash = (37 * hash) + SIZEY_FIELD_NUMBER;
    hash = (53 * hash) + getSizeY();
    hash = (37 * hash) + POSRATIOX_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getPosRatioX()));
    hash = (37 * hash) + POSRATIOY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getPosRatioY()));
    hash = (37 * hash) + SIZERATIOX_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getSizeRatioX()));
    hash = (37 * hash) + SIZERATIOY_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getSizeRatioY()));
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.volcengine.service.vod.model.business.TextLogoDefinition parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.TextLogoDefinition 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.TextLogoDefinition parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.TextLogoDefinition 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.TextLogoDefinition parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.volcengine.service.vod.model.business.TextLogoDefinition 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.TextLogoDefinition 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.TextLogoDefinition 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.TextLogoDefinition 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.TextLogoDefinition 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.TextLogoDefinition 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.TextLogoDefinition 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.TextLogoDefinition 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.TextLogoDefinition}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:Volcengine.Vod.Models.Business.TextLogoDefinition)
      com.volcengine.service.vod.model.business.TextLogoDefinitionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.volcengine.service.vod.model.business.VodWorkflow.internal_static_Volcengine_Vod_Models_Business_TextLogoDefinition_descriptor;
    }

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

    // Construct using com.volcengine.service.vod.model.business.TextLogoDefinition.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();
      content_ = "";

      fontType_ = "";

      fontSize_ = 0;

      fontColor_ = "";

      startTime_ = 0;

      endTime_ = 0;

      locate_ = "";

      posX_ = 0;

      posY_ = 0;

      sizeX_ = 0;

      sizeY_ = 0;

      posRatioX_ = 0D;

      posRatioY_ = 0D;

      sizeRatioX_ = 0D;

      sizeRatioY_ = 0D;

      return this;
    }

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

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

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

    @java.lang.Override
    public com.volcengine.service.vod.model.business.TextLogoDefinition buildPartial() {
      com.volcengine.service.vod.model.business.TextLogoDefinition result = new com.volcengine.service.vod.model.business.TextLogoDefinition(this);
      result.content_ = content_;
      result.fontType_ = fontType_;
      result.fontSize_ = fontSize_;
      result.fontColor_ = fontColor_;
      result.startTime_ = startTime_;
      result.endTime_ = endTime_;
      result.locate_ = locate_;
      result.posX_ = posX_;
      result.posY_ = posY_;
      result.sizeX_ = sizeX_;
      result.sizeY_ = sizeY_;
      result.posRatioX_ = posRatioX_;
      result.posRatioY_ = posRatioY_;
      result.sizeRatioX_ = sizeRatioX_;
      result.sizeRatioY_ = sizeRatioY_;
      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.TextLogoDefinition) {
        return mergeFrom((com.volcengine.service.vod.model.business.TextLogoDefinition)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.volcengine.service.vod.model.business.TextLogoDefinition other) {
      if (other == com.volcengine.service.vod.model.business.TextLogoDefinition.getDefaultInstance()) return this;
      if (!other.getContent().isEmpty()) {
        content_ = other.content_;
        onChanged();
      }
      if (!other.getFontType().isEmpty()) {
        fontType_ = other.fontType_;
        onChanged();
      }
      if (other.getFontSize() != 0) {
        setFontSize(other.getFontSize());
      }
      if (!other.getFontColor().isEmpty()) {
        fontColor_ = other.fontColor_;
        onChanged();
      }
      if (other.getStartTime() != 0) {
        setStartTime(other.getStartTime());
      }
      if (other.getEndTime() != 0) {
        setEndTime(other.getEndTime());
      }
      if (!other.getLocate().isEmpty()) {
        locate_ = other.locate_;
        onChanged();
      }
      if (other.getPosX() != 0) {
        setPosX(other.getPosX());
      }
      if (other.getPosY() != 0) {
        setPosY(other.getPosY());
      }
      if (other.getSizeX() != 0) {
        setSizeX(other.getSizeX());
      }
      if (other.getSizeY() != 0) {
        setSizeY(other.getSizeY());
      }
      if (other.getPosRatioX() != 0D) {
        setPosRatioX(other.getPosRatioX());
      }
      if (other.getPosRatioY() != 0D) {
        setPosRatioY(other.getPosRatioY());
      }
      if (other.getSizeRatioX() != 0D) {
        setSizeRatioX(other.getSizeRatioX());
      }
      if (other.getSizeRatioY() != 0D) {
        setSizeRatioY(other.getSizeRatioY());
      }
      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.TextLogoDefinition parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.volcengine.service.vod.model.business.TextLogoDefinition) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object content_ = "";
    /**
     * string Content = 1;
     * @return The content.
     */
    public java.lang.String getContent() {
      java.lang.Object ref = content_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        content_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Content = 1;
     * @return The bytes for content.
     */
    public com.google.protobuf.ByteString
        getContentBytes() {
      java.lang.Object ref = content_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        content_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Content = 1;
     * @param value The content to set.
     * @return This builder for chaining.
     */
    public Builder setContent(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      content_ = value;
      onChanged();
      return this;
    }
    /**
     * string Content = 1;
     * @return This builder for chaining.
     */
    public Builder clearContent() {
      
      content_ = getDefaultInstance().getContent();
      onChanged();
      return this;
    }
    /**
     * string Content = 1;
     * @param value The bytes for content to set.
     * @return This builder for chaining.
     */
    public Builder setContentBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      content_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object fontType_ = "";
    /**
     * string FontType = 2;
     * @return The fontType.
     */
    public java.lang.String getFontType() {
      java.lang.Object ref = fontType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fontType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string FontType = 2;
     * @return The bytes for fontType.
     */
    public com.google.protobuf.ByteString
        getFontTypeBytes() {
      java.lang.Object ref = fontType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fontType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string FontType = 2;
     * @param value The fontType to set.
     * @return This builder for chaining.
     */
    public Builder setFontType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fontType_ = value;
      onChanged();
      return this;
    }
    /**
     * string FontType = 2;
     * @return This builder for chaining.
     */
    public Builder clearFontType() {
      
      fontType_ = getDefaultInstance().getFontType();
      onChanged();
      return this;
    }
    /**
     * string FontType = 2;
     * @param value The bytes for fontType to set.
     * @return This builder for chaining.
     */
    public Builder setFontTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fontType_ = value;
      onChanged();
      return this;
    }

    private int fontSize_ ;
    /**
     * int32 FontSize = 3;
     * @return The fontSize.
     */
    @java.lang.Override
    public int getFontSize() {
      return fontSize_;
    }
    /**
     * int32 FontSize = 3;
     * @param value The fontSize to set.
     * @return This builder for chaining.
     */
    public Builder setFontSize(int value) {
      
      fontSize_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 FontSize = 3;
     * @return This builder for chaining.
     */
    public Builder clearFontSize() {
      
      fontSize_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object fontColor_ = "";
    /**
     * string FontColor = 4;
     * @return The fontColor.
     */
    public java.lang.String getFontColor() {
      java.lang.Object ref = fontColor_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fontColor_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string FontColor = 4;
     * @return The bytes for fontColor.
     */
    public com.google.protobuf.ByteString
        getFontColorBytes() {
      java.lang.Object ref = fontColor_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fontColor_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string FontColor = 4;
     * @param value The fontColor to set.
     * @return This builder for chaining.
     */
    public Builder setFontColor(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      fontColor_ = value;
      onChanged();
      return this;
    }
    /**
     * string FontColor = 4;
     * @return This builder for chaining.
     */
    public Builder clearFontColor() {
      
      fontColor_ = getDefaultInstance().getFontColor();
      onChanged();
      return this;
    }
    /**
     * string FontColor = 4;
     * @param value The bytes for fontColor to set.
     * @return This builder for chaining.
     */
    public Builder setFontColorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      fontColor_ = value;
      onChanged();
      return this;
    }

    private int startTime_ ;
    /**
     * int32 StartTime = 5;
     * @return The startTime.
     */
    @java.lang.Override
    public int getStartTime() {
      return startTime_;
    }
    /**
     * int32 StartTime = 5;
     * @param value The startTime to set.
     * @return This builder for chaining.
     */
    public Builder setStartTime(int value) {
      
      startTime_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 StartTime = 5;
     * @return This builder for chaining.
     */
    public Builder clearStartTime() {
      
      startTime_ = 0;
      onChanged();
      return this;
    }

    private int endTime_ ;
    /**
     * int32 EndTime = 6;
     * @return The endTime.
     */
    @java.lang.Override
    public int getEndTime() {
      return endTime_;
    }
    /**
     * int32 EndTime = 6;
     * @param value The endTime to set.
     * @return This builder for chaining.
     */
    public Builder setEndTime(int value) {
      
      endTime_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 EndTime = 6;
     * @return This builder for chaining.
     */
    public Builder clearEndTime() {
      
      endTime_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object locate_ = "";
    /**
     * string Locate = 7;
     * @return The locate.
     */
    public java.lang.String getLocate() {
      java.lang.Object ref = locate_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        locate_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Locate = 7;
     * @return The bytes for locate.
     */
    public com.google.protobuf.ByteString
        getLocateBytes() {
      java.lang.Object ref = locate_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        locate_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Locate = 7;
     * @param value The locate to set.
     * @return This builder for chaining.
     */
    public Builder setLocate(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      locate_ = value;
      onChanged();
      return this;
    }
    /**
     * string Locate = 7;
     * @return This builder for chaining.
     */
    public Builder clearLocate() {
      
      locate_ = getDefaultInstance().getLocate();
      onChanged();
      return this;
    }
    /**
     * string Locate = 7;
     * @param value The bytes for locate to set.
     * @return This builder for chaining.
     */
    public Builder setLocateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      locate_ = value;
      onChanged();
      return this;
    }

    private int posX_ ;
    /**
     * int32 PosX = 8;
     * @return The posX.
     */
    @java.lang.Override
    public int getPosX() {
      return posX_;
    }
    /**
     * int32 PosX = 8;
     * @param value The posX to set.
     * @return This builder for chaining.
     */
    public Builder setPosX(int value) {
      
      posX_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 PosX = 8;
     * @return This builder for chaining.
     */
    public Builder clearPosX() {
      
      posX_ = 0;
      onChanged();
      return this;
    }

    private int posY_ ;
    /**
     * int32 PosY = 9;
     * @return The posY.
     */
    @java.lang.Override
    public int getPosY() {
      return posY_;
    }
    /**
     * int32 PosY = 9;
     * @param value The posY to set.
     * @return This builder for chaining.
     */
    public Builder setPosY(int value) {
      
      posY_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 PosY = 9;
     * @return This builder for chaining.
     */
    public Builder clearPosY() {
      
      posY_ = 0;
      onChanged();
      return this;
    }

    private int sizeX_ ;
    /**
     * int32 SizeX = 10;
     * @return The sizeX.
     */
    @java.lang.Override
    public int getSizeX() {
      return sizeX_;
    }
    /**
     * int32 SizeX = 10;
     * @param value The sizeX to set.
     * @return This builder for chaining.
     */
    public Builder setSizeX(int value) {
      
      sizeX_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 SizeX = 10;
     * @return This builder for chaining.
     */
    public Builder clearSizeX() {
      
      sizeX_ = 0;
      onChanged();
      return this;
    }

    private int sizeY_ ;
    /**
     * int32 SizeY = 11;
     * @return The sizeY.
     */
    @java.lang.Override
    public int getSizeY() {
      return sizeY_;
    }
    /**
     * int32 SizeY = 11;
     * @param value The sizeY to set.
     * @return This builder for chaining.
     */
    public Builder setSizeY(int value) {
      
      sizeY_ = value;
      onChanged();
      return this;
    }
    /**
     * int32 SizeY = 11;
     * @return This builder for chaining.
     */
    public Builder clearSizeY() {
      
      sizeY_ = 0;
      onChanged();
      return this;
    }

    private double posRatioX_ ;
    /**
     * double PosRatioX = 12;
     * @return The posRatioX.
     */
    @java.lang.Override
    public double getPosRatioX() {
      return posRatioX_;
    }
    /**
     * double PosRatioX = 12;
     * @param value The posRatioX to set.
     * @return This builder for chaining.
     */
    public Builder setPosRatioX(double value) {
      
      posRatioX_ = value;
      onChanged();
      return this;
    }
    /**
     * double PosRatioX = 12;
     * @return This builder for chaining.
     */
    public Builder clearPosRatioX() {
      
      posRatioX_ = 0D;
      onChanged();
      return this;
    }

    private double posRatioY_ ;
    /**
     * double PosRatioY = 13;
     * @return The posRatioY.
     */
    @java.lang.Override
    public double getPosRatioY() {
      return posRatioY_;
    }
    /**
     * double PosRatioY = 13;
     * @param value The posRatioY to set.
     * @return This builder for chaining.
     */
    public Builder setPosRatioY(double value) {
      
      posRatioY_ = value;
      onChanged();
      return this;
    }
    /**
     * double PosRatioY = 13;
     * @return This builder for chaining.
     */
    public Builder clearPosRatioY() {
      
      posRatioY_ = 0D;
      onChanged();
      return this;
    }

    private double sizeRatioX_ ;
    /**
     * double SizeRatioX = 14;
     * @return The sizeRatioX.
     */
    @java.lang.Override
    public double getSizeRatioX() {
      return sizeRatioX_;
    }
    /**
     * double SizeRatioX = 14;
     * @param value The sizeRatioX to set.
     * @return This builder for chaining.
     */
    public Builder setSizeRatioX(double value) {
      
      sizeRatioX_ = value;
      onChanged();
      return this;
    }
    /**
     * double SizeRatioX = 14;
     * @return This builder for chaining.
     */
    public Builder clearSizeRatioX() {
      
      sizeRatioX_ = 0D;
      onChanged();
      return this;
    }

    private double sizeRatioY_ ;
    /**
     * double SizeRatioY = 15;
     * @return The sizeRatioY.
     */
    @java.lang.Override
    public double getSizeRatioY() {
      return sizeRatioY_;
    }
    /**
     * double SizeRatioY = 15;
     * @param value The sizeRatioY to set.
     * @return This builder for chaining.
     */
    public Builder setSizeRatioY(double value) {
      
      sizeRatioY_ = value;
      onChanged();
      return this;
    }
    /**
     * double SizeRatioY = 15;
     * @return This builder for chaining.
     */
    public Builder clearSizeRatioY() {
      
      sizeRatioY_ = 0D;
      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.TextLogoDefinition)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public TextLogoDefinition parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new TextLogoDefinition(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.TextLogoDefinition getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy