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

package com.ywt.gapi.sf;

/**
 * <pre>
 *查询时效和费用
 *时效查询接口查询类型参数如下8种类型。
 *1:对应查询网点-网点的时效标准,这时候会认为srcCode,destCode是网点
 *2:对应查询行政区-行政区的时效标准,这时候会认为srcCode,destCode是行政区域id
 *3:行政区-港澳台的时效标准，这时候会认为srcCode是行政区域id,destCode是港澳台城市代码
 *4:对应港澳台-行政区时效标准, 这时候会认为srcCode是港澳台城市代码,destCode是行政区域id 
 *5:对应行政区-城市(国外)主要为国际流向时效查询,这时候会认为srcCode是行政区域id，destCode是国外国家代码
 *6:对应网点-行政区时效标准，这时候会认为srcCode是网点代码,destCode是行政区域id 
 *7:对应城市-城市(郊区)时效标准，这时候会认为srcCode是大陆地区城市代码,destCode是大陆地区城市代码
 *10:对应网点-城市(郊区)时效标准，这时候会认为srcCode是网点代码,destCode是大陆地区城市代码
 * </pre>
 *
 * Protobuf type {@code com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest}
 */
public final class CalcTimePromiseAndFreightRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest)
    CalcTimePromiseAndFreightRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CalcTimePromiseAndFreightRequest.newBuilder() to construct.
  private CalcTimePromiseAndFreightRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CalcTimePromiseAndFreightRequest() {
    srcCode_ = "";
    destCode_ = "";
    consignTime_ = "";
    productType_ = "";
  }

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

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

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

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

            destCode_ = s;
            break;
          }
          case 33: {

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

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

            productType_ = s;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ywt.gapi.sf.SfProto.internal_static_com_ywt_gapi_sf_CalcTimePromiseAndFreightRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ywt.gapi.sf.SfProto.internal_static_com_ywt_gapi_sf_CalcTimePromiseAndFreightRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest.class, com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest.Builder.class);
  }

  public static final int QUERYTYPE_FIELD_NUMBER = 1;
  private int queryType_;
  /**
   * <pre>
   *[R]查询类型（1,2,3,4,5,6,7,10）含义参照文档类型描述
   * </pre>
   *
   * <code>int32 queryType = 1;</code>
   * @return The queryType.
   */
  @java.lang.Override
  public int getQueryType() {
    return queryType_;
  }

  public static final int SRCCODE_FIELD_NUMBER = 2;
  private volatile java.lang.Object srcCode_;
  /**
   * <pre>
   *[R]始发编码
   * </pre>
   *
   * <code>string srcCode = 2;</code>
   * @return The srcCode.
   */
  @java.lang.Override
  public java.lang.String getSrcCode() {
    java.lang.Object ref = srcCode_;
    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();
      srcCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *[R]始发编码
   * </pre>
   *
   * <code>string srcCode = 2;</code>
   * @return The bytes for srcCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getSrcCodeBytes() {
    java.lang.Object ref = srcCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      srcCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DESTCODE_FIELD_NUMBER = 3;
  private volatile java.lang.Object destCode_;
  /**
   * <pre>
   *[R]目的编码
   * </pre>
   *
   * <code>string destCode = 3;</code>
   * @return The destCode.
   */
  @java.lang.Override
  public java.lang.String getDestCode() {
    java.lang.Object ref = destCode_;
    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();
      destCode_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *[R]目的编码
   * </pre>
   *
   * <code>string destCode = 3;</code>
   * @return The bytes for destCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getDestCodeBytes() {
    java.lang.Object ref = destCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      destCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int WEIGHT_FIELD_NUMBER = 4;
  private double weight_;
  /**
   * <pre>
   *[R]重量
   * </pre>
   *
   * <code>double weight = 4;</code>
   * @return The weight.
   */
  @java.lang.Override
  public double getWeight() {
    return weight_;
  }

  public static final int CONSIGNTIME_FIELD_NUMBER = 5;
  private volatile java.lang.Object consignTime_;
  /**
   * <pre>
   *[R]寄件时间 时间格式：yyyy-MM-dd HH:mm:ss  如：2016-04-20 19:03:12
   * </pre>
   *
   * <code>string consignTime = 5;</code>
   * @return The consignTime.
   */
  @java.lang.Override
  public java.lang.String getConsignTime() {
    java.lang.Object ref = consignTime_;
    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();
      consignTime_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *[R]寄件时间 时间格式：yyyy-MM-dd HH:mm:ss  如：2016-04-20 19:03:12
   * </pre>
   *
   * <code>string consignTime = 5;</code>
   * @return The bytes for consignTime.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getConsignTimeBytes() {
    java.lang.Object ref = consignTime_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      consignTime_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PRODUCTTYPE_FIELD_NUMBER = 6;
  private volatile java.lang.Object productType_;
  /**
   * <pre>
   *[O]时效产品类型（目前只支持T1,T4,T6,T8,SP4，只能输一种）
   * </pre>
   *
   * <code>string productType = 6;</code>
   * @return The productType.
   */
  @java.lang.Override
  public java.lang.String getProductType() {
    java.lang.Object ref = productType_;
    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();
      productType_ = s;
      return s;
    }
  }
  /**
   * <pre>
   *[O]时效产品类型（目前只支持T1,T4,T6,T8,SP4，只能输一种）
   * </pre>
   *
   * <code>string productType = 6;</code>
   * @return The bytes for productType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getProductTypeBytes() {
    java.lang.Object ref = productType_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      productType_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (queryType_ != 0) {
      output.writeInt32(1, queryType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, srcCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destCode_);
    }
    if (java.lang.Double.doubleToRawLongBits(weight_) != 0) {
      output.writeDouble(4, weight_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consignTime_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, consignTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productType_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, productType_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (queryType_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, queryType_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, srcCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destCode_);
    }
    if (java.lang.Double.doubleToRawLongBits(weight_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(4, weight_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consignTime_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, consignTime_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(productType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, productType_);
    }
    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.ywt.gapi.sf.CalcTimePromiseAndFreightRequest)) {
      return super.equals(obj);
    }
    com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest other = (com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest) obj;

    if (getQueryType()
        != other.getQueryType()) return false;
    if (!getSrcCode()
        .equals(other.getSrcCode())) return false;
    if (!getDestCode()
        .equals(other.getDestCode())) return false;
    if (java.lang.Double.doubleToLongBits(getWeight())
        != java.lang.Double.doubleToLongBits(
            other.getWeight())) return false;
    if (!getConsignTime()
        .equals(other.getConsignTime())) return false;
    if (!getProductType()
        .equals(other.getProductType())) 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) + QUERYTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getQueryType();
    hash = (37 * hash) + SRCCODE_FIELD_NUMBER;
    hash = (53 * hash) + getSrcCode().hashCode();
    hash = (37 * hash) + DESTCODE_FIELD_NUMBER;
    hash = (53 * hash) + getDestCode().hashCode();
    hash = (37 * hash) + WEIGHT_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getWeight()));
    hash = (37 * hash) + CONSIGNTIME_FIELD_NUMBER;
    hash = (53 * hash) + getConsignTime().hashCode();
    hash = (37 * hash) + PRODUCTTYPE_FIELD_NUMBER;
    hash = (53 * hash) + getProductType().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest 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.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest 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.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest 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.ywt.gapi.sf.CalcTimePromiseAndFreightRequest 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;
  }
  /**
   * <pre>
   *查询时效和费用
   *时效查询接口查询类型参数如下8种类型。
   *1:对应查询网点-网点的时效标准,这时候会认为srcCode,destCode是网点
   *2:对应查询行政区-行政区的时效标准,这时候会认为srcCode,destCode是行政区域id
   *3:行政区-港澳台的时效标准，这时候会认为srcCode是行政区域id,destCode是港澳台城市代码
   *4:对应港澳台-行政区时效标准, 这时候会认为srcCode是港澳台城市代码,destCode是行政区域id 
   *5:对应行政区-城市(国外)主要为国际流向时效查询,这时候会认为srcCode是行政区域id，destCode是国外国家代码
   *6:对应网点-行政区时效标准，这时候会认为srcCode是网点代码,destCode是行政区域id 
   *7:对应城市-城市(郊区)时效标准，这时候会认为srcCode是大陆地区城市代码,destCode是大陆地区城市代码
   *10:对应网点-城市(郊区)时效标准，这时候会认为srcCode是网点代码,destCode是大陆地区城市代码
   * </pre>
   *
   * Protobuf type {@code com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest)
      com.ywt.gapi.sf.CalcTimePromiseAndFreightRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ywt.gapi.sf.SfProto.internal_static_com_ywt_gapi_sf_CalcTimePromiseAndFreightRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ywt.gapi.sf.SfProto.internal_static_com_ywt_gapi_sf_CalcTimePromiseAndFreightRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest.class, com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest.Builder.class);
    }

    // Construct using com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest.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();
      queryType_ = 0;

      srcCode_ = "";

      destCode_ = "";

      weight_ = 0D;

      consignTime_ = "";

      productType_ = "";

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ywt.gapi.sf.SfProto.internal_static_com_ywt_gapi_sf_CalcTimePromiseAndFreightRequest_descriptor;
    }

    @java.lang.Override
    public com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest getDefaultInstanceForType() {
      return com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest.getDefaultInstance();
    }

    @java.lang.Override
    public com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest build() {
      com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest buildPartial() {
      com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest result = new com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest(this);
      result.queryType_ = queryType_;
      result.srcCode_ = srcCode_;
      result.destCode_ = destCode_;
      result.weight_ = weight_;
      result.consignTime_ = consignTime_;
      result.productType_ = productType_;
      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.ywt.gapi.sf.CalcTimePromiseAndFreightRequest) {
        return mergeFrom((com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest other) {
      if (other == com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest.getDefaultInstance()) return this;
      if (other.getQueryType() != 0) {
        setQueryType(other.getQueryType());
      }
      if (!other.getSrcCode().isEmpty()) {
        srcCode_ = other.srcCode_;
        onChanged();
      }
      if (!other.getDestCode().isEmpty()) {
        destCode_ = other.destCode_;
        onChanged();
      }
      if (other.getWeight() != 0D) {
        setWeight(other.getWeight());
      }
      if (!other.getConsignTime().isEmpty()) {
        consignTime_ = other.consignTime_;
        onChanged();
      }
      if (!other.getProductType().isEmpty()) {
        productType_ = other.productType_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int queryType_ ;
    /**
     * <pre>
     *[R]查询类型（1,2,3,4,5,6,7,10）含义参照文档类型描述
     * </pre>
     *
     * <code>int32 queryType = 1;</code>
     * @return The queryType.
     */
    @java.lang.Override
    public int getQueryType() {
      return queryType_;
    }
    /**
     * <pre>
     *[R]查询类型（1,2,3,4,5,6,7,10）含义参照文档类型描述
     * </pre>
     *
     * <code>int32 queryType = 1;</code>
     * @param value The queryType to set.
     * @return This builder for chaining.
     */
    public Builder setQueryType(int value) {
      
      queryType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[R]查询类型（1,2,3,4,5,6,7,10）含义参照文档类型描述
     * </pre>
     *
     * <code>int32 queryType = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearQueryType() {
      
      queryType_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object srcCode_ = "";
    /**
     * <pre>
     *[R]始发编码
     * </pre>
     *
     * <code>string srcCode = 2;</code>
     * @return The srcCode.
     */
    public java.lang.String getSrcCode() {
      java.lang.Object ref = srcCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        srcCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *[R]始发编码
     * </pre>
     *
     * <code>string srcCode = 2;</code>
     * @return The bytes for srcCode.
     */
    public com.google.protobuf.ByteString
        getSrcCodeBytes() {
      java.lang.Object ref = srcCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        srcCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *[R]始发编码
     * </pre>
     *
     * <code>string srcCode = 2;</code>
     * @param value The srcCode to set.
     * @return This builder for chaining.
     */
    public Builder setSrcCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      srcCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[R]始发编码
     * </pre>
     *
     * <code>string srcCode = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearSrcCode() {
      
      srcCode_ = getDefaultInstance().getSrcCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[R]始发编码
     * </pre>
     *
     * <code>string srcCode = 2;</code>
     * @param value The bytes for srcCode to set.
     * @return This builder for chaining.
     */
    public Builder setSrcCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      srcCode_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object destCode_ = "";
    /**
     * <pre>
     *[R]目的编码
     * </pre>
     *
     * <code>string destCode = 3;</code>
     * @return The destCode.
     */
    public java.lang.String getDestCode() {
      java.lang.Object ref = destCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        destCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *[R]目的编码
     * </pre>
     *
     * <code>string destCode = 3;</code>
     * @return The bytes for destCode.
     */
    public com.google.protobuf.ByteString
        getDestCodeBytes() {
      java.lang.Object ref = destCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        destCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *[R]目的编码
     * </pre>
     *
     * <code>string destCode = 3;</code>
     * @param value The destCode to set.
     * @return This builder for chaining.
     */
    public Builder setDestCode(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      destCode_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[R]目的编码
     * </pre>
     *
     * <code>string destCode = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearDestCode() {
      
      destCode_ = getDefaultInstance().getDestCode();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[R]目的编码
     * </pre>
     *
     * <code>string destCode = 3;</code>
     * @param value The bytes for destCode to set.
     * @return This builder for chaining.
     */
    public Builder setDestCodeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      destCode_ = value;
      onChanged();
      return this;
    }

    private double weight_ ;
    /**
     * <pre>
     *[R]重量
     * </pre>
     *
     * <code>double weight = 4;</code>
     * @return The weight.
     */
    @java.lang.Override
    public double getWeight() {
      return weight_;
    }
    /**
     * <pre>
     *[R]重量
     * </pre>
     *
     * <code>double weight = 4;</code>
     * @param value The weight to set.
     * @return This builder for chaining.
     */
    public Builder setWeight(double value) {
      
      weight_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[R]重量
     * </pre>
     *
     * <code>double weight = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearWeight() {
      
      weight_ = 0D;
      onChanged();
      return this;
    }

    private java.lang.Object consignTime_ = "";
    /**
     * <pre>
     *[R]寄件时间 时间格式：yyyy-MM-dd HH:mm:ss  如：2016-04-20 19:03:12
     * </pre>
     *
     * <code>string consignTime = 5;</code>
     * @return The consignTime.
     */
    public java.lang.String getConsignTime() {
      java.lang.Object ref = consignTime_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        consignTime_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *[R]寄件时间 时间格式：yyyy-MM-dd HH:mm:ss  如：2016-04-20 19:03:12
     * </pre>
     *
     * <code>string consignTime = 5;</code>
     * @return The bytes for consignTime.
     */
    public com.google.protobuf.ByteString
        getConsignTimeBytes() {
      java.lang.Object ref = consignTime_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        consignTime_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *[R]寄件时间 时间格式：yyyy-MM-dd HH:mm:ss  如：2016-04-20 19:03:12
     * </pre>
     *
     * <code>string consignTime = 5;</code>
     * @param value The consignTime to set.
     * @return This builder for chaining.
     */
    public Builder setConsignTime(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      consignTime_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[R]寄件时间 时间格式：yyyy-MM-dd HH:mm:ss  如：2016-04-20 19:03:12
     * </pre>
     *
     * <code>string consignTime = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearConsignTime() {
      
      consignTime_ = getDefaultInstance().getConsignTime();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[R]寄件时间 时间格式：yyyy-MM-dd HH:mm:ss  如：2016-04-20 19:03:12
     * </pre>
     *
     * <code>string consignTime = 5;</code>
     * @param value The bytes for consignTime to set.
     * @return This builder for chaining.
     */
    public Builder setConsignTimeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      consignTime_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object productType_ = "";
    /**
     * <pre>
     *[O]时效产品类型（目前只支持T1,T4,T6,T8,SP4，只能输一种）
     * </pre>
     *
     * <code>string productType = 6;</code>
     * @return The productType.
     */
    public java.lang.String getProductType() {
      java.lang.Object ref = productType_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        productType_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     *[O]时效产品类型（目前只支持T1,T4,T6,T8,SP4，只能输一种）
     * </pre>
     *
     * <code>string productType = 6;</code>
     * @return The bytes for productType.
     */
    public com.google.protobuf.ByteString
        getProductTypeBytes() {
      java.lang.Object ref = productType_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        productType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     *[O]时效产品类型（目前只支持T1,T4,T6,T8,SP4，只能输一种）
     * </pre>
     *
     * <code>string productType = 6;</code>
     * @param value The productType to set.
     * @return This builder for chaining.
     */
    public Builder setProductType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      productType_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[O]时效产品类型（目前只支持T1,T4,T6,T8,SP4，只能输一种）
     * </pre>
     *
     * <code>string productType = 6;</code>
     * @return This builder for chaining.
     */
    public Builder clearProductType() {
      
      productType_ = getDefaultInstance().getProductType();
      onChanged();
      return this;
    }
    /**
     * <pre>
     *[O]时效产品类型（目前只支持T1,T4,T6,T8,SP4，只能输一种）
     * </pre>
     *
     * <code>string productType = 6;</code>
     * @param value The bytes for productType to set.
     * @return This builder for chaining.
     */
    public Builder setProductTypeBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      productType_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest)
  }

  // @@protoc_insertion_point(class_scope:com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest)
  private static final com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest();
  }

  public static com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.ywt.gapi.sf.CalcTimePromiseAndFreightRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

