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

com.pingcap.tidb.tipb.ChecksumRequest Maven / Gradle / Ivy

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

package com.pingcap.tidb.tipb;

/**
 * Protobuf type {@code tipb.ChecksumRequest}
 */
public  final class ChecksumRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tipb.ChecksumRequest)
    ChecksumRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ChecksumRequest.newBuilder() to construct.
  private ChecksumRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ChecksumRequest() {
    startTsFallback_ = 0L;
    scanOn_ = 0;
    algorithm_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ChecksumRequest(
      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;
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 8: {
            bitField0_ |= 0x00000001;
            startTsFallback_ = input.readUInt64();
            break;
          }
          case 16: {
            int rawValue = input.readEnum();
            com.pingcap.tidb.tipb.ChecksumScanOn value = com.pingcap.tidb.tipb.ChecksumScanOn.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(2, rawValue);
            } else {
              bitField0_ |= 0x00000002;
              scanOn_ = rawValue;
            }
            break;
          }
          case 24: {
            int rawValue = input.readEnum();
            com.pingcap.tidb.tipb.ChecksumAlgorithm value = com.pingcap.tidb.tipb.ChecksumAlgorithm.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(3, rawValue);
            } else {
              bitField0_ |= 0x00000004;
              algorithm_ = rawValue;
            }
            break;
          }
          case 34: {
            com.pingcap.tidb.tipb.ChecksumRewriteRule.Builder subBuilder = null;
            if (((bitField0_ & 0x00000008) == 0x00000008)) {
              subBuilder = rule_.toBuilder();
            }
            rule_ = input.readMessage(com.pingcap.tidb.tipb.ChecksumRewriteRule.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(rule_);
              rule_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000008;
            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.pingcap.tidb.tipb.Checksum.internal_static_tipb_ChecksumRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.pingcap.tidb.tipb.Checksum.internal_static_tipb_ChecksumRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.pingcap.tidb.tipb.ChecksumRequest.class, com.pingcap.tidb.tipb.ChecksumRequest.Builder.class);
  }

  private int bitField0_;
  public static final int START_TS_FALLBACK_FIELD_NUMBER = 1;
  private long startTsFallback_;
  /**
   * 
   * Deprecated. Start Ts has been moved to coprocessor.Request.
   * 
* * optional uint64 start_ts_fallback = 1; */ public boolean hasStartTsFallback() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
   * Deprecated. Start Ts has been moved to coprocessor.Request.
   * 
* * optional uint64 start_ts_fallback = 1; */ public long getStartTsFallback() { return startTsFallback_; } public static final int SCAN_ON_FIELD_NUMBER = 2; private int scanOn_; /** * optional .tipb.ChecksumScanOn scan_on = 2 [(.gogoproto.nullable) = false]; */ public boolean hasScanOn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tipb.ChecksumScanOn scan_on = 2 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.ChecksumScanOn getScanOn() { com.pingcap.tidb.tipb.ChecksumScanOn result = com.pingcap.tidb.tipb.ChecksumScanOn.valueOf(scanOn_); return result == null ? com.pingcap.tidb.tipb.ChecksumScanOn.Table : result; } public static final int ALGORITHM_FIELD_NUMBER = 3; private int algorithm_; /** * optional .tipb.ChecksumAlgorithm algorithm = 3 [(.gogoproto.nullable) = false]; */ public boolean hasAlgorithm() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .tipb.ChecksumAlgorithm algorithm = 3 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.ChecksumAlgorithm getAlgorithm() { com.pingcap.tidb.tipb.ChecksumAlgorithm result = com.pingcap.tidb.tipb.ChecksumAlgorithm.valueOf(algorithm_); return result == null ? com.pingcap.tidb.tipb.ChecksumAlgorithm.Crc64_Xor : result; } public static final int RULE_FIELD_NUMBER = 4; private com.pingcap.tidb.tipb.ChecksumRewriteRule rule_; /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public boolean hasRule() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public com.pingcap.tidb.tipb.ChecksumRewriteRule getRule() { return rule_ == null ? com.pingcap.tidb.tipb.ChecksumRewriteRule.getDefaultInstance() : rule_; } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public com.pingcap.tidb.tipb.ChecksumRewriteRuleOrBuilder getRuleOrBuilder() { return rule_ == null ? com.pingcap.tidb.tipb.ChecksumRewriteRule.getDefaultInstance() : rule_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt64(1, startTsFallback_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, scanOn_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, algorithm_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getRule()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTsFallback_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, scanOn_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, algorithm_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRule()); } 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.pingcap.tidb.tipb.ChecksumRequest)) { return super.equals(obj); } com.pingcap.tidb.tipb.ChecksumRequest other = (com.pingcap.tidb.tipb.ChecksumRequest) obj; boolean result = true; result = result && (hasStartTsFallback() == other.hasStartTsFallback()); if (hasStartTsFallback()) { result = result && (getStartTsFallback() == other.getStartTsFallback()); } result = result && (hasScanOn() == other.hasScanOn()); if (hasScanOn()) { result = result && scanOn_ == other.scanOn_; } result = result && (hasAlgorithm() == other.hasAlgorithm()); if (hasAlgorithm()) { result = result && algorithm_ == other.algorithm_; } result = result && (hasRule() == other.hasRule()); if (hasRule()) { result = result && getRule() .equals(other.getRule()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStartTsFallback()) { hash = (37 * hash) + START_TS_FALLBACK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTsFallback()); } if (hasScanOn()) { hash = (37 * hash) + SCAN_ON_FIELD_NUMBER; hash = (53 * hash) + scanOn_; } if (hasAlgorithm()) { hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; hash = (53 * hash) + algorithm_; } if (hasRule()) { hash = (37 * hash) + RULE_FIELD_NUMBER; hash = (53 * hash) + getRule().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.pingcap.tidb.tipb.ChecksumRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.ChecksumRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.ChecksumRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.ChecksumRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.ChecksumRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.ChecksumRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.ChecksumRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.ChecksumRequest 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.pingcap.tidb.tipb.ChecksumRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.ChecksumRequest 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.pingcap.tidb.tipb.ChecksumRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.ChecksumRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.pingcap.tidb.tipb.ChecksumRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 tipb.ChecksumRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tipb.ChecksumRequest) com.pingcap.tidb.tipb.ChecksumRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.pingcap.tidb.tipb.Checksum.internal_static_tipb_ChecksumRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.pingcap.tidb.tipb.Checksum.internal_static_tipb_ChecksumRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pingcap.tidb.tipb.ChecksumRequest.class, com.pingcap.tidb.tipb.ChecksumRequest.Builder.class); } // Construct using com.pingcap.tidb.tipb.ChecksumRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRuleFieldBuilder(); } } public Builder clear() { super.clear(); startTsFallback_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); scanOn_ = 0; bitField0_ = (bitField0_ & ~0x00000002); algorithm_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (ruleBuilder_ == null) { rule_ = null; } else { ruleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.pingcap.tidb.tipb.Checksum.internal_static_tipb_ChecksumRequest_descriptor; } public com.pingcap.tidb.tipb.ChecksumRequest getDefaultInstanceForType() { return com.pingcap.tidb.tipb.ChecksumRequest.getDefaultInstance(); } public com.pingcap.tidb.tipb.ChecksumRequest build() { com.pingcap.tidb.tipb.ChecksumRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.pingcap.tidb.tipb.ChecksumRequest buildPartial() { com.pingcap.tidb.tipb.ChecksumRequest result = new com.pingcap.tidb.tipb.ChecksumRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.startTsFallback_ = startTsFallback_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.scanOn_ = scanOn_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.algorithm_ = algorithm_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (ruleBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = ruleBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.pingcap.tidb.tipb.ChecksumRequest) { return mergeFrom((com.pingcap.tidb.tipb.ChecksumRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.pingcap.tidb.tipb.ChecksumRequest other) { if (other == com.pingcap.tidb.tipb.ChecksumRequest.getDefaultInstance()) return this; if (other.hasStartTsFallback()) { setStartTsFallback(other.getStartTsFallback()); } if (other.hasScanOn()) { setScanOn(other.getScanOn()); } if (other.hasAlgorithm()) { setAlgorithm(other.getAlgorithm()); } if (other.hasRule()) { mergeRule(other.getRule()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.pingcap.tidb.tipb.ChecksumRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.pingcap.tidb.tipb.ChecksumRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long startTsFallback_ ; /** *
     * Deprecated. Start Ts has been moved to coprocessor.Request.
     * 
* * optional uint64 start_ts_fallback = 1; */ public boolean hasStartTsFallback() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * Deprecated. Start Ts has been moved to coprocessor.Request.
     * 
* * optional uint64 start_ts_fallback = 1; */ public long getStartTsFallback() { return startTsFallback_; } /** *
     * Deprecated. Start Ts has been moved to coprocessor.Request.
     * 
* * optional uint64 start_ts_fallback = 1; */ public Builder setStartTsFallback(long value) { bitField0_ |= 0x00000001; startTsFallback_ = value; onChanged(); return this; } /** *
     * Deprecated. Start Ts has been moved to coprocessor.Request.
     * 
* * optional uint64 start_ts_fallback = 1; */ public Builder clearStartTsFallback() { bitField0_ = (bitField0_ & ~0x00000001); startTsFallback_ = 0L; onChanged(); return this; } private int scanOn_ = 0; /** * optional .tipb.ChecksumScanOn scan_on = 2 [(.gogoproto.nullable) = false]; */ public boolean hasScanOn() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .tipb.ChecksumScanOn scan_on = 2 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.ChecksumScanOn getScanOn() { com.pingcap.tidb.tipb.ChecksumScanOn result = com.pingcap.tidb.tipb.ChecksumScanOn.valueOf(scanOn_); return result == null ? com.pingcap.tidb.tipb.ChecksumScanOn.Table : result; } /** * optional .tipb.ChecksumScanOn scan_on = 2 [(.gogoproto.nullable) = false]; */ public Builder setScanOn(com.pingcap.tidb.tipb.ChecksumScanOn value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; scanOn_ = value.getNumber(); onChanged(); return this; } /** * optional .tipb.ChecksumScanOn scan_on = 2 [(.gogoproto.nullable) = false]; */ public Builder clearScanOn() { bitField0_ = (bitField0_ & ~0x00000002); scanOn_ = 0; onChanged(); return this; } private int algorithm_ = 0; /** * optional .tipb.ChecksumAlgorithm algorithm = 3 [(.gogoproto.nullable) = false]; */ public boolean hasAlgorithm() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .tipb.ChecksumAlgorithm algorithm = 3 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.ChecksumAlgorithm getAlgorithm() { com.pingcap.tidb.tipb.ChecksumAlgorithm result = com.pingcap.tidb.tipb.ChecksumAlgorithm.valueOf(algorithm_); return result == null ? com.pingcap.tidb.tipb.ChecksumAlgorithm.Crc64_Xor : result; } /** * optional .tipb.ChecksumAlgorithm algorithm = 3 [(.gogoproto.nullable) = false]; */ public Builder setAlgorithm(com.pingcap.tidb.tipb.ChecksumAlgorithm value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; algorithm_ = value.getNumber(); onChanged(); return this; } /** * optional .tipb.ChecksumAlgorithm algorithm = 3 [(.gogoproto.nullable) = false]; */ public Builder clearAlgorithm() { bitField0_ = (bitField0_ & ~0x00000004); algorithm_ = 0; onChanged(); return this; } private com.pingcap.tidb.tipb.ChecksumRewriteRule rule_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.ChecksumRewriteRule, com.pingcap.tidb.tipb.ChecksumRewriteRule.Builder, com.pingcap.tidb.tipb.ChecksumRewriteRuleOrBuilder> ruleBuilder_; /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public boolean hasRule() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public com.pingcap.tidb.tipb.ChecksumRewriteRule getRule() { if (ruleBuilder_ == null) { return rule_ == null ? com.pingcap.tidb.tipb.ChecksumRewriteRule.getDefaultInstance() : rule_; } else { return ruleBuilder_.getMessage(); } } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public Builder setRule(com.pingcap.tidb.tipb.ChecksumRewriteRule value) { if (ruleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { ruleBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public Builder setRule( com.pingcap.tidb.tipb.ChecksumRewriteRule.Builder builderForValue) { if (ruleBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { ruleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public Builder mergeRule(com.pingcap.tidb.tipb.ChecksumRewriteRule value) { if (ruleBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && rule_ != null && rule_ != com.pingcap.tidb.tipb.ChecksumRewriteRule.getDefaultInstance()) { rule_ = com.pingcap.tidb.tipb.ChecksumRewriteRule.newBuilder(rule_).mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { ruleBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public Builder clearRule() { if (ruleBuilder_ == null) { rule_ = null; onChanged(); } else { ruleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public com.pingcap.tidb.tipb.ChecksumRewriteRule.Builder getRuleBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRuleFieldBuilder().getBuilder(); } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ public com.pingcap.tidb.tipb.ChecksumRewriteRuleOrBuilder getRuleOrBuilder() { if (ruleBuilder_ != null) { return ruleBuilder_.getMessageOrBuilder(); } else { return rule_ == null ? com.pingcap.tidb.tipb.ChecksumRewriteRule.getDefaultInstance() : rule_; } } /** * optional .tipb.ChecksumRewriteRule rule = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.ChecksumRewriteRule, com.pingcap.tidb.tipb.ChecksumRewriteRule.Builder, com.pingcap.tidb.tipb.ChecksumRewriteRuleOrBuilder> getRuleFieldBuilder() { if (ruleBuilder_ == null) { ruleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.ChecksumRewriteRule, com.pingcap.tidb.tipb.ChecksumRewriteRule.Builder, com.pingcap.tidb.tipb.ChecksumRewriteRuleOrBuilder>( getRule(), getParentForChildren(), isClean()); rule_ = null; } return ruleBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tipb.ChecksumRequest) } // @@protoc_insertion_point(class_scope:tipb.ChecksumRequest) private static final com.pingcap.tidb.tipb.ChecksumRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.ChecksumRequest(); } public static com.pingcap.tidb.tipb.ChecksumRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChecksumRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChecksumRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.pingcap.tidb.tipb.ChecksumRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy