// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Define_Common.proto

package com.caliverse.admin.domain.RabbitMq.message;

/**
 * Protobuf type {@code UgcFrameworkMaterialInfo}
 */
public final class UgcFrameworkMaterialInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:UgcFrameworkMaterialInfo)
    UgcFrameworkMaterialInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UgcFrameworkMaterialInfo.newBuilder() to construct.
  private UgcFrameworkMaterialInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private UgcFrameworkMaterialInfo() {
    type_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_UgcFrameworkMaterialInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_UgcFrameworkMaterialInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo.class, com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo.Builder.class);
  }

  public static final int TYPE_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object type_ = "";
  /**
   * <code>string type = 1;</code>
   * @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;
    }
  }
  /**
   * <code>string type = 1;</code>
   * @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 MATERIALID_FIELD_NUMBER = 2;
  private int materialId_ = 0;
  /**
   * <code>int32 materialId = 2;</code>
   * @return The materialId.
   */
  @java.lang.Override
  public int getMaterialId() {
    return materialId_;
  }

  public static final int COLOR_MASK_R_FIELD_NUMBER = 3;
  private com.caliverse.admin.domain.RabbitMq.message.Color colorMaskR_;
  /**
   * <code>.Color color_mask_r = 3;</code>
   * @return Whether the colorMaskR field is set.
   */
  @java.lang.Override
  public boolean hasColorMaskR() {
    return colorMaskR_ != null;
  }
  /**
   * <code>.Color color_mask_r = 3;</code>
   * @return The colorMaskR.
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.Color getColorMaskR() {
    return colorMaskR_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskR_;
  }
  /**
   * <code>.Color color_mask_r = 3;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder getColorMaskROrBuilder() {
    return colorMaskR_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskR_;
  }

  public static final int COLOR_MASK_G_FIELD_NUMBER = 4;
  private com.caliverse.admin.domain.RabbitMq.message.Color colorMaskG_;
  /**
   * <code>.Color color_mask_g = 4;</code>
   * @return Whether the colorMaskG field is set.
   */
  @java.lang.Override
  public boolean hasColorMaskG() {
    return colorMaskG_ != null;
  }
  /**
   * <code>.Color color_mask_g = 4;</code>
   * @return The colorMaskG.
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.Color getColorMaskG() {
    return colorMaskG_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskG_;
  }
  /**
   * <code>.Color color_mask_g = 4;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder getColorMaskGOrBuilder() {
    return colorMaskG_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskG_;
  }

  public static final int COLOR_MASK_B_FIELD_NUMBER = 5;
  private com.caliverse.admin.domain.RabbitMq.message.Color colorMaskB_;
  /**
   * <code>.Color color_mask_b = 5;</code>
   * @return Whether the colorMaskB field is set.
   */
  @java.lang.Override
  public boolean hasColorMaskB() {
    return colorMaskB_ != null;
  }
  /**
   * <code>.Color color_mask_b = 5;</code>
   * @return The colorMaskB.
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.Color getColorMaskB() {
    return colorMaskB_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskB_;
  }
  /**
   * <code>.Color color_mask_b = 5;</code>
   */
  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder getColorMaskBOrBuilder() {
    return colorMaskB_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskB_;
  }

  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 (materialId_ != 0) {
      output.writeInt32(2, materialId_);
    }
    if (colorMaskR_ != null) {
      output.writeMessage(3, getColorMaskR());
    }
    if (colorMaskG_ != null) {
      output.writeMessage(4, getColorMaskG());
    }
    if (colorMaskB_ != null) {
      output.writeMessage(5, getColorMaskB());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
    }
    if (materialId_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, materialId_);
    }
    if (colorMaskR_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getColorMaskR());
    }
    if (colorMaskG_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getColorMaskG());
    }
    if (colorMaskB_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getColorMaskB());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo)) {
      return super.equals(obj);
    }
    com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo other = (com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo) obj;

    if (!getType()
        .equals(other.getType())) return false;
    if (getMaterialId()
        != other.getMaterialId()) return false;
    if (hasColorMaskR() != other.hasColorMaskR()) return false;
    if (hasColorMaskR()) {
      if (!getColorMaskR()
          .equals(other.getColorMaskR())) return false;
    }
    if (hasColorMaskG() != other.hasColorMaskG()) return false;
    if (hasColorMaskG()) {
      if (!getColorMaskG()
          .equals(other.getColorMaskG())) return false;
    }
    if (hasColorMaskB() != other.hasColorMaskB()) return false;
    if (hasColorMaskB()) {
      if (!getColorMaskB()
          .equals(other.getColorMaskB())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + TYPE_FIELD_NUMBER;
    hash = (53 * hash) + getType().hashCode();
    hash = (37 * hash) + MATERIALID_FIELD_NUMBER;
    hash = (53 * hash) + getMaterialId();
    if (hasColorMaskR()) {
      hash = (37 * hash) + COLOR_MASK_R_FIELD_NUMBER;
      hash = (53 * hash) + getColorMaskR().hashCode();
    }
    if (hasColorMaskG()) {
      hash = (37 * hash) + COLOR_MASK_G_FIELD_NUMBER;
      hash = (53 * hash) + getColorMaskG().hashCode();
    }
    if (hasColorMaskB()) {
      hash = (37 * hash) + COLOR_MASK_B_FIELD_NUMBER;
      hash = (53 * hash) + getColorMaskB().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo 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.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo 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.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo 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.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo 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 UgcFrameworkMaterialInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:UgcFrameworkMaterialInfo)
      com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_UgcFrameworkMaterialInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_UgcFrameworkMaterialInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo.class, com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo.Builder.class);
    }

    // Construct using com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      type_ = "";
      materialId_ = 0;
      colorMaskR_ = null;
      if (colorMaskRBuilder_ != null) {
        colorMaskRBuilder_.dispose();
        colorMaskRBuilder_ = null;
      }
      colorMaskG_ = null;
      if (colorMaskGBuilder_ != null) {
        colorMaskGBuilder_.dispose();
        colorMaskGBuilder_ = null;
      }
      colorMaskB_ = null;
      if (colorMaskBBuilder_ != null) {
        colorMaskBBuilder_.dispose();
        colorMaskBBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.caliverse.admin.domain.RabbitMq.message.DefineCommon.internal_static_UgcFrameworkMaterialInfo_descriptor;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo getDefaultInstanceForType() {
      return com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo.getDefaultInstance();
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo build() {
      com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo buildPartial() {
      com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo result = new com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.type_ = type_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.materialId_ = materialId_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.colorMaskR_ = colorMaskRBuilder_ == null
            ? colorMaskR_
            : colorMaskRBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.colorMaskG_ = colorMaskGBuilder_ == null
            ? colorMaskG_
            : colorMaskGBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.colorMaskB_ = colorMaskBBuilder_ == null
            ? colorMaskB_
            : colorMaskBBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo) {
        return mergeFrom((com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo other) {
      if (other == com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo.getDefaultInstance()) return this;
      if (!other.getType().isEmpty()) {
        type_ = other.type_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.getMaterialId() != 0) {
        setMaterialId(other.getMaterialId());
      }
      if (other.hasColorMaskR()) {
        mergeColorMaskR(other.getColorMaskR());
      }
      if (other.hasColorMaskG()) {
        mergeColorMaskG(other.getColorMaskG());
      }
      if (other.hasColorMaskB()) {
        mergeColorMaskB(other.getColorMaskB());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              type_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              materialId_ = input.readInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              input.readMessage(
                  getColorMaskRFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              input.readMessage(
                  getColorMaskGFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 42: {
              input.readMessage(
                  getColorMaskBFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.lang.Object type_ = "";
    /**
     * <code>string type = 1;</code>
     * @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;
      }
    }
    /**
     * <code>string type = 1;</code>
     * @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;
      }
    }
    /**
     * <code>string type = 1;</code>
     * @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;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>string type = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearType() {
      type_ = getDefaultInstance().getType();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <code>string type = 1;</code>
     * @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;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private int materialId_ ;
    /**
     * <code>int32 materialId = 2;</code>
     * @return The materialId.
     */
    @java.lang.Override
    public int getMaterialId() {
      return materialId_;
    }
    /**
     * <code>int32 materialId = 2;</code>
     * @param value The materialId to set.
     * @return This builder for chaining.
     */
    public Builder setMaterialId(int value) {
      
      materialId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>int32 materialId = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearMaterialId() {
      bitField0_ = (bitField0_ & ~0x00000002);
      materialId_ = 0;
      onChanged();
      return this;
    }

    private com.caliverse.admin.domain.RabbitMq.message.Color colorMaskR_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder> colorMaskRBuilder_;
    /**
     * <code>.Color color_mask_r = 3;</code>
     * @return Whether the colorMaskR field is set.
     */
    public boolean hasColorMaskR() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>.Color color_mask_r = 3;</code>
     * @return The colorMaskR.
     */
    public com.caliverse.admin.domain.RabbitMq.message.Color getColorMaskR() {
      if (colorMaskRBuilder_ == null) {
        return colorMaskR_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskR_;
      } else {
        return colorMaskRBuilder_.getMessage();
      }
    }
    /**
     * <code>.Color color_mask_r = 3;</code>
     */
    public Builder setColorMaskR(com.caliverse.admin.domain.RabbitMq.message.Color value) {
      if (colorMaskRBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        colorMaskR_ = value;
      } else {
        colorMaskRBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_r = 3;</code>
     */
    public Builder setColorMaskR(
        com.caliverse.admin.domain.RabbitMq.message.Color.Builder builderForValue) {
      if (colorMaskRBuilder_ == null) {
        colorMaskR_ = builderForValue.build();
      } else {
        colorMaskRBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_r = 3;</code>
     */
    public Builder mergeColorMaskR(com.caliverse.admin.domain.RabbitMq.message.Color value) {
      if (colorMaskRBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
          colorMaskR_ != null &&
          colorMaskR_ != com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance()) {
          getColorMaskRBuilder().mergeFrom(value);
        } else {
          colorMaskR_ = value;
        }
      } else {
        colorMaskRBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_r = 3;</code>
     */
    public Builder clearColorMaskR() {
      bitField0_ = (bitField0_ & ~0x00000004);
      colorMaskR_ = null;
      if (colorMaskRBuilder_ != null) {
        colorMaskRBuilder_.dispose();
        colorMaskRBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_r = 3;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.Color.Builder getColorMaskRBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getColorMaskRFieldBuilder().getBuilder();
    }
    /**
     * <code>.Color color_mask_r = 3;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder getColorMaskROrBuilder() {
      if (colorMaskRBuilder_ != null) {
        return colorMaskRBuilder_.getMessageOrBuilder();
      } else {
        return colorMaskR_ == null ?
            com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskR_;
      }
    }
    /**
     * <code>.Color color_mask_r = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder> 
        getColorMaskRFieldBuilder() {
      if (colorMaskRBuilder_ == null) {
        colorMaskRBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder>(
                getColorMaskR(),
                getParentForChildren(),
                isClean());
        colorMaskR_ = null;
      }
      return colorMaskRBuilder_;
    }

    private com.caliverse.admin.domain.RabbitMq.message.Color colorMaskG_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder> colorMaskGBuilder_;
    /**
     * <code>.Color color_mask_g = 4;</code>
     * @return Whether the colorMaskG field is set.
     */
    public boolean hasColorMaskG() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * <code>.Color color_mask_g = 4;</code>
     * @return The colorMaskG.
     */
    public com.caliverse.admin.domain.RabbitMq.message.Color getColorMaskG() {
      if (colorMaskGBuilder_ == null) {
        return colorMaskG_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskG_;
      } else {
        return colorMaskGBuilder_.getMessage();
      }
    }
    /**
     * <code>.Color color_mask_g = 4;</code>
     */
    public Builder setColorMaskG(com.caliverse.admin.domain.RabbitMq.message.Color value) {
      if (colorMaskGBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        colorMaskG_ = value;
      } else {
        colorMaskGBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_g = 4;</code>
     */
    public Builder setColorMaskG(
        com.caliverse.admin.domain.RabbitMq.message.Color.Builder builderForValue) {
      if (colorMaskGBuilder_ == null) {
        colorMaskG_ = builderForValue.build();
      } else {
        colorMaskGBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_g = 4;</code>
     */
    public Builder mergeColorMaskG(com.caliverse.admin.domain.RabbitMq.message.Color value) {
      if (colorMaskGBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
          colorMaskG_ != null &&
          colorMaskG_ != com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance()) {
          getColorMaskGBuilder().mergeFrom(value);
        } else {
          colorMaskG_ = value;
        }
      } else {
        colorMaskGBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_g = 4;</code>
     */
    public Builder clearColorMaskG() {
      bitField0_ = (bitField0_ & ~0x00000008);
      colorMaskG_ = null;
      if (colorMaskGBuilder_ != null) {
        colorMaskGBuilder_.dispose();
        colorMaskGBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_g = 4;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.Color.Builder getColorMaskGBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getColorMaskGFieldBuilder().getBuilder();
    }
    /**
     * <code>.Color color_mask_g = 4;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder getColorMaskGOrBuilder() {
      if (colorMaskGBuilder_ != null) {
        return colorMaskGBuilder_.getMessageOrBuilder();
      } else {
        return colorMaskG_ == null ?
            com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskG_;
      }
    }
    /**
     * <code>.Color color_mask_g = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder> 
        getColorMaskGFieldBuilder() {
      if (colorMaskGBuilder_ == null) {
        colorMaskGBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder>(
                getColorMaskG(),
                getParentForChildren(),
                isClean());
        colorMaskG_ = null;
      }
      return colorMaskGBuilder_;
    }

    private com.caliverse.admin.domain.RabbitMq.message.Color colorMaskB_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder> colorMaskBBuilder_;
    /**
     * <code>.Color color_mask_b = 5;</code>
     * @return Whether the colorMaskB field is set.
     */
    public boolean hasColorMaskB() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <code>.Color color_mask_b = 5;</code>
     * @return The colorMaskB.
     */
    public com.caliverse.admin.domain.RabbitMq.message.Color getColorMaskB() {
      if (colorMaskBBuilder_ == null) {
        return colorMaskB_ == null ? com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskB_;
      } else {
        return colorMaskBBuilder_.getMessage();
      }
    }
    /**
     * <code>.Color color_mask_b = 5;</code>
     */
    public Builder setColorMaskB(com.caliverse.admin.domain.RabbitMq.message.Color value) {
      if (colorMaskBBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        colorMaskB_ = value;
      } else {
        colorMaskBBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_b = 5;</code>
     */
    public Builder setColorMaskB(
        com.caliverse.admin.domain.RabbitMq.message.Color.Builder builderForValue) {
      if (colorMaskBBuilder_ == null) {
        colorMaskB_ = builderForValue.build();
      } else {
        colorMaskBBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_b = 5;</code>
     */
    public Builder mergeColorMaskB(com.caliverse.admin.domain.RabbitMq.message.Color value) {
      if (colorMaskBBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0) &&
          colorMaskB_ != null &&
          colorMaskB_ != com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance()) {
          getColorMaskBBuilder().mergeFrom(value);
        } else {
          colorMaskB_ = value;
        }
      } else {
        colorMaskBBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_b = 5;</code>
     */
    public Builder clearColorMaskB() {
      bitField0_ = (bitField0_ & ~0x00000010);
      colorMaskB_ = null;
      if (colorMaskBBuilder_ != null) {
        colorMaskBBuilder_.dispose();
        colorMaskBBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Color color_mask_b = 5;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.Color.Builder getColorMaskBBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getColorMaskBFieldBuilder().getBuilder();
    }
    /**
     * <code>.Color color_mask_b = 5;</code>
     */
    public com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder getColorMaskBOrBuilder() {
      if (colorMaskBBuilder_ != null) {
        return colorMaskBBuilder_.getMessageOrBuilder();
      } else {
        return colorMaskB_ == null ?
            com.caliverse.admin.domain.RabbitMq.message.Color.getDefaultInstance() : colorMaskB_;
      }
    }
    /**
     * <code>.Color color_mask_b = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder> 
        getColorMaskBFieldBuilder() {
      if (colorMaskBBuilder_ == null) {
        colorMaskBBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.caliverse.admin.domain.RabbitMq.message.Color, com.caliverse.admin.domain.RabbitMq.message.Color.Builder, com.caliverse.admin.domain.RabbitMq.message.ColorOrBuilder>(
                getColorMaskB(),
                getParentForChildren(),
                isClean());
        colorMaskB_ = null;
      }
      return colorMaskBBuilder_;
    }
    @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:UgcFrameworkMaterialInfo)
  }

  // @@protoc_insertion_point(class_scope:UgcFrameworkMaterialInfo)
  private static final com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo();
  }

  public static com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<UgcFrameworkMaterialInfo>
      PARSER = new com.google.protobuf.AbstractParser<UgcFrameworkMaterialInfo>() {
    @java.lang.Override
    public UgcFrameworkMaterialInfo parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public com.caliverse.admin.domain.RabbitMq.message.UgcFrameworkMaterialInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

