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

wechat.protobuf.BaseRequest Maven / Gradle / Ivy

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

package wechat.protobuf;

/**
 * Protobuf type {@code wechat_proto.BaseRequest}
 */
public final class BaseRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.BaseRequest)
    BaseRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use BaseRequest.newBuilder() to construct.
  private BaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private BaseRequest() {
    sessionKey_ = com.google.protobuf.ByteString.EMPTY;
    deviceId_ = com.google.protobuf.ByteString.EMPTY;
    deviceType_ = com.google.protobuf.ByteString.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private BaseRequest(
      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: {
            bitField0_ |= 0x00000001;
            sessionKey_ = input.readBytes();
            break;
          }
          case 16: {
            bitField0_ |= 0x00000002;
            uin_ = input.readUInt32();
            break;
          }
          case 26: {
            bitField0_ |= 0x00000004;
            deviceId_ = input.readBytes();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            clientVersion_ = input.readInt32();
            break;
          }
          case 42: {
            bitField0_ |= 0x00000010;
            deviceType_ = input.readBytes();
            break;
          }
          case 48: {
            bitField0_ |= 0x00000020;
            scene_ = input.readUInt32();
            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 wechat.protobuf.Wechat.internal_static_wechat_proto_BaseRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_BaseRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.BaseRequest.class, wechat.protobuf.BaseRequest.Builder.class);
  }

  private int bitField0_;
  public static final int SESSION_KEY_FIELD_NUMBER = 1;
  private com.google.protobuf.ByteString sessionKey_;
  /**
   * 
   *会话key base64字符串
   * 
* * optional bytes session_key = 1; * @return Whether the sessionKey field is set. */ @java.lang.Override public boolean hasSessionKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
   *会话key base64字符串
   * 
* * optional bytes session_key = 1; * @return The sessionKey. */ @java.lang.Override public com.google.protobuf.ByteString getSessionKey() { return sessionKey_; } public static final int UIN_FIELD_NUMBER = 2; private int uin_; /** * optional uint32 uin = 2; * @return Whether the uin field is set. */ @java.lang.Override public boolean hasUin() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint32 uin = 2; * @return The uin. */ @java.lang.Override public int getUin() { return uin_; } public static final int DEVICE_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString deviceId_; /** *
   *设备id base64字符串
   * 
* * optional bytes device_id = 3; * @return Whether the deviceId field is set. */ @java.lang.Override public boolean hasDeviceId() { return ((bitField0_ & 0x00000004) != 0); } /** *
   *设备id base64字符串
   * 
* * optional bytes device_id = 3; * @return The deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceId() { return deviceId_; } public static final int CLIENT_VERSION_FIELD_NUMBER = 4; private int clientVersion_; /** * optional int32 client_version = 4; * @return Whether the clientVersion field is set. */ @java.lang.Override public boolean hasClientVersion() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 client_version = 4; * @return The clientVersion. */ @java.lang.Override public int getClientVersion() { return clientVersion_; } public static final int DEVICETYPE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString deviceType_; /** * optional bytes deviceType = 5; * @return Whether the deviceType field is set. */ @java.lang.Override public boolean hasDeviceType() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bytes deviceType = 5; * @return The deviceType. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceType() { return deviceType_; } public static final int SCENE_FIELD_NUMBER = 6; private int scene_; /** * optional uint32 scene = 6; * @return Whether the scene field is set. */ @java.lang.Override public boolean hasScene() { return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 scene = 6; * @return The scene. */ @java.lang.Override public int getScene() { return scene_; } 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)) { output.writeBytes(1, sessionKey_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, uin_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(3, deviceId_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, clientVersion_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBytes(5, deviceType_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(6, scene_); } 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.CodedOutputStream .computeBytesSize(1, sessionKey_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, uin_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, deviceId_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, clientVersion_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, deviceType_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, scene_); } 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 wechat.protobuf.BaseRequest)) { return super.equals(obj); } wechat.protobuf.BaseRequest other = (wechat.protobuf.BaseRequest) obj; if (hasSessionKey() != other.hasSessionKey()) return false; if (hasSessionKey()) { if (!getSessionKey() .equals(other.getSessionKey())) return false; } if (hasUin() != other.hasUin()) return false; if (hasUin()) { if (getUin() != other.getUin()) return false; } if (hasDeviceId() != other.hasDeviceId()) return false; if (hasDeviceId()) { if (!getDeviceId() .equals(other.getDeviceId())) return false; } if (hasClientVersion() != other.hasClientVersion()) return false; if (hasClientVersion()) { if (getClientVersion() != other.getClientVersion()) return false; } if (hasDeviceType() != other.hasDeviceType()) return false; if (hasDeviceType()) { if (!getDeviceType() .equals(other.getDeviceType())) return false; } if (hasScene() != other.hasScene()) return false; if (hasScene()) { if (getScene() != other.getScene()) 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 (hasSessionKey()) { hash = (37 * hash) + SESSION_KEY_FIELD_NUMBER; hash = (53 * hash) + getSessionKey().hashCode(); } if (hasUin()) { hash = (37 * hash) + UIN_FIELD_NUMBER; hash = (53 * hash) + getUin(); } if (hasDeviceId()) { hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER; hash = (53 * hash) + getDeviceId().hashCode(); } if (hasClientVersion()) { hash = (37 * hash) + CLIENT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getClientVersion(); } if (hasDeviceType()) { hash = (37 * hash) + DEVICETYPE_FIELD_NUMBER; hash = (53 * hash) + getDeviceType().hashCode(); } if (hasScene()) { hash = (37 * hash) + SCENE_FIELD_NUMBER; hash = (53 * hash) + getScene(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static wechat.protobuf.BaseRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static wechat.protobuf.BaseRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static wechat.protobuf.BaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static wechat.protobuf.BaseRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static wechat.protobuf.BaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static wechat.protobuf.BaseRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static wechat.protobuf.BaseRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static wechat.protobuf.BaseRequest 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 wechat.protobuf.BaseRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static wechat.protobuf.BaseRequest 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 wechat.protobuf.BaseRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static wechat.protobuf.BaseRequest 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(wechat.protobuf.BaseRequest 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 wechat_proto.BaseRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wechat_proto.BaseRequest) wechat.protobuf.BaseRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return wechat.protobuf.Wechat.internal_static_wechat_proto_BaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return wechat.protobuf.Wechat.internal_static_wechat_proto_BaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( wechat.protobuf.BaseRequest.class, wechat.protobuf.BaseRequest.Builder.class); } // Construct using wechat.protobuf.BaseRequest.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(); sessionKey_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); uin_ = 0; bitField0_ = (bitField0_ & ~0x00000002); deviceId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); clientVersion_ = 0; bitField0_ = (bitField0_ & ~0x00000008); deviceType_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); scene_ = 0; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return wechat.protobuf.Wechat.internal_static_wechat_proto_BaseRequest_descriptor; } @java.lang.Override public wechat.protobuf.BaseRequest getDefaultInstanceForType() { return wechat.protobuf.BaseRequest.getDefaultInstance(); } @java.lang.Override public wechat.protobuf.BaseRequest build() { wechat.protobuf.BaseRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public wechat.protobuf.BaseRequest buildPartial() { wechat.protobuf.BaseRequest result = new wechat.protobuf.BaseRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.sessionKey_ = sessionKey_; if (((from_bitField0_ & 0x00000002) != 0)) { result.uin_ = uin_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.deviceId_ = deviceId_; if (((from_bitField0_ & 0x00000008) != 0)) { result.clientVersion_ = clientVersion_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.deviceType_ = deviceType_; if (((from_bitField0_ & 0x00000020) != 0)) { result.scene_ = scene_; to_bitField0_ |= 0x00000020; } 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 wechat.protobuf.BaseRequest) { return mergeFrom((wechat.protobuf.BaseRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(wechat.protobuf.BaseRequest other) { if (other == wechat.protobuf.BaseRequest.getDefaultInstance()) return this; if (other.hasSessionKey()) { setSessionKey(other.getSessionKey()); } if (other.hasUin()) { setUin(other.getUin()); } if (other.hasDeviceId()) { setDeviceId(other.getDeviceId()); } if (other.hasClientVersion()) { setClientVersion(other.getClientVersion()); } if (other.hasDeviceType()) { setDeviceType(other.getDeviceType()); } if (other.hasScene()) { setScene(other.getScene()); } 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 { wechat.protobuf.BaseRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (wechat.protobuf.BaseRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString sessionKey_ = com.google.protobuf.ByteString.EMPTY; /** *
     *会话key base64字符串
     * 
* * optional bytes session_key = 1; * @return Whether the sessionKey field is set. */ @java.lang.Override public boolean hasSessionKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     *会话key base64字符串
     * 
* * optional bytes session_key = 1; * @return The sessionKey. */ @java.lang.Override public com.google.protobuf.ByteString getSessionKey() { return sessionKey_; } /** *
     *会话key base64字符串
     * 
* * optional bytes session_key = 1; * @param value The sessionKey to set. * @return This builder for chaining. */ public Builder setSessionKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; sessionKey_ = value; onChanged(); return this; } /** *
     *会话key base64字符串
     * 
* * optional bytes session_key = 1; * @return This builder for chaining. */ public Builder clearSessionKey() { bitField0_ = (bitField0_ & ~0x00000001); sessionKey_ = getDefaultInstance().getSessionKey(); onChanged(); return this; } private int uin_ ; /** * optional uint32 uin = 2; * @return Whether the uin field is set. */ @java.lang.Override public boolean hasUin() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint32 uin = 2; * @return The uin. */ @java.lang.Override public int getUin() { return uin_; } /** * optional uint32 uin = 2; * @param value The uin to set. * @return This builder for chaining. */ public Builder setUin(int value) { bitField0_ |= 0x00000002; uin_ = value; onChanged(); return this; } /** * optional uint32 uin = 2; * @return This builder for chaining. */ public Builder clearUin() { bitField0_ = (bitField0_ & ~0x00000002); uin_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString deviceId_ = com.google.protobuf.ByteString.EMPTY; /** *
     *设备id base64字符串
     * 
* * optional bytes device_id = 3; * @return Whether the deviceId field is set. */ @java.lang.Override public boolean hasDeviceId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *设备id base64字符串
     * 
* * optional bytes device_id = 3; * @return The deviceId. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceId() { return deviceId_; } /** *
     *设备id base64字符串
     * 
* * optional bytes device_id = 3; * @param value The deviceId to set. * @return This builder for chaining. */ public Builder setDeviceId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; deviceId_ = value; onChanged(); return this; } /** *
     *设备id base64字符串
     * 
* * optional bytes device_id = 3; * @return This builder for chaining. */ public Builder clearDeviceId() { bitField0_ = (bitField0_ & ~0x00000004); deviceId_ = getDefaultInstance().getDeviceId(); onChanged(); return this; } private int clientVersion_ ; /** * optional int32 client_version = 4; * @return Whether the clientVersion field is set. */ @java.lang.Override public boolean hasClientVersion() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 client_version = 4; * @return The clientVersion. */ @java.lang.Override public int getClientVersion() { return clientVersion_; } /** * optional int32 client_version = 4; * @param value The clientVersion to set. * @return This builder for chaining. */ public Builder setClientVersion(int value) { bitField0_ |= 0x00000008; clientVersion_ = value; onChanged(); return this; } /** * optional int32 client_version = 4; * @return This builder for chaining. */ public Builder clearClientVersion() { bitField0_ = (bitField0_ & ~0x00000008); clientVersion_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString deviceType_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes deviceType = 5; * @return Whether the deviceType field is set. */ @java.lang.Override public boolean hasDeviceType() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bytes deviceType = 5; * @return The deviceType. */ @java.lang.Override public com.google.protobuf.ByteString getDeviceType() { return deviceType_; } /** * optional bytes deviceType = 5; * @param value The deviceType to set. * @return This builder for chaining. */ public Builder setDeviceType(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; deviceType_ = value; onChanged(); return this; } /** * optional bytes deviceType = 5; * @return This builder for chaining. */ public Builder clearDeviceType() { bitField0_ = (bitField0_ & ~0x00000010); deviceType_ = getDefaultInstance().getDeviceType(); onChanged(); return this; } private int scene_ ; /** * optional uint32 scene = 6; * @return Whether the scene field is set. */ @java.lang.Override public boolean hasScene() { return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 scene = 6; * @return The scene. */ @java.lang.Override public int getScene() { return scene_; } /** * optional uint32 scene = 6; * @param value The scene to set. * @return This builder for chaining. */ public Builder setScene(int value) { bitField0_ |= 0x00000020; scene_ = value; onChanged(); return this; } /** * optional uint32 scene = 6; * @return This builder for chaining. */ public Builder clearScene() { bitField0_ = (bitField0_ & ~0x00000020); scene_ = 0; 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:wechat_proto.BaseRequest) } // @@protoc_insertion_point(class_scope:wechat_proto.BaseRequest) private static final wechat.protobuf.BaseRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new wechat.protobuf.BaseRequest(); } public static wechat.protobuf.BaseRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BaseRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BaseRequest(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 wechat.protobuf.BaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy