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

com.volcengine.service.vod.model.business.LogoDefinition 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.LogoDefinition}
 */
public final class LogoDefinition extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:Volcengine.Vod.Models.Business.LogoDefinition)
    LogoDefinitionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use LogoDefinition.newBuilder() to construct.
  private LogoDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private LogoDefinition() {
    type_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private LogoDefinition(
      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();

            type_ = s;
            break;
          }
          case 18: {
            com.volcengine.service.vod.model.business.ImageLogoDefinition.Builder subBuilder = null;
            if (imageLogoDefinition_ != null) {
              subBuilder = imageLogoDefinition_.toBuilder();
            }
            imageLogoDefinition_ = input.readMessage(com.volcengine.service.vod.model.business.ImageLogoDefinition.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(imageLogoDefinition_);
              imageLogoDefinition_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            com.volcengine.service.vod.model.business.VideoLogoDefinition.Builder subBuilder = null;
            if (videoLogoDefinition_ != null) {
              subBuilder = videoLogoDefinition_.toBuilder();
            }
            videoLogoDefinition_ = input.readMessage(com.volcengine.service.vod.model.business.VideoLogoDefinition.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(videoLogoDefinition_);
              videoLogoDefinition_ = subBuilder.buildPartial();
            }

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

            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_LogoDefinition_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_LogoDefinition_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.volcengine.service.vod.model.business.LogoDefinition.class, com.volcengine.service.vod.model.business.LogoDefinition.Builder.class);
  }

  public static final int TYPE_FIELD_NUMBER = 1;
  private volatile java.lang.Object type_;
  /**
   * string Type = 1;
   * @return The type.
   */
  @java.lang.Override
  public java.lang.String getType() {
    java.lang.Object ref = type_;
    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();
      type_ = s;
      return s;
    }
  }
  /**
   * string Type = 1;
   * @return The bytes for type.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTypeBytes() {
    java.lang.Object ref = type_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      type_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IMAGELOGODEFINITION_FIELD_NUMBER = 2;
  private com.volcengine.service.vod.model.business.ImageLogoDefinition imageLogoDefinition_;
  /**
   * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
   * @return Whether the imageLogoDefinition field is set.
   */
  @java.lang.Override
  public boolean hasImageLogoDefinition() {
    return imageLogoDefinition_ != null;
  }
  /**
   * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
   * @return The imageLogoDefinition.
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.ImageLogoDefinition getImageLogoDefinition() {
    return imageLogoDefinition_ == null ? com.volcengine.service.vod.model.business.ImageLogoDefinition.getDefaultInstance() : imageLogoDefinition_;
  }
  /**
   * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.ImageLogoDefinitionOrBuilder getImageLogoDefinitionOrBuilder() {
    return getImageLogoDefinition();
  }

  public static final int VIDEOLOGODEFINITION_FIELD_NUMBER = 3;
  private com.volcengine.service.vod.model.business.VideoLogoDefinition videoLogoDefinition_;
  /**
   * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
   * @return Whether the videoLogoDefinition field is set.
   */
  @java.lang.Override
  public boolean hasVideoLogoDefinition() {
    return videoLogoDefinition_ != null;
  }
  /**
   * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
   * @return The videoLogoDefinition.
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.VideoLogoDefinition getVideoLogoDefinition() {
    return videoLogoDefinition_ == null ? com.volcengine.service.vod.model.business.VideoLogoDefinition.getDefaultInstance() : videoLogoDefinition_;
  }
  /**
   * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.VideoLogoDefinitionOrBuilder getVideoLogoDefinitionOrBuilder() {
    return getVideoLogoDefinition();
  }

  public static final int TEXTLOGODEFINITION_FIELD_NUMBER = 4;
  private com.volcengine.service.vod.model.business.TextLogoDefinition textLogoDefinition_;
  /**
   * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
   * @return Whether the textLogoDefinition field is set.
   */
  @java.lang.Override
  public boolean hasTextLogoDefinition() {
    return textLogoDefinition_ != null;
  }
  /**
   * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
   * @return The textLogoDefinition.
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.TextLogoDefinition getTextLogoDefinition() {
    return textLogoDefinition_ == null ? com.volcengine.service.vod.model.business.TextLogoDefinition.getDefaultInstance() : textLogoDefinition_;
  }
  /**
   * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
   */
  @java.lang.Override
  public com.volcengine.service.vod.model.business.TextLogoDefinitionOrBuilder getTextLogoDefinitionOrBuilder() {
    return getTextLogoDefinition();
  }

  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(type_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
    }
    if (imageLogoDefinition_ != null) {
      output.writeMessage(2, getImageLogoDefinition());
    }
    if (videoLogoDefinition_ != null) {
      output.writeMessage(3, getVideoLogoDefinition());
    }
    if (textLogoDefinition_ != null) {
      output.writeMessage(4, getTextLogoDefinition());
    }
    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(type_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
    }
    if (imageLogoDefinition_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getImageLogoDefinition());
    }
    if (videoLogoDefinition_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getVideoLogoDefinition());
    }
    if (textLogoDefinition_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getTextLogoDefinition());
    }
    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.LogoDefinition)) {
      return super.equals(obj);
    }
    com.volcengine.service.vod.model.business.LogoDefinition other = (com.volcengine.service.vod.model.business.LogoDefinition) obj;

    if (!getType()
        .equals(other.getType())) return false;
    if (hasImageLogoDefinition() != other.hasImageLogoDefinition()) return false;
    if (hasImageLogoDefinition()) {
      if (!getImageLogoDefinition()
          .equals(other.getImageLogoDefinition())) return false;
    }
    if (hasVideoLogoDefinition() != other.hasVideoLogoDefinition()) return false;
    if (hasVideoLogoDefinition()) {
      if (!getVideoLogoDefinition()
          .equals(other.getVideoLogoDefinition())) return false;
    }
    if (hasTextLogoDefinition() != other.hasTextLogoDefinition()) return false;
    if (hasTextLogoDefinition()) {
      if (!getTextLogoDefinition()
          .equals(other.getTextLogoDefinition())) 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) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType().hashCode();
    if (hasImageLogoDefinition()) {
      hash = (37 * hash) + IMAGELOGODEFINITION_FIELD_NUMBER;
      hash = (53 * hash) + getImageLogoDefinition().hashCode();
    }
    if (hasVideoLogoDefinition()) {
      hash = (37 * hash) + VIDEOLOGODEFINITION_FIELD_NUMBER;
      hash = (53 * hash) + getVideoLogoDefinition().hashCode();
    }
    if (hasTextLogoDefinition()) {
      hash = (37 * hash) + TEXTLOGODEFINITION_FIELD_NUMBER;
      hash = (53 * hash) + getTextLogoDefinition().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

      if (imageLogoDefinitionBuilder_ == null) {
        imageLogoDefinition_ = null;
      } else {
        imageLogoDefinition_ = null;
        imageLogoDefinitionBuilder_ = null;
      }
      if (videoLogoDefinitionBuilder_ == null) {
        videoLogoDefinition_ = null;
      } else {
        videoLogoDefinition_ = null;
        videoLogoDefinitionBuilder_ = null;
      }
      if (textLogoDefinitionBuilder_ == null) {
        textLogoDefinition_ = null;
      } else {
        textLogoDefinition_ = null;
        textLogoDefinitionBuilder_ = null;
      }
      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_LogoDefinition_descriptor;
    }

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

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

    @java.lang.Override
    public com.volcengine.service.vod.model.business.LogoDefinition buildPartial() {
      com.volcengine.service.vod.model.business.LogoDefinition result = new com.volcengine.service.vod.model.business.LogoDefinition(this);
      result.type_ = type_;
      if (imageLogoDefinitionBuilder_ == null) {
        result.imageLogoDefinition_ = imageLogoDefinition_;
      } else {
        result.imageLogoDefinition_ = imageLogoDefinitionBuilder_.build();
      }
      if (videoLogoDefinitionBuilder_ == null) {
        result.videoLogoDefinition_ = videoLogoDefinition_;
      } else {
        result.videoLogoDefinition_ = videoLogoDefinitionBuilder_.build();
      }
      if (textLogoDefinitionBuilder_ == null) {
        result.textLogoDefinition_ = textLogoDefinition_;
      } else {
        result.textLogoDefinition_ = textLogoDefinitionBuilder_.build();
      }
      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.LogoDefinition) {
        return mergeFrom((com.volcengine.service.vod.model.business.LogoDefinition)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.volcengine.service.vod.model.business.LogoDefinition other) {
      if (other == com.volcengine.service.vod.model.business.LogoDefinition.getDefaultInstance()) return this;
      if (!other.getType().isEmpty()) {
        type_ = other.type_;
        onChanged();
      }
      if (other.hasImageLogoDefinition()) {
        mergeImageLogoDefinition(other.getImageLogoDefinition());
      }
      if (other.hasVideoLogoDefinition()) {
        mergeVideoLogoDefinition(other.getVideoLogoDefinition());
      }
      if (other.hasTextLogoDefinition()) {
        mergeTextLogoDefinition(other.getTextLogoDefinition());
      }
      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.LogoDefinition parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.volcengine.service.vod.model.business.LogoDefinition) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object type_ = "";
    /**
     * string Type = 1;
     * @return The type.
     */
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        type_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string Type = 1;
     * @return The bytes for type.
     */
    public com.google.protobuf.ByteString
        getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string Type = 1;
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      type_ = value;
      onChanged();
      return this;
    }
    /**
     * string Type = 1;
     * @return This builder for chaining.
     */
    public Builder clearType() {
      
      type_ = getDefaultInstance().getType();
      onChanged();
      return this;
    }
    /**
     * string Type = 1;
     * @param value The bytes for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      type_ = value;
      onChanged();
      return this;
    }

    private com.volcengine.service.vod.model.business.ImageLogoDefinition imageLogoDefinition_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.volcengine.service.vod.model.business.ImageLogoDefinition, com.volcengine.service.vod.model.business.ImageLogoDefinition.Builder, com.volcengine.service.vod.model.business.ImageLogoDefinitionOrBuilder> imageLogoDefinitionBuilder_;
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     * @return Whether the imageLogoDefinition field is set.
     */
    public boolean hasImageLogoDefinition() {
      return imageLogoDefinitionBuilder_ != null || imageLogoDefinition_ != null;
    }
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     * @return The imageLogoDefinition.
     */
    public com.volcengine.service.vod.model.business.ImageLogoDefinition getImageLogoDefinition() {
      if (imageLogoDefinitionBuilder_ == null) {
        return imageLogoDefinition_ == null ? com.volcengine.service.vod.model.business.ImageLogoDefinition.getDefaultInstance() : imageLogoDefinition_;
      } else {
        return imageLogoDefinitionBuilder_.getMessage();
      }
    }
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     */
    public Builder setImageLogoDefinition(com.volcengine.service.vod.model.business.ImageLogoDefinition value) {
      if (imageLogoDefinitionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        imageLogoDefinition_ = value;
        onChanged();
      } else {
        imageLogoDefinitionBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     */
    public Builder setImageLogoDefinition(
        com.volcengine.service.vod.model.business.ImageLogoDefinition.Builder builderForValue) {
      if (imageLogoDefinitionBuilder_ == null) {
        imageLogoDefinition_ = builderForValue.build();
        onChanged();
      } else {
        imageLogoDefinitionBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     */
    public Builder mergeImageLogoDefinition(com.volcengine.service.vod.model.business.ImageLogoDefinition value) {
      if (imageLogoDefinitionBuilder_ == null) {
        if (imageLogoDefinition_ != null) {
          imageLogoDefinition_ =
            com.volcengine.service.vod.model.business.ImageLogoDefinition.newBuilder(imageLogoDefinition_).mergeFrom(value).buildPartial();
        } else {
          imageLogoDefinition_ = value;
        }
        onChanged();
      } else {
        imageLogoDefinitionBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     */
    public Builder clearImageLogoDefinition() {
      if (imageLogoDefinitionBuilder_ == null) {
        imageLogoDefinition_ = null;
        onChanged();
      } else {
        imageLogoDefinition_ = null;
        imageLogoDefinitionBuilder_ = null;
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     */
    public com.volcengine.service.vod.model.business.ImageLogoDefinition.Builder getImageLogoDefinitionBuilder() {
      
      onChanged();
      return getImageLogoDefinitionFieldBuilder().getBuilder();
    }
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     */
    public com.volcengine.service.vod.model.business.ImageLogoDefinitionOrBuilder getImageLogoDefinitionOrBuilder() {
      if (imageLogoDefinitionBuilder_ != null) {
        return imageLogoDefinitionBuilder_.getMessageOrBuilder();
      } else {
        return imageLogoDefinition_ == null ?
            com.volcengine.service.vod.model.business.ImageLogoDefinition.getDefaultInstance() : imageLogoDefinition_;
      }
    }
    /**
     * .Volcengine.Vod.Models.Business.ImageLogoDefinition ImageLogoDefinition = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.volcengine.service.vod.model.business.ImageLogoDefinition, com.volcengine.service.vod.model.business.ImageLogoDefinition.Builder, com.volcengine.service.vod.model.business.ImageLogoDefinitionOrBuilder> 
        getImageLogoDefinitionFieldBuilder() {
      if (imageLogoDefinitionBuilder_ == null) {
        imageLogoDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.volcengine.service.vod.model.business.ImageLogoDefinition, com.volcengine.service.vod.model.business.ImageLogoDefinition.Builder, com.volcengine.service.vod.model.business.ImageLogoDefinitionOrBuilder>(
                getImageLogoDefinition(),
                getParentForChildren(),
                isClean());
        imageLogoDefinition_ = null;
      }
      return imageLogoDefinitionBuilder_;
    }

    private com.volcengine.service.vod.model.business.VideoLogoDefinition videoLogoDefinition_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.volcengine.service.vod.model.business.VideoLogoDefinition, com.volcengine.service.vod.model.business.VideoLogoDefinition.Builder, com.volcengine.service.vod.model.business.VideoLogoDefinitionOrBuilder> videoLogoDefinitionBuilder_;
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     * @return Whether the videoLogoDefinition field is set.
     */
    public boolean hasVideoLogoDefinition() {
      return videoLogoDefinitionBuilder_ != null || videoLogoDefinition_ != null;
    }
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     * @return The videoLogoDefinition.
     */
    public com.volcengine.service.vod.model.business.VideoLogoDefinition getVideoLogoDefinition() {
      if (videoLogoDefinitionBuilder_ == null) {
        return videoLogoDefinition_ == null ? com.volcengine.service.vod.model.business.VideoLogoDefinition.getDefaultInstance() : videoLogoDefinition_;
      } else {
        return videoLogoDefinitionBuilder_.getMessage();
      }
    }
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     */
    public Builder setVideoLogoDefinition(com.volcengine.service.vod.model.business.VideoLogoDefinition value) {
      if (videoLogoDefinitionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        videoLogoDefinition_ = value;
        onChanged();
      } else {
        videoLogoDefinitionBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     */
    public Builder setVideoLogoDefinition(
        com.volcengine.service.vod.model.business.VideoLogoDefinition.Builder builderForValue) {
      if (videoLogoDefinitionBuilder_ == null) {
        videoLogoDefinition_ = builderForValue.build();
        onChanged();
      } else {
        videoLogoDefinitionBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     */
    public Builder mergeVideoLogoDefinition(com.volcengine.service.vod.model.business.VideoLogoDefinition value) {
      if (videoLogoDefinitionBuilder_ == null) {
        if (videoLogoDefinition_ != null) {
          videoLogoDefinition_ =
            com.volcengine.service.vod.model.business.VideoLogoDefinition.newBuilder(videoLogoDefinition_).mergeFrom(value).buildPartial();
        } else {
          videoLogoDefinition_ = value;
        }
        onChanged();
      } else {
        videoLogoDefinitionBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     */
    public Builder clearVideoLogoDefinition() {
      if (videoLogoDefinitionBuilder_ == null) {
        videoLogoDefinition_ = null;
        onChanged();
      } else {
        videoLogoDefinition_ = null;
        videoLogoDefinitionBuilder_ = null;
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     */
    public com.volcengine.service.vod.model.business.VideoLogoDefinition.Builder getVideoLogoDefinitionBuilder() {
      
      onChanged();
      return getVideoLogoDefinitionFieldBuilder().getBuilder();
    }
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     */
    public com.volcengine.service.vod.model.business.VideoLogoDefinitionOrBuilder getVideoLogoDefinitionOrBuilder() {
      if (videoLogoDefinitionBuilder_ != null) {
        return videoLogoDefinitionBuilder_.getMessageOrBuilder();
      } else {
        return videoLogoDefinition_ == null ?
            com.volcengine.service.vod.model.business.VideoLogoDefinition.getDefaultInstance() : videoLogoDefinition_;
      }
    }
    /**
     * .Volcengine.Vod.Models.Business.VideoLogoDefinition VideoLogoDefinition = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.volcengine.service.vod.model.business.VideoLogoDefinition, com.volcengine.service.vod.model.business.VideoLogoDefinition.Builder, com.volcengine.service.vod.model.business.VideoLogoDefinitionOrBuilder> 
        getVideoLogoDefinitionFieldBuilder() {
      if (videoLogoDefinitionBuilder_ == null) {
        videoLogoDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.volcengine.service.vod.model.business.VideoLogoDefinition, com.volcengine.service.vod.model.business.VideoLogoDefinition.Builder, com.volcengine.service.vod.model.business.VideoLogoDefinitionOrBuilder>(
                getVideoLogoDefinition(),
                getParentForChildren(),
                isClean());
        videoLogoDefinition_ = null;
      }
      return videoLogoDefinitionBuilder_;
    }

    private com.volcengine.service.vod.model.business.TextLogoDefinition textLogoDefinition_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.volcengine.service.vod.model.business.TextLogoDefinition, com.volcengine.service.vod.model.business.TextLogoDefinition.Builder, com.volcengine.service.vod.model.business.TextLogoDefinitionOrBuilder> textLogoDefinitionBuilder_;
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     * @return Whether the textLogoDefinition field is set.
     */
    public boolean hasTextLogoDefinition() {
      return textLogoDefinitionBuilder_ != null || textLogoDefinition_ != null;
    }
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     * @return The textLogoDefinition.
     */
    public com.volcengine.service.vod.model.business.TextLogoDefinition getTextLogoDefinition() {
      if (textLogoDefinitionBuilder_ == null) {
        return textLogoDefinition_ == null ? com.volcengine.service.vod.model.business.TextLogoDefinition.getDefaultInstance() : textLogoDefinition_;
      } else {
        return textLogoDefinitionBuilder_.getMessage();
      }
    }
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     */
    public Builder setTextLogoDefinition(com.volcengine.service.vod.model.business.TextLogoDefinition value) {
      if (textLogoDefinitionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        textLogoDefinition_ = value;
        onChanged();
      } else {
        textLogoDefinitionBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     */
    public Builder setTextLogoDefinition(
        com.volcengine.service.vod.model.business.TextLogoDefinition.Builder builderForValue) {
      if (textLogoDefinitionBuilder_ == null) {
        textLogoDefinition_ = builderForValue.build();
        onChanged();
      } else {
        textLogoDefinitionBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     */
    public Builder mergeTextLogoDefinition(com.volcengine.service.vod.model.business.TextLogoDefinition value) {
      if (textLogoDefinitionBuilder_ == null) {
        if (textLogoDefinition_ != null) {
          textLogoDefinition_ =
            com.volcengine.service.vod.model.business.TextLogoDefinition.newBuilder(textLogoDefinition_).mergeFrom(value).buildPartial();
        } else {
          textLogoDefinition_ = value;
        }
        onChanged();
      } else {
        textLogoDefinitionBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     */
    public Builder clearTextLogoDefinition() {
      if (textLogoDefinitionBuilder_ == null) {
        textLogoDefinition_ = null;
        onChanged();
      } else {
        textLogoDefinition_ = null;
        textLogoDefinitionBuilder_ = null;
      }

      return this;
    }
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     */
    public com.volcengine.service.vod.model.business.TextLogoDefinition.Builder getTextLogoDefinitionBuilder() {
      
      onChanged();
      return getTextLogoDefinitionFieldBuilder().getBuilder();
    }
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     */
    public com.volcengine.service.vod.model.business.TextLogoDefinitionOrBuilder getTextLogoDefinitionOrBuilder() {
      if (textLogoDefinitionBuilder_ != null) {
        return textLogoDefinitionBuilder_.getMessageOrBuilder();
      } else {
        return textLogoDefinition_ == null ?
            com.volcengine.service.vod.model.business.TextLogoDefinition.getDefaultInstance() : textLogoDefinition_;
      }
    }
    /**
     * .Volcengine.Vod.Models.Business.TextLogoDefinition TextLogoDefinition = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.volcengine.service.vod.model.business.TextLogoDefinition, com.volcengine.service.vod.model.business.TextLogoDefinition.Builder, com.volcengine.service.vod.model.business.TextLogoDefinitionOrBuilder> 
        getTextLogoDefinitionFieldBuilder() {
      if (textLogoDefinitionBuilder_ == null) {
        textLogoDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.volcengine.service.vod.model.business.TextLogoDefinition, com.volcengine.service.vod.model.business.TextLogoDefinition.Builder, com.volcengine.service.vod.model.business.TextLogoDefinitionOrBuilder>(
                getTextLogoDefinition(),
                getParentForChildren(),
                isClean());
        textLogoDefinition_ = null;
      }
      return textLogoDefinitionBuilder_;
    }
    @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.LogoDefinition)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy