com.google.protobuf.UnittestImportPublicLite Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobufel-protobuf-test-protos Show documentation
Show all versions of protobufel-protobuf-test-protos Show documentation
Shared Test Resources - test .proto files
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/unittest_import_public_lite.proto
package com.google.protobuf;
public final class UnittestImportPublicLite {
private UnittestImportPublicLite() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface PublicImportMessageLiteOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest_import.PublicImportMessageLite)
com.google.protobuf.MessageLiteOrBuilder {
/**
* optional int32 e = 1;
*/
boolean hasE();
/**
* optional int32 e = 1;
*/
int getE();
}
/**
* Protobuf type {@code protobuf_unittest_import.PublicImportMessageLite}
*/
public static final class PublicImportMessageLite extends
com.google.protobuf.GeneratedMessageLite implements
// @@protoc_insertion_point(message_implements:protobuf_unittest_import.PublicImportMessageLite)
PublicImportMessageLiteOrBuilder {
// Use PublicImportMessageLite.newBuilder() to construct.
private PublicImportMessageLite(com.google.protobuf.GeneratedMessageLite.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PublicImportMessageLite(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;}
private static final PublicImportMessageLite defaultInstance;
public static PublicImportMessageLite getDefaultInstance() {
return defaultInstance;
}
public PublicImportMessageLite getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.ByteString unknownFields;
private PublicImportMessageLite(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.ByteString.Output unknownFieldsOutput =
com.google.protobuf.ByteString.newOutput();
com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput =
com.google.protobuf.CodedOutputStream.newInstance(
unknownFieldsOutput);
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFieldsCodedOutput,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
e_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
try {
unknownFieldsCodedOutput.flush();
} catch (java.io.IOException e) {
// Should not happen
} finally {
unknownFields = unknownFieldsOutput.toByteString();
}
makeExtensionsImmutable();
}
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PublicImportMessageLite parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PublicImportMessageLite(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int E_FIELD_NUMBER = 1;
private int e_;
/**
* optional int32 e = 1;
*/
public boolean hasE() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 e = 1;
*/
public int getE() {
return e_;
}
private void initFields() {
e_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, e_);
}
output.writeRawBytes(unknownFields);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, e_);
}
size += unknownFields.size();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
/**
* Protobuf type {@code protobuf_unittest_import.PublicImportMessageLite}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite, Builder>
implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest_import.PublicImportMessageLite)
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLiteOrBuilder {
// Construct using com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
e_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite getDefaultInstanceForType() {
return com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance();
}
public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite build() {
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite buildPartial() {
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite result = new com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.e_ = e_;
result.bitField0_ = to_bitField0_;
return result;
}
public Builder mergeFrom(com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite other) {
if (other == com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite.getDefaultInstance()) return this;
if (other.hasE()) {
setE(other.getE());
}
setUnknownFields(
getUnknownFields().concat(other.unknownFields));
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protobuf.UnittestImportPublicLite.PublicImportMessageLite) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int e_ ;
/**
* optional int32 e = 1;
*/
public boolean hasE() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 e = 1;
*/
public int getE() {
return e_;
}
/**
* optional int32 e = 1;
*/
public Builder setE(int value) {
bitField0_ |= 0x00000001;
e_ = value;
return this;
}
/**
* optional int32 e = 1;
*/
public Builder clearE() {
bitField0_ = (bitField0_ & ~0x00000001);
e_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest_import.PublicImportMessageLite)
}
static {
defaultInstance = new PublicImportMessageLite(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest_import.PublicImportMessageLite)
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}