diff options
Diffstat (limited to 'csharp/TestBed/java/bcl')
-rw-r--r-- | csharp/TestBed/java/bcl/Bcl.java | 1348 |
1 files changed, 0 insertions, 1348 deletions
diff --git a/csharp/TestBed/java/bcl/Bcl.java b/csharp/TestBed/java/bcl/Bcl.java deleted file mode 100644 index 9b8c6f8f..00000000 --- a/csharp/TestBed/java/bcl/Bcl.java +++ /dev/null @@ -1,1348 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! - -package bcl; - -public final class Bcl { - private Bcl() {} - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static final com.google.protobuf.Descriptors.FileDescriptor - descriptor = buildDescriptor(); - private static - com.google.protobuf.Descriptors.FileDescriptor - buildDescriptor() { - java.lang.String descriptorData = - "\n\tbcl.proto\022\003bcl\"\251\001\n\010TimeSpan\022\r\n\005value\030\001" + - " \001(\022\0220\n\005scale\030\002 \001(\0162\033.bcl.TimeSpan.TimeS" + - "panScale:\004DAYS\"\\\n\rTimeSpanScale\022\010\n\004DAYS\020" + - "\000\022\t\n\005HOURS\020\001\022\013\n\007MINUTES\020\002\022\013\n\007SECONDS\020\003\022\020" + - "\n\014MILLISECONDS\020\004\022\n\n\006MINMAX\020\017\"\251\001\n\010DateTim" + - "e\022\r\n\005value\030\001 \001(\022\0220\n\005scale\030\002 \001(\0162\033.bcl.Da" + - "teTime.TimeSpanScale:\004DAYS\"\\\n\rTimeSpanSc" + - "ale\022\010\n\004DAYS\020\000\022\t\n\005HOURS\020\001\022\013\n\007MINUTES\020\002\022\013\n" + - "\007SECONDS\020\003\022\020\n\014MILLISECONDS\020\004\022\n\n\006MINMAX\020\017" + - "\"\036\n\004Guid\022\n\n\002lo\030\001 \001(\006\022\n\n\002hi\030\002 \001(\006\"4\n\007Deci" + - "mal\022\n\n\002lo\030\001 \001(\004\022\n\n\002hi\030\002 \001(\r\022\021\n\tsignScale" + - "\030\003 \001(\rB.H\001\302>\032Google.ProtocolBuffers.Bcl\312" + - ">\014BclProtoFile"; - try { - return com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } catch (Exception e) { - throw new RuntimeException( - "Failed to parse protocol buffer descriptor for " + - "\"bcl.proto\".", e); - } - } - - public static final class TimeSpan extends - com.google.protobuf.GeneratedMessage { - // Use TimeSpan.newBuilder() to construct. - private TimeSpan() {} - - private static final TimeSpan defaultInstance = new TimeSpan(); - public static TimeSpan getDefaultInstance() { - return defaultInstance; - } - - public TimeSpan getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return bcl.Bcl.internal_static_bcl_TimeSpan_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return bcl.Bcl.internal_static_bcl_TimeSpan_fieldAccessorTable; - } - - public static enum TimeSpanScale { - DAYS(0, 0), - HOURS(1, 1), - MINUTES(2, 2), - SECONDS(3, 3), - MILLISECONDS(4, 4), - MINMAX(5, 15), - ; - - - public final int getNumber() { return value; } - - public static TimeSpanScale valueOf(int value) { - switch (value) { - case 0: return DAYS; - case 1: return HOURS; - case 2: return MINUTES; - case 3: return SECONDS; - case 4: return MILLISECONDS; - case 15: return MINMAX; - default: return null; - } - } - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return bcl.Bcl.TimeSpan.getDescriptor().getEnumTypes().get(0); - } - - private static final TimeSpanScale[] VALUES = { - DAYS, HOURS, MINUTES, SECONDS, MILLISECONDS, MINMAX, - }; - public static TimeSpanScale valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - private final int index; - private final int value; - private TimeSpanScale(int index, int value) { - this.index = index; - this.value = value; - } - } - - // optional sint64 value = 1; - private boolean hasValue; - private long value_ = 0L; - public boolean hasValue() { return hasValue; } - public long getValue() { return value_; } - - // optional .bcl.TimeSpan.TimeSpanScale scale = 2 [default = DAYS]; - private boolean hasScale; - private bcl.Bcl.TimeSpan.TimeSpanScale scale_ = bcl.Bcl.TimeSpan.TimeSpanScale.DAYS; - public boolean hasScale() { return hasScale; } - public bcl.Bcl.TimeSpan.TimeSpanScale getScale() { return scale_; } - - public final boolean isInitialized() { - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hasValue()) { - output.writeSInt64(1, getValue()); - } - if (hasScale()) { - output.writeEnum(2, getScale().getNumber()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (hasValue()) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, getValue()); - } - if (hasScale()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, getScale().getNumber()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - public static bcl.Bcl.TimeSpan parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static bcl.Bcl.TimeSpan parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.TimeSpan parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static bcl.Bcl.TimeSpan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.TimeSpan parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static bcl.Bcl.TimeSpan parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.TimeSpan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static bcl.Bcl.TimeSpan parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return new Builder(); } - public Builder newBuilderForType() { return new Builder(); } - public static Builder newBuilder(bcl.Bcl.TimeSpan prototype) { - return new Builder().mergeFrom(prototype); - } - - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> { - // Construct using bcl.Bcl.TimeSpan.newBuilder() - private Builder() {} - - bcl.Bcl.TimeSpan result = new bcl.Bcl.TimeSpan(); - - protected bcl.Bcl.TimeSpan internalGetResult() { - return result; - } - - public Builder clear() { - result = new bcl.Bcl.TimeSpan(); - return this; - } - - public Builder clone() { - return new Builder().mergeFrom(result); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return bcl.Bcl.TimeSpan.getDescriptor(); - } - - public bcl.Bcl.TimeSpan getDefaultInstanceForType() { - return bcl.Bcl.TimeSpan.getDefaultInstance(); - } - - public bcl.Bcl.TimeSpan build() { - if (!isInitialized()) { - throw new com.google.protobuf.UninitializedMessageException( - result); - } - return buildPartial(); - } - - private bcl.Bcl.TimeSpan buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { - throw new com.google.protobuf.UninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return buildPartial(); - } - - public bcl.Bcl.TimeSpan buildPartial() { - bcl.Bcl.TimeSpan returnMe = result; - result = null; - return returnMe; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof bcl.Bcl.TimeSpan) { - return mergeFrom((bcl.Bcl.TimeSpan)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(bcl.Bcl.TimeSpan other) { - if (other == bcl.Bcl.TimeSpan.getDefaultInstance()) return this; - if (other.hasValue()) { - setValue(other.getValue()); - } - if (other.hasScale()) { - setScale(other.getScale()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return mergeFrom(input, - com.google.protobuf.ExtensionRegistry.getEmptyRegistry()); - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - return this; - } - break; - } - case 8: { - setValue(input.readSInt64()); - break; - } - case 16: { - int rawValue = input.readEnum(); - bcl.Bcl.TimeSpan.TimeSpanScale value = bcl.Bcl.TimeSpan.TimeSpanScale.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - setScale(value); - } - break; - } - } - } - } - - - // optional sint64 value = 1; - public boolean hasValue() { - return result.hasValue(); - } - public long getValue() { - return result.getValue(); - } - public Builder setValue(long value) { - result.hasValue = true; - result.value_ = value; - return this; - } - public Builder clearValue() { - result.hasValue = false; - result.value_ = 0L; - return this; - } - - // optional .bcl.TimeSpan.TimeSpanScale scale = 2 [default = DAYS]; - public boolean hasScale() { - return result.hasScale(); - } - public bcl.Bcl.TimeSpan.TimeSpanScale getScale() { - return result.getScale(); - } - public Builder setScale(bcl.Bcl.TimeSpan.TimeSpanScale value) { - result.hasScale = true; - result.scale_ = value; - return this; - } - public Builder clearScale() { - result.hasScale = false; - result.scale_ = bcl.Bcl.TimeSpan.TimeSpanScale.DAYS; - return this; - } - } - } - - public static final class DateTime extends - com.google.protobuf.GeneratedMessage { - // Use DateTime.newBuilder() to construct. - private DateTime() {} - - private static final DateTime defaultInstance = new DateTime(); - public static DateTime getDefaultInstance() { - return defaultInstance; - } - - public DateTime getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return bcl.Bcl.internal_static_bcl_DateTime_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return bcl.Bcl.internal_static_bcl_DateTime_fieldAccessorTable; - } - - public static enum TimeSpanScale { - DAYS(0, 0), - HOURS(1, 1), - MINUTES(2, 2), - SECONDS(3, 3), - MILLISECONDS(4, 4), - MINMAX(5, 15), - ; - - - public final int getNumber() { return value; } - - public static TimeSpanScale valueOf(int value) { - switch (value) { - case 0: return DAYS; - case 1: return HOURS; - case 2: return MINUTES; - case 3: return SECONDS; - case 4: return MILLISECONDS; - case 15: return MINMAX; - default: return null; - } - } - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return bcl.Bcl.DateTime.getDescriptor().getEnumTypes().get(0); - } - - private static final TimeSpanScale[] VALUES = { - DAYS, HOURS, MINUTES, SECONDS, MILLISECONDS, MINMAX, - }; - public static TimeSpanScale valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - private final int index; - private final int value; - private TimeSpanScale(int index, int value) { - this.index = index; - this.value = value; - } - } - - // optional sint64 value = 1; - private boolean hasValue; - private long value_ = 0L; - public boolean hasValue() { return hasValue; } - public long getValue() { return value_; } - - // optional .bcl.DateTime.TimeSpanScale scale = 2 [default = DAYS]; - private boolean hasScale; - private bcl.Bcl.DateTime.TimeSpanScale scale_ = bcl.Bcl.DateTime.TimeSpanScale.DAYS; - public boolean hasScale() { return hasScale; } - public bcl.Bcl.DateTime.TimeSpanScale getScale() { return scale_; } - - public final boolean isInitialized() { - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hasValue()) { - output.writeSInt64(1, getValue()); - } - if (hasScale()) { - output.writeEnum(2, getScale().getNumber()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (hasValue()) { - size += com.google.protobuf.CodedOutputStream - .computeSInt64Size(1, getValue()); - } - if (hasScale()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, getScale().getNumber()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - public static bcl.Bcl.DateTime parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static bcl.Bcl.DateTime parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.DateTime parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static bcl.Bcl.DateTime parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.DateTime parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static bcl.Bcl.DateTime parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.DateTime parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static bcl.Bcl.DateTime parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return new Builder(); } - public Builder newBuilderForType() { return new Builder(); } - public static Builder newBuilder(bcl.Bcl.DateTime prototype) { - return new Builder().mergeFrom(prototype); - } - - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> { - // Construct using bcl.Bcl.DateTime.newBuilder() - private Builder() {} - - bcl.Bcl.DateTime result = new bcl.Bcl.DateTime(); - - protected bcl.Bcl.DateTime internalGetResult() { - return result; - } - - public Builder clear() { - result = new bcl.Bcl.DateTime(); - return this; - } - - public Builder clone() { - return new Builder().mergeFrom(result); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return bcl.Bcl.DateTime.getDescriptor(); - } - - public bcl.Bcl.DateTime getDefaultInstanceForType() { - return bcl.Bcl.DateTime.getDefaultInstance(); - } - - public bcl.Bcl.DateTime build() { - if (!isInitialized()) { - throw new com.google.protobuf.UninitializedMessageException( - result); - } - return buildPartial(); - } - - private bcl.Bcl.DateTime buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { - throw new com.google.protobuf.UninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return buildPartial(); - } - - public bcl.Bcl.DateTime buildPartial() { - bcl.Bcl.DateTime returnMe = result; - result = null; - return returnMe; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof bcl.Bcl.DateTime) { - return mergeFrom((bcl.Bcl.DateTime)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(bcl.Bcl.DateTime other) { - if (other == bcl.Bcl.DateTime.getDefaultInstance()) return this; - if (other.hasValue()) { - setValue(other.getValue()); - } - if (other.hasScale()) { - setScale(other.getScale()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return mergeFrom(input, - com.google.protobuf.ExtensionRegistry.getEmptyRegistry()); - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - return this; - } - break; - } - case 8: { - setValue(input.readSInt64()); - break; - } - case 16: { - int rawValue = input.readEnum(); - bcl.Bcl.DateTime.TimeSpanScale value = bcl.Bcl.DateTime.TimeSpanScale.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - setScale(value); - } - break; - } - } - } - } - - - // optional sint64 value = 1; - public boolean hasValue() { - return result.hasValue(); - } - public long getValue() { - return result.getValue(); - } - public Builder setValue(long value) { - result.hasValue = true; - result.value_ = value; - return this; - } - public Builder clearValue() { - result.hasValue = false; - result.value_ = 0L; - return this; - } - - // optional .bcl.DateTime.TimeSpanScale scale = 2 [default = DAYS]; - public boolean hasScale() { - return result.hasScale(); - } - public bcl.Bcl.DateTime.TimeSpanScale getScale() { - return result.getScale(); - } - public Builder setScale(bcl.Bcl.DateTime.TimeSpanScale value) { - result.hasScale = true; - result.scale_ = value; - return this; - } - public Builder clearScale() { - result.hasScale = false; - result.scale_ = bcl.Bcl.DateTime.TimeSpanScale.DAYS; - return this; - } - } - } - - public static final class Guid extends - com.google.protobuf.GeneratedMessage { - // Use Guid.newBuilder() to construct. - private Guid() {} - - private static final Guid defaultInstance = new Guid(); - public static Guid getDefaultInstance() { - return defaultInstance; - } - - public Guid getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return bcl.Bcl.internal_static_bcl_Guid_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return bcl.Bcl.internal_static_bcl_Guid_fieldAccessorTable; - } - - // optional fixed64 lo = 1; - private boolean hasLo; - private long lo_ = 0L; - public boolean hasLo() { return hasLo; } - public long getLo() { return lo_; } - - // optional fixed64 hi = 2; - private boolean hasHi; - private long hi_ = 0L; - public boolean hasHi() { return hasHi; } - public long getHi() { return hi_; } - - public final boolean isInitialized() { - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hasLo()) { - output.writeFixed64(1, getLo()); - } - if (hasHi()) { - output.writeFixed64(2, getHi()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (hasLo()) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(1, getLo()); - } - if (hasHi()) { - size += com.google.protobuf.CodedOutputStream - .computeFixed64Size(2, getHi()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - public static bcl.Bcl.Guid parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static bcl.Bcl.Guid parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.Guid parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static bcl.Bcl.Guid parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.Guid parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static bcl.Bcl.Guid parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.Guid parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static bcl.Bcl.Guid parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return new Builder(); } - public Builder newBuilderForType() { return new Builder(); } - public static Builder newBuilder(bcl.Bcl.Guid prototype) { - return new Builder().mergeFrom(prototype); - } - - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> { - // Construct using bcl.Bcl.Guid.newBuilder() - private Builder() {} - - bcl.Bcl.Guid result = new bcl.Bcl.Guid(); - - protected bcl.Bcl.Guid internalGetResult() { - return result; - } - - public Builder clear() { - result = new bcl.Bcl.Guid(); - return this; - } - - public Builder clone() { - return new Builder().mergeFrom(result); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return bcl.Bcl.Guid.getDescriptor(); - } - - public bcl.Bcl.Guid getDefaultInstanceForType() { - return bcl.Bcl.Guid.getDefaultInstance(); - } - - public bcl.Bcl.Guid build() { - if (!isInitialized()) { - throw new com.google.protobuf.UninitializedMessageException( - result); - } - return buildPartial(); - } - - private bcl.Bcl.Guid buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { - throw new com.google.protobuf.UninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return buildPartial(); - } - - public bcl.Bcl.Guid buildPartial() { - bcl.Bcl.Guid returnMe = result; - result = null; - return returnMe; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof bcl.Bcl.Guid) { - return mergeFrom((bcl.Bcl.Guid)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(bcl.Bcl.Guid other) { - if (other == bcl.Bcl.Guid.getDefaultInstance()) return this; - if (other.hasLo()) { - setLo(other.getLo()); - } - if (other.hasHi()) { - setHi(other.getHi()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return mergeFrom(input, - com.google.protobuf.ExtensionRegistry.getEmptyRegistry()); - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - return this; - } - break; - } - case 9: { - setLo(input.readFixed64()); - break; - } - case 17: { - setHi(input.readFixed64()); - break; - } - } - } - } - - - // optional fixed64 lo = 1; - public boolean hasLo() { - return result.hasLo(); - } - public long getLo() { - return result.getLo(); - } - public Builder setLo(long value) { - result.hasLo = true; - result.lo_ = value; - return this; - } - public Builder clearLo() { - result.hasLo = false; - result.lo_ = 0L; - return this; - } - - // optional fixed64 hi = 2; - public boolean hasHi() { - return result.hasHi(); - } - public long getHi() { - return result.getHi(); - } - public Builder setHi(long value) { - result.hasHi = true; - result.hi_ = value; - return this; - } - public Builder clearHi() { - result.hasHi = false; - result.hi_ = 0L; - return this; - } - } - } - - public static final class Decimal extends - com.google.protobuf.GeneratedMessage { - // Use Decimal.newBuilder() to construct. - private Decimal() {} - - private static final Decimal defaultInstance = new Decimal(); - public static Decimal getDefaultInstance() { - return defaultInstance; - } - - public Decimal getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return bcl.Bcl.internal_static_bcl_Decimal_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return bcl.Bcl.internal_static_bcl_Decimal_fieldAccessorTable; - } - - // optional uint64 lo = 1; - private boolean hasLo; - private long lo_ = 0L; - public boolean hasLo() { return hasLo; } - public long getLo() { return lo_; } - - // optional uint32 hi = 2; - private boolean hasHi; - private int hi_ = 0; - public boolean hasHi() { return hasHi; } - public int getHi() { return hi_; } - - // optional uint32 signScale = 3; - private boolean hasSignScale; - private int signScale_ = 0; - public boolean hasSignScale() { return hasSignScale; } - public int getSignScale() { return signScale_; } - - public final boolean isInitialized() { - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hasLo()) { - output.writeUInt64(1, getLo()); - } - if (hasHi()) { - output.writeUInt32(2, getHi()); - } - if (hasSignScale()) { - output.writeUInt32(3, getSignScale()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (hasLo()) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(1, getLo()); - } - if (hasHi()) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, getHi()); - } - if (hasSignScale()) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, getSignScale()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - public static bcl.Bcl.Decimal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static bcl.Bcl.Decimal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.Decimal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static bcl.Bcl.Decimal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.Decimal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static bcl.Bcl.Decimal parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static bcl.Bcl.Decimal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static bcl.Bcl.Decimal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return new Builder(); } - public Builder newBuilderForType() { return new Builder(); } - public static Builder newBuilder(bcl.Bcl.Decimal prototype) { - return new Builder().mergeFrom(prototype); - } - - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder<Builder> { - // Construct using bcl.Bcl.Decimal.newBuilder() - private Builder() {} - - bcl.Bcl.Decimal result = new bcl.Bcl.Decimal(); - - protected bcl.Bcl.Decimal internalGetResult() { - return result; - } - - public Builder clear() { - result = new bcl.Bcl.Decimal(); - return this; - } - - public Builder clone() { - return new Builder().mergeFrom(result); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return bcl.Bcl.Decimal.getDescriptor(); - } - - public bcl.Bcl.Decimal getDefaultInstanceForType() { - return bcl.Bcl.Decimal.getDefaultInstance(); - } - - public bcl.Bcl.Decimal build() { - if (!isInitialized()) { - throw new com.google.protobuf.UninitializedMessageException( - result); - } - return buildPartial(); - } - - private bcl.Bcl.Decimal buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - if (!isInitialized()) { - throw new com.google.protobuf.UninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return buildPartial(); - } - - public bcl.Bcl.Decimal buildPartial() { - bcl.Bcl.Decimal returnMe = result; - result = null; - return returnMe; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof bcl.Bcl.Decimal) { - return mergeFrom((bcl.Bcl.Decimal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(bcl.Bcl.Decimal other) { - if (other == bcl.Bcl.Decimal.getDefaultInstance()) return this; - if (other.hasLo()) { - setLo(other.getLo()); - } - if (other.hasHi()) { - setHi(other.getHi()); - } - if (other.hasSignScale()) { - setSignScale(other.getSignScale()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return mergeFrom(input, - com.google.protobuf.ExtensionRegistry.getEmptyRegistry()); - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistry extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - return this; - } - break; - } - case 8: { - setLo(input.readUInt64()); - break; - } - case 16: { - setHi(input.readUInt32()); - break; - } - case 24: { - setSignScale(input.readUInt32()); - break; - } - } - } - } - - - // optional uint64 lo = 1; - public boolean hasLo() { - return result.hasLo(); - } - public long getLo() { - return result.getLo(); - } - public Builder setLo(long value) { - result.hasLo = true; - result.lo_ = value; - return this; - } - public Builder clearLo() { - result.hasLo = false; - result.lo_ = 0L; - return this; - } - - // optional uint32 hi = 2; - public boolean hasHi() { - return result.hasHi(); - } - public int getHi() { - return result.getHi(); - } - public Builder setHi(int value) { - result.hasHi = true; - result.hi_ = value; - return this; - } - public Builder clearHi() { - result.hasHi = false; - result.hi_ = 0; - return this; - } - - // optional uint32 signScale = 3; - public boolean hasSignScale() { - return result.hasSignScale(); - } - public int getSignScale() { - return result.getSignScale(); - } - public Builder setSignScale(int value) { - result.hasSignScale = true; - result.signScale_ = value; - return this; - } - public Builder clearSignScale() { - result.hasSignScale = false; - result.signScale_ = 0; - return this; - } - } - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_bcl_TimeSpan_descriptor = - getDescriptor().getMessageTypes().get(0); - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_bcl_TimeSpan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_bcl_TimeSpan_descriptor, - new java.lang.String[] { "Value", "Scale", }, - bcl.Bcl.TimeSpan.class, - bcl.Bcl.TimeSpan.Builder.class); - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_bcl_DateTime_descriptor = - getDescriptor().getMessageTypes().get(1); - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_bcl_DateTime_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_bcl_DateTime_descriptor, - new java.lang.String[] { "Value", "Scale", }, - bcl.Bcl.DateTime.class, - bcl.Bcl.DateTime.Builder.class); - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_bcl_Guid_descriptor = - getDescriptor().getMessageTypes().get(2); - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_bcl_Guid_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_bcl_Guid_descriptor, - new java.lang.String[] { "Lo", "Hi", }, - bcl.Bcl.Guid.class, - bcl.Bcl.Guid.Builder.class); - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_bcl_Decimal_descriptor = - getDescriptor().getMessageTypes().get(3); - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_bcl_Decimal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_bcl_Decimal_descriptor, - new java.lang.String[] { "Lo", "Hi", "SignScale", }, - bcl.Bcl.Decimal.class, - bcl.Bcl.Decimal.Builder.class); -} |