Created
August 22, 2019 05:30
-
-
Save rajcspsg/07c1ddb889410397ba6fc6f26ab2b158 to your computer and use it in GitHub Desktop.
Datamodel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by the protocol buffer compiler. DO NOT EDIT! | |
// source: main/proto/datamodel.proto | |
package part2; | |
public final class Datamodel { | |
private Datamodel() {} | |
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 OnlineStoreUserOrBuilder extends | |
// @@protoc_insertion_point(interface_extends:part2.OnlineStoreUser) | |
com.google.protobuf.MessageOrBuilder { | |
/** | |
* <code>required int32 userid = 1;</code> | |
*/ | |
boolean hasUserid(); | |
/** | |
* <code>required int32 userid = 1;</code> | |
*/ | |
int getUserid(); | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
boolean hasUsername(); | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
java.lang.String getUsername(); | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getUsernameBytes(); | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
boolean hasUseremail(); | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
java.lang.String getUseremail(); | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
com.google.protobuf.ByteString | |
getUseremailBytes(); | |
} | |
/** | |
* Protobuf type {@code part2.OnlineStoreUser} | |
*/ | |
public static final class OnlineStoreUser extends | |
com.google.protobuf.GeneratedMessageV3 implements | |
// @@protoc_insertion_point(message_implements:part2.OnlineStoreUser) | |
OnlineStoreUserOrBuilder { | |
private static final long serialVersionUID = 0L; | |
// Use OnlineStoreUser.newBuilder() to construct. | |
private OnlineStoreUser(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { | |
super(builder); | |
} | |
private OnlineStoreUser() { | |
username_ = ""; | |
useremail_ = ""; | |
} | |
@java.lang.Override | |
@SuppressWarnings({"unused"}) | |
protected java.lang.Object newInstance( | |
UnusedPrivateParameter unused) { | |
return new OnlineStoreUser(); | |
} | |
@java.lang.Override | |
public final com.google.protobuf.UnknownFieldSet | |
getUnknownFields() { | |
return this.unknownFields; | |
} | |
private OnlineStoreUser( | |
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; | |
userid_ = input.readInt32(); | |
break; | |
} | |
case 18: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000002; | |
username_ = bs; | |
break; | |
} | |
case 26: { | |
com.google.protobuf.ByteString bs = input.readBytes(); | |
bitField0_ |= 0x00000004; | |
useremail_ = 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 part2.Datamodel.internal_static_part2_OnlineStoreUser_descriptor; | |
} | |
@java.lang.Override | |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return part2.Datamodel.internal_static_part2_OnlineStoreUser_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
part2.Datamodel.OnlineStoreUser.class, part2.Datamodel.OnlineStoreUser.Builder.class); | |
} | |
private int bitField0_; | |
public static final int USERID_FIELD_NUMBER = 1; | |
private int userid_; | |
/** | |
* <code>required int32 userid = 1;</code> | |
*/ | |
public boolean hasUserid() { | |
return ((bitField0_ & 0x00000001) != 0); | |
} | |
/** | |
* <code>required int32 userid = 1;</code> | |
*/ | |
public int getUserid() { | |
return userid_; | |
} | |
public static final int USERNAME_FIELD_NUMBER = 2; | |
private volatile java.lang.Object username_; | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
public boolean hasUsername() { | |
return ((bitField0_ & 0x00000002) != 0); | |
} | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
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; | |
} | |
} | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
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 USEREMAIL_FIELD_NUMBER = 3; | |
private volatile java.lang.Object useremail_; | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public boolean hasUseremail() { | |
return ((bitField0_ & 0x00000004) != 0); | |
} | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public java.lang.String getUseremail() { | |
java.lang.Object ref = useremail_; | |
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()) { | |
useremail_ = s; | |
} | |
return s; | |
} | |
} | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getUseremailBytes() { | |
java.lang.Object ref = useremail_; | |
if (ref instanceof java.lang.String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
useremail_ = 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; | |
if (!hasUserid()) { | |
memoizedIsInitialized = 0; | |
return false; | |
} | |
if (!hasUsername()) { | |
memoizedIsInitialized = 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, userid_); | |
} | |
if (((bitField0_ & 0x00000002) != 0)) { | |
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); | |
} | |
if (((bitField0_ & 0x00000004) != 0)) { | |
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, useremail_); | |
} | |
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, userid_); | |
} | |
if (((bitField0_ & 0x00000002) != 0)) { | |
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); | |
} | |
if (((bitField0_ & 0x00000004) != 0)) { | |
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, useremail_); | |
} | |
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 part2.Datamodel.OnlineStoreUser)) { | |
return super.equals(obj); | |
} | |
part2.Datamodel.OnlineStoreUser other = (part2.Datamodel.OnlineStoreUser) obj; | |
if (hasUserid() != other.hasUserid()) return false; | |
if (hasUserid()) { | |
if (getUserid() | |
!= other.getUserid()) return false; | |
} | |
if (hasUsername() != other.hasUsername()) return false; | |
if (hasUsername()) { | |
if (!getUsername() | |
.equals(other.getUsername())) return false; | |
} | |
if (hasUseremail() != other.hasUseremail()) return false; | |
if (hasUseremail()) { | |
if (!getUseremail() | |
.equals(other.getUseremail())) 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 (hasUserid()) { | |
hash = (37 * hash) + USERID_FIELD_NUMBER; | |
hash = (53 * hash) + getUserid(); | |
} | |
if (hasUsername()) { | |
hash = (37 * hash) + USERNAME_FIELD_NUMBER; | |
hash = (53 * hash) + getUsername().hashCode(); | |
} | |
if (hasUseremail()) { | |
hash = (37 * hash) + USEREMAIL_FIELD_NUMBER; | |
hash = (53 * hash) + getUseremail().hashCode(); | |
} | |
hash = (29 * hash) + unknownFields.hashCode(); | |
memoizedHashCode = hash; | |
return hash; | |
} | |
public static part2.Datamodel.OnlineStoreUser parseFrom( | |
java.nio.ByteBuffer data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static part2.Datamodel.OnlineStoreUser parseFrom( | |
java.nio.ByteBuffer data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static part2.Datamodel.OnlineStoreUser parseFrom( | |
com.google.protobuf.ByteString data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static part2.Datamodel.OnlineStoreUser parseFrom( | |
com.google.protobuf.ByteString data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static part2.Datamodel.OnlineStoreUser parseFrom(byte[] data) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data); | |
} | |
public static part2.Datamodel.OnlineStoreUser parseFrom( | |
byte[] data, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return PARSER.parseFrom(data, extensionRegistry); | |
} | |
public static part2.Datamodel.OnlineStoreUser parseFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return com.google.protobuf.GeneratedMessageV3 | |
.parseWithIOException(PARSER, input); | |
} | |
public static part2.Datamodel.OnlineStoreUser 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 part2.Datamodel.OnlineStoreUser parseDelimitedFrom(java.io.InputStream input) | |
throws java.io.IOException { | |
return com.google.protobuf.GeneratedMessageV3 | |
.parseDelimitedWithIOException(PARSER, input); | |
} | |
public static part2.Datamodel.OnlineStoreUser 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 part2.Datamodel.OnlineStoreUser parseFrom( | |
com.google.protobuf.CodedInputStream input) | |
throws java.io.IOException { | |
return com.google.protobuf.GeneratedMessageV3 | |
.parseWithIOException(PARSER, input); | |
} | |
public static part2.Datamodel.OnlineStoreUser 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(part2.Datamodel.OnlineStoreUser 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 part2.OnlineStoreUser} | |
*/ | |
public static final class Builder extends | |
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements | |
// @@protoc_insertion_point(builder_implements:part2.OnlineStoreUser) | |
part2.Datamodel.OnlineStoreUserOrBuilder { | |
public static final com.google.protobuf.Descriptors.Descriptor | |
getDescriptor() { | |
return part2.Datamodel.internal_static_part2_OnlineStoreUser_descriptor; | |
} | |
@java.lang.Override | |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | |
internalGetFieldAccessorTable() { | |
return part2.Datamodel.internal_static_part2_OnlineStoreUser_fieldAccessorTable | |
.ensureFieldAccessorsInitialized( | |
part2.Datamodel.OnlineStoreUser.class, part2.Datamodel.OnlineStoreUser.Builder.class); | |
} | |
// Construct using part2.Datamodel.OnlineStoreUser.newBuilder() | |
private Builder() { | |
maybeForceBuilderInitialization(); | |
} | |
private Builder( | |
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { | |
super(parent); | |
maybeForceBuilderInitialization(); | |
} | |
private void maybeForceBuilderInitialization() { | |
if (com.google.protobuf.GeneratedMessageV3 | |
.alwaysUseFieldBuilders) { | |
} | |
} | |
@java.lang.Override | |
public Builder clear() { | |
super.clear(); | |
userid_ = 0; | |
bitField0_ = (bitField0_ & ~0x00000001); | |
username_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000002); | |
useremail_ = ""; | |
bitField0_ = (bitField0_ & ~0x00000004); | |
return this; | |
} | |
@java.lang.Override | |
public com.google.protobuf.Descriptors.Descriptor | |
getDescriptorForType() { | |
return part2.Datamodel.internal_static_part2_OnlineStoreUser_descriptor; | |
} | |
@java.lang.Override | |
public part2.Datamodel.OnlineStoreUser getDefaultInstanceForType() { | |
return part2.Datamodel.OnlineStoreUser.getDefaultInstance(); | |
} | |
@java.lang.Override | |
public part2.Datamodel.OnlineStoreUser build() { | |
part2.Datamodel.OnlineStoreUser result = buildPartial(); | |
if (!result.isInitialized()) { | |
throw newUninitializedMessageException(result); | |
} | |
return result; | |
} | |
@java.lang.Override | |
public part2.Datamodel.OnlineStoreUser buildPartial() { | |
part2.Datamodel.OnlineStoreUser result = new part2.Datamodel.OnlineStoreUser(this); | |
int from_bitField0_ = bitField0_; | |
int to_bitField0_ = 0; | |
if (((from_bitField0_ & 0x00000001) != 0)) { | |
result.userid_ = userid_; | |
to_bitField0_ |= 0x00000001; | |
} | |
if (((from_bitField0_ & 0x00000002) != 0)) { | |
to_bitField0_ |= 0x00000002; | |
} | |
result.username_ = username_; | |
if (((from_bitField0_ & 0x00000004) != 0)) { | |
to_bitField0_ |= 0x00000004; | |
} | |
result.useremail_ = useremail_; | |
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 part2.Datamodel.OnlineStoreUser) { | |
return mergeFrom((part2.Datamodel.OnlineStoreUser)other); | |
} else { | |
super.mergeFrom(other); | |
return this; | |
} | |
} | |
public Builder mergeFrom(part2.Datamodel.OnlineStoreUser other) { | |
if (other == part2.Datamodel.OnlineStoreUser.getDefaultInstance()) return this; | |
if (other.hasUserid()) { | |
setUserid(other.getUserid()); | |
} | |
if (other.hasUsername()) { | |
bitField0_ |= 0x00000002; | |
username_ = other.username_; | |
onChanged(); | |
} | |
if (other.hasUseremail()) { | |
bitField0_ |= 0x00000004; | |
useremail_ = other.useremail_; | |
onChanged(); | |
} | |
this.mergeUnknownFields(other.unknownFields); | |
onChanged(); | |
return this; | |
} | |
@java.lang.Override | |
public final boolean isInitialized() { | |
if (!hasUserid()) { | |
return false; | |
} | |
if (!hasUsername()) { | |
return false; | |
} | |
return true; | |
} | |
@java.lang.Override | |
public Builder mergeFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws java.io.IOException { | |
part2.Datamodel.OnlineStoreUser parsedMessage = null; | |
try { | |
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); | |
} catch (com.google.protobuf.InvalidProtocolBufferException e) { | |
parsedMessage = (part2.Datamodel.OnlineStoreUser) e.getUnfinishedMessage(); | |
throw e.unwrapIOException(); | |
} finally { | |
if (parsedMessage != null) { | |
mergeFrom(parsedMessage); | |
} | |
} | |
return this; | |
} | |
private int bitField0_; | |
private int userid_ ; | |
/** | |
* <code>required int32 userid = 1;</code> | |
*/ | |
public boolean hasUserid() { | |
return ((bitField0_ & 0x00000001) != 0); | |
} | |
/** | |
* <code>required int32 userid = 1;</code> | |
*/ | |
public int getUserid() { | |
return userid_; | |
} | |
/** | |
* <code>required int32 userid = 1;</code> | |
*/ | |
public Builder setUserid(int value) { | |
bitField0_ |= 0x00000001; | |
userid_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required int32 userid = 1;</code> | |
*/ | |
public Builder clearUserid() { | |
bitField0_ = (bitField0_ & ~0x00000001); | |
userid_ = 0; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object username_ = ""; | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
public boolean hasUsername() { | |
return ((bitField0_ & 0x00000002) != 0); | |
} | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
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; | |
} | |
} | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
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; | |
} | |
} | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
public Builder setUsername( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000002; | |
username_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
public Builder clearUsername() { | |
bitField0_ = (bitField0_ & ~0x00000002); | |
username_ = getDefaultInstance().getUsername(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>required string username = 2;</code> | |
*/ | |
public Builder setUsernameBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000002; | |
username_ = value; | |
onChanged(); | |
return this; | |
} | |
private java.lang.Object useremail_ = ""; | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public boolean hasUseremail() { | |
return ((bitField0_ & 0x00000004) != 0); | |
} | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public java.lang.String getUseremail() { | |
java.lang.Object ref = useremail_; | |
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()) { | |
useremail_ = s; | |
} | |
return s; | |
} else { | |
return (java.lang.String) ref; | |
} | |
} | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public com.google.protobuf.ByteString | |
getUseremailBytes() { | |
java.lang.Object ref = useremail_; | |
if (ref instanceof String) { | |
com.google.protobuf.ByteString b = | |
com.google.protobuf.ByteString.copyFromUtf8( | |
(java.lang.String) ref); | |
useremail_ = b; | |
return b; | |
} else { | |
return (com.google.protobuf.ByteString) ref; | |
} | |
} | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public Builder setUseremail( | |
java.lang.String value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000004; | |
useremail_ = value; | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public Builder clearUseremail() { | |
bitField0_ = (bitField0_ & ~0x00000004); | |
useremail_ = getDefaultInstance().getUseremail(); | |
onChanged(); | |
return this; | |
} | |
/** | |
* <code>optional string useremail = 3;</code> | |
*/ | |
public Builder setUseremailBytes( | |
com.google.protobuf.ByteString value) { | |
if (value == null) { | |
throw new NullPointerException(); | |
} | |
bitField0_ |= 0x00000004; | |
useremail_ = 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:part2.OnlineStoreUser) | |
} | |
// @@protoc_insertion_point(class_scope:part2.OnlineStoreUser) | |
private static final part2.Datamodel.OnlineStoreUser DEFAULT_INSTANCE; | |
static { | |
DEFAULT_INSTANCE = new part2.Datamodel.OnlineStoreUser(); | |
} | |
public static part2.Datamodel.OnlineStoreUser getDefaultInstance() { | |
return DEFAULT_INSTANCE; | |
} | |
@java.lang.Deprecated public static final com.google.protobuf.Parser<OnlineStoreUser> | |
PARSER = new com.google.protobuf.AbstractParser<OnlineStoreUser>() { | |
@java.lang.Override | |
public OnlineStoreUser parsePartialFrom( | |
com.google.protobuf.CodedInputStream input, | |
com.google.protobuf.ExtensionRegistryLite extensionRegistry) | |
throws com.google.protobuf.InvalidProtocolBufferException { | |
return new OnlineStoreUser(input, extensionRegistry); | |
} | |
}; | |
public static com.google.protobuf.Parser<OnlineStoreUser> parser() { | |
return PARSER; | |
} | |
@java.lang.Override | |
public com.google.protobuf.Parser<OnlineStoreUser> getParserForType() { | |
return PARSER; | |
} | |
@java.lang.Override | |
public part2.Datamodel.OnlineStoreUser getDefaultInstanceForType() { | |
return DEFAULT_INSTANCE; | |
} | |
} | |
private static final com.google.protobuf.Descriptors.Descriptor | |
internal_static_part2_OnlineStoreUser_descriptor; | |
private static final | |
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable | |
internal_static_part2_OnlineStoreUser_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\032main/proto/datamodel.proto\022\005part2\"F\n\017O" + | |
"nlineStoreUser\022\016\n\006userid\030\001 \002(\005\022\020\n\010userna" + | |
"me\030\002 \002(\t\022\021\n\tuseremail\030\003 \001(\tB\007\n\005part2" | |
}; | |
descriptor = com.google.protobuf.Descriptors.FileDescriptor | |
.internalBuildGeneratedFileFrom(descriptorData, | |
new com.google.protobuf.Descriptors.FileDescriptor[] { | |
}); | |
internal_static_part2_OnlineStoreUser_descriptor = | |
getDescriptor().getMessageTypes().get(0); | |
internal_static_part2_OnlineStoreUser_fieldAccessorTable = new | |
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( | |
internal_static_part2_OnlineStoreUser_descriptor, | |
new java.lang.String[] { "Userid", "Username", "Useremail", }); | |
} | |
// @@protoc_insertion_point(outer_class_scope) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment