diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml
index ebe9d17..5803f03 100644
--- a/.github/workflows/clojure.yml
+++ b/.github/workflows/clojure.yml
@@ -31,8 +31,8 @@ jobs:
apt-get update
apt-get -qyy install curl sudo
- - name: Install foundationdb
- uses: pyr/foundationdb-actions-install@master
+ - name: Install foundationdb
+ uses: Clikengo/foundationdb-actions-install@v1.0.1
- name: Check
run: clojure -T:project check
diff --git a/protobuf/exoscale/vinyl/Demostore.java b/protobuf/exoscale/vinyl/Demostore.java
index 5acef3e..6260427 100644
--- a/protobuf/exoscale/vinyl/Demostore.java
+++ b/protobuf/exoscale/vinyl/Demostore.java
@@ -1,10 +1,20 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: schema.proto
+// Protobuf Java Version: 4.26.0
package exoscale.vinyl;
public final class Demostore {
private Demostore() {}
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ Demostore.class.getName());
+ }
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
@@ -38,6 +48,15 @@ public enum Payment
UNRECOGNIZED(-1),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ Payment.class.getName());
+ }
/**
* INVALID = 0;
*/
@@ -189,12 +208,21 @@ public interface AccountOrBuilder extends
* Protobuf type {@code exoscale.vinyl.Account}
*/
public static final class Account extends
- com.google.protobuf.GeneratedMessageV3 implements
+ com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:exoscale.vinyl.Account)
AccountOrBuilder {
private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ Account.class.getName());
+ }
// Use Account.newBuilder() to construct.
- private Account(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ private Account(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Account() {
@@ -203,85 +231,13 @@ private Account() {
payment_ = 0;
}
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Account();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Account(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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: {
-
- id_ = input.readInt64();
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- name_ = s;
- break;
- }
- case 26: {
- java.lang.String s = input.readStringRequireUtf8();
-
- state_ = s;
- break;
- }
- case 32: {
- int rawValue = input.readEnum();
-
- payment_ = rawValue;
- 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 exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Account_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Account_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -289,7 +245,7 @@ private Account(
}
public static final int ID_FIELD_NUMBER = 1;
- private long id_;
+ private long id_ = 0L;
/**
* int64 id = 1;
* @return The id.
@@ -300,7 +256,8 @@ public long getId() {
}
public static final int NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object name_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
@@ -338,7 +295,8 @@ public java.lang.String getName() {
}
public static final int STATE_FIELD_NUMBER = 3;
- private volatile java.lang.Object state_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object state_ = "";
/**
* string state = 3;
* @return The state.
@@ -376,7 +334,7 @@ public java.lang.String getState() {
}
public static final int PAYMENT_FIELD_NUMBER = 4;
- private int payment_;
+ private int payment_ = 0;
/**
* .exoscale.vinyl.Payment payment = 4;
* @return The enum numeric value on the wire for payment.
@@ -389,8 +347,7 @@ public java.lang.String getState() {
* @return The payment.
*/
@java.lang.Override public exoscale.vinyl.Demostore.Payment getPayment() {
- @SuppressWarnings("deprecation")
- exoscale.vinyl.Demostore.Payment result = exoscale.vinyl.Demostore.Payment.valueOf(payment_);
+ exoscale.vinyl.Demostore.Payment result = exoscale.vinyl.Demostore.Payment.forNumber(payment_);
return result == null ? exoscale.vinyl.Demostore.Payment.UNRECOGNIZED : result;
}
@@ -411,16 +368,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (id_ != 0L) {
output.writeInt64(1, id_);
}
- if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
}
- if (!getStateBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, state_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(state_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, state_);
}
if (payment_ != exoscale.vinyl.Demostore.Payment.INVALID.getNumber()) {
output.writeEnum(4, payment_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -433,17 +390,17 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
}
- if (!getStateBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, state_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(state_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, state_);
}
if (payment_ != exoscale.vinyl.Demostore.Payment.INVALID.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, payment_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -465,7 +422,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getState()
.equals(other.getState())) return false;
if (payment_ != other.payment_) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -485,7 +442,7 @@ public int hashCode() {
hash = (53 * hash) + getState().hashCode();
hash = (37 * hash) + PAYMENT_FIELD_NUMBER;
hash = (53 * hash) + payment_;
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -524,39 +481,41 @@ public static exoscale.vinyl.Demostore.Account parseFrom(
}
public static exoscale.vinyl.Demostore.Account parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.Account parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static exoscale.vinyl.Demostore.Account parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
+
public static exoscale.vinyl.Demostore.Account parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static exoscale.vinyl.Demostore.Account parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.Account parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -576,7 +535,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -584,7 +543,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code exoscale.vinyl.Account}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:exoscale.vinyl.Account)
exoscale.vinyl.Demostore.AccountOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -593,7 +552,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Account_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -602,30 +561,22 @@ public static final class Builder extends
// Construct using exoscale.vinyl.Demostore.Account.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+
}
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
id_ = 0L;
-
name_ = "";
-
state_ = "";
-
payment_ = 0;
-
return this;
}
@@ -652,46 +603,27 @@ public exoscale.vinyl.Demostore.Account build() {
@java.lang.Override
public exoscale.vinyl.Demostore.Account buildPartial() {
exoscale.vinyl.Demostore.Account result = new exoscale.vinyl.Demostore.Account(this);
- result.id_ = id_;
- result.name_ = name_;
- result.state_ = state_;
- result.payment_ = payment_;
+ if (bitField0_ != 0) { buildPartial0(result); }
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);
+ private void buildPartial0(exoscale.vinyl.Demostore.Account result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.state_ = state_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.payment_ = payment_;
+ }
}
+
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof exoscale.vinyl.Demostore.Account) {
@@ -709,16 +641,18 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.Account other) {
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getState().isEmpty()) {
state_ = other.state_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (other.payment_ != 0) {
setPaymentValue(other.getPaymentValue());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -733,19 +667,53 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- exoscale.vinyl.Demostore.Account parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ id_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ state_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32: {
+ payment_ = input.readEnum();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (exoscale.vinyl.Demostore.Account) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private long id_ ;
/**
@@ -762,8 +730,9 @@ public long getId() {
* @return This builder for chaining.
*/
public Builder setId(long value) {
-
+
id_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -772,7 +741,7 @@ public Builder setId(long value) {
* @return This builder for chaining.
*/
public Builder clearId() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
@@ -819,11 +788,9 @@ public java.lang.String getName() {
*/
public Builder setName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
+ if (value == null) { throw new NullPointerException(); }
name_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -832,8 +799,8 @@ public Builder setName(
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -844,12 +811,10 @@ public Builder clearName() {
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
name_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -895,11 +860,9 @@ public java.lang.String getState() {
*/
public Builder setState(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
+ if (value == null) { throw new NullPointerException(); }
state_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -908,8 +871,8 @@ public Builder setState(
* @return This builder for chaining.
*/
public Builder clearState() {
-
state_ = getDefaultInstance().getState();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -920,12 +883,10 @@ public Builder clearState() {
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
state_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -944,8 +905,8 @@ public Builder setStateBytes(
* @return This builder for chaining.
*/
public Builder setPaymentValue(int value) {
-
payment_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -955,8 +916,7 @@ public Builder setPaymentValue(int value) {
*/
@java.lang.Override
public exoscale.vinyl.Demostore.Payment getPayment() {
- @SuppressWarnings("deprecation")
- exoscale.vinyl.Demostore.Payment result = exoscale.vinyl.Demostore.Payment.valueOf(payment_);
+ exoscale.vinyl.Demostore.Payment result = exoscale.vinyl.Demostore.Payment.forNumber(payment_);
return result == null ? exoscale.vinyl.Demostore.Payment.UNRECOGNIZED : result;
}
/**
@@ -968,7 +928,7 @@ public Builder setPayment(exoscale.vinyl.Demostore.Payment value) {
if (value == null) {
throw new NullPointerException();
}
-
+ bitField0_ |= 0x00000008;
payment_ = value.getNumber();
onChanged();
return this;
@@ -978,23 +938,11 @@ public Builder setPayment(exoscale.vinyl.Demostore.Payment value) {
* @return This builder for chaining.
*/
public Builder clearPayment() {
-
+ bitField0_ = (bitField0_ & ~0x00000008);
payment_ = 0;
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:exoscale.vinyl.Account)
}
@@ -1016,7 +964,18 @@ public Account parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new Account(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -1080,12 +1039,21 @@ public interface UserOrBuilder extends
* Protobuf type {@code exoscale.vinyl.User}
*/
public static final class User extends
- com.google.protobuf.GeneratedMessageV3 implements
+ com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:exoscale.vinyl.User)
UserOrBuilder {
private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ User.class.getName());
+ }
// Use User.newBuilder() to construct.
- private User(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ private User(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private User() {
@@ -1093,84 +1061,13 @@ private User() {
email_ = "";
}
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new User();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private User(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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: {
-
- accountId_ = input.readInt64();
- break;
- }
- case 16: {
-
- id_ = input.readInt64();
- break;
- }
- case 26: {
- java.lang.String s = input.readStringRequireUtf8();
-
- name_ = s;
- break;
- }
- case 34: {
- java.lang.String s = input.readStringRequireUtf8();
-
- email_ = s;
- 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 exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_User_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1178,7 +1075,7 @@ private User(
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
- private long accountId_;
+ private long accountId_ = 0L;
/**
* int64 account_id = 1;
* @return The accountId.
@@ -1189,7 +1086,7 @@ public long getAccountId() {
}
public static final int ID_FIELD_NUMBER = 2;
- private long id_;
+ private long id_ = 0L;
/**
* int64 id = 2;
* @return The id.
@@ -1200,7 +1097,8 @@ public long getId() {
}
public static final int NAME_FIELD_NUMBER = 3;
- private volatile java.lang.Object name_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
* string name = 3;
* @return The name.
@@ -1238,7 +1136,8 @@ public java.lang.String getName() {
}
public static final int EMAIL_FIELD_NUMBER = 4;
- private volatile java.lang.Object email_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object email_ = "";
/**
* string email = 4;
* @return The email.
@@ -1295,13 +1194,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (id_ != 0L) {
output.writeInt64(2, id_);
}
- if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, name_);
}
- if (!getEmailBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, email_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(email_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, email_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -1318,13 +1217,13 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, id_);
}
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_);
}
- if (!getEmailBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, email_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(email_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, email_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -1347,7 +1246,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getName())) return false;
if (!getEmail()
.equals(other.getEmail())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -1368,7 +1267,7 @@ public int hashCode() {
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getEmail().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -1407,39 +1306,41 @@ public static exoscale.vinyl.Demostore.User parseFrom(
}
public static exoscale.vinyl.Demostore.User parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.User parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static exoscale.vinyl.Demostore.User parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
+
public static exoscale.vinyl.Demostore.User parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static exoscale.vinyl.Demostore.User parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.User parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1459,7 +1360,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1467,7 +1368,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code exoscale.vinyl.User}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:exoscale.vinyl.User)
exoscale.vinyl.Demostore.UserOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1476,7 +1377,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_User_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1485,30 +1386,22 @@ public static final class Builder extends
// Construct using exoscale.vinyl.Demostore.User.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+
}
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
accountId_ = 0L;
-
id_ = 0L;
-
name_ = "";
-
email_ = "";
-
return this;
}
@@ -1535,46 +1428,27 @@ public exoscale.vinyl.Demostore.User build() {
@java.lang.Override
public exoscale.vinyl.Demostore.User buildPartial() {
exoscale.vinyl.Demostore.User result = new exoscale.vinyl.Demostore.User(this);
- result.accountId_ = accountId_;
- result.id_ = id_;
- result.name_ = name_;
- result.email_ = email_;
+ if (bitField0_ != 0) { buildPartial0(result); }
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);
+ private void buildPartial0(exoscale.vinyl.Demostore.User result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.accountId_ = accountId_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.email_ = email_;
+ }
}
+
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof exoscale.vinyl.Demostore.User) {
@@ -1595,13 +1469,15 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.User other) {
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getEmail().isEmpty()) {
email_ = other.email_;
+ bitField0_ |= 0x00000008;
onChanged();
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -1616,19 +1492,53 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- exoscale.vinyl.Demostore.User parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ accountId_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ id_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ email_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (exoscale.vinyl.Demostore.User) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private long accountId_ ;
/**
@@ -1645,8 +1555,9 @@ public long getAccountId() {
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
-
+
accountId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1655,7 +1566,7 @@ public Builder setAccountId(long value) {
* @return This builder for chaining.
*/
public Builder clearAccountId() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
accountId_ = 0L;
onChanged();
return this;
@@ -1676,8 +1587,9 @@ public long getId() {
* @return This builder for chaining.
*/
public Builder setId(long value) {
-
+
id_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1686,7 +1598,7 @@ public Builder setId(long value) {
* @return This builder for chaining.
*/
public Builder clearId() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
@@ -1733,11 +1645,9 @@ public java.lang.String getName() {
*/
public Builder setName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
+ if (value == null) { throw new NullPointerException(); }
name_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1746,8 +1656,8 @@ public Builder setName(
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
@@ -1758,12 +1668,10 @@ public Builder clearName() {
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
name_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -1809,11 +1717,9 @@ public java.lang.String getEmail() {
*/
public Builder setEmail(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
+ if (value == null) { throw new NullPointerException(); }
email_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -1822,8 +1728,8 @@ public Builder setEmail(
* @return This builder for chaining.
*/
public Builder clearEmail() {
-
email_ = getDefaultInstance().getEmail();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
@@ -1834,27 +1740,13 @@ public Builder clearEmail() {
*/
public Builder setEmailBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
email_ = value;
+ bitField0_ |= 0x00000008;
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:exoscale.vinyl.User)
}
@@ -1876,7 +1768,18 @@ public User parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new User(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -1922,85 +1825,34 @@ public interface InvoiceLineOrBuilder extends
* Protobuf type {@code exoscale.vinyl.InvoiceLine}
*/
public static final class InvoiceLine extends
- com.google.protobuf.GeneratedMessageV3 implements
+ com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:exoscale.vinyl.InvoiceLine)
InvoiceLineOrBuilder {
private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ InvoiceLine.class.getName());
+ }
// Use InvoiceLine.newBuilder() to construct.
- private InvoiceLine(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ private InvoiceLine(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private InvoiceLine() {
product_ = "";
}
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new InvoiceLine();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private InvoiceLine(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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: {
- java.lang.String s = input.readStringRequireUtf8();
-
- product_ = s;
- break;
- }
- case 16: {
-
- quantity_ = input.readInt64();
- 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 exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_InvoiceLine_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_InvoiceLine_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2008,7 +1860,8 @@ private InvoiceLine(
}
public static final int PRODUCT_FIELD_NUMBER = 1;
- private volatile java.lang.Object product_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object product_ = "";
/**
* string product = 1;
* @return The product.
@@ -2046,7 +1899,7 @@ public java.lang.String getProduct() {
}
public static final int QUANTITY_FIELD_NUMBER = 2;
- private long quantity_;
+ private long quantity_ = 0L;
/**
* int64 quantity = 2;
* @return The quantity.
@@ -2070,13 +1923,13 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!getProductBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, product_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(product_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, product_);
}
if (quantity_ != 0L) {
output.writeInt64(2, quantity_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -2085,14 +1938,14 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getProductBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, product_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(product_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, product_);
}
if (quantity_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, quantity_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -2111,7 +1964,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getProduct())) return false;
if (getQuantity()
!= other.getQuantity()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2127,7 +1980,7 @@ public int hashCode() {
hash = (37 * hash) + QUANTITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getQuantity());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2166,39 +2019,41 @@ public static exoscale.vinyl.Demostore.InvoiceLine parseFrom(
}
public static exoscale.vinyl.Demostore.InvoiceLine parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.InvoiceLine parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static exoscale.vinyl.Demostore.InvoiceLine parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
+
public static exoscale.vinyl.Demostore.InvoiceLine parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static exoscale.vinyl.Demostore.InvoiceLine parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.InvoiceLine parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -2218,7 +2073,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2226,7 +2081,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code exoscale.vinyl.InvoiceLine}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:exoscale.vinyl.InvoiceLine)
exoscale.vinyl.Demostore.InvoiceLineOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -2235,7 +2090,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_InvoiceLine_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2244,26 +2099,20 @@ public static final class Builder extends
// Construct using exoscale.vinyl.Demostore.InvoiceLine.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+
}
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
product_ = "";
-
quantity_ = 0L;
-
return this;
}
@@ -2290,44 +2139,21 @@ public exoscale.vinyl.Demostore.InvoiceLine build() {
@java.lang.Override
public exoscale.vinyl.Demostore.InvoiceLine buildPartial() {
exoscale.vinyl.Demostore.InvoiceLine result = new exoscale.vinyl.Demostore.InvoiceLine(this);
- result.product_ = product_;
- result.quantity_ = quantity_;
+ if (bitField0_ != 0) { buildPartial0(result); }
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);
+ private void buildPartial0(exoscale.vinyl.Demostore.InvoiceLine result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.product_ = product_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.quantity_ = quantity_;
+ }
}
+
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof exoscale.vinyl.Demostore.InvoiceLine) {
@@ -2342,12 +2168,13 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.InvoiceLine other) {
if (other == exoscale.vinyl.Demostore.InvoiceLine.getDefaultInstance()) return this;
if (!other.getProduct().isEmpty()) {
product_ = other.product_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.getQuantity() != 0L) {
setQuantity(other.getQuantity());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -2362,19 +2189,43 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- exoscale.vinyl.Demostore.InvoiceLine parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ product_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ quantity_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (exoscale.vinyl.Demostore.InvoiceLine) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private java.lang.Object product_ = "";
/**
@@ -2417,11 +2268,9 @@ public java.lang.String getProduct() {
*/
public Builder setProduct(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
+ if (value == null) { throw new NullPointerException(); }
product_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2430,8 +2279,8 @@ public Builder setProduct(
* @return This builder for chaining.
*/
public Builder clearProduct() {
-
product_ = getDefaultInstance().getProduct();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -2442,12 +2291,10 @@ public Builder clearProduct() {
*/
public Builder setProductBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
product_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -2467,8 +2314,9 @@ public long getQuantity() {
* @return This builder for chaining.
*/
public Builder setQuantity(long value) {
-
+
quantity_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -2477,23 +2325,11 @@ public Builder setQuantity(long value) {
* @return This builder for chaining.
*/
public Builder clearQuantity() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
quantity_ = 0L;
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:exoscale.vinyl.InvoiceLine)
}
@@ -2515,7 +2351,18 @@ public InvoiceLine parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new InvoiceLine(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -2585,102 +2432,34 @@ exoscale.vinyl.Demostore.InvoiceLineOrBuilder getLinesOrBuilder(
* Protobuf type {@code exoscale.vinyl.Invoice}
*/
public static final class Invoice extends
- com.google.protobuf.GeneratedMessageV3 implements
+ com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:exoscale.vinyl.Invoice)
InvoiceOrBuilder {
private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ Invoice.class.getName());
+ }
// Use Invoice.newBuilder() to construct.
- private Invoice(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ private Invoice(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Invoice() {
lines_ = java.util.Collections.emptyList();
}
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Invoice();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Invoice(
- 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: {
-
- accountId_ = input.readInt64();
- break;
- }
- case 16: {
-
- id_ = input.readInt64();
- break;
- }
- case 32: {
-
- total_ = input.readInt64();
- break;
- }
- case 42: {
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
- lines_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- lines_.add(
- input.readMessage(exoscale.vinyl.Demostore.InvoiceLine.parser(), extensionRegistry));
- 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 {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- lines_ = java.util.Collections.unmodifiableList(lines_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Invoice_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Invoice_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2688,7 +2467,7 @@ private Invoice(
}
public static final int ACCOUNT_ID_FIELD_NUMBER = 1;
- private long accountId_;
+ private long accountId_ = 0L;
/**
* int64 account_id = 1;
* @return The accountId.
@@ -2699,7 +2478,7 @@ public long getAccountId() {
}
public static final int ID_FIELD_NUMBER = 2;
- private long id_;
+ private long id_ = 0L;
/**
* int64 id = 2;
* @return The id.
@@ -2710,7 +2489,7 @@ public long getId() {
}
public static final int TOTAL_FIELD_NUMBER = 4;
- private long total_;
+ private long total_ = 0L;
/**
* int64 total = 4;
* @return The total.
@@ -2721,6 +2500,7 @@ public long getTotal() {
}
public static final int LINES_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
private java.util.List lines_;
/**
* repeated .exoscale.vinyl.InvoiceLine lines = 5;
@@ -2786,7 +2566,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
for (int i = 0; i < lines_.size(); i++) {
output.writeMessage(5, lines_.get(i));
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -2811,7 +2591,7 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, lines_.get(i));
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -2834,7 +2614,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getTotal()) return false;
if (!getLinesList()
.equals(other.getLinesList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2858,7 +2638,7 @@ public int hashCode() {
hash = (37 * hash) + LINES_FIELD_NUMBER;
hash = (53 * hash) + getLinesList().hashCode();
}
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -2897,39 +2677,41 @@ public static exoscale.vinyl.Demostore.Invoice parseFrom(
}
public static exoscale.vinyl.Demostore.Invoice parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.Invoice parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static exoscale.vinyl.Demostore.Invoice parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
+
public static exoscale.vinyl.Demostore.Invoice parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static exoscale.vinyl.Demostore.Invoice parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.Invoice parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -2949,7 +2731,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2957,7 +2739,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code exoscale.vinyl.Invoice}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:exoscale.vinyl.Invoice)
exoscale.vinyl.Demostore.InvoiceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -2966,7 +2748,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Invoice_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2975,35 +2757,28 @@ public static final class Builder extends
// Construct using exoscale.vinyl.Demostore.Invoice.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getLinesFieldBuilder();
- }
+
}
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
accountId_ = 0L;
-
id_ = 0L;
-
total_ = 0L;
-
if (linesBuilder_ == null) {
lines_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
} else {
+ lines_ = null;
linesBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@@ -3030,55 +2805,37 @@ public exoscale.vinyl.Demostore.Invoice build() {
@java.lang.Override
public exoscale.vinyl.Demostore.Invoice buildPartial() {
exoscale.vinyl.Demostore.Invoice result = new exoscale.vinyl.Demostore.Invoice(this);
- int from_bitField0_ = bitField0_;
- result.accountId_ = accountId_;
- result.id_ = id_;
- result.total_ = total_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(exoscale.vinyl.Demostore.Invoice result) {
if (linesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
lines_ = java.util.Collections.unmodifiableList(lines_);
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
}
result.lines_ = lines_;
} else {
result.lines_ = linesBuilder_.build();
}
- 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);
+ private void buildPartial0(exoscale.vinyl.Demostore.Invoice result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.accountId_ = accountId_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.total_ = total_;
+ }
}
+
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof exoscale.vinyl.Demostore.Invoice) {
@@ -3104,7 +2861,7 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.Invoice other) {
if (!other.lines_.isEmpty()) {
if (lines_.isEmpty()) {
lines_ = other.lines_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureLinesIsMutable();
lines_.addAll(other.lines_);
@@ -3117,16 +2874,16 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.Invoice other) {
linesBuilder_.dispose();
linesBuilder_ = null;
lines_ = other.lines_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
linesBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getLinesFieldBuilder() : null;
} else {
linesBuilder_.addAllMessages(other.lines_);
}
}
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -3141,17 +2898,58 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- exoscale.vinyl.Demostore.Invoice parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ accountId_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ id_ = input.readInt64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 32: {
+ total_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 32
+ case 42: {
+ exoscale.vinyl.Demostore.InvoiceLine m =
+ input.readMessage(
+ exoscale.vinyl.Demostore.InvoiceLine.parser(),
+ extensionRegistry);
+ if (linesBuilder_ == null) {
+ ensureLinesIsMutable();
+ lines_.add(m);
+ } else {
+ linesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (exoscale.vinyl.Demostore.Invoice) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -3171,8 +2969,9 @@ public long getAccountId() {
* @return This builder for chaining.
*/
public Builder setAccountId(long value) {
-
+
accountId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -3181,7 +2980,7 @@ public Builder setAccountId(long value) {
* @return This builder for chaining.
*/
public Builder clearAccountId() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
accountId_ = 0L;
onChanged();
return this;
@@ -3202,8 +3001,9 @@ public long getId() {
* @return This builder for chaining.
*/
public Builder setId(long value) {
-
+
id_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3212,7 +3012,7 @@ public Builder setId(long value) {
* @return This builder for chaining.
*/
public Builder clearId() {
-
+ bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0L;
onChanged();
return this;
@@ -3233,8 +3033,9 @@ public long getTotal() {
* @return This builder for chaining.
*/
public Builder setTotal(long value) {
-
+
total_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -3243,7 +3044,7 @@ public Builder setTotal(long value) {
* @return This builder for chaining.
*/
public Builder clearTotal() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
total_ = 0L;
onChanged();
return this;
@@ -3252,13 +3053,13 @@ public Builder clearTotal() {
private java.util.List lines_ =
java.util.Collections.emptyList();
private void ensureLinesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
lines_ = new java.util.ArrayList(lines_);
- bitField0_ |= 0x00000001;
+ bitField0_ |= 0x00000008;
}
}
- private com.google.protobuf.RepeatedFieldBuilderV3<
+ private com.google.protobuf.RepeatedFieldBuilder<
exoscale.vinyl.Demostore.InvoiceLine, exoscale.vinyl.Demostore.InvoiceLine.Builder, exoscale.vinyl.Demostore.InvoiceLineOrBuilder> linesBuilder_;
/**
@@ -3404,7 +3205,7 @@ public Builder addAllLines(
public Builder clearLines() {
if (linesBuilder_ == null) {
lines_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
linesBuilder_.clear();
@@ -3474,32 +3275,20 @@ public exoscale.vinyl.Demostore.InvoiceLine.Builder addLinesBuilder(
getLinesBuilderList() {
return getLinesFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilderV3<
+ private com.google.protobuf.RepeatedFieldBuilder<
exoscale.vinyl.Demostore.InvoiceLine, exoscale.vinyl.Demostore.InvoiceLine.Builder, exoscale.vinyl.Demostore.InvoiceLineOrBuilder>
getLinesFieldBuilder() {
if (linesBuilder_ == null) {
- linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
exoscale.vinyl.Demostore.InvoiceLine, exoscale.vinyl.Demostore.InvoiceLine.Builder, exoscale.vinyl.Demostore.InvoiceLineOrBuilder>(
lines_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
lines_ = null;
}
return linesBuilder_;
}
- @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:exoscale.vinyl.Invoice)
}
@@ -3521,7 +3310,18 @@ public Invoice parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new Invoice(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -3579,12 +3379,21 @@ public interface ObjectOrBuilder extends
* Protobuf type {@code exoscale.vinyl.Object}
*/
public static final class Object extends
- com.google.protobuf.GeneratedMessageV3 implements
+ com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:exoscale.vinyl.Object)
ObjectOrBuilder {
private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ Object.class.getName());
+ }
// Use Object.newBuilder() to construct.
- private Object(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ private Object(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Object() {
@@ -3592,79 +3401,13 @@ private Object() {
path_ = "";
}
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Object();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Object(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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: {
- java.lang.String s = input.readStringRequireUtf8();
-
- bucket_ = s;
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- path_ = s;
- break;
- }
- case 24: {
-
- size_ = input.readInt64();
- 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 exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Object_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Object_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3672,7 +3415,8 @@ private Object(
}
public static final int BUCKET_FIELD_NUMBER = 1;
- private volatile java.lang.Object bucket_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object bucket_ = "";
/**
* string bucket = 1;
* @return The bucket.
@@ -3710,7 +3454,8 @@ public java.lang.String getBucket() {
}
public static final int PATH_FIELD_NUMBER = 2;
- private volatile java.lang.Object path_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object path_ = "";
/**
* string path = 2;
* @return The path.
@@ -3748,7 +3493,7 @@ public java.lang.String getPath() {
}
public static final int SIZE_FIELD_NUMBER = 3;
- private long size_;
+ private long size_ = 0L;
/**
* int64 size = 3;
* @return The size.
@@ -3772,16 +3517,16 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!getBucketBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bucket_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, bucket_);
}
- if (!getPathBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, path_);
}
if (size_ != 0L) {
output.writeInt64(3, size_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -3790,17 +3535,17 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (!getBucketBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bucket_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, bucket_);
}
- if (!getPathBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, path_);
}
if (size_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, size_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -3821,7 +3566,7 @@ public boolean equals(final java.lang.Object obj) {
.equals(other.getPath())) return false;
if (getSize()
!= other.getSize()) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -3839,7 +3584,7 @@ public int hashCode() {
hash = (37 * hash) + SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSize());
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -3878,39 +3623,41 @@ public static exoscale.vinyl.Demostore.Object parseFrom(
}
public static exoscale.vinyl.Demostore.Object parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.Object parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static exoscale.vinyl.Demostore.Object parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
+
public static exoscale.vinyl.Demostore.Object parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static exoscale.vinyl.Demostore.Object parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.Object parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -3930,7 +3677,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3938,7 +3685,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code exoscale.vinyl.Object}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:exoscale.vinyl.Object)
exoscale.vinyl.Demostore.ObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -3947,7 +3694,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Object_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3956,28 +3703,21 @@ public static final class Builder extends
// Construct using exoscale.vinyl.Demostore.Object.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+
}
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
bucket_ = "";
-
path_ = "";
-
size_ = 0L;
-
return this;
}
@@ -4004,45 +3744,24 @@ public exoscale.vinyl.Demostore.Object build() {
@java.lang.Override
public exoscale.vinyl.Demostore.Object buildPartial() {
exoscale.vinyl.Demostore.Object result = new exoscale.vinyl.Demostore.Object(this);
- result.bucket_ = bucket_;
- result.path_ = path_;
- result.size_ = size_;
+ if (bitField0_ != 0) { buildPartial0(result); }
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);
+ private void buildPartial0(exoscale.vinyl.Demostore.Object result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.bucket_ = bucket_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.path_ = path_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.size_ = size_;
+ }
}
+
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof exoscale.vinyl.Demostore.Object) {
@@ -4057,16 +3776,18 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.Object other) {
if (other == exoscale.vinyl.Demostore.Object.getDefaultInstance()) return this;
if (!other.getBucket().isEmpty()) {
bucket_ = other.bucket_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.getSize() != 0L) {
setSize(other.getSize());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -4081,19 +3802,48 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- exoscale.vinyl.Demostore.Object parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ bucket_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ path_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 24: {
+ size_ = input.readInt64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (exoscale.vinyl.Demostore.Object) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private java.lang.Object bucket_ = "";
/**
@@ -4136,11 +3886,9 @@ public java.lang.String getBucket() {
*/
public Builder setBucket(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
+ if (value == null) { throw new NullPointerException(); }
bucket_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4149,8 +3897,8 @@ public Builder setBucket(
* @return This builder for chaining.
*/
public Builder clearBucket() {
-
bucket_ = getDefaultInstance().getBucket();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@@ -4161,12 +3909,10 @@ public Builder clearBucket() {
*/
public Builder setBucketBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
bucket_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4212,11 +3958,9 @@ public java.lang.String getPath() {
*/
public Builder setPath(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
+ if (value == null) { throw new NullPointerException(); }
path_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4225,8 +3969,8 @@ public Builder setPath(
* @return This builder for chaining.
*/
public Builder clearPath() {
-
path_ = getDefaultInstance().getPath();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -4237,12 +3981,10 @@ public Builder clearPath() {
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
path_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4262,8 +4004,9 @@ public long getSize() {
* @return This builder for chaining.
*/
public Builder setSize(long value) {
-
+
size_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -4272,23 +4015,11 @@ public Builder setSize(long value) {
* @return This builder for chaining.
*/
public Builder clearSize() {
-
+ bitField0_ = (bitField0_ & ~0x00000004);
size_ = 0L;
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:exoscale.vinyl.Object)
}
@@ -4310,7 +4041,18 @@ public Object parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new Object(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -4356,85 +4098,34 @@ public interface LocationOrBuilder extends
* Protobuf type {@code exoscale.vinyl.Location}
*/
public static final class Location extends
- com.google.protobuf.GeneratedMessageV3 implements
+ com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:exoscale.vinyl.Location)
LocationOrBuilder {
private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ Location.class.getName());
+ }
// Use Location.newBuilder() to construct.
- private Location(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ private Location(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Location() {
name_ = "";
}
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Location();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Location(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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: {
-
- zipCode_ = input.readInt64();
- break;
- }
- case 18: {
- java.lang.String s = input.readStringRequireUtf8();
-
- name_ = s;
- 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 exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Location_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4442,7 +4133,7 @@ private Location(
}
public static final int ZIP_CODE_FIELD_NUMBER = 1;
- private long zipCode_;
+ private long zipCode_ = 0L;
/**
* int64 zip_code = 1;
* @return The zipCode.
@@ -4453,7 +4144,8 @@ public long getZipCode() {
}
public static final int NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object name_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
@@ -4507,10 +4199,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (zipCode_ != 0L) {
output.writeInt64(1, zipCode_);
}
- if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -4523,10 +4215,10 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, zipCode_);
}
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -4545,7 +4237,7 @@ public boolean equals(final java.lang.Object obj) {
!= other.getZipCode()) return false;
if (!getName()
.equals(other.getName())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -4561,7 +4253,7 @@ public int hashCode() {
getZipCode());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -4600,39 +4292,41 @@ public static exoscale.vinyl.Demostore.Location parseFrom(
}
public static exoscale.vinyl.Demostore.Location parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.Location parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static exoscale.vinyl.Demostore.Location parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
+
public static exoscale.vinyl.Demostore.Location parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static exoscale.vinyl.Demostore.Location parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.Location parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -4652,7 +4346,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4660,7 +4354,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code exoscale.vinyl.Location}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:exoscale.vinyl.Location)
exoscale.vinyl.Demostore.LocationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4669,7 +4363,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_Location_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4678,26 +4372,20 @@ public static final class Builder extends
// Construct using exoscale.vinyl.Demostore.Location.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- }
+
}
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
zipCode_ = 0L;
-
name_ = "";
-
return this;
}
@@ -4724,44 +4412,21 @@ public exoscale.vinyl.Demostore.Location build() {
@java.lang.Override
public exoscale.vinyl.Demostore.Location buildPartial() {
exoscale.vinyl.Demostore.Location result = new exoscale.vinyl.Demostore.Location(this);
- result.zipCode_ = zipCode_;
- result.name_ = name_;
+ if (bitField0_ != 0) { buildPartial0(result); }
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);
+ private void buildPartial0(exoscale.vinyl.Demostore.Location result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.zipCode_ = zipCode_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
}
+
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof exoscale.vinyl.Demostore.Location) {
@@ -4779,9 +4444,10 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.Location other) {
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
+ bitField0_ |= 0x00000002;
onChanged();
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -4796,19 +4462,43 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- exoscale.vinyl.Demostore.Location parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ zipCode_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (exoscale.vinyl.Demostore.Location) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private long zipCode_ ;
/**
@@ -4825,8 +4515,9 @@ public long getZipCode() {
* @return This builder for chaining.
*/
public Builder setZipCode(long value) {
-
+
zipCode_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -4835,7 +4526,7 @@ public Builder setZipCode(long value) {
* @return This builder for chaining.
*/
public Builder clearZipCode() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
zipCode_ = 0L;
onChanged();
return this;
@@ -4882,11 +4573,9 @@ public java.lang.String getName() {
*/
public Builder setName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
+ if (value == null) { throw new NullPointerException(); }
name_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4895,8 +4584,8 @@ public Builder setName(
* @return This builder for chaining.
*/
public Builder clearName() {
-
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
@@ -4907,27 +4596,13 @@ public Builder clearName() {
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
name_ = value;
+ bitField0_ |= 0x00000002;
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:exoscale.vinyl.Location)
}
@@ -4949,7 +4624,18 @@ public Location parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new Location(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -4998,99 +4684,42 @@ public interface CityOrBuilder extends
* Protobuf type {@code exoscale.vinyl.City}
*/
public static final class City extends
- com.google.protobuf.GeneratedMessageV3 implements
+ com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:exoscale.vinyl.City)
CityOrBuilder {
private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ City.class.getName());
+ }
// Use City.newBuilder() to construct.
- private City(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ private City(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private City() {
}
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new City();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private City(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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: {
-
- id_ = input.readInt64();
- break;
- }
- case 18: {
- exoscale.vinyl.Demostore.Location.Builder subBuilder = null;
- if (location_ != null) {
- subBuilder = location_.toBuilder();
- }
- location_ = input.readMessage(exoscale.vinyl.Demostore.Location.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(location_);
- location_ = subBuilder.buildPartial();
- }
-
- 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 exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_City_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_City_fieldAccessorTable
.ensureFieldAccessorsInitialized(
exoscale.vinyl.Demostore.City.class, exoscale.vinyl.Demostore.City.Builder.class);
}
+ private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
- private long id_;
+ private long id_ = 0L;
/**
* int64 id = 1;
* @return The id.
@@ -5108,7 +4737,7 @@ public long getId() {
*/
@java.lang.Override
public boolean hasLocation() {
- return location_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* .exoscale.vinyl.Location location = 2;
@@ -5123,7 +4752,7 @@ public exoscale.vinyl.Demostore.Location getLocation() {
*/
@java.lang.Override
public exoscale.vinyl.Demostore.LocationOrBuilder getLocationOrBuilder() {
- return getLocation();
+ return location_ == null ? exoscale.vinyl.Demostore.Location.getDefaultInstance() : location_;
}
private byte memoizedIsInitialized = -1;
@@ -5143,10 +4772,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
if (id_ != 0L) {
output.writeInt64(1, id_);
}
- if (location_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getLocation());
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -5159,11 +4788,11 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, id_);
}
- if (location_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLocation());
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -5185,7 +4814,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getLocation()
.equals(other.getLocation())) return false;
}
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -5203,7 +4832,7 @@ public int hashCode() {
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
}
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -5242,39 +4871,41 @@ public static exoscale.vinyl.Demostore.City parseFrom(
}
public static exoscale.vinyl.Demostore.City parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.City parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static exoscale.vinyl.Demostore.City parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
+
public static exoscale.vinyl.Demostore.City parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static exoscale.vinyl.Demostore.City parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.City parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -5294,7 +4925,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -5302,7 +4933,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code exoscale.vinyl.City}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:exoscale.vinyl.City)
exoscale.vinyl.Demostore.CityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -5311,7 +4942,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_City_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5324,24 +4955,24 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
+ if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
+ getLocationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
id_ = 0L;
-
- if (locationBuilder_ == null) {
- location_ = null;
- } else {
- location_ = null;
+ location_ = null;
+ if (locationBuilder_ != null) {
+ locationBuilder_.dispose();
locationBuilder_ = null;
}
return this;
@@ -5370,48 +5001,26 @@ public exoscale.vinyl.Demostore.City build() {
@java.lang.Override
public exoscale.vinyl.Demostore.City buildPartial() {
exoscale.vinyl.Demostore.City result = new exoscale.vinyl.Demostore.City(this);
- result.id_ = id_;
- if (locationBuilder_ == null) {
- result.location_ = location_;
- } else {
- result.location_ = locationBuilder_.build();
- }
+ if (bitField0_ != 0) { buildPartial0(result); }
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);
+ private void buildPartial0(exoscale.vinyl.Demostore.City result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.location_ = locationBuilder_ == null
+ ? location_
+ : locationBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
+
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof exoscale.vinyl.Demostore.City) {
@@ -5430,7 +5039,7 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.City other) {
if (other.hasLocation()) {
mergeLocation(other.getLocation());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -5445,19 +5054,45 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- exoscale.vinyl.Demostore.City parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ id_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getLocationFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (exoscale.vinyl.Demostore.City) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private long id_ ;
/**
@@ -5474,8 +5109,9 @@ public long getId() {
* @return This builder for chaining.
*/
public Builder setId(long value) {
-
+
id_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -5484,21 +5120,21 @@ public Builder setId(long value) {
* @return This builder for chaining.
*/
public Builder clearId() {
-
+ bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private exoscale.vinyl.Demostore.Location location_;
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Location, exoscale.vinyl.Demostore.Location.Builder, exoscale.vinyl.Demostore.LocationOrBuilder> locationBuilder_;
/**
* .exoscale.vinyl.Location location = 2;
* @return Whether the location field is set.
*/
public boolean hasLocation() {
- return locationBuilder_ != null || location_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* .exoscale.vinyl.Location location = 2;
@@ -5520,11 +5156,11 @@ public Builder setLocation(exoscale.vinyl.Demostore.Location value) {
throw new NullPointerException();
}
location_ = value;
- onChanged();
} else {
locationBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -5534,11 +5170,11 @@ public Builder setLocation(
exoscale.vinyl.Demostore.Location.Builder builderForValue) {
if (locationBuilder_ == null) {
location_ = builderForValue.build();
- onChanged();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -5546,38 +5182,40 @@ public Builder setLocation(
*/
public Builder mergeLocation(exoscale.vinyl.Demostore.Location value) {
if (locationBuilder_ == null) {
- if (location_ != null) {
- location_ =
- exoscale.vinyl.Demostore.Location.newBuilder(location_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0) &&
+ location_ != null &&
+ location_ != exoscale.vinyl.Demostore.Location.getDefaultInstance()) {
+ getLocationBuilder().mergeFrom(value);
} else {
location_ = value;
}
- onChanged();
} else {
locationBuilder_.mergeFrom(value);
}
-
+ if (location_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
* .exoscale.vinyl.Location location = 2;
*/
public Builder clearLocation() {
- if (locationBuilder_ == null) {
- location_ = null;
- onChanged();
- } else {
- location_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ location_ = null;
+ if (locationBuilder_ != null) {
+ locationBuilder_.dispose();
locationBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
* .exoscale.vinyl.Location location = 2;
*/
public exoscale.vinyl.Demostore.Location.Builder getLocationBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getLocationFieldBuilder().getBuilder();
}
@@ -5595,11 +5233,11 @@ public exoscale.vinyl.Demostore.LocationOrBuilder getLocationOrBuilder() {
/**
* .exoscale.vinyl.Location location = 2;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Location, exoscale.vinyl.Demostore.Location.Builder, exoscale.vinyl.Demostore.LocationOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
- locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ locationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Location, exoscale.vinyl.Demostore.Location.Builder, exoscale.vinyl.Demostore.LocationOrBuilder>(
getLocation(),
getParentForChildren(),
@@ -5608,18 +5246,6 @@ public exoscale.vinyl.Demostore.LocationOrBuilder getLocationOrBuilder() {
}
return locationBuilder_;
}
- @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:exoscale.vinyl.City)
}
@@ -5641,7 +5267,18 @@ public City parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new City(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -5744,144 +5381,40 @@ public interface RecordTypeUnionOrBuilder extends
* Protobuf type {@code exoscale.vinyl.RecordTypeUnion}
*/
public static final class RecordTypeUnion extends
- com.google.protobuf.GeneratedMessageV3 implements
+ com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:exoscale.vinyl.RecordTypeUnion)
RecordTypeUnionOrBuilder {
private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 0,
+ /* suffix= */ "",
+ RecordTypeUnion.class.getName());
+ }
// Use RecordTypeUnion.newBuilder() to construct.
- private RecordTypeUnion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ private RecordTypeUnion(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private RecordTypeUnion() {
}
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new RecordTypeUnion();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private RecordTypeUnion(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- this();
- if (extensionRegistry == null) {
- throw new java.lang.NullPointerException();
- }
- 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: {
- exoscale.vinyl.Demostore.Account.Builder subBuilder = null;
- if (Account_ != null) {
- subBuilder = Account_.toBuilder();
- }
- Account_ = input.readMessage(exoscale.vinyl.Demostore.Account.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(Account_);
- Account_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 18: {
- exoscale.vinyl.Demostore.User.Builder subBuilder = null;
- if (User_ != null) {
- subBuilder = User_.toBuilder();
- }
- User_ = input.readMessage(exoscale.vinyl.Demostore.User.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(User_);
- User_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 26: {
- exoscale.vinyl.Demostore.Invoice.Builder subBuilder = null;
- if (Invoice_ != null) {
- subBuilder = Invoice_.toBuilder();
- }
- Invoice_ = input.readMessage(exoscale.vinyl.Demostore.Invoice.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(Invoice_);
- Invoice_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 34: {
- exoscale.vinyl.Demostore.Object.Builder subBuilder = null;
- if (Object_ != null) {
- subBuilder = Object_.toBuilder();
- }
- Object_ = input.readMessage(exoscale.vinyl.Demostore.Object.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(Object_);
- Object_ = subBuilder.buildPartial();
- }
-
- break;
- }
- case 42: {
- exoscale.vinyl.Demostore.City.Builder subBuilder = null;
- if (City_ != null) {
- subBuilder = City_.toBuilder();
- }
- City_ = input.readMessage(exoscale.vinyl.Demostore.City.parser(), extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(City_);
- City_ = subBuilder.buildPartial();
- }
-
- 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 exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_RecordTypeUnion_descriptor;
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_RecordTypeUnion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
exoscale.vinyl.Demostore.RecordTypeUnion.class, exoscale.vinyl.Demostore.RecordTypeUnion.Builder.class);
}
+ private int bitField0_;
public static final int _ACCOUNT_FIELD_NUMBER = 1;
private exoscale.vinyl.Demostore.Account Account_;
/**
@@ -5890,7 +5423,7 @@ private RecordTypeUnion(
*/
@java.lang.Override
public boolean hasAccount() {
- return Account_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* .exoscale.vinyl.Account _Account = 1;
@@ -5905,7 +5438,7 @@ public exoscale.vinyl.Demostore.Account getAccount() {
*/
@java.lang.Override
public exoscale.vinyl.Demostore.AccountOrBuilder getAccountOrBuilder() {
- return getAccount();
+ return Account_ == null ? exoscale.vinyl.Demostore.Account.getDefaultInstance() : Account_;
}
public static final int _USER_FIELD_NUMBER = 2;
@@ -5916,7 +5449,7 @@ public exoscale.vinyl.Demostore.AccountOrBuilder getAccountOrBuilder() {
*/
@java.lang.Override
public boolean hasUser() {
- return User_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* .exoscale.vinyl.User _User = 2;
@@ -5931,7 +5464,7 @@ public exoscale.vinyl.Demostore.User getUser() {
*/
@java.lang.Override
public exoscale.vinyl.Demostore.UserOrBuilder getUserOrBuilder() {
- return getUser();
+ return User_ == null ? exoscale.vinyl.Demostore.User.getDefaultInstance() : User_;
}
public static final int _INVOICE_FIELD_NUMBER = 3;
@@ -5942,7 +5475,7 @@ public exoscale.vinyl.Demostore.UserOrBuilder getUserOrBuilder() {
*/
@java.lang.Override
public boolean hasInvoice() {
- return Invoice_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* .exoscale.vinyl.Invoice _Invoice = 3;
@@ -5957,7 +5490,7 @@ public exoscale.vinyl.Demostore.Invoice getInvoice() {
*/
@java.lang.Override
public exoscale.vinyl.Demostore.InvoiceOrBuilder getInvoiceOrBuilder() {
- return getInvoice();
+ return Invoice_ == null ? exoscale.vinyl.Demostore.Invoice.getDefaultInstance() : Invoice_;
}
public static final int _OBJECT_FIELD_NUMBER = 4;
@@ -5968,7 +5501,7 @@ public exoscale.vinyl.Demostore.InvoiceOrBuilder getInvoiceOrBuilder() {
*/
@java.lang.Override
public boolean hasObject() {
- return Object_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* .exoscale.vinyl.Object _Object = 4;
@@ -5983,7 +5516,7 @@ public exoscale.vinyl.Demostore.Object getObject() {
*/
@java.lang.Override
public exoscale.vinyl.Demostore.ObjectOrBuilder getObjectOrBuilder() {
- return getObject();
+ return Object_ == null ? exoscale.vinyl.Demostore.Object.getDefaultInstance() : Object_;
}
public static final int _CITY_FIELD_NUMBER = 5;
@@ -5994,7 +5527,7 @@ public exoscale.vinyl.Demostore.ObjectOrBuilder getObjectOrBuilder() {
*/
@java.lang.Override
public boolean hasCity() {
- return City_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* .exoscale.vinyl.City _City = 5;
@@ -6009,7 +5542,7 @@ public exoscale.vinyl.Demostore.City getCity() {
*/
@java.lang.Override
public exoscale.vinyl.Demostore.CityOrBuilder getCityOrBuilder() {
- return getCity();
+ return City_ == null ? exoscale.vinyl.Demostore.City.getDefaultInstance() : City_;
}
private byte memoizedIsInitialized = -1;
@@ -6026,22 +5559,22 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (Account_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getAccount());
}
- if (User_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getUser());
}
- if (Invoice_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getInvoice());
}
- if (Object_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getObject());
}
- if (City_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getCity());
}
- unknownFields.writeTo(output);
+ getUnknownFields().writeTo(output);
}
@java.lang.Override
@@ -6050,27 +5583,27 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- if (Account_ != null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAccount());
}
- if (User_ != null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUser());
}
- if (Invoice_ != null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getInvoice());
}
- if (Object_ != null) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getObject());
}
- if (City_ != null) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCity());
}
- size += unknownFields.getSerializedSize();
+ size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@@ -6110,7 +5643,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getCity()
.equals(other.getCity())) return false;
}
- if (!unknownFields.equals(other.unknownFields)) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -6141,7 +5674,7 @@ public int hashCode() {
hash = (37 * hash) + _CITY_FIELD_NUMBER;
hash = (53 * hash) + getCity().hashCode();
}
- hash = (29 * hash) + unknownFields.hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
@@ -6180,39 +5713,41 @@ public static exoscale.vinyl.Demostore.RecordTypeUnion parseFrom(
}
public static exoscale.vinyl.Demostore.RecordTypeUnion parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.RecordTypeUnion parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static exoscale.vinyl.Demostore.RecordTypeUnion parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
+
public static exoscale.vinyl.Demostore.RecordTypeUnion parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static exoscale.vinyl.Demostore.RecordTypeUnion parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static exoscale.vinyl.Demostore.RecordTypeUnion parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
+ return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -6232,7 +5767,7 @@ public Builder toBuilder() {
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6240,7 +5775,7 @@ protected Builder newBuilderForType(
* Protobuf type {@code exoscale.vinyl.RecordTypeUnion}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.Builder implements
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:exoscale.vinyl.RecordTypeUnion)
exoscale.vinyl.Demostore.RecordTypeUnionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -6249,7 +5784,7 @@ public static final class Builder extends
}
@java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return exoscale.vinyl.Demostore.internal_static_exoscale_vinyl_RecordTypeUnion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6262,46 +5797,47 @@ private Builder() {
}
private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
+ if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
+ getAccountFieldBuilder();
+ getUserFieldBuilder();
+ getInvoiceFieldBuilder();
+ getObjectFieldBuilder();
+ getCityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- if (AccountBuilder_ == null) {
- Account_ = null;
- } else {
- Account_ = null;
+ bitField0_ = 0;
+ Account_ = null;
+ if (AccountBuilder_ != null) {
+ AccountBuilder_.dispose();
AccountBuilder_ = null;
}
- if (UserBuilder_ == null) {
- User_ = null;
- } else {
- User_ = null;
+ User_ = null;
+ if (UserBuilder_ != null) {
+ UserBuilder_.dispose();
UserBuilder_ = null;
}
- if (InvoiceBuilder_ == null) {
- Invoice_ = null;
- } else {
- Invoice_ = null;
+ Invoice_ = null;
+ if (InvoiceBuilder_ != null) {
+ InvoiceBuilder_.dispose();
InvoiceBuilder_ = null;
}
- if (ObjectBuilder_ == null) {
- Object_ = null;
- } else {
- Object_ = null;
+ Object_ = null;
+ if (ObjectBuilder_ != null) {
+ ObjectBuilder_.dispose();
ObjectBuilder_ = null;
}
- if (CityBuilder_ == null) {
- City_ = null;
- } else {
- City_ = null;
+ City_ = null;
+ if (CityBuilder_ != null) {
+ CityBuilder_.dispose();
CityBuilder_ = null;
}
return this;
@@ -6330,67 +5866,47 @@ public exoscale.vinyl.Demostore.RecordTypeUnion build() {
@java.lang.Override
public exoscale.vinyl.Demostore.RecordTypeUnion buildPartial() {
exoscale.vinyl.Demostore.RecordTypeUnion result = new exoscale.vinyl.Demostore.RecordTypeUnion(this);
- if (AccountBuilder_ == null) {
- result.Account_ = Account_;
- } else {
- result.Account_ = AccountBuilder_.build();
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(exoscale.vinyl.Demostore.RecordTypeUnion result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.Account_ = AccountBuilder_ == null
+ ? Account_
+ : AccountBuilder_.build();
+ to_bitField0_ |= 0x00000001;
}
- if (UserBuilder_ == null) {
- result.User_ = User_;
- } else {
- result.User_ = UserBuilder_.build();
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.User_ = UserBuilder_ == null
+ ? User_
+ : UserBuilder_.build();
+ to_bitField0_ |= 0x00000002;
}
- if (InvoiceBuilder_ == null) {
- result.Invoice_ = Invoice_;
- } else {
- result.Invoice_ = InvoiceBuilder_.build();
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.Invoice_ = InvoiceBuilder_ == null
+ ? Invoice_
+ : InvoiceBuilder_.build();
+ to_bitField0_ |= 0x00000004;
}
- if (ObjectBuilder_ == null) {
- result.Object_ = Object_;
- } else {
- result.Object_ = ObjectBuilder_.build();
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.Object_ = ObjectBuilder_ == null
+ ? Object_
+ : ObjectBuilder_.build();
+ to_bitField0_ |= 0x00000008;
}
- if (CityBuilder_ == null) {
- result.City_ = City_;
- } else {
- result.City_ = CityBuilder_.build();
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.City_ = CityBuilder_ == null
+ ? City_
+ : CityBuilder_.build();
+ to_bitField0_ |= 0x00000010;
}
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
- @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 exoscale.vinyl.Demostore.RecordTypeUnion) {
@@ -6418,7 +5934,7 @@ public Builder mergeFrom(exoscale.vinyl.Demostore.RecordTypeUnion other) {
if (other.hasCity()) {
mergeCity(other.getCity());
}
- this.mergeUnknownFields(other.unknownFields);
+ this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@@ -6433,29 +5949,78 @@ public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- exoscale.vinyl.Demostore.RecordTypeUnion parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getAccountFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getUserFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getInvoiceFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getObjectFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ input.readMessage(
+ getCityFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (exoscale.vinyl.Demostore.RecordTypeUnion) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
+ private int bitField0_;
private exoscale.vinyl.Demostore.Account Account_;
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Account, exoscale.vinyl.Demostore.Account.Builder, exoscale.vinyl.Demostore.AccountOrBuilder> AccountBuilder_;
/**
* .exoscale.vinyl.Account _Account = 1;
* @return Whether the account field is set.
*/
public boolean hasAccount() {
- return AccountBuilder_ != null || Account_ != null;
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* .exoscale.vinyl.Account _Account = 1;
@@ -6477,11 +6042,11 @@ public Builder setAccount(exoscale.vinyl.Demostore.Account value) {
throw new NullPointerException();
}
Account_ = value;
- onChanged();
} else {
AccountBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -6491,11 +6056,11 @@ public Builder setAccount(
exoscale.vinyl.Demostore.Account.Builder builderForValue) {
if (AccountBuilder_ == null) {
Account_ = builderForValue.build();
- onChanged();
} else {
AccountBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -6503,38 +6068,40 @@ public Builder setAccount(
*/
public Builder mergeAccount(exoscale.vinyl.Demostore.Account value) {
if (AccountBuilder_ == null) {
- if (Account_ != null) {
- Account_ =
- exoscale.vinyl.Demostore.Account.newBuilder(Account_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000001) != 0) &&
+ Account_ != null &&
+ Account_ != exoscale.vinyl.Demostore.Account.getDefaultInstance()) {
+ getAccountBuilder().mergeFrom(value);
} else {
Account_ = value;
}
- onChanged();
} else {
AccountBuilder_.mergeFrom(value);
}
-
+ if (Account_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
* .exoscale.vinyl.Account _Account = 1;
*/
public Builder clearAccount() {
- if (AccountBuilder_ == null) {
- Account_ = null;
- onChanged();
- } else {
- Account_ = null;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ Account_ = null;
+ if (AccountBuilder_ != null) {
+ AccountBuilder_.dispose();
AccountBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
* .exoscale.vinyl.Account _Account = 1;
*/
public exoscale.vinyl.Demostore.Account.Builder getAccountBuilder() {
-
+ bitField0_ |= 0x00000001;
onChanged();
return getAccountFieldBuilder().getBuilder();
}
@@ -6552,11 +6119,11 @@ public exoscale.vinyl.Demostore.AccountOrBuilder getAccountOrBuilder() {
/**
* .exoscale.vinyl.Account _Account = 1;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Account, exoscale.vinyl.Demostore.Account.Builder, exoscale.vinyl.Demostore.AccountOrBuilder>
getAccountFieldBuilder() {
if (AccountBuilder_ == null) {
- AccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ AccountBuilder_ = new com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Account, exoscale.vinyl.Demostore.Account.Builder, exoscale.vinyl.Demostore.AccountOrBuilder>(
getAccount(),
getParentForChildren(),
@@ -6567,14 +6134,14 @@ public exoscale.vinyl.Demostore.AccountOrBuilder getAccountOrBuilder() {
}
private exoscale.vinyl.Demostore.User User_;
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.User, exoscale.vinyl.Demostore.User.Builder, exoscale.vinyl.Demostore.UserOrBuilder> UserBuilder_;
/**
* .exoscale.vinyl.User _User = 2;
* @return Whether the user field is set.
*/
public boolean hasUser() {
- return UserBuilder_ != null || User_ != null;
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* .exoscale.vinyl.User _User = 2;
@@ -6596,11 +6163,11 @@ public Builder setUser(exoscale.vinyl.Demostore.User value) {
throw new NullPointerException();
}
User_ = value;
- onChanged();
} else {
UserBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -6610,11 +6177,11 @@ public Builder setUser(
exoscale.vinyl.Demostore.User.Builder builderForValue) {
if (UserBuilder_ == null) {
User_ = builderForValue.build();
- onChanged();
} else {
UserBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -6622,38 +6189,40 @@ public Builder setUser(
*/
public Builder mergeUser(exoscale.vinyl.Demostore.User value) {
if (UserBuilder_ == null) {
- if (User_ != null) {
- User_ =
- exoscale.vinyl.Demostore.User.newBuilder(User_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0) &&
+ User_ != null &&
+ User_ != exoscale.vinyl.Demostore.User.getDefaultInstance()) {
+ getUserBuilder().mergeFrom(value);
} else {
User_ = value;
}
- onChanged();
} else {
UserBuilder_.mergeFrom(value);
}
-
+ if (User_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
* .exoscale.vinyl.User _User = 2;
*/
public Builder clearUser() {
- if (UserBuilder_ == null) {
- User_ = null;
- onChanged();
- } else {
- User_ = null;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ User_ = null;
+ if (UserBuilder_ != null) {
+ UserBuilder_.dispose();
UserBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
* .exoscale.vinyl.User _User = 2;
*/
public exoscale.vinyl.Demostore.User.Builder getUserBuilder() {
-
+ bitField0_ |= 0x00000002;
onChanged();
return getUserFieldBuilder().getBuilder();
}
@@ -6671,11 +6240,11 @@ public exoscale.vinyl.Demostore.UserOrBuilder getUserOrBuilder() {
/**
* .exoscale.vinyl.User _User = 2;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.User, exoscale.vinyl.Demostore.User.Builder, exoscale.vinyl.Demostore.UserOrBuilder>
getUserFieldBuilder() {
if (UserBuilder_ == null) {
- UserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ UserBuilder_ = new com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.User, exoscale.vinyl.Demostore.User.Builder, exoscale.vinyl.Demostore.UserOrBuilder>(
getUser(),
getParentForChildren(),
@@ -6686,14 +6255,14 @@ public exoscale.vinyl.Demostore.UserOrBuilder getUserOrBuilder() {
}
private exoscale.vinyl.Demostore.Invoice Invoice_;
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Invoice, exoscale.vinyl.Demostore.Invoice.Builder, exoscale.vinyl.Demostore.InvoiceOrBuilder> InvoiceBuilder_;
/**
* .exoscale.vinyl.Invoice _Invoice = 3;
* @return Whether the invoice field is set.
*/
public boolean hasInvoice() {
- return InvoiceBuilder_ != null || Invoice_ != null;
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* .exoscale.vinyl.Invoice _Invoice = 3;
@@ -6715,11 +6284,11 @@ public Builder setInvoice(exoscale.vinyl.Demostore.Invoice value) {
throw new NullPointerException();
}
Invoice_ = value;
- onChanged();
} else {
InvoiceBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -6729,11 +6298,11 @@ public Builder setInvoice(
exoscale.vinyl.Demostore.Invoice.Builder builderForValue) {
if (InvoiceBuilder_ == null) {
Invoice_ = builderForValue.build();
- onChanged();
} else {
InvoiceBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -6741,38 +6310,40 @@ public Builder setInvoice(
*/
public Builder mergeInvoice(exoscale.vinyl.Demostore.Invoice value) {
if (InvoiceBuilder_ == null) {
- if (Invoice_ != null) {
- Invoice_ =
- exoscale.vinyl.Demostore.Invoice.newBuilder(Invoice_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0) &&
+ Invoice_ != null &&
+ Invoice_ != exoscale.vinyl.Demostore.Invoice.getDefaultInstance()) {
+ getInvoiceBuilder().mergeFrom(value);
} else {
Invoice_ = value;
}
- onChanged();
} else {
InvoiceBuilder_.mergeFrom(value);
}
-
+ if (Invoice_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
* .exoscale.vinyl.Invoice _Invoice = 3;
*/
public Builder clearInvoice() {
- if (InvoiceBuilder_ == null) {
- Invoice_ = null;
- onChanged();
- } else {
- Invoice_ = null;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ Invoice_ = null;
+ if (InvoiceBuilder_ != null) {
+ InvoiceBuilder_.dispose();
InvoiceBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
* .exoscale.vinyl.Invoice _Invoice = 3;
*/
public exoscale.vinyl.Demostore.Invoice.Builder getInvoiceBuilder() {
-
+ bitField0_ |= 0x00000004;
onChanged();
return getInvoiceFieldBuilder().getBuilder();
}
@@ -6790,11 +6361,11 @@ public exoscale.vinyl.Demostore.InvoiceOrBuilder getInvoiceOrBuilder() {
/**
* .exoscale.vinyl.Invoice _Invoice = 3;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Invoice, exoscale.vinyl.Demostore.Invoice.Builder, exoscale.vinyl.Demostore.InvoiceOrBuilder>
getInvoiceFieldBuilder() {
if (InvoiceBuilder_ == null) {
- InvoiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ InvoiceBuilder_ = new com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Invoice, exoscale.vinyl.Demostore.Invoice.Builder, exoscale.vinyl.Demostore.InvoiceOrBuilder>(
getInvoice(),
getParentForChildren(),
@@ -6805,14 +6376,14 @@ public exoscale.vinyl.Demostore.InvoiceOrBuilder getInvoiceOrBuilder() {
}
private exoscale.vinyl.Demostore.Object Object_;
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Object, exoscale.vinyl.Demostore.Object.Builder, exoscale.vinyl.Demostore.ObjectOrBuilder> ObjectBuilder_;
/**
* .exoscale.vinyl.Object _Object = 4;
* @return Whether the object field is set.
*/
public boolean hasObject() {
- return ObjectBuilder_ != null || Object_ != null;
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* .exoscale.vinyl.Object _Object = 4;
@@ -6834,11 +6405,11 @@ public Builder setObject(exoscale.vinyl.Demostore.Object value) {
throw new NullPointerException();
}
Object_ = value;
- onChanged();
} else {
ObjectBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -6848,11 +6419,11 @@ public Builder setObject(
exoscale.vinyl.Demostore.Object.Builder builderForValue) {
if (ObjectBuilder_ == null) {
Object_ = builderForValue.build();
- onChanged();
} else {
ObjectBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -6860,38 +6431,40 @@ public Builder setObject(
*/
public Builder mergeObject(exoscale.vinyl.Demostore.Object value) {
if (ObjectBuilder_ == null) {
- if (Object_ != null) {
- Object_ =
- exoscale.vinyl.Demostore.Object.newBuilder(Object_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000008) != 0) &&
+ Object_ != null &&
+ Object_ != exoscale.vinyl.Demostore.Object.getDefaultInstance()) {
+ getObjectBuilder().mergeFrom(value);
} else {
Object_ = value;
}
- onChanged();
} else {
ObjectBuilder_.mergeFrom(value);
}
-
+ if (Object_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
* .exoscale.vinyl.Object _Object = 4;
*/
public Builder clearObject() {
- if (ObjectBuilder_ == null) {
- Object_ = null;
- onChanged();
- } else {
- Object_ = null;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ Object_ = null;
+ if (ObjectBuilder_ != null) {
+ ObjectBuilder_.dispose();
ObjectBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
* .exoscale.vinyl.Object _Object = 4;
*/
public exoscale.vinyl.Demostore.Object.Builder getObjectBuilder() {
-
+ bitField0_ |= 0x00000008;
onChanged();
return getObjectFieldBuilder().getBuilder();
}
@@ -6909,11 +6482,11 @@ public exoscale.vinyl.Demostore.ObjectOrBuilder getObjectOrBuilder() {
/**
* .exoscale.vinyl.Object _Object = 4;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Object, exoscale.vinyl.Demostore.Object.Builder, exoscale.vinyl.Demostore.ObjectOrBuilder>
getObjectFieldBuilder() {
if (ObjectBuilder_ == null) {
- ObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ ObjectBuilder_ = new com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.Object, exoscale.vinyl.Demostore.Object.Builder, exoscale.vinyl.Demostore.ObjectOrBuilder>(
getObject(),
getParentForChildren(),
@@ -6924,14 +6497,14 @@ public exoscale.vinyl.Demostore.ObjectOrBuilder getObjectOrBuilder() {
}
private exoscale.vinyl.Demostore.City City_;
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.City, exoscale.vinyl.Demostore.City.Builder, exoscale.vinyl.Demostore.CityOrBuilder> CityBuilder_;
/**
* .exoscale.vinyl.City _City = 5;
* @return Whether the city field is set.
*/
public boolean hasCity() {
- return CityBuilder_ != null || City_ != null;
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* .exoscale.vinyl.City _City = 5;
@@ -6953,11 +6526,11 @@ public Builder setCity(exoscale.vinyl.Demostore.City value) {
throw new NullPointerException();
}
City_ = value;
- onChanged();
} else {
CityBuilder_.setMessage(value);
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -6967,11 +6540,11 @@ public Builder setCity(
exoscale.vinyl.Demostore.City.Builder builderForValue) {
if (CityBuilder_ == null) {
City_ = builderForValue.build();
- onChanged();
} else {
CityBuilder_.setMessage(builderForValue.build());
}
-
+ bitField0_ |= 0x00000010;
+ onChanged();
return this;
}
/**
@@ -6979,38 +6552,40 @@ public Builder setCity(
*/
public Builder mergeCity(exoscale.vinyl.Demostore.City value) {
if (CityBuilder_ == null) {
- if (City_ != null) {
- City_ =
- exoscale.vinyl.Demostore.City.newBuilder(City_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000010) != 0) &&
+ City_ != null &&
+ City_ != exoscale.vinyl.Demostore.City.getDefaultInstance()) {
+ getCityBuilder().mergeFrom(value);
} else {
City_ = value;
}
- onChanged();
} else {
CityBuilder_.mergeFrom(value);
}
-
+ if (City_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
return this;
}
/**
* .exoscale.vinyl.City _City = 5;
*/
public Builder clearCity() {
- if (CityBuilder_ == null) {
- City_ = null;
- onChanged();
- } else {
- City_ = null;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ City_ = null;
+ if (CityBuilder_ != null) {
+ CityBuilder_.dispose();
CityBuilder_ = null;
}
-
+ onChanged();
return this;
}
/**
* .exoscale.vinyl.City _City = 5;
*/
public exoscale.vinyl.Demostore.City.Builder getCityBuilder() {
-
+ bitField0_ |= 0x00000010;
onChanged();
return getCityFieldBuilder().getBuilder();
}
@@ -7028,11 +6603,11 @@ public exoscale.vinyl.Demostore.CityOrBuilder getCityOrBuilder() {
/**
* .exoscale.vinyl.City _City = 5;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
+ private com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.City, exoscale.vinyl.Demostore.City.Builder, exoscale.vinyl.Demostore.CityOrBuilder>
getCityFieldBuilder() {
if (CityBuilder_ == null) {
- CityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ CityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
exoscale.vinyl.Demostore.City, exoscale.vinyl.Demostore.City.Builder, exoscale.vinyl.Demostore.CityOrBuilder>(
getCity(),
getParentForChildren(),
@@ -7041,18 +6616,6 @@ public exoscale.vinyl.Demostore.CityOrBuilder getCityOrBuilder() {
}
return CityBuilder_;
}
- @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:exoscale.vinyl.RecordTypeUnion)
}
@@ -7074,7 +6637,18 @@ public RecordTypeUnion parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- return new RecordTypeUnion(input, extensionRegistry);
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
}
};
@@ -7097,42 +6671,42 @@ public exoscale.vinyl.Demostore.RecordTypeUnion getDefaultInstanceForType() {
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exoscale_vinyl_Account_descriptor;
private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_exoscale_vinyl_Account_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exoscale_vinyl_User_descriptor;
private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_exoscale_vinyl_User_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exoscale_vinyl_InvoiceLine_descriptor;
private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_exoscale_vinyl_InvoiceLine_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exoscale_vinyl_Invoice_descriptor;
private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_exoscale_vinyl_Invoice_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exoscale_vinyl_Object_descriptor;
private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_exoscale_vinyl_Object_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exoscale_vinyl_Location_descriptor;
private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_exoscale_vinyl_Location_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exoscale_vinyl_City_descriptor;
private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_exoscale_vinyl_City_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_exoscale_vinyl_RecordTypeUnion_descriptor;
private static final
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_exoscale_vinyl_RecordTypeUnion_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -7172,51 +6746,52 @@ public exoscale.vinyl.Demostore.RecordTypeUnion getDefaultInstanceForType() {
internal_static_exoscale_vinyl_Account_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_exoscale_vinyl_Account_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_exoscale_vinyl_Account_descriptor,
new java.lang.String[] { "Id", "Name", "State", "Payment", });
internal_static_exoscale_vinyl_User_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_exoscale_vinyl_User_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_exoscale_vinyl_User_descriptor,
new java.lang.String[] { "AccountId", "Id", "Name", "Email", });
internal_static_exoscale_vinyl_InvoiceLine_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_exoscale_vinyl_InvoiceLine_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_exoscale_vinyl_InvoiceLine_descriptor,
new java.lang.String[] { "Product", "Quantity", });
internal_static_exoscale_vinyl_Invoice_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_exoscale_vinyl_Invoice_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_exoscale_vinyl_Invoice_descriptor,
new java.lang.String[] { "AccountId", "Id", "Total", "Lines", });
internal_static_exoscale_vinyl_Object_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_exoscale_vinyl_Object_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_exoscale_vinyl_Object_descriptor,
new java.lang.String[] { "Bucket", "Path", "Size", });
internal_static_exoscale_vinyl_Location_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_exoscale_vinyl_Location_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_exoscale_vinyl_Location_descriptor,
new java.lang.String[] { "ZipCode", "Name", });
internal_static_exoscale_vinyl_City_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_exoscale_vinyl_City_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_exoscale_vinyl_City_descriptor,
new java.lang.String[] { "Id", "Location", });
internal_static_exoscale_vinyl_RecordTypeUnion_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_exoscale_vinyl_RecordTypeUnion_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_exoscale_vinyl_RecordTypeUnion_descriptor,
new java.lang.String[] { "Account", "User", "Invoice", "Object", "City", });
+ descriptor.resolveAllFeaturesImmutable();
}
// @@protoc_insertion_point(outer_class_scope)