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