
com.google.protobuf.test.UnittestImportPublic 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
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/unittest_import_public.proto
package com.google.protobuf.test;
public final class UnittestImportPublic {
private UnittestImportPublic() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface PublicImportMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:protobuf_unittest_import.PublicImportMessage)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 e = 1;
*/
boolean hasE();
/**
* optional int32 e = 1;
*/
int getE();
}
/**
* Protobuf type {@code protobuf_unittest_import.PublicImportMessage}
*/
public static final class PublicImportMessage extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:protobuf_unittest_import.PublicImportMessage)
PublicImportMessageOrBuilder {
// Use PublicImportMessage.newBuilder() to construct.
private PublicImportMessage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PublicImportMessage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PublicImportMessage defaultInstance;
public static PublicImportMessage getDefaultInstance() {
return defaultInstance;
}
public PublicImportMessage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PublicImportMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.test.UnittestImportPublic.internal_static_protobuf_unittest_import_PublicImportMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.test.UnittestImportPublic.internal_static_protobuf_unittest_import_PublicImportMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.class, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PublicImportMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PublicImportMessage(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_);
}
getUnknownFields().writeTo(output);
}
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 += getUnknownFields().getSerializedSize();
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.test.UnittestImportPublic.PublicImportMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.test.UnittestImportPublic.PublicImportMessage 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.test.UnittestImportPublic.PublicImportMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.test.UnittestImportPublic.PublicImportMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.test.UnittestImportPublic.PublicImportMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.test.UnittestImportPublic.PublicImportMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.google.protobuf.test.UnittestImportPublic.PublicImportMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.google.protobuf.test.UnittestImportPublic.PublicImportMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.google.protobuf.test.UnittestImportPublic.PublicImportMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.google.protobuf.test.UnittestImportPublic.PublicImportMessage 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.test.UnittestImportPublic.PublicImportMessage prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protobuf_unittest_import.PublicImportMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:protobuf_unittest_import.PublicImportMessage)
com.google.protobuf.test.UnittestImportPublic.PublicImportMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.test.UnittestImportPublic.internal_static_protobuf_unittest_import_PublicImportMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.test.UnittestImportPublic.internal_static_protobuf_unittest_import_PublicImportMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.class, com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.Builder.class);
}
// Construct using com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
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.Descriptors.Descriptor
getDescriptorForType() {
return com.google.protobuf.test.UnittestImportPublic.internal_static_protobuf_unittest_import_PublicImportMessage_descriptor;
}
public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage getDefaultInstanceForType() {
return com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance();
}
public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage build() {
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.google.protobuf.test.UnittestImportPublic.PublicImportMessage buildPartial() {
com.google.protobuf.test.UnittestImportPublic.PublicImportMessage result = new com.google.protobuf.test.UnittestImportPublic.PublicImportMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.e_ = e_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.test.UnittestImportPublic.PublicImportMessage) {
return mergeFrom((com.google.protobuf.test.UnittestImportPublic.PublicImportMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.protobuf.test.UnittestImportPublic.PublicImportMessage other) {
if (other == com.google.protobuf.test.UnittestImportPublic.PublicImportMessage.getDefaultInstance()) return this;
if (other.hasE()) {
setE(other.getE());
}
this.mergeUnknownFields(other.getUnknownFields());
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.test.UnittestImportPublic.PublicImportMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.google.protobuf.test.UnittestImportPublic.PublicImportMessage) 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;
onChanged();
return this;
}
/**
* optional int32 e = 1;
*/
public Builder clearE() {
bitField0_ = (bitField0_ & ~0x00000001);
e_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:protobuf_unittest_import.PublicImportMessage)
}
static {
defaultInstance = new PublicImportMessage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:protobuf_unittest_import.PublicImportMessage)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_protobuf_unittest_import_PublicImportMessage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_protobuf_unittest_import_PublicImportMessage_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,google/protobuf/unittest_import_public" +
".proto\022\030protobuf_unittest_import\" \n\023Publ" +
"icImportMessage\022\t\n\001e\030\001 \001(\005B\032\n\030com.google" +
".protobuf.test"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_protobuf_unittest_import_PublicImportMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_protobuf_unittest_import_PublicImportMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_protobuf_unittest_import_PublicImportMessage_descriptor,
new java.lang.String[] { "E", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy