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

wechat.protobuf.NewInitRequest Maven / Gradle / Ivy

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

package wechat.protobuf;

/**
 * 
 *新设备第一次登录初始化请求
 * 
* * Protobuf type {@code wechat_proto.NewInitRequest} */ public final class NewInitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:wechat_proto.NewInitRequest) NewInitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use NewInitRequest.newBuilder() to construct. private NewInitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NewInitRequest() { userName_ = ""; language_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NewInitRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NewInitRequest( 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: { wechat.protobuf.BaseRequest.Builder subBuilder = null; if (((bitField0_ & 0x00000001) != 0)) { subBuilder = baseRequest_.toBuilder(); } baseRequest_ = input.readMessage(wechat.protobuf.BaseRequest.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(baseRequest_); baseRequest_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; userName_ = bs; break; } case 26: { wechat.protobuf.SKBuiltinString_.Builder subBuilder = null; if (((bitField0_ & 0x00000004) != 0)) { subBuilder = currentSynckey_.toBuilder(); } currentSynckey_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(currentSynckey_); currentSynckey_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { wechat.protobuf.SKBuiltinString_.Builder subBuilder = null; if (((bitField0_ & 0x00000008) != 0)) { subBuilder = maxSynckey_.toBuilder(); } maxSynckey_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxSynckey_); maxSynckey_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; language_ = bs; 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_NewInitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return wechat.protobuf.Wechat.internal_static_wechat_proto_NewInitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( wechat.protobuf.NewInitRequest.class, wechat.protobuf.NewInitRequest.Builder.class); } private int bitField0_; public static final int BASEREQUEST_FIELD_NUMBER = 1; private wechat.protobuf.BaseRequest baseRequest_; /** * optional .wechat_proto.BaseRequest BaseRequest = 1; * @return Whether the baseRequest field is set. */ @java.lang.Override public boolean hasBaseRequest() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; * @return The baseRequest. */ @java.lang.Override public wechat.protobuf.BaseRequest getBaseRequest() { return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_; } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; */ @java.lang.Override public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() { return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_; } public static final int USERNAME_FIELD_NUMBER = 2; private volatile java.lang.Object userName_; /** * optional string UserName = 2; * @return Whether the userName field is set. */ @java.lang.Override public boolean hasUserName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string UserName = 2; * @return The userName. */ @java.lang.Override public java.lang.String getUserName() { java.lang.Object ref = userName_; 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(); if (bs.isValidUtf8()) { userName_ = s; } return s; } } /** * optional string UserName = 2; * @return The bytes for userName. */ @java.lang.Override public com.google.protobuf.ByteString getUserNameBytes() { java.lang.Object ref = userName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CURRENTSYNCKEY_FIELD_NUMBER = 3; private wechat.protobuf.SKBuiltinString_ currentSynckey_; /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; * @return Whether the currentSynckey field is set. */ @java.lang.Override public boolean hasCurrentSynckey() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; * @return The currentSynckey. */ @java.lang.Override public wechat.protobuf.SKBuiltinString_ getCurrentSynckey() { return currentSynckey_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : currentSynckey_; } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; */ @java.lang.Override public wechat.protobuf.SKBuiltinString_OrBuilder getCurrentSynckeyOrBuilder() { return currentSynckey_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : currentSynckey_; } public static final int MAXSYNCKEY_FIELD_NUMBER = 4; private wechat.protobuf.SKBuiltinString_ maxSynckey_; /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; * @return Whether the maxSynckey field is set. */ @java.lang.Override public boolean hasMaxSynckey() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; * @return The maxSynckey. */ @java.lang.Override public wechat.protobuf.SKBuiltinString_ getMaxSynckey() { return maxSynckey_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : maxSynckey_; } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; */ @java.lang.Override public wechat.protobuf.SKBuiltinString_OrBuilder getMaxSynckeyOrBuilder() { return maxSynckey_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : maxSynckey_; } public static final int LANGUAGE_FIELD_NUMBER = 5; private volatile java.lang.Object language_; /** * optional string Language = 5; * @return Whether the language field is set. */ @java.lang.Override public boolean hasLanguage() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string Language = 5; * @return The language. */ @java.lang.Override public java.lang.String getLanguage() { java.lang.Object ref = language_; 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(); if (bs.isValidUtf8()) { language_ = s; } return s; } } /** * optional string Language = 5; * @return The bytes for language. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBaseRequest()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userName_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getCurrentSynckey()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getMaxSynckey()); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, language_); } 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 .computeMessageSize(1, getBaseRequest()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userName_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCurrentSynckey()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMaxSynckey()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, language_); } 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.NewInitRequest)) { return super.equals(obj); } wechat.protobuf.NewInitRequest other = (wechat.protobuf.NewInitRequest) obj; if (hasBaseRequest() != other.hasBaseRequest()) return false; if (hasBaseRequest()) { if (!getBaseRequest() .equals(other.getBaseRequest())) return false; } if (hasUserName() != other.hasUserName()) return false; if (hasUserName()) { if (!getUserName() .equals(other.getUserName())) return false; } if (hasCurrentSynckey() != other.hasCurrentSynckey()) return false; if (hasCurrentSynckey()) { if (!getCurrentSynckey() .equals(other.getCurrentSynckey())) return false; } if (hasMaxSynckey() != other.hasMaxSynckey()) return false; if (hasMaxSynckey()) { if (!getMaxSynckey() .equals(other.getMaxSynckey())) return false; } if (hasLanguage() != other.hasLanguage()) return false; if (hasLanguage()) { if (!getLanguage() .equals(other.getLanguage())) 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 (hasBaseRequest()) { hash = (37 * hash) + BASEREQUEST_FIELD_NUMBER; hash = (53 * hash) + getBaseRequest().hashCode(); } if (hasUserName()) { hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUserName().hashCode(); } if (hasCurrentSynckey()) { hash = (37 * hash) + CURRENTSYNCKEY_FIELD_NUMBER; hash = (53 * hash) + getCurrentSynckey().hashCode(); } if (hasMaxSynckey()) { hash = (37 * hash) + MAXSYNCKEY_FIELD_NUMBER; hash = (53 * hash) + getMaxSynckey().hashCode(); } if (hasLanguage()) { hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getLanguage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static wechat.protobuf.NewInitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static wechat.protobuf.NewInitRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static wechat.protobuf.NewInitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static wechat.protobuf.NewInitRequest 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.NewInitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static wechat.protobuf.NewInitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static wechat.protobuf.NewInitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static wechat.protobuf.NewInitRequest 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.NewInitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static wechat.protobuf.NewInitRequest 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.NewInitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static wechat.protobuf.NewInitRequest 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.NewInitRequest 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.NewInitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:wechat_proto.NewInitRequest) wechat.protobuf.NewInitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return wechat.protobuf.Wechat.internal_static_wechat_proto_NewInitRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return wechat.protobuf.Wechat.internal_static_wechat_proto_NewInitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( wechat.protobuf.NewInitRequest.class, wechat.protobuf.NewInitRequest.Builder.class); } // Construct using wechat.protobuf.NewInitRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBaseRequestFieldBuilder(); getCurrentSynckeyFieldBuilder(); getMaxSynckeyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (baseRequestBuilder_ == null) { baseRequest_ = null; } else { baseRequestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); userName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (currentSynckeyBuilder_ == null) { currentSynckey_ = null; } else { currentSynckeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (maxSynckeyBuilder_ == null) { maxSynckey_ = null; } else { maxSynckeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); language_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return wechat.protobuf.Wechat.internal_static_wechat_proto_NewInitRequest_descriptor; } @java.lang.Override public wechat.protobuf.NewInitRequest getDefaultInstanceForType() { return wechat.protobuf.NewInitRequest.getDefaultInstance(); } @java.lang.Override public wechat.protobuf.NewInitRequest build() { wechat.protobuf.NewInitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public wechat.protobuf.NewInitRequest buildPartial() { wechat.protobuf.NewInitRequest result = new wechat.protobuf.NewInitRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (baseRequestBuilder_ == null) { result.baseRequest_ = baseRequest_; } else { result.baseRequest_ = baseRequestBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.userName_ = userName_; if (((from_bitField0_ & 0x00000004) != 0)) { if (currentSynckeyBuilder_ == null) { result.currentSynckey_ = currentSynckey_; } else { result.currentSynckey_ = currentSynckeyBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { if (maxSynckeyBuilder_ == null) { result.maxSynckey_ = maxSynckey_; } else { result.maxSynckey_ = maxSynckeyBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.language_ = language_; 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.NewInitRequest) { return mergeFrom((wechat.protobuf.NewInitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(wechat.protobuf.NewInitRequest other) { if (other == wechat.protobuf.NewInitRequest.getDefaultInstance()) return this; if (other.hasBaseRequest()) { mergeBaseRequest(other.getBaseRequest()); } if (other.hasUserName()) { bitField0_ |= 0x00000002; userName_ = other.userName_; onChanged(); } if (other.hasCurrentSynckey()) { mergeCurrentSynckey(other.getCurrentSynckey()); } if (other.hasMaxSynckey()) { mergeMaxSynckey(other.getMaxSynckey()); } if (other.hasLanguage()) { bitField0_ |= 0x00000010; language_ = other.language_; 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 { wechat.protobuf.NewInitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (wechat.protobuf.NewInitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private wechat.protobuf.BaseRequest baseRequest_; private com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> baseRequestBuilder_; /** * optional .wechat_proto.BaseRequest BaseRequest = 1; * @return Whether the baseRequest field is set. */ public boolean hasBaseRequest() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; * @return The baseRequest. */ public wechat.protobuf.BaseRequest getBaseRequest() { if (baseRequestBuilder_ == null) { return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_; } else { return baseRequestBuilder_.getMessage(); } } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; */ public Builder setBaseRequest(wechat.protobuf.BaseRequest value) { if (baseRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } baseRequest_ = value; onChanged(); } else { baseRequestBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; */ public Builder setBaseRequest( wechat.protobuf.BaseRequest.Builder builderForValue) { if (baseRequestBuilder_ == null) { baseRequest_ = builderForValue.build(); onChanged(); } else { baseRequestBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; */ public Builder mergeBaseRequest(wechat.protobuf.BaseRequest value) { if (baseRequestBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && baseRequest_ != null && baseRequest_ != wechat.protobuf.BaseRequest.getDefaultInstance()) { baseRequest_ = wechat.protobuf.BaseRequest.newBuilder(baseRequest_).mergeFrom(value).buildPartial(); } else { baseRequest_ = value; } onChanged(); } else { baseRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; */ public Builder clearBaseRequest() { if (baseRequestBuilder_ == null) { baseRequest_ = null; onChanged(); } else { baseRequestBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; */ public wechat.protobuf.BaseRequest.Builder getBaseRequestBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBaseRequestFieldBuilder().getBuilder(); } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; */ public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() { if (baseRequestBuilder_ != null) { return baseRequestBuilder_.getMessageOrBuilder(); } else { return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_; } } /** * optional .wechat_proto.BaseRequest BaseRequest = 1; */ private com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> getBaseRequestFieldBuilder() { if (baseRequestBuilder_ == null) { baseRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>( getBaseRequest(), getParentForChildren(), isClean()); baseRequest_ = null; } return baseRequestBuilder_; } private java.lang.Object userName_ = ""; /** * optional string UserName = 2; * @return Whether the userName field is set. */ public boolean hasUserName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string UserName = 2; * @return The userName. */ public java.lang.String getUserName() { java.lang.Object ref = userName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { userName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string UserName = 2; * @return The bytes for userName. */ public com.google.protobuf.ByteString getUserNameBytes() { java.lang.Object ref = userName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string UserName = 2; * @param value The userName to set. * @return This builder for chaining. */ public Builder setUserName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; userName_ = value; onChanged(); return this; } /** * optional string UserName = 2; * @return This builder for chaining. */ public Builder clearUserName() { bitField0_ = (bitField0_ & ~0x00000002); userName_ = getDefaultInstance().getUserName(); onChanged(); return this; } /** * optional string UserName = 2; * @param value The bytes for userName to set. * @return This builder for chaining. */ public Builder setUserNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; userName_ = value; onChanged(); return this; } private wechat.protobuf.SKBuiltinString_ currentSynckey_; private com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> currentSynckeyBuilder_; /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; * @return Whether the currentSynckey field is set. */ public boolean hasCurrentSynckey() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; * @return The currentSynckey. */ public wechat.protobuf.SKBuiltinString_ getCurrentSynckey() { if (currentSynckeyBuilder_ == null) { return currentSynckey_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : currentSynckey_; } else { return currentSynckeyBuilder_.getMessage(); } } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; */ public Builder setCurrentSynckey(wechat.protobuf.SKBuiltinString_ value) { if (currentSynckeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } currentSynckey_ = value; onChanged(); } else { currentSynckeyBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; */ public Builder setCurrentSynckey( wechat.protobuf.SKBuiltinString_.Builder builderForValue) { if (currentSynckeyBuilder_ == null) { currentSynckey_ = builderForValue.build(); onChanged(); } else { currentSynckeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; */ public Builder mergeCurrentSynckey(wechat.protobuf.SKBuiltinString_ value) { if (currentSynckeyBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && currentSynckey_ != null && currentSynckey_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) { currentSynckey_ = wechat.protobuf.SKBuiltinString_.newBuilder(currentSynckey_).mergeFrom(value).buildPartial(); } else { currentSynckey_ = value; } onChanged(); } else { currentSynckeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; */ public Builder clearCurrentSynckey() { if (currentSynckeyBuilder_ == null) { currentSynckey_ = null; onChanged(); } else { currentSynckeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; */ public wechat.protobuf.SKBuiltinString_.Builder getCurrentSynckeyBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCurrentSynckeyFieldBuilder().getBuilder(); } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; */ public wechat.protobuf.SKBuiltinString_OrBuilder getCurrentSynckeyOrBuilder() { if (currentSynckeyBuilder_ != null) { return currentSynckeyBuilder_.getMessageOrBuilder(); } else { return currentSynckey_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : currentSynckey_; } } /** * optional .wechat_proto.SKBuiltinString_ CurrentSynckey = 3; */ private com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> getCurrentSynckeyFieldBuilder() { if (currentSynckeyBuilder_ == null) { currentSynckeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>( getCurrentSynckey(), getParentForChildren(), isClean()); currentSynckey_ = null; } return currentSynckeyBuilder_; } private wechat.protobuf.SKBuiltinString_ maxSynckey_; private com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> maxSynckeyBuilder_; /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; * @return Whether the maxSynckey field is set. */ public boolean hasMaxSynckey() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; * @return The maxSynckey. */ public wechat.protobuf.SKBuiltinString_ getMaxSynckey() { if (maxSynckeyBuilder_ == null) { return maxSynckey_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : maxSynckey_; } else { return maxSynckeyBuilder_.getMessage(); } } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; */ public Builder setMaxSynckey(wechat.protobuf.SKBuiltinString_ value) { if (maxSynckeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxSynckey_ = value; onChanged(); } else { maxSynckeyBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; */ public Builder setMaxSynckey( wechat.protobuf.SKBuiltinString_.Builder builderForValue) { if (maxSynckeyBuilder_ == null) { maxSynckey_ = builderForValue.build(); onChanged(); } else { maxSynckeyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; */ public Builder mergeMaxSynckey(wechat.protobuf.SKBuiltinString_ value) { if (maxSynckeyBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && maxSynckey_ != null && maxSynckey_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) { maxSynckey_ = wechat.protobuf.SKBuiltinString_.newBuilder(maxSynckey_).mergeFrom(value).buildPartial(); } else { maxSynckey_ = value; } onChanged(); } else { maxSynckeyBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; */ public Builder clearMaxSynckey() { if (maxSynckeyBuilder_ == null) { maxSynckey_ = null; onChanged(); } else { maxSynckeyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; */ public wechat.protobuf.SKBuiltinString_.Builder getMaxSynckeyBuilder() { bitField0_ |= 0x00000008; onChanged(); return getMaxSynckeyFieldBuilder().getBuilder(); } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; */ public wechat.protobuf.SKBuiltinString_OrBuilder getMaxSynckeyOrBuilder() { if (maxSynckeyBuilder_ != null) { return maxSynckeyBuilder_.getMessageOrBuilder(); } else { return maxSynckey_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : maxSynckey_; } } /** * optional .wechat_proto.SKBuiltinString_ MaxSynckey = 4; */ private com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> getMaxSynckeyFieldBuilder() { if (maxSynckeyBuilder_ == null) { maxSynckeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>( getMaxSynckey(), getParentForChildren(), isClean()); maxSynckey_ = null; } return maxSynckeyBuilder_; } private java.lang.Object language_ = ""; /** * optional string Language = 5; * @return Whether the language field is set. */ public boolean hasLanguage() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string Language = 5; * @return The language. */ public java.lang.String getLanguage() { java.lang.Object ref = language_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { language_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string Language = 5; * @return The bytes for language. */ public com.google.protobuf.ByteString getLanguageBytes() { java.lang.Object ref = language_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); language_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string Language = 5; * @param value The language to set. * @return This builder for chaining. */ public Builder setLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; language_ = value; onChanged(); return this; } /** * optional string Language = 5; * @return This builder for chaining. */ public Builder clearLanguage() { bitField0_ = (bitField0_ & ~0x00000010); language_ = getDefaultInstance().getLanguage(); onChanged(); return this; } /** * optional string Language = 5; * @param value The bytes for language to set. * @return This builder for chaining. */ public Builder setLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; language_ = 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:wechat_proto.NewInitRequest) } // @@protoc_insertion_point(class_scope:wechat_proto.NewInitRequest) private static final wechat.protobuf.NewInitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new wechat.protobuf.NewInitRequest(); } public static wechat.protobuf.NewInitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NewInitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NewInitRequest(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.NewInitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy