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

com.clickzetta.rm.proto.RMAppMeta Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: rm_app_meta.proto

package com.clickzetta.rm.proto;

/**
 * Protobuf type {@code com.clickzetta.rm.RMAppMeta}
 */
public final class RMAppMeta extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.clickzetta.rm.RMAppMeta)
    RMAppMetaOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RMAppMeta.newBuilder() to construct.
  private RMAppMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RMAppMeta() {
    appId_ = "";
    appName_ = "";
    appState_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RMAppMeta(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    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();
            bitField0_ |= 0x00000001;
            appId_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();
            bitField0_ |= 0x00000002;
            appName_ = s;
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            priority_ = input.readInt32();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            vcId_ = input.readInt64();
            break;
          }
          case 40: {
            int rawValue = input.readEnum();
            bitField0_ |= 0x00000010;
            appState_ = rawValue;
            break;
          }
          case 48: {
            bitField0_ |= 0x00000020;
            submitTime_ = input.readInt64();
            break;
          }
          case 56: {
            bitField0_ |= 0x00000040;
            finishTime_ = input.readInt64();
            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.clickzetta.rm.proto.RMAppProtos.internal_static_com_clickzetta_rm_RMAppMeta_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.clickzetta.rm.proto.RMAppProtos.internal_static_com_clickzetta_rm_RMAppMeta_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.clickzetta.rm.proto.RMAppMeta.class, com.clickzetta.rm.proto.RMAppMeta.Builder.class);
  }

  private int bitField0_;
  public static final int APP_ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object appId_;
  /**
   * optional string app_id = 1;
   * @return Whether the appId field is set.
   */
  @java.lang.Override
  public boolean hasAppId() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional string app_id = 1;
   * @return The appId.
   */
  @java.lang.Override
  public java.lang.String getAppId() {
    java.lang.Object ref = appId_;
    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();
      appId_ = s;
      return s;
    }
  }
  /**
   * optional string app_id = 1;
   * @return The bytes for appId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAppIdBytes() {
    java.lang.Object ref = appId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      appId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int APP_NAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object appName_;
  /**
   * optional string app_name = 2;
   * @return Whether the appName field is set.
   */
  @java.lang.Override
  public boolean hasAppName() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string app_name = 2;
   * @return The appName.
   */
  @java.lang.Override
  public java.lang.String getAppName() {
    java.lang.Object ref = appName_;
    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();
      appName_ = s;
      return s;
    }
  }
  /**
   * optional string app_name = 2;
   * @return The bytes for appName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAppNameBytes() {
    java.lang.Object ref = appName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      appName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRIORITY_FIELD_NUMBER = 3;
  private int priority_;
  /**
   * optional int32 priority = 3;
   * @return Whether the priority field is set.
   */
  @java.lang.Override
  public boolean hasPriority() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional int32 priority = 3;
   * @return The priority.
   */
  @java.lang.Override
  public int getPriority() {
    return priority_;
  }

  public static final int VC_ID_FIELD_NUMBER = 4;
  private long vcId_;
  /**
   * optional int64 vc_id = 4;
   * @return Whether the vcId field is set.
   */
  @java.lang.Override
  public boolean hasVcId() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional int64 vc_id = 4;
   * @return The vcId.
   */
  @java.lang.Override
  public long getVcId() {
    return vcId_;
  }

  public static final int APP_STATE_FIELD_NUMBER = 5;
  private int appState_;
  /**
   * optional .com.clickzetta.rm.RMAppState app_state = 5;
   * @return Whether the appState field is set.
   */
  @java.lang.Override public boolean hasAppState() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional .com.clickzetta.rm.RMAppState app_state = 5;
   * @return The enum numeric value on the wire for appState.
   */
  @java.lang.Override public int getAppStateValue() {
    return appState_;
  }
  /**
   * optional .com.clickzetta.rm.RMAppState app_state = 5;
   * @return The appState.
   */
  @java.lang.Override public com.clickzetta.rm.proto.RMAppState getAppState() {
    @SuppressWarnings("deprecation")
    com.clickzetta.rm.proto.RMAppState result = com.clickzetta.rm.proto.RMAppState.valueOf(appState_);
    return result == null ? com.clickzetta.rm.proto.RMAppState.UNRECOGNIZED : result;
  }

  public static final int SUBMIT_TIME_FIELD_NUMBER = 6;
  private long submitTime_;
  /**
   * optional int64 submit_time = 6;
   * @return Whether the submitTime field is set.
   */
  @java.lang.Override
  public boolean hasSubmitTime() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional int64 submit_time = 6;
   * @return The submitTime.
   */
  @java.lang.Override
  public long getSubmitTime() {
    return submitTime_;
  }

  public static final int FINISH_TIME_FIELD_NUMBER = 7;
  private long finishTime_;
  /**
   * optional int64 finish_time = 7;
   * @return Whether the finishTime field is set.
   */
  @java.lang.Override
  public boolean hasFinishTime() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional int64 finish_time = 7;
   * @return The finishTime.
   */
  @java.lang.Override
  public long getFinishTime() {
    return finishTime_;
  }

  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 (((bitField0_ & 0x00000001) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, appId_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, appName_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeInt32(3, priority_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeInt64(4, vcId_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeEnum(5, appState_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeInt64(6, submitTime_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeInt64(7, finishTime_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, appId_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, appName_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, priority_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, vcId_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(5, appState_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(6, submitTime_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(7, finishTime_);
    }
    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.clickzetta.rm.proto.RMAppMeta)) {
      return super.equals(obj);
    }
    com.clickzetta.rm.proto.RMAppMeta other = (com.clickzetta.rm.proto.RMAppMeta) obj;

    if (hasAppId() != other.hasAppId()) return false;
    if (hasAppId()) {
      if (!getAppId()
          .equals(other.getAppId())) return false;
    }
    if (hasAppName() != other.hasAppName()) return false;
    if (hasAppName()) {
      if (!getAppName()
          .equals(other.getAppName())) return false;
    }
    if (hasPriority() != other.hasPriority()) return false;
    if (hasPriority()) {
      if (getPriority()
          != other.getPriority()) return false;
    }
    if (hasVcId() != other.hasVcId()) return false;
    if (hasVcId()) {
      if (getVcId()
          != other.getVcId()) return false;
    }
    if (hasAppState() != other.hasAppState()) return false;
    if (hasAppState()) {
      if (appState_ != other.appState_) return false;
    }
    if (hasSubmitTime() != other.hasSubmitTime()) return false;
    if (hasSubmitTime()) {
      if (getSubmitTime()
          != other.getSubmitTime()) return false;
    }
    if (hasFinishTime() != other.hasFinishTime()) return false;
    if (hasFinishTime()) {
      if (getFinishTime()
          != other.getFinishTime()) 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();
    if (hasAppId()) {
      hash = (37 * hash) + APP_ID_FIELD_NUMBER;
      hash = (53 * hash) + getAppId().hashCode();
    }
    if (hasAppName()) {
      hash = (37 * hash) + APP_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getAppName().hashCode();
    }
    if (hasPriority()) {
      hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
      hash = (53 * hash) + getPriority();
    }
    if (hasVcId()) {
      hash = (37 * hash) + VC_ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getVcId());
    }
    if (hasAppState()) {
      hash = (37 * hash) + APP_STATE_FIELD_NUMBER;
      hash = (53 * hash) + appState_;
    }
    if (hasSubmitTime()) {
      hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getSubmitTime());
    }
    if (hasFinishTime()) {
      hash = (37 * hash) + FINISH_TIME_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getFinishTime());
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.clickzetta.rm.proto.RMAppMeta parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clickzetta.rm.proto.RMAppMeta parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.clickzetta.rm.proto.RMAppMeta parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clickzetta.rm.proto.RMAppMeta parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.clickzetta.rm.proto.RMAppMeta parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.clickzetta.rm.proto.RMAppMeta parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.clickzetta.rm.proto.RMAppMeta parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.clickzetta.rm.proto.RMAppMeta 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.clickzetta.rm.proto.RMAppMeta parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.clickzetta.rm.proto.RMAppMeta 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.clickzetta.rm.proto.RMAppMeta parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.clickzetta.rm.proto.RMAppMeta 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.clickzetta.rm.proto.RMAppMeta 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 com.clickzetta.rm.RMAppMeta}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:com.clickzetta.rm.RMAppMeta)
      com.clickzetta.rm.proto.RMAppMetaOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.clickzetta.rm.proto.RMAppProtos.internal_static_com_clickzetta_rm_RMAppMeta_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.clickzetta.rm.proto.RMAppProtos.internal_static_com_clickzetta_rm_RMAppMeta_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.clickzetta.rm.proto.RMAppMeta.class, com.clickzetta.rm.proto.RMAppMeta.Builder.class);
    }

    // Construct using com.clickzetta.rm.proto.RMAppMeta.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();
      appId_ = "";
      bitField0_ = (bitField0_ & ~0x00000001);
      appName_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      priority_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      vcId_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000008);
      appState_ = 0;
      bitField0_ = (bitField0_ & ~0x00000010);
      submitTime_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000020);
      finishTime_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000040);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.clickzetta.rm.proto.RMAppProtos.internal_static_com_clickzetta_rm_RMAppMeta_descriptor;
    }

    @java.lang.Override
    public com.clickzetta.rm.proto.RMAppMeta getDefaultInstanceForType() {
      return com.clickzetta.rm.proto.RMAppMeta.getDefaultInstance();
    }

    @java.lang.Override
    public com.clickzetta.rm.proto.RMAppMeta build() {
      com.clickzetta.rm.proto.RMAppMeta result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.clickzetta.rm.proto.RMAppMeta buildPartial() {
      com.clickzetta.rm.proto.RMAppMeta result = new com.clickzetta.rm.proto.RMAppMeta(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.appId_ = appId_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.appName_ = appName_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.priority_ = priority_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.vcId_ = vcId_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        to_bitField0_ |= 0x00000010;
      }
      result.appState_ = appState_;
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.submitTime_ = submitTime_;
        to_bitField0_ |= 0x00000020;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.finishTime_ = finishTime_;
        to_bitField0_ |= 0x00000040;
      }
      result.bitField0_ = to_bitField0_;
      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.clickzetta.rm.proto.RMAppMeta) {
        return mergeFrom((com.clickzetta.rm.proto.RMAppMeta)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.clickzetta.rm.proto.RMAppMeta other) {
      if (other == com.clickzetta.rm.proto.RMAppMeta.getDefaultInstance()) return this;
      if (other.hasAppId()) {
        bitField0_ |= 0x00000001;
        appId_ = other.appId_;
        onChanged();
      }
      if (other.hasAppName()) {
        bitField0_ |= 0x00000002;
        appName_ = other.appName_;
        onChanged();
      }
      if (other.hasPriority()) {
        setPriority(other.getPriority());
      }
      if (other.hasVcId()) {
        setVcId(other.getVcId());
      }
      if (other.hasAppState()) {
        setAppState(other.getAppState());
      }
      if (other.hasSubmitTime()) {
        setSubmitTime(other.getSubmitTime());
      }
      if (other.hasFinishTime()) {
        setFinishTime(other.getFinishTime());
      }
      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.clickzetta.rm.proto.RMAppMeta parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.clickzetta.rm.proto.RMAppMeta) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object appId_ = "";
    /**
     * optional string app_id = 1;
     * @return Whether the appId field is set.
     */
    public boolean hasAppId() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional string app_id = 1;
     * @return The appId.
     */
    public java.lang.String getAppId() {
      java.lang.Object ref = appId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        appId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string app_id = 1;
     * @return The bytes for appId.
     */
    public com.google.protobuf.ByteString
        getAppIdBytes() {
      java.lang.Object ref = appId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        appId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string app_id = 1;
     * @param value The appId to set.
     * @return This builder for chaining.
     */
    public Builder setAppId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      appId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string app_id = 1;
     * @return This builder for chaining.
     */
    public Builder clearAppId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      appId_ = getDefaultInstance().getAppId();
      onChanged();
      return this;
    }
    /**
     * optional string app_id = 1;
     * @param value The bytes for appId to set.
     * @return This builder for chaining.
     */
    public Builder setAppIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000001;
      appId_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object appName_ = "";
    /**
     * optional string app_name = 2;
     * @return Whether the appName field is set.
     */
    public boolean hasAppName() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string app_name = 2;
     * @return The appName.
     */
    public java.lang.String getAppName() {
      java.lang.Object ref = appName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        appName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string app_name = 2;
     * @return The bytes for appName.
     */
    public com.google.protobuf.ByteString
        getAppNameBytes() {
      java.lang.Object ref = appName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        appName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string app_name = 2;
     * @param value The appName to set.
     * @return This builder for chaining.
     */
    public Builder setAppName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      appName_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string app_name = 2;
     * @return This builder for chaining.
     */
    public Builder clearAppName() {
      bitField0_ = (bitField0_ & ~0x00000002);
      appName_ = getDefaultInstance().getAppName();
      onChanged();
      return this;
    }
    /**
     * optional string app_name = 2;
     * @param value The bytes for appName to set.
     * @return This builder for chaining.
     */
    public Builder setAppNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      bitField0_ |= 0x00000002;
      appName_ = value;
      onChanged();
      return this;
    }

    private int priority_ ;
    /**
     * optional int32 priority = 3;
     * @return Whether the priority field is set.
     */
    @java.lang.Override
    public boolean hasPriority() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional int32 priority = 3;
     * @return The priority.
     */
    @java.lang.Override
    public int getPriority() {
      return priority_;
    }
    /**
     * optional int32 priority = 3;
     * @param value The priority to set.
     * @return This builder for chaining.
     */
    public Builder setPriority(int value) {
      bitField0_ |= 0x00000004;
      priority_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 priority = 3;
     * @return This builder for chaining.
     */
    public Builder clearPriority() {
      bitField0_ = (bitField0_ & ~0x00000004);
      priority_ = 0;
      onChanged();
      return this;
    }

    private long vcId_ ;
    /**
     * optional int64 vc_id = 4;
     * @return Whether the vcId field is set.
     */
    @java.lang.Override
    public boolean hasVcId() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional int64 vc_id = 4;
     * @return The vcId.
     */
    @java.lang.Override
    public long getVcId() {
      return vcId_;
    }
    /**
     * optional int64 vc_id = 4;
     * @param value The vcId to set.
     * @return This builder for chaining.
     */
    public Builder setVcId(long value) {
      bitField0_ |= 0x00000008;
      vcId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 vc_id = 4;
     * @return This builder for chaining.
     */
    public Builder clearVcId() {
      bitField0_ = (bitField0_ & ~0x00000008);
      vcId_ = 0L;
      onChanged();
      return this;
    }

    private int appState_ = 0;
    /**
     * optional .com.clickzetta.rm.RMAppState app_state = 5;
     * @return Whether the appState field is set.
     */
    @java.lang.Override public boolean hasAppState() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional .com.clickzetta.rm.RMAppState app_state = 5;
     * @return The enum numeric value on the wire for appState.
     */
    @java.lang.Override public int getAppStateValue() {
      return appState_;
    }
    /**
     * optional .com.clickzetta.rm.RMAppState app_state = 5;
     * @param value The enum numeric value on the wire for appState to set.
     * @return This builder for chaining.
     */
    public Builder setAppStateValue(int value) {
      bitField0_ |= 0x00000010;
      appState_ = value;
      onChanged();
      return this;
    }
    /**
     * optional .com.clickzetta.rm.RMAppState app_state = 5;
     * @return The appState.
     */
    @java.lang.Override
    public com.clickzetta.rm.proto.RMAppState getAppState() {
      @SuppressWarnings("deprecation")
      com.clickzetta.rm.proto.RMAppState result = com.clickzetta.rm.proto.RMAppState.valueOf(appState_);
      return result == null ? com.clickzetta.rm.proto.RMAppState.UNRECOGNIZED : result;
    }
    /**
     * optional .com.clickzetta.rm.RMAppState app_state = 5;
     * @param value The appState to set.
     * @return This builder for chaining.
     */
    public Builder setAppState(com.clickzetta.rm.proto.RMAppState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000010;
      appState_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * optional .com.clickzetta.rm.RMAppState app_state = 5;
     * @return This builder for chaining.
     */
    public Builder clearAppState() {
      bitField0_ = (bitField0_ & ~0x00000010);
      appState_ = 0;
      onChanged();
      return this;
    }

    private long submitTime_ ;
    /**
     * optional int64 submit_time = 6;
     * @return Whether the submitTime field is set.
     */
    @java.lang.Override
    public boolean hasSubmitTime() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional int64 submit_time = 6;
     * @return The submitTime.
     */
    @java.lang.Override
    public long getSubmitTime() {
      return submitTime_;
    }
    /**
     * optional int64 submit_time = 6;
     * @param value The submitTime to set.
     * @return This builder for chaining.
     */
    public Builder setSubmitTime(long value) {
      bitField0_ |= 0x00000020;
      submitTime_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 submit_time = 6;
     * @return This builder for chaining.
     */
    public Builder clearSubmitTime() {
      bitField0_ = (bitField0_ & ~0x00000020);
      submitTime_ = 0L;
      onChanged();
      return this;
    }

    private long finishTime_ ;
    /**
     * optional int64 finish_time = 7;
     * @return Whether the finishTime field is set.
     */
    @java.lang.Override
    public boolean hasFinishTime() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional int64 finish_time = 7;
     * @return The finishTime.
     */
    @java.lang.Override
    public long getFinishTime() {
      return finishTime_;
    }
    /**
     * optional int64 finish_time = 7;
     * @param value The finishTime to set.
     * @return This builder for chaining.
     */
    public Builder setFinishTime(long value) {
      bitField0_ |= 0x00000040;
      finishTime_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 finish_time = 7;
     * @return This builder for chaining.
     */
    public Builder clearFinishTime() {
      bitField0_ = (bitField0_ & ~0x00000040);
      finishTime_ = 0L;
      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:com.clickzetta.rm.RMAppMeta)
  }

  // @@protoc_insertion_point(class_scope:com.clickzetta.rm.RMAppMeta)
  private static final com.clickzetta.rm.proto.RMAppMeta DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.clickzetta.rm.proto.RMAppMeta();
  }

  public static com.clickzetta.rm.proto.RMAppMeta getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy