wechat.protobuf.HybridEcdh Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HybridEcdh.proto
package wechat.protobuf;
public final class HybridEcdh {
private HybridEcdh() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface HybridEcdhRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:wechat_proto.HybridEcdhRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 type = 1;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional int32 type = 1;
* @return The type.
*/
int getType();
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
* @return Whether the secECDHKey field is set.
*/
boolean hasSecECDHKey();
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
* @return The secECDHKey.
*/
wechat.protobuf.Wechat.SKBuiltinString_ getSecECDHKey();
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getSecECDHKeyOrBuilder();
/**
* optional bytes randomkeydata = 3;
* @return Whether the randomkeydata field is set.
*/
boolean hasRandomkeydata();
/**
* optional bytes randomkeydata = 3;
* @return The randomkeydata.
*/
com.google.protobuf.ByteString getRandomkeydata();
/**
* optional bytes randomkeyextenddata = 4;
* @return Whether the randomkeyextenddata field is set.
*/
boolean hasRandomkeyextenddata();
/**
* optional bytes randomkeyextenddata = 4;
* @return The randomkeyextenddata.
*/
com.google.protobuf.ByteString getRandomkeyextenddata();
/**
* optional bytes encyptdata = 5;
* @return Whether the encyptdata field is set.
*/
boolean hasEncyptdata();
/**
* optional bytes encyptdata = 5;
* @return The encyptdata.
*/
com.google.protobuf.ByteString getEncyptdata();
}
/**
* Protobuf type {@code wechat_proto.HybridEcdhRequest}
*/
public static final class HybridEcdhRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.HybridEcdhRequest)
HybridEcdhRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use HybridEcdhRequest.newBuilder() to construct.
private HybridEcdhRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HybridEcdhRequest() {
randomkeydata_ = com.google.protobuf.ByteString.EMPTY;
randomkeyextenddata_ = com.google.protobuf.ByteString.EMPTY;
encyptdata_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HybridEcdhRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HybridEcdhRequest(
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 8: {
bitField0_ |= 0x00000001;
type_ = input.readInt32();
break;
}
case 18: {
wechat.protobuf.Wechat.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = secECDHKey_.toBuilder();
}
secECDHKey_ = input.readMessage(wechat.protobuf.Wechat.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(secECDHKey_);
secECDHKey_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
bitField0_ |= 0x00000004;
randomkeydata_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
randomkeyextenddata_ = input.readBytes();
break;
}
case 42: {
bitField0_ |= 0x00000010;
encyptdata_ = input.readBytes();
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.HybridEcdh.internal_static_wechat_proto_HybridEcdhRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.HybridEcdh.internal_static_wechat_proto_HybridEcdhRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.HybridEcdh.HybridEcdhRequest.class, wechat.protobuf.HybridEcdh.HybridEcdhRequest.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* optional int32 type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 type = 1;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
public static final int SECECDHKEY_FIELD_NUMBER = 2;
private wechat.protobuf.Wechat.SKBuiltinString_ secECDHKey_;
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
* @return Whether the secECDHKey field is set.
*/
@java.lang.Override
public boolean hasSecECDHKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
* @return The secECDHKey.
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_ getSecECDHKey() {
return secECDHKey_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : secECDHKey_;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getSecECDHKeyOrBuilder() {
return secECDHKey_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : secECDHKey_;
}
public static final int RANDOMKEYDATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString randomkeydata_;
/**
* optional bytes randomkeydata = 3;
* @return Whether the randomkeydata field is set.
*/
@java.lang.Override
public boolean hasRandomkeydata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bytes randomkeydata = 3;
* @return The randomkeydata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRandomkeydata() {
return randomkeydata_;
}
public static final int RANDOMKEYEXTENDDATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString randomkeyextenddata_;
/**
* optional bytes randomkeyextenddata = 4;
* @return Whether the randomkeyextenddata field is set.
*/
@java.lang.Override
public boolean hasRandomkeyextenddata() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bytes randomkeyextenddata = 4;
* @return The randomkeyextenddata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRandomkeyextenddata() {
return randomkeyextenddata_;
}
public static final int ENCYPTDATA_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString encyptdata_;
/**
* optional bytes encyptdata = 5;
* @return Whether the encyptdata field is set.
*/
@java.lang.Override
public boolean hasEncyptdata() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bytes encyptdata = 5;
* @return The encyptdata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEncyptdata() {
return encyptdata_;
}
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.writeInt32(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getSecECDHKey());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBytes(3, randomkeydata_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBytes(4, randomkeyextenddata_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBytes(5, encyptdata_);
}
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
.computeInt32Size(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSecECDHKey());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, randomkeydata_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, randomkeyextenddata_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, encyptdata_);
}
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.HybridEcdh.HybridEcdhRequest)) {
return super.equals(obj);
}
wechat.protobuf.HybridEcdh.HybridEcdhRequest other = (wechat.protobuf.HybridEcdh.HybridEcdhRequest) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (getType()
!= other.getType()) return false;
}
if (hasSecECDHKey() != other.hasSecECDHKey()) return false;
if (hasSecECDHKey()) {
if (!getSecECDHKey()
.equals(other.getSecECDHKey())) return false;
}
if (hasRandomkeydata() != other.hasRandomkeydata()) return false;
if (hasRandomkeydata()) {
if (!getRandomkeydata()
.equals(other.getRandomkeydata())) return false;
}
if (hasRandomkeyextenddata() != other.hasRandomkeyextenddata()) return false;
if (hasRandomkeyextenddata()) {
if (!getRandomkeyextenddata()
.equals(other.getRandomkeyextenddata())) return false;
}
if (hasEncyptdata() != other.hasEncyptdata()) return false;
if (hasEncyptdata()) {
if (!getEncyptdata()
.equals(other.getEncyptdata())) 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 (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
}
if (hasSecECDHKey()) {
hash = (37 * hash) + SECECDHKEY_FIELD_NUMBER;
hash = (53 * hash) + getSecECDHKey().hashCode();
}
if (hasRandomkeydata()) {
hash = (37 * hash) + RANDOMKEYDATA_FIELD_NUMBER;
hash = (53 * hash) + getRandomkeydata().hashCode();
}
if (hasRandomkeyextenddata()) {
hash = (37 * hash) + RANDOMKEYEXTENDDATA_FIELD_NUMBER;
hash = (53 * hash) + getRandomkeyextenddata().hashCode();
}
if (hasEncyptdata()) {
hash = (37 * hash) + ENCYPTDATA_FIELD_NUMBER;
hash = (53 * hash) + getEncyptdata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest 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.HybridEcdh.HybridEcdhRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest 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.HybridEcdh.HybridEcdhRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest 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.HybridEcdh.HybridEcdhRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest 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.HybridEcdh.HybridEcdhRequest 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.HybridEcdhRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.HybridEcdhRequest)
wechat.protobuf.HybridEcdh.HybridEcdhRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.HybridEcdh.internal_static_wechat_proto_HybridEcdhRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.HybridEcdh.internal_static_wechat_proto_HybridEcdhRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.HybridEcdh.HybridEcdhRequest.class, wechat.protobuf.HybridEcdh.HybridEcdhRequest.Builder.class);
}
// Construct using wechat.protobuf.HybridEcdh.HybridEcdhRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecECDHKeyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (secECDHKeyBuilder_ == null) {
secECDHKey_ = null;
} else {
secECDHKeyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
randomkeydata_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
randomkeyextenddata_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
encyptdata_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.HybridEcdh.internal_static_wechat_proto_HybridEcdhRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.HybridEcdh.HybridEcdhRequest getDefaultInstanceForType() {
return wechat.protobuf.HybridEcdh.HybridEcdhRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.HybridEcdh.HybridEcdhRequest build() {
wechat.protobuf.HybridEcdh.HybridEcdhRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.HybridEcdh.HybridEcdhRequest buildPartial() {
wechat.protobuf.HybridEcdh.HybridEcdhRequest result = new wechat.protobuf.HybridEcdh.HybridEcdhRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (secECDHKeyBuilder_ == null) {
result.secECDHKey_ = secECDHKey_;
} else {
result.secECDHKey_ = secECDHKeyBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.randomkeydata_ = randomkeydata_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.randomkeyextenddata_ = randomkeyextenddata_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.encyptdata_ = encyptdata_;
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.HybridEcdh.HybridEcdhRequest) {
return mergeFrom((wechat.protobuf.HybridEcdh.HybridEcdhRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.HybridEcdh.HybridEcdhRequest other) {
if (other == wechat.protobuf.HybridEcdh.HybridEcdhRequest.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasSecECDHKey()) {
mergeSecECDHKey(other.getSecECDHKey());
}
if (other.hasRandomkeydata()) {
setRandomkeydata(other.getRandomkeydata());
}
if (other.hasRandomkeyextenddata()) {
setRandomkeyextenddata(other.getRandomkeyextenddata());
}
if (other.hasEncyptdata()) {
setEncyptdata(other.getEncyptdata());
}
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.HybridEcdh.HybridEcdhRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.HybridEcdh.HybridEcdhRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ ;
/**
* optional int32 type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 type = 1;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
/**
* optional int32 type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(int value) {
bitField0_ |= 0x00000001;
type_ = value;
onChanged();
return this;
}
/**
* optional int32 type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
private wechat.protobuf.Wechat.SKBuiltinString_ secECDHKey_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder> secECDHKeyBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
* @return Whether the secECDHKey field is set.
*/
public boolean hasSecECDHKey() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
* @return The secECDHKey.
*/
public wechat.protobuf.Wechat.SKBuiltinString_ getSecECDHKey() {
if (secECDHKeyBuilder_ == null) {
return secECDHKey_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : secECDHKey_;
} else {
return secECDHKeyBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
public Builder setSecECDHKey(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (secECDHKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
secECDHKey_ = value;
onChanged();
} else {
secECDHKeyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
public Builder setSecECDHKey(
wechat.protobuf.Wechat.SKBuiltinString_.Builder builderForValue) {
if (secECDHKeyBuilder_ == null) {
secECDHKey_ = builderForValue.build();
onChanged();
} else {
secECDHKeyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
public Builder mergeSecECDHKey(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (secECDHKeyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
secECDHKey_ != null &&
secECDHKey_ != wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance()) {
secECDHKey_ =
wechat.protobuf.Wechat.SKBuiltinString_.newBuilder(secECDHKey_).mergeFrom(value).buildPartial();
} else {
secECDHKey_ = value;
}
onChanged();
} else {
secECDHKeyBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
public Builder clearSecECDHKey() {
if (secECDHKeyBuilder_ == null) {
secECDHKey_ = null;
onChanged();
} else {
secECDHKeyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
public wechat.protobuf.Wechat.SKBuiltinString_.Builder getSecECDHKeyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSecECDHKeyFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getSecECDHKeyOrBuilder() {
if (secECDHKeyBuilder_ != null) {
return secECDHKeyBuilder_.getMessageOrBuilder();
} else {
return secECDHKey_ == null ?
wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : secECDHKey_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>
getSecECDHKeyFieldBuilder() {
if (secECDHKeyBuilder_ == null) {
secECDHKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>(
getSecECDHKey(),
getParentForChildren(),
isClean());
secECDHKey_ = null;
}
return secECDHKeyBuilder_;
}
private com.google.protobuf.ByteString randomkeydata_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes randomkeydata = 3;
* @return Whether the randomkeydata field is set.
*/
@java.lang.Override
public boolean hasRandomkeydata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bytes randomkeydata = 3;
* @return The randomkeydata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRandomkeydata() {
return randomkeydata_;
}
/**
* optional bytes randomkeydata = 3;
* @param value The randomkeydata to set.
* @return This builder for chaining.
*/
public Builder setRandomkeydata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
randomkeydata_ = value;
onChanged();
return this;
}
/**
* optional bytes randomkeydata = 3;
* @return This builder for chaining.
*/
public Builder clearRandomkeydata() {
bitField0_ = (bitField0_ & ~0x00000004);
randomkeydata_ = getDefaultInstance().getRandomkeydata();
onChanged();
return this;
}
private com.google.protobuf.ByteString randomkeyextenddata_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes randomkeyextenddata = 4;
* @return Whether the randomkeyextenddata field is set.
*/
@java.lang.Override
public boolean hasRandomkeyextenddata() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bytes randomkeyextenddata = 4;
* @return The randomkeyextenddata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRandomkeyextenddata() {
return randomkeyextenddata_;
}
/**
* optional bytes randomkeyextenddata = 4;
* @param value The randomkeyextenddata to set.
* @return This builder for chaining.
*/
public Builder setRandomkeyextenddata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
randomkeyextenddata_ = value;
onChanged();
return this;
}
/**
* optional bytes randomkeyextenddata = 4;
* @return This builder for chaining.
*/
public Builder clearRandomkeyextenddata() {
bitField0_ = (bitField0_ & ~0x00000008);
randomkeyextenddata_ = getDefaultInstance().getRandomkeyextenddata();
onChanged();
return this;
}
private com.google.protobuf.ByteString encyptdata_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes encyptdata = 5;
* @return Whether the encyptdata field is set.
*/
@java.lang.Override
public boolean hasEncyptdata() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bytes encyptdata = 5;
* @return The encyptdata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEncyptdata() {
return encyptdata_;
}
/**
* optional bytes encyptdata = 5;
* @param value The encyptdata to set.
* @return This builder for chaining.
*/
public Builder setEncyptdata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
encyptdata_ = value;
onChanged();
return this;
}
/**
* optional bytes encyptdata = 5;
* @return This builder for chaining.
*/
public Builder clearEncyptdata() {
bitField0_ = (bitField0_ & ~0x00000010);
encyptdata_ = getDefaultInstance().getEncyptdata();
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.HybridEcdhRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.HybridEcdhRequest)
private static final wechat.protobuf.HybridEcdh.HybridEcdhRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.HybridEcdh.HybridEcdhRequest();
}
public static wechat.protobuf.HybridEcdh.HybridEcdhRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HybridEcdhRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HybridEcdhRequest(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.HybridEcdh.HybridEcdhRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HybridEcdhResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:wechat_proto.HybridEcdhResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
* @return Whether the secECDHKey field is set.
*/
boolean hasSecECDHKey();
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
* @return The secECDHKey.
*/
wechat.protobuf.Wechat.SKBuiltinString_ getSecECDHKey();
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getSecECDHKeyOrBuilder();
/**
* optional int32 type = 2;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional int32 type = 2;
* @return The type.
*/
int getType();
/**
* optional bytes decryptdata = 3;
* @return Whether the decryptdata field is set.
*/
boolean hasDecryptdata();
/**
* optional bytes decryptdata = 3;
* @return The decryptdata.
*/
com.google.protobuf.ByteString getDecryptdata();
/**
* optional bytes randomkeyextenddata = 4;
* @return Whether the randomkeyextenddata field is set.
*/
boolean hasRandomkeyextenddata();
/**
* optional bytes randomkeyextenddata = 4;
* @return The randomkeyextenddata.
*/
com.google.protobuf.ByteString getRandomkeyextenddata();
}
/**
* Protobuf type {@code wechat_proto.HybridEcdhResponse}
*/
public static final class HybridEcdhResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.HybridEcdhResponse)
HybridEcdhResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use HybridEcdhResponse.newBuilder() to construct.
private HybridEcdhResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HybridEcdhResponse() {
decryptdata_ = com.google.protobuf.ByteString.EMPTY;
randomkeyextenddata_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HybridEcdhResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HybridEcdhResponse(
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.Wechat.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = secECDHKey_.toBuilder();
}
secECDHKey_ = input.readMessage(wechat.protobuf.Wechat.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(secECDHKey_);
secECDHKey_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
type_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
decryptdata_ = input.readBytes();
break;
}
case 34: {
bitField0_ |= 0x00000008;
randomkeyextenddata_ = input.readBytes();
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.HybridEcdh.internal_static_wechat_proto_HybridEcdhResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.HybridEcdh.internal_static_wechat_proto_HybridEcdhResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.HybridEcdh.HybridEcdhResponse.class, wechat.protobuf.HybridEcdh.HybridEcdhResponse.Builder.class);
}
private int bitField0_;
public static final int SECECDHKEY_FIELD_NUMBER = 1;
private wechat.protobuf.Wechat.SKBuiltinString_ secECDHKey_;
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
* @return Whether the secECDHKey field is set.
*/
@java.lang.Override
public boolean hasSecECDHKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
* @return The secECDHKey.
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_ getSecECDHKey() {
return secECDHKey_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : secECDHKey_;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
@java.lang.Override
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getSecECDHKeyOrBuilder() {
return secECDHKey_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : secECDHKey_;
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* optional int32 type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 type = 2;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
public static final int DECRYPTDATA_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString decryptdata_;
/**
* optional bytes decryptdata = 3;
* @return Whether the decryptdata field is set.
*/
@java.lang.Override
public boolean hasDecryptdata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bytes decryptdata = 3;
* @return The decryptdata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDecryptdata() {
return decryptdata_;
}
public static final int RANDOMKEYEXTENDDATA_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString randomkeyextenddata_;
/**
* optional bytes randomkeyextenddata = 4;
* @return Whether the randomkeyextenddata field is set.
*/
@java.lang.Override
public boolean hasRandomkeyextenddata() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bytes randomkeyextenddata = 4;
* @return The randomkeyextenddata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRandomkeyextenddata() {
return randomkeyextenddata_;
}
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, getSecECDHKey());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, type_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBytes(3, decryptdata_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBytes(4, randomkeyextenddata_);
}
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, getSecECDHKey());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, type_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, decryptdata_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, randomkeyextenddata_);
}
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.HybridEcdh.HybridEcdhResponse)) {
return super.equals(obj);
}
wechat.protobuf.HybridEcdh.HybridEcdhResponse other = (wechat.protobuf.HybridEcdh.HybridEcdhResponse) obj;
if (hasSecECDHKey() != other.hasSecECDHKey()) return false;
if (hasSecECDHKey()) {
if (!getSecECDHKey()
.equals(other.getSecECDHKey())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (getType()
!= other.getType()) return false;
}
if (hasDecryptdata() != other.hasDecryptdata()) return false;
if (hasDecryptdata()) {
if (!getDecryptdata()
.equals(other.getDecryptdata())) return false;
}
if (hasRandomkeyextenddata() != other.hasRandomkeyextenddata()) return false;
if (hasRandomkeyextenddata()) {
if (!getRandomkeyextenddata()
.equals(other.getRandomkeyextenddata())) 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 (hasSecECDHKey()) {
hash = (37 * hash) + SECECDHKEY_FIELD_NUMBER;
hash = (53 * hash) + getSecECDHKey().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
}
if (hasDecryptdata()) {
hash = (37 * hash) + DECRYPTDATA_FIELD_NUMBER;
hash = (53 * hash) + getDecryptdata().hashCode();
}
if (hasRandomkeyextenddata()) {
hash = (37 * hash) + RANDOMKEYEXTENDDATA_FIELD_NUMBER;
hash = (53 * hash) + getRandomkeyextenddata().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse 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.HybridEcdh.HybridEcdhResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse 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.HybridEcdh.HybridEcdhResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse 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.HybridEcdh.HybridEcdhResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse 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.HybridEcdh.HybridEcdhResponse 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.HybridEcdhResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.HybridEcdhResponse)
wechat.protobuf.HybridEcdh.HybridEcdhResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.HybridEcdh.internal_static_wechat_proto_HybridEcdhResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.HybridEcdh.internal_static_wechat_proto_HybridEcdhResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.HybridEcdh.HybridEcdhResponse.class, wechat.protobuf.HybridEcdh.HybridEcdhResponse.Builder.class);
}
// Construct using wechat.protobuf.HybridEcdh.HybridEcdhResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecECDHKeyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (secECDHKeyBuilder_ == null) {
secECDHKey_ = null;
} else {
secECDHKeyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
decryptdata_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
randomkeyextenddata_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.HybridEcdh.internal_static_wechat_proto_HybridEcdhResponse_descriptor;
}
@java.lang.Override
public wechat.protobuf.HybridEcdh.HybridEcdhResponse getDefaultInstanceForType() {
return wechat.protobuf.HybridEcdh.HybridEcdhResponse.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.HybridEcdh.HybridEcdhResponse build() {
wechat.protobuf.HybridEcdh.HybridEcdhResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.HybridEcdh.HybridEcdhResponse buildPartial() {
wechat.protobuf.HybridEcdh.HybridEcdhResponse result = new wechat.protobuf.HybridEcdh.HybridEcdhResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (secECDHKeyBuilder_ == null) {
result.secECDHKey_ = secECDHKey_;
} else {
result.secECDHKey_ = secECDHKeyBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.decryptdata_ = decryptdata_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.randomkeyextenddata_ = randomkeyextenddata_;
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.HybridEcdh.HybridEcdhResponse) {
return mergeFrom((wechat.protobuf.HybridEcdh.HybridEcdhResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.HybridEcdh.HybridEcdhResponse other) {
if (other == wechat.protobuf.HybridEcdh.HybridEcdhResponse.getDefaultInstance()) return this;
if (other.hasSecECDHKey()) {
mergeSecECDHKey(other.getSecECDHKey());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasDecryptdata()) {
setDecryptdata(other.getDecryptdata());
}
if (other.hasRandomkeyextenddata()) {
setRandomkeyextenddata(other.getRandomkeyextenddata());
}
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.HybridEcdh.HybridEcdhResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.HybridEcdh.HybridEcdhResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.Wechat.SKBuiltinString_ secECDHKey_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder> secECDHKeyBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
* @return Whether the secECDHKey field is set.
*/
public boolean hasSecECDHKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
* @return The secECDHKey.
*/
public wechat.protobuf.Wechat.SKBuiltinString_ getSecECDHKey() {
if (secECDHKeyBuilder_ == null) {
return secECDHKey_ == null ? wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : secECDHKey_;
} else {
return secECDHKeyBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
public Builder setSecECDHKey(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (secECDHKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
secECDHKey_ = value;
onChanged();
} else {
secECDHKeyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
public Builder setSecECDHKey(
wechat.protobuf.Wechat.SKBuiltinString_.Builder builderForValue) {
if (secECDHKeyBuilder_ == null) {
secECDHKey_ = builderForValue.build();
onChanged();
} else {
secECDHKeyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
public Builder mergeSecECDHKey(wechat.protobuf.Wechat.SKBuiltinString_ value) {
if (secECDHKeyBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
secECDHKey_ != null &&
secECDHKey_ != wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance()) {
secECDHKey_ =
wechat.protobuf.Wechat.SKBuiltinString_.newBuilder(secECDHKey_).mergeFrom(value).buildPartial();
} else {
secECDHKey_ = value;
}
onChanged();
} else {
secECDHKeyBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
public Builder clearSecECDHKey() {
if (secECDHKeyBuilder_ == null) {
secECDHKey_ = null;
onChanged();
} else {
secECDHKeyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
public wechat.protobuf.Wechat.SKBuiltinString_.Builder getSecECDHKeyBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSecECDHKeyFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
public wechat.protobuf.Wechat.SKBuiltinString_OrBuilder getSecECDHKeyOrBuilder() {
if (secECDHKeyBuilder_ != null) {
return secECDHKeyBuilder_.getMessageOrBuilder();
} else {
return secECDHKey_ == null ?
wechat.protobuf.Wechat.SKBuiltinString_.getDefaultInstance() : secECDHKey_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ SecECDHKey = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>
getSecECDHKeyFieldBuilder() {
if (secECDHKeyBuilder_ == null) {
secECDHKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.Wechat.SKBuiltinString_, wechat.protobuf.Wechat.SKBuiltinString_.Builder, wechat.protobuf.Wechat.SKBuiltinString_OrBuilder>(
getSecECDHKey(),
getParentForChildren(),
isClean());
secECDHKey_ = null;
}
return secECDHKeyBuilder_;
}
private int type_ ;
/**
* optional int32 type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 type = 2;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
/**
* optional int32 type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(int value) {
bitField0_ |= 0x00000002;
type_ = value;
onChanged();
return this;
}
/**
* optional int32 type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString decryptdata_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes decryptdata = 3;
* @return Whether the decryptdata field is set.
*/
@java.lang.Override
public boolean hasDecryptdata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bytes decryptdata = 3;
* @return The decryptdata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDecryptdata() {
return decryptdata_;
}
/**
* optional bytes decryptdata = 3;
* @param value The decryptdata to set.
* @return This builder for chaining.
*/
public Builder setDecryptdata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
decryptdata_ = value;
onChanged();
return this;
}
/**
* optional bytes decryptdata = 3;
* @return This builder for chaining.
*/
public Builder clearDecryptdata() {
bitField0_ = (bitField0_ & ~0x00000004);
decryptdata_ = getDefaultInstance().getDecryptdata();
onChanged();
return this;
}
private com.google.protobuf.ByteString randomkeyextenddata_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes randomkeyextenddata = 4;
* @return Whether the randomkeyextenddata field is set.
*/
@java.lang.Override
public boolean hasRandomkeyextenddata() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bytes randomkeyextenddata = 4;
* @return The randomkeyextenddata.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRandomkeyextenddata() {
return randomkeyextenddata_;
}
/**
* optional bytes randomkeyextenddata = 4;
* @param value The randomkeyextenddata to set.
* @return This builder for chaining.
*/
public Builder setRandomkeyextenddata(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
randomkeyextenddata_ = value;
onChanged();
return this;
}
/**
* optional bytes randomkeyextenddata = 4;
* @return This builder for chaining.
*/
public Builder clearRandomkeyextenddata() {
bitField0_ = (bitField0_ & ~0x00000008);
randomkeyextenddata_ = getDefaultInstance().getRandomkeyextenddata();
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.HybridEcdhResponse)
}
// @@protoc_insertion_point(class_scope:wechat_proto.HybridEcdhResponse)
private static final wechat.protobuf.HybridEcdh.HybridEcdhResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.HybridEcdh.HybridEcdhResponse();
}
public static wechat.protobuf.HybridEcdh.HybridEcdhResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HybridEcdhResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HybridEcdhResponse(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.HybridEcdh.HybridEcdhResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wechat_proto_HybridEcdhRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wechat_proto_HybridEcdhRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wechat_proto_HybridEcdhResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wechat_proto_HybridEcdhResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\020HybridEcdh.proto\022\014wechat_proto\032\014wechat" +
".proto\"\235\001\n\021HybridEcdhRequest\022\014\n\004type\030\001 \001" +
"(\005\0222\n\nSecECDHKey\030\002 \001(\0132\036.wechat_proto.SK" +
"BuiltinString_\022\025\n\rrandomkeydata\030\003 \001(\014\022\033\n" +
"\023randomkeyextenddata\030\004 \001(\014\022\022\n\nencyptdata" +
"\030\005 \001(\014\"\210\001\n\022HybridEcdhResponse\0222\n\nSecECDH" +
"Key\030\001 \001(\0132\036.wechat_proto.SKBuiltinString" +
"_\022\014\n\004type\030\002 \001(\005\022\023\n\013decryptdata\030\003 \001(\014\022\033\n\023" +
"randomkeyextenddata\030\004 \001(\014B\021\n\017wechat.prot" +
"obuf"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
wechat.protobuf.Wechat.getDescriptor(),
});
internal_static_wechat_proto_HybridEcdhRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_wechat_proto_HybridEcdhRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wechat_proto_HybridEcdhRequest_descriptor,
new java.lang.String[] { "Type", "SecECDHKey", "Randomkeydata", "Randomkeyextenddata", "Encyptdata", });
internal_static_wechat_proto_HybridEcdhResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_wechat_proto_HybridEcdhResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wechat_proto_HybridEcdhResponse_descriptor,
new java.lang.String[] { "SecECDHKey", "Type", "Decryptdata", "Randomkeyextenddata", });
wechat.protobuf.Wechat.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy