implements
+ // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.Crypto)
+ opi_api.storage.v1.CryptoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_Crypto_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_Crypto_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.Crypto.class, opi_api.storage.v1.Crypto.Builder.class);
+ }
+
+ // Construct using opi_api.storage.v1.Crypto.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ 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();
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+ if (volumeIdBuilder_ == null) {
+ volumeId_ = null;
+ } else {
+ volumeId_ = null;
+ volumeIdBuilder_ = null;
+ }
+ key_ = com.google.protobuf.ByteString.EMPTY;
+
+ cipher_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_Crypto_descriptor;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.Crypto getDefaultInstanceForType() {
+ return opi_api.storage.v1.Crypto.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.Crypto build() {
+ opi_api.storage.v1.Crypto result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.Crypto buildPartial() {
+ opi_api.storage.v1.Crypto result = new opi_api.storage.v1.Crypto(this);
+ if (cryptoIdBuilder_ == null) {
+ result.cryptoId_ = cryptoId_;
+ } else {
+ result.cryptoId_ = cryptoIdBuilder_.build();
+ }
+ if (volumeIdBuilder_ == null) {
+ result.volumeId_ = volumeId_;
+ } else {
+ result.volumeId_ = volumeIdBuilder_.build();
+ }
+ result.key_ = key_;
+ result.cipher_ = cipher_;
+ 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 opi_api.storage.v1.Crypto) {
+ return mergeFrom((opi_api.storage.v1.Crypto)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(opi_api.storage.v1.Crypto other) {
+ if (other == opi_api.storage.v1.Crypto.getDefaultInstance()) return this;
+ if (other.hasCryptoId()) {
+ mergeCryptoId(other.getCryptoId());
+ }
+ if (other.hasVolumeId()) {
+ mergeVolumeId(other.getVolumeId());
+ }
+ if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
+ setKey(other.getKey());
+ }
+ if (other.cipher_ != 0) {
+ setCipherValue(other.getCipherValue());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ opi_api.storage.v1.Crypto parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (opi_api.storage.v1.Crypto) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ public boolean hasCryptoId() {
+ return cryptoIdBuilder_ != null || cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ } else {
+ return cryptoIdBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cryptoId_ = value;
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = builderForValue.build();
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (cryptoId_ != null) {
+ cryptoId_ =
+ opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial();
+ } else {
+ cryptoId_ = value;
+ }
+ onChanged();
+ } else {
+ cryptoIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder clearCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ onChanged();
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() {
+
+ onChanged();
+ return getCryptoIdFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ if (cryptoIdBuilder_ != null) {
+ return cryptoIdBuilder_.getMessageOrBuilder();
+ } else {
+ return cryptoId_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getCryptoIdFieldBuilder() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getCryptoId(),
+ getParentForChildren(),
+ isClean());
+ cryptoId_ = null;
+ }
+ return cryptoIdBuilder_;
+ }
+
+ private opi_api.common.v1.ObjectKey volumeId_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> volumeIdBuilder_;
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ * @return Whether the volumeId field is set.
+ */
+ public boolean hasVolumeId() {
+ return volumeIdBuilder_ != null || volumeId_ != null;
+ }
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ * @return The volumeId.
+ */
+ public opi_api.common.v1.ObjectKey getVolumeId() {
+ if (volumeIdBuilder_ == null) {
+ return volumeId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : volumeId_;
+ } else {
+ return volumeIdBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ */
+ public Builder setVolumeId(opi_api.common.v1.ObjectKey value) {
+ if (volumeIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ volumeId_ = value;
+ onChanged();
+ } else {
+ volumeIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ */
+ public Builder setVolumeId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (volumeIdBuilder_ == null) {
+ volumeId_ = builderForValue.build();
+ onChanged();
+ } else {
+ volumeIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ */
+ public Builder mergeVolumeId(opi_api.common.v1.ObjectKey value) {
+ if (volumeIdBuilder_ == null) {
+ if (volumeId_ != null) {
+ volumeId_ =
+ opi_api.common.v1.ObjectKey.newBuilder(volumeId_).mergeFrom(value).buildPartial();
+ } else {
+ volumeId_ = value;
+ }
+ onChanged();
+ } else {
+ volumeIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ */
+ public Builder clearVolumeId() {
+ if (volumeIdBuilder_ == null) {
+ volumeId_ = null;
+ onChanged();
+ } else {
+ volumeId_ = null;
+ volumeIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ */
+ public opi_api.common.v1.ObjectKey.Builder getVolumeIdBuilder() {
+
+ onChanged();
+ return getVolumeIdFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getVolumeIdOrBuilder() {
+ if (volumeIdBuilder_ != null) {
+ return volumeIdBuilder_.getMessageOrBuilder();
+ } else {
+ return volumeId_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : volumeId_;
+ }
+ }
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getVolumeIdFieldBuilder() {
+ if (volumeIdBuilder_ == null) {
+ volumeIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getVolumeId(),
+ getParentForChildren(),
+ isClean());
+ volumeId_ = null;
+ }
+ return volumeIdBuilder_;
+ }
+
+ private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ * Key to be used for encryption
+ *
+ *
+ * bytes key = 3;
+ * @return The key.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKey() {
+ return key_;
+ }
+ /**
+ *
+ * Key to be used for encryption
+ *
+ *
+ * bytes key = 3;
+ * @param value The key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKey(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Key to be used for encryption
+ *
+ *
+ * bytes key = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+
+ private int cipher_ = 0;
+ /**
+ *
+ * Cipher to use
+ *
+ *
+ * .opi_api.storage.v1.CryptoType cipher = 4;
+ * @return The enum numeric value on the wire for cipher.
+ */
+ @java.lang.Override public int getCipherValue() {
+ return cipher_;
+ }
+ /**
+ *
+ * Cipher to use
+ *
+ *
+ * .opi_api.storage.v1.CryptoType cipher = 4;
+ * @param value The enum numeric value on the wire for cipher to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCipherValue(int value) {
+
+ cipher_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Cipher to use
+ *
+ *
+ * .opi_api.storage.v1.CryptoType cipher = 4;
+ * @return The cipher.
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoType getCipher() {
+ @SuppressWarnings("deprecation")
+ opi_api.storage.v1.CryptoType result = opi_api.storage.v1.CryptoType.valueOf(cipher_);
+ return result == null ? opi_api.storage.v1.CryptoType.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ * Cipher to use
+ *
+ *
+ * .opi_api.storage.v1.CryptoType cipher = 4;
+ * @param value The cipher to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCipher(opi_api.storage.v1.CryptoType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ cipher_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * Cipher to use
+ *
+ *
+ * .opi_api.storage.v1.CryptoType cipher = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearCipher() {
+
+ cipher_ = 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:opi_api.storage.v1.Crypto)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.Crypto)
+ private static final opi_api.storage.v1.Crypto DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.Crypto();
+ }
+
+ public static opi_api.storage.v1.Crypto getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Crypto parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Crypto(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.Crypto getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoOrBuilder.java
new file mode 100644
index 00000000..71201d4d
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoOrBuilder.java
@@ -0,0 +1,80 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+public interface CryptoOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.Crypto)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ boolean hasCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ opi_api.common.v1.ObjectKey getCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder();
+
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ * @return Whether the volumeId field is set.
+ */
+ boolean hasVolumeId();
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ * @return The volumeId.
+ */
+ opi_api.common.v1.ObjectKey getVolumeId();
+ /**
+ *
+ * The back/middle-end volume to back this volume
+ *
+ *
+ * .opi_api.common.v1.ObjectKey volume_id = 2;
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getVolumeIdOrBuilder();
+
+ /**
+ *
+ * Key to be used for encryption
+ *
+ *
+ * bytes key = 3;
+ * @return The key.
+ */
+ com.google.protobuf.ByteString getKey();
+
+ /**
+ *
+ * Cipher to use
+ *
+ *
+ * .opi_api.storage.v1.CryptoType cipher = 4;
+ * @return The enum numeric value on the wire for cipher.
+ */
+ int getCipherValue();
+ /**
+ *
+ * Cipher to use
+ *
+ *
+ * .opi_api.storage.v1.CryptoType cipher = 4;
+ * @return The cipher.
+ */
+ opi_api.storage.v1.CryptoType getCipher();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequest.java
new file mode 100644
index 00000000..a160af23
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequest.java
@@ -0,0 +1,607 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+/**
+ * Protobuf type {@code opi_api.storage.v1.CryptoStatsRequest}
+ */
+public final class CryptoStatsRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:opi_api.storage.v1.CryptoStatsRequest)
+ CryptoStatsRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use CryptoStatsRequest.newBuilder() to construct.
+ private CryptoStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CryptoStatsRequest() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CryptoStatsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CryptoStatsRequest(
+ 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: {
+ opi_api.common.v1.ObjectKey.Builder subBuilder = null;
+ if (cryptoId_ != null) {
+ subBuilder = cryptoId_.toBuilder();
+ }
+ cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(cryptoId_);
+ cryptoId_ = 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 opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.CryptoStatsRequest.class, opi_api.storage.v1.CryptoStatsRequest.Builder.class);
+ }
+
+ public static final int CRYPTO_ID_FIELD_NUMBER = 1;
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ @java.lang.Override
+ public boolean hasCryptoId() {
+ return cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ return getCryptoId();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (cryptoId_ != null) {
+ output.writeMessage(1, getCryptoId());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cryptoId_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getCryptoId());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof opi_api.storage.v1.CryptoStatsRequest)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.CryptoStatsRequest other = (opi_api.storage.v1.CryptoStatsRequest) obj;
+
+ if (hasCryptoId() != other.hasCryptoId()) return false;
+ if (hasCryptoId()) {
+ if (!getCryptoId()
+ .equals(other.getCryptoId())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCryptoId()) {
+ hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getCryptoId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.CryptoStatsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(opi_api.storage.v1.CryptoStatsRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code opi_api.storage.v1.CryptoStatsRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.CryptoStatsRequest)
+ opi_api.storage.v1.CryptoStatsRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.CryptoStatsRequest.class, opi_api.storage.v1.CryptoStatsRequest.Builder.class);
+ }
+
+ // Construct using opi_api.storage.v1.CryptoStatsRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ 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();
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoStatsRequest getDefaultInstanceForType() {
+ return opi_api.storage.v1.CryptoStatsRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoStatsRequest build() {
+ opi_api.storage.v1.CryptoStatsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoStatsRequest buildPartial() {
+ opi_api.storage.v1.CryptoStatsRequest result = new opi_api.storage.v1.CryptoStatsRequest(this);
+ if (cryptoIdBuilder_ == null) {
+ result.cryptoId_ = cryptoId_;
+ } else {
+ result.cryptoId_ = cryptoIdBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof opi_api.storage.v1.CryptoStatsRequest) {
+ return mergeFrom((opi_api.storage.v1.CryptoStatsRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(opi_api.storage.v1.CryptoStatsRequest other) {
+ if (other == opi_api.storage.v1.CryptoStatsRequest.getDefaultInstance()) return this;
+ if (other.hasCryptoId()) {
+ mergeCryptoId(other.getCryptoId());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ opi_api.storage.v1.CryptoStatsRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (opi_api.storage.v1.CryptoStatsRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ public boolean hasCryptoId() {
+ return cryptoIdBuilder_ != null || cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ } else {
+ return cryptoIdBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cryptoId_ = value;
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = builderForValue.build();
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (cryptoId_ != null) {
+ cryptoId_ =
+ opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial();
+ } else {
+ cryptoId_ = value;
+ }
+ onChanged();
+ } else {
+ cryptoIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder clearCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ onChanged();
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() {
+
+ onChanged();
+ return getCryptoIdFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ if (cryptoIdBuilder_ != null) {
+ return cryptoIdBuilder_.getMessageOrBuilder();
+ } else {
+ return cryptoId_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getCryptoIdFieldBuilder() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getCryptoId(),
+ getParentForChildren(),
+ isClean());
+ cryptoId_ = null;
+ }
+ return cryptoIdBuilder_;
+ }
+ @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:opi_api.storage.v1.CryptoStatsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.CryptoStatsRequest)
+ private static final opi_api.storage.v1.CryptoStatsRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.CryptoStatsRequest();
+ }
+
+ public static opi_api.storage.v1.CryptoStatsRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CryptoStatsRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CryptoStatsRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoStatsRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequestOrBuilder.java
new file mode 100644
index 00000000..f52f110b
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsRequestOrBuilder.java
@@ -0,0 +1,24 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+public interface CryptoStatsRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.CryptoStatsRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ boolean hasCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ opi_api.common.v1.ObjectKey getCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponse.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponse.java
new file mode 100644
index 00000000..a72d595c
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponse.java
@@ -0,0 +1,745 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+/**
+ * Protobuf type {@code opi_api.storage.v1.CryptoStatsResponse}
+ */
+public final class CryptoStatsResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:opi_api.storage.v1.CryptoStatsResponse)
+ CryptoStatsResponseOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use CryptoStatsResponse.newBuilder() to construct.
+ private CryptoStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CryptoStatsResponse() {
+ stats_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CryptoStatsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CryptoStatsResponse(
+ 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: {
+ opi_api.common.v1.ObjectKey.Builder subBuilder = null;
+ if (cryptoId_ != null) {
+ subBuilder = cryptoId_.toBuilder();
+ }
+ cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(cryptoId_);
+ cryptoId_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ stats_ = 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 opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.CryptoStatsResponse.class, opi_api.storage.v1.CryptoStatsResponse.Builder.class);
+ }
+
+ public static final int CRYPTO_ID_FIELD_NUMBER = 1;
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ @java.lang.Override
+ public boolean hasCryptoId() {
+ return cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ return getCryptoId();
+ }
+
+ public static final int STATS_FIELD_NUMBER = 2;
+ private volatile java.lang.Object stats_;
+ /**
+ * string stats = 2;
+ * @return The stats.
+ */
+ @java.lang.Override
+ public java.lang.String getStats() {
+ java.lang.Object ref = stats_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ stats_ = s;
+ return s;
+ }
+ }
+ /**
+ * string stats = 2;
+ * @return The bytes for stats.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getStatsBytes() {
+ java.lang.Object ref = stats_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ stats_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (cryptoId_ != null) {
+ output.writeMessage(1, getCryptoId());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stats_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stats_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cryptoId_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getCryptoId());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stats_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stats_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof opi_api.storage.v1.CryptoStatsResponse)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.CryptoStatsResponse other = (opi_api.storage.v1.CryptoStatsResponse) obj;
+
+ if (hasCryptoId() != other.hasCryptoId()) return false;
+ if (hasCryptoId()) {
+ if (!getCryptoId()
+ .equals(other.getCryptoId())) return false;
+ }
+ if (!getStats()
+ .equals(other.getStats())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCryptoId()) {
+ hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getCryptoId().hashCode();
+ }
+ hash = (37 * hash) + STATS_FIELD_NUMBER;
+ hash = (53 * hash) + getStats().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.CryptoStatsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(opi_api.storage.v1.CryptoStatsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code opi_api.storage.v1.CryptoStatsResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.CryptoStatsResponse)
+ opi_api.storage.v1.CryptoStatsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.CryptoStatsResponse.class, opi_api.storage.v1.CryptoStatsResponse.Builder.class);
+ }
+
+ // Construct using opi_api.storage.v1.CryptoStatsResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ 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();
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+ stats_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoStatsResponse getDefaultInstanceForType() {
+ return opi_api.storage.v1.CryptoStatsResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoStatsResponse build() {
+ opi_api.storage.v1.CryptoStatsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoStatsResponse buildPartial() {
+ opi_api.storage.v1.CryptoStatsResponse result = new opi_api.storage.v1.CryptoStatsResponse(this);
+ if (cryptoIdBuilder_ == null) {
+ result.cryptoId_ = cryptoId_;
+ } else {
+ result.cryptoId_ = cryptoIdBuilder_.build();
+ }
+ result.stats_ = stats_;
+ 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 opi_api.storage.v1.CryptoStatsResponse) {
+ return mergeFrom((opi_api.storage.v1.CryptoStatsResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(opi_api.storage.v1.CryptoStatsResponse other) {
+ if (other == opi_api.storage.v1.CryptoStatsResponse.getDefaultInstance()) return this;
+ if (other.hasCryptoId()) {
+ mergeCryptoId(other.getCryptoId());
+ }
+ if (!other.getStats().isEmpty()) {
+ stats_ = other.stats_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ opi_api.storage.v1.CryptoStatsResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (opi_api.storage.v1.CryptoStatsResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ public boolean hasCryptoId() {
+ return cryptoIdBuilder_ != null || cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ } else {
+ return cryptoIdBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cryptoId_ = value;
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = builderForValue.build();
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (cryptoId_ != null) {
+ cryptoId_ =
+ opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial();
+ } else {
+ cryptoId_ = value;
+ }
+ onChanged();
+ } else {
+ cryptoIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder clearCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ onChanged();
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() {
+
+ onChanged();
+ return getCryptoIdFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ if (cryptoIdBuilder_ != null) {
+ return cryptoIdBuilder_.getMessageOrBuilder();
+ } else {
+ return cryptoId_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getCryptoIdFieldBuilder() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getCryptoId(),
+ getParentForChildren(),
+ isClean());
+ cryptoId_ = null;
+ }
+ return cryptoIdBuilder_;
+ }
+
+ private java.lang.Object stats_ = "";
+ /**
+ * string stats = 2;
+ * @return The stats.
+ */
+ public java.lang.String getStats() {
+ java.lang.Object ref = stats_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ stats_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string stats = 2;
+ * @return The bytes for stats.
+ */
+ public com.google.protobuf.ByteString
+ getStatsBytes() {
+ java.lang.Object ref = stats_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ stats_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string stats = 2;
+ * @param value The stats to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStats(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ stats_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string stats = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearStats() {
+
+ stats_ = getDefaultInstance().getStats();
+ onChanged();
+ return this;
+ }
+ /**
+ * string stats = 2;
+ * @param value The bytes for stats to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStatsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ stats_ = value;
+ 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:opi_api.storage.v1.CryptoStatsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.CryptoStatsResponse)
+ private static final opi_api.storage.v1.CryptoStatsResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.CryptoStatsResponse();
+ }
+
+ public static opi_api.storage.v1.CryptoStatsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CryptoStatsResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CryptoStatsResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoStatsResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponseOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponseOrBuilder.java
new file mode 100644
index 00000000..73397289
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoStatsResponseOrBuilder.java
@@ -0,0 +1,36 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+public interface CryptoStatsResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.CryptoStatsResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ boolean hasCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ opi_api.common.v1.ObjectKey getCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder();
+
+ /**
+ * string stats = 2;
+ * @return The stats.
+ */
+ java.lang.String getStats();
+ /**
+ * string stats = 2;
+ * @return The bytes for stats.
+ */
+ com.google.protobuf.ByteString
+ getStatsBytes();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoType.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoType.java
new file mode 100644
index 00000000..2c15d0aa
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/CryptoType.java
@@ -0,0 +1,162 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: opicommon.proto
+
+package opi_api.storage.v1;
+
+/**
+ *
+ * AES encryption type to be used
+ *
+ *
+ * Protobuf enum {@code opi_api.storage.v1.CryptoType}
+ */
+public enum CryptoType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * CRYPTO_TYPE_UNSPECIFIED = 0;
+ */
+ CRYPTO_TYPE_UNSPECIFIED(0),
+ /**
+ * CRYPTO_TYPE_AES_CBC_128 = 1;
+ */
+ CRYPTO_TYPE_AES_CBC_128(1),
+ /**
+ * CRYPTO_TYPE_AES_CBC_192 = 2;
+ */
+ CRYPTO_TYPE_AES_CBC_192(2),
+ /**
+ * CRYPTO_TYPE_AES_CBC_256 = 3;
+ */
+ CRYPTO_TYPE_AES_CBC_256(3),
+ /**
+ * CRYPTO_TYPE_AES_XTS_128 = 4;
+ */
+ CRYPTO_TYPE_AES_XTS_128(4),
+ /**
+ * CRYPTO_TYPE_AES_XTS_192 = 5;
+ */
+ CRYPTO_TYPE_AES_XTS_192(5),
+ /**
+ * CRYPTO_TYPE_AES_XTS_256 = 6;
+ */
+ CRYPTO_TYPE_AES_XTS_256(6),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * CRYPTO_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int CRYPTO_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ * CRYPTO_TYPE_AES_CBC_128 = 1;
+ */
+ public static final int CRYPTO_TYPE_AES_CBC_128_VALUE = 1;
+ /**
+ * CRYPTO_TYPE_AES_CBC_192 = 2;
+ */
+ public static final int CRYPTO_TYPE_AES_CBC_192_VALUE = 2;
+ /**
+ * CRYPTO_TYPE_AES_CBC_256 = 3;
+ */
+ public static final int CRYPTO_TYPE_AES_CBC_256_VALUE = 3;
+ /**
+ * CRYPTO_TYPE_AES_XTS_128 = 4;
+ */
+ public static final int CRYPTO_TYPE_AES_XTS_128_VALUE = 4;
+ /**
+ * CRYPTO_TYPE_AES_XTS_192 = 5;
+ */
+ public static final int CRYPTO_TYPE_AES_XTS_192_VALUE = 5;
+ /**
+ * CRYPTO_TYPE_AES_XTS_256 = 6;
+ */
+ public static final int CRYPTO_TYPE_AES_XTS_256_VALUE = 6;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static CryptoType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CryptoType forNumber(int value) {
+ switch (value) {
+ case 0: return CRYPTO_TYPE_UNSPECIFIED;
+ case 1: return CRYPTO_TYPE_AES_CBC_128;
+ case 2: return CRYPTO_TYPE_AES_CBC_192;
+ case 3: return CRYPTO_TYPE_AES_CBC_256;
+ case 4: return CRYPTO_TYPE_AES_XTS_128;
+ case 5: return CRYPTO_TYPE_AES_XTS_192;
+ case 6: return CRYPTO_TYPE_AES_XTS_256;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ CryptoType> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public CryptoType findValueByNumber(int number) {
+ return CryptoType.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return opi_api.storage.v1.OpiCommonProto.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final CryptoType[] VALUES = values();
+
+ public static CryptoType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private CryptoType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:opi_api.storage.v1.CryptoType)
+}
+
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequest.java
new file mode 100644
index 00000000..d2d07c0a
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequest.java
@@ -0,0 +1,607 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+/**
+ * Protobuf type {@code opi_api.storage.v1.DeleteCryptoRequest}
+ */
+public final class DeleteCryptoRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:opi_api.storage.v1.DeleteCryptoRequest)
+ DeleteCryptoRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use DeleteCryptoRequest.newBuilder() to construct.
+ private DeleteCryptoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DeleteCryptoRequest() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DeleteCryptoRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DeleteCryptoRequest(
+ 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: {
+ opi_api.common.v1.ObjectKey.Builder subBuilder = null;
+ if (cryptoId_ != null) {
+ subBuilder = cryptoId_.toBuilder();
+ }
+ cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(cryptoId_);
+ cryptoId_ = 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 opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.DeleteCryptoRequest.class, opi_api.storage.v1.DeleteCryptoRequest.Builder.class);
+ }
+
+ public static final int CRYPTO_ID_FIELD_NUMBER = 1;
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ @java.lang.Override
+ public boolean hasCryptoId() {
+ return cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ return getCryptoId();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (cryptoId_ != null) {
+ output.writeMessage(1, getCryptoId());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cryptoId_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getCryptoId());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof opi_api.storage.v1.DeleteCryptoRequest)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.DeleteCryptoRequest other = (opi_api.storage.v1.DeleteCryptoRequest) obj;
+
+ if (hasCryptoId() != other.hasCryptoId()) return false;
+ if (hasCryptoId()) {
+ if (!getCryptoId()
+ .equals(other.getCryptoId())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCryptoId()) {
+ hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getCryptoId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.DeleteCryptoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(opi_api.storage.v1.DeleteCryptoRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code opi_api.storage.v1.DeleteCryptoRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.DeleteCryptoRequest)
+ opi_api.storage.v1.DeleteCryptoRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.DeleteCryptoRequest.class, opi_api.storage.v1.DeleteCryptoRequest.Builder.class);
+ }
+
+ // Construct using opi_api.storage.v1.DeleteCryptoRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ 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();
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.DeleteCryptoRequest getDefaultInstanceForType() {
+ return opi_api.storage.v1.DeleteCryptoRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.DeleteCryptoRequest build() {
+ opi_api.storage.v1.DeleteCryptoRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.DeleteCryptoRequest buildPartial() {
+ opi_api.storage.v1.DeleteCryptoRequest result = new opi_api.storage.v1.DeleteCryptoRequest(this);
+ if (cryptoIdBuilder_ == null) {
+ result.cryptoId_ = cryptoId_;
+ } else {
+ result.cryptoId_ = cryptoIdBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof opi_api.storage.v1.DeleteCryptoRequest) {
+ return mergeFrom((opi_api.storage.v1.DeleteCryptoRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(opi_api.storage.v1.DeleteCryptoRequest other) {
+ if (other == opi_api.storage.v1.DeleteCryptoRequest.getDefaultInstance()) return this;
+ if (other.hasCryptoId()) {
+ mergeCryptoId(other.getCryptoId());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ opi_api.storage.v1.DeleteCryptoRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (opi_api.storage.v1.DeleteCryptoRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ public boolean hasCryptoId() {
+ return cryptoIdBuilder_ != null || cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ } else {
+ return cryptoIdBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cryptoId_ = value;
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = builderForValue.build();
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (cryptoId_ != null) {
+ cryptoId_ =
+ opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial();
+ } else {
+ cryptoId_ = value;
+ }
+ onChanged();
+ } else {
+ cryptoIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder clearCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ onChanged();
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() {
+
+ onChanged();
+ return getCryptoIdFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ if (cryptoIdBuilder_ != null) {
+ return cryptoIdBuilder_.getMessageOrBuilder();
+ } else {
+ return cryptoId_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getCryptoIdFieldBuilder() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getCryptoId(),
+ getParentForChildren(),
+ isClean());
+ cryptoId_ = null;
+ }
+ return cryptoIdBuilder_;
+ }
+ @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:opi_api.storage.v1.DeleteCryptoRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.DeleteCryptoRequest)
+ private static final opi_api.storage.v1.DeleteCryptoRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.DeleteCryptoRequest();
+ }
+
+ public static opi_api.storage.v1.DeleteCryptoRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeleteCryptoRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DeleteCryptoRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.DeleteCryptoRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequestOrBuilder.java
new file mode 100644
index 00000000..0e28786e
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/DeleteCryptoRequestOrBuilder.java
@@ -0,0 +1,24 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+public interface DeleteCryptoRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.DeleteCryptoRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ boolean hasCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ opi_api.common.v1.ObjectKey getCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequest.java
new file mode 100644
index 00000000..938db547
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequest.java
@@ -0,0 +1,607 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+/**
+ * Protobuf type {@code opi_api.storage.v1.GetCryptoRequest}
+ */
+public final class GetCryptoRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:opi_api.storage.v1.GetCryptoRequest)
+ GetCryptoRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use GetCryptoRequest.newBuilder() to construct.
+ private GetCryptoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetCryptoRequest() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetCryptoRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetCryptoRequest(
+ 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: {
+ opi_api.common.v1.ObjectKey.Builder subBuilder = null;
+ if (cryptoId_ != null) {
+ subBuilder = cryptoId_.toBuilder();
+ }
+ cryptoId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(cryptoId_);
+ cryptoId_ = 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 opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.GetCryptoRequest.class, opi_api.storage.v1.GetCryptoRequest.Builder.class);
+ }
+
+ public static final int CRYPTO_ID_FIELD_NUMBER = 1;
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ @java.lang.Override
+ public boolean hasCryptoId() {
+ return cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ return getCryptoId();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (cryptoId_ != null) {
+ output.writeMessage(1, getCryptoId());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cryptoId_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getCryptoId());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof opi_api.storage.v1.GetCryptoRequest)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.GetCryptoRequest other = (opi_api.storage.v1.GetCryptoRequest) obj;
+
+ if (hasCryptoId() != other.hasCryptoId()) return false;
+ if (hasCryptoId()) {
+ if (!getCryptoId()
+ .equals(other.getCryptoId())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCryptoId()) {
+ hash = (37 * hash) + CRYPTO_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getCryptoId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.GetCryptoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(opi_api.storage.v1.GetCryptoRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code opi_api.storage.v1.GetCryptoRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.GetCryptoRequest)
+ opi_api.storage.v1.GetCryptoRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.GetCryptoRequest.class, opi_api.storage.v1.GetCryptoRequest.Builder.class);
+ }
+
+ // Construct using opi_api.storage.v1.GetCryptoRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ 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();
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.GetCryptoRequest getDefaultInstanceForType() {
+ return opi_api.storage.v1.GetCryptoRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.GetCryptoRequest build() {
+ opi_api.storage.v1.GetCryptoRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.GetCryptoRequest buildPartial() {
+ opi_api.storage.v1.GetCryptoRequest result = new opi_api.storage.v1.GetCryptoRequest(this);
+ if (cryptoIdBuilder_ == null) {
+ result.cryptoId_ = cryptoId_;
+ } else {
+ result.cryptoId_ = cryptoIdBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof opi_api.storage.v1.GetCryptoRequest) {
+ return mergeFrom((opi_api.storage.v1.GetCryptoRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(opi_api.storage.v1.GetCryptoRequest other) {
+ if (other == opi_api.storage.v1.GetCryptoRequest.getDefaultInstance()) return this;
+ if (other.hasCryptoId()) {
+ mergeCryptoId(other.getCryptoId());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ opi_api.storage.v1.GetCryptoRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (opi_api.storage.v1.GetCryptoRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private opi_api.common.v1.ObjectKey cryptoId_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> cryptoIdBuilder_;
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ public boolean hasCryptoId() {
+ return cryptoIdBuilder_ != null || cryptoId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ public opi_api.common.v1.ObjectKey getCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ return cryptoId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ } else {
+ return cryptoIdBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cryptoId_ = value;
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder setCryptoId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = builderForValue.build();
+ onChanged();
+ } else {
+ cryptoIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder mergeCryptoId(opi_api.common.v1.ObjectKey value) {
+ if (cryptoIdBuilder_ == null) {
+ if (cryptoId_ != null) {
+ cryptoId_ =
+ opi_api.common.v1.ObjectKey.newBuilder(cryptoId_).mergeFrom(value).buildPartial();
+ } else {
+ cryptoId_ = value;
+ }
+ onChanged();
+ } else {
+ cryptoIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public Builder clearCryptoId() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoId_ = null;
+ onChanged();
+ } else {
+ cryptoId_ = null;
+ cryptoIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKey.Builder getCryptoIdBuilder() {
+
+ onChanged();
+ return getCryptoIdFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder() {
+ if (cryptoIdBuilder_ != null) {
+ return cryptoIdBuilder_.getMessageOrBuilder();
+ } else {
+ return cryptoId_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : cryptoId_;
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getCryptoIdFieldBuilder() {
+ if (cryptoIdBuilder_ == null) {
+ cryptoIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getCryptoId(),
+ getParentForChildren(),
+ isClean());
+ cryptoId_ = null;
+ }
+ return cryptoIdBuilder_;
+ }
+ @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:opi_api.storage.v1.GetCryptoRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.GetCryptoRequest)
+ private static final opi_api.storage.v1.GetCryptoRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.GetCryptoRequest();
+ }
+
+ public static opi_api.storage.v1.GetCryptoRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetCryptoRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetCryptoRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.GetCryptoRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequestOrBuilder.java
new file mode 100644
index 00000000..db948f15
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/GetCryptoRequestOrBuilder.java
@@ -0,0 +1,24 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+public interface GetCryptoRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.GetCryptoRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return Whether the cryptoId field is set.
+ */
+ boolean hasCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ * @return The cryptoId.
+ */
+ opi_api.common.v1.ObjectKey getCryptoId();
+ /**
+ * .opi_api.common.v1.ObjectKey crypto_id = 1;
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getCryptoIdOrBuilder();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequest.java
new file mode 100644
index 00000000..656ffde8
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequest.java
@@ -0,0 +1,621 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+/**
+ * Protobuf type {@code opi_api.storage.v1.ListCryptoRequest}
+ */
+public final class ListCryptoRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:opi_api.storage.v1.ListCryptoRequest)
+ ListCryptoRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use ListCryptoRequest.newBuilder() to construct.
+ private ListCryptoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ListCryptoRequest() {
+ pageToken_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ListCryptoRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ListCryptoRequest(
+ 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: {
+
+ pageSize_ = input.readInt32();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ pageToken_ = 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 opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.ListCryptoRequest.class, opi_api.storage.v1.ListCryptoRequest.Builder.class);
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 1;
+ private int pageSize_;
+ /**
+ * int32 page_size = 1;
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object pageToken_;
+ /**
+ * string page_token = 2;
+ * @return The pageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ * string page_token = 2;
+ * @return The bytes for pageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (pageSize_ != 0) {
+ output.writeInt32(1, pageSize_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, pageSize_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof opi_api.storage.v1.ListCryptoRequest)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.ListCryptoRequest other = (opi_api.storage.v1.ListCryptoRequest) obj;
+
+ if (getPageSize()
+ != other.getPageSize()) return false;
+ if (!getPageToken()
+ .equals(other.getPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ListCryptoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(opi_api.storage.v1.ListCryptoRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code opi_api.storage.v1.ListCryptoRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.ListCryptoRequest)
+ opi_api.storage.v1.ListCryptoRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.ListCryptoRequest.class, opi_api.storage.v1.ListCryptoRequest.Builder.class);
+ }
+
+ // Construct using opi_api.storage.v1.ListCryptoRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ 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();
+ pageSize_ = 0;
+
+ pageToken_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.ListCryptoRequest getDefaultInstanceForType() {
+ return opi_api.storage.v1.ListCryptoRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.ListCryptoRequest build() {
+ opi_api.storage.v1.ListCryptoRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.ListCryptoRequest buildPartial() {
+ opi_api.storage.v1.ListCryptoRequest result = new opi_api.storage.v1.ListCryptoRequest(this);
+ result.pageSize_ = pageSize_;
+ result.pageToken_ = pageToken_;
+ 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 opi_api.storage.v1.ListCryptoRequest) {
+ return mergeFrom((opi_api.storage.v1.ListCryptoRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(opi_api.storage.v1.ListCryptoRequest other) {
+ if (other == opi_api.storage.v1.ListCryptoRequest.getDefaultInstance()) return this;
+ if (other.getPageSize() != 0) {
+ setPageSize(other.getPageSize());
+ }
+ if (!other.getPageToken().isEmpty()) {
+ pageToken_ = other.pageToken_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ opi_api.storage.v1.ListCryptoRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (opi_api.storage.v1.ListCryptoRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int pageSize_ ;
+ /**
+ * int32 page_size = 1;
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ * int32 page_size = 1;
+ * @param value The pageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 page_size = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ * string page_token = 2;
+ * @return The pageToken.
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string page_token = 2;
+ * @return The bytes for pageToken.
+ */
+ public com.google.protobuf.ByteString
+ getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string page_token = 2;
+ * @param value The pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string page_token = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * string page_token = 2;
+ * @param value The bytes for pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ 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:opi_api.storage.v1.ListCryptoRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.ListCryptoRequest)
+ private static final opi_api.storage.v1.ListCryptoRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.ListCryptoRequest();
+ }
+
+ public static opi_api.storage.v1.ListCryptoRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ListCryptoRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ListCryptoRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.ListCryptoRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequestOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequestOrBuilder.java
new file mode 100644
index 00000000..1939e547
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoRequestOrBuilder.java
@@ -0,0 +1,27 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+public interface ListCryptoRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.ListCryptoRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 page_size = 1;
+ * @return The pageSize.
+ */
+ int getPageSize();
+
+ /**
+ * string page_token = 2;
+ * @return The pageToken.
+ */
+ java.lang.String getPageToken();
+ /**
+ * string page_token = 2;
+ * @return The bytes for pageToken.
+ */
+ com.google.protobuf.ByteString
+ getPageTokenBytes();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponse.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponse.java
new file mode 100644
index 00000000..28a0be5f
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponse.java
@@ -0,0 +1,908 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+/**
+ * Protobuf type {@code opi_api.storage.v1.ListCryptoResponse}
+ */
+public final class ListCryptoResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:opi_api.storage.v1.ListCryptoResponse)
+ ListCryptoResponseOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use ListCryptoResponse.newBuilder() to construct.
+ private ListCryptoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ListCryptoResponse() {
+ volumes_ = java.util.Collections.emptyList();
+ nextPageToken_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ListCryptoResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ListCryptoResponse(
+ 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 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ volumes_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ volumes_.add(
+ input.readMessage(opi_api.storage.v1.Crypto.parser(), extensionRegistry));
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ nextPageToken_ = 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 {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ volumes_ = java.util.Collections.unmodifiableList(volumes_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.ListCryptoResponse.class, opi_api.storage.v1.ListCryptoResponse.Builder.class);
+ }
+
+ public static final int VOLUMES_FIELD_NUMBER = 1;
+ private java.util.List volumes_;
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ @java.lang.Override
+ public java.util.List getVolumesList() {
+ return volumes_;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends opi_api.storage.v1.CryptoOrBuilder>
+ getVolumesOrBuilderList() {
+ return volumes_;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ @java.lang.Override
+ public int getVolumesCount() {
+ return volumes_.size();
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.Crypto getVolumes(int index) {
+ return volumes_.get(index);
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.CryptoOrBuilder getVolumesOrBuilder(
+ int index) {
+ return volumes_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ * string next_page_token = 2;
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ * string next_page_token = 2;
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < volumes_.size(); i++) {
+ output.writeMessage(1, volumes_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < volumes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, volumes_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof opi_api.storage.v1.ListCryptoResponse)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.ListCryptoResponse other = (opi_api.storage.v1.ListCryptoResponse) obj;
+
+ if (!getVolumesList()
+ .equals(other.getVolumesList())) return false;
+ if (!getNextPageToken()
+ .equals(other.getNextPageToken())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getVolumesCount() > 0) {
+ hash = (37 * hash) + VOLUMES_FIELD_NUMBER;
+ hash = (53 * hash) + getVolumesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ListCryptoResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(opi_api.storage.v1.ListCryptoResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code opi_api.storage.v1.ListCryptoResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:opi_api.storage.v1.ListCryptoResponse)
+ opi_api.storage.v1.ListCryptoResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.ListCryptoResponse.class, opi_api.storage.v1.ListCryptoResponse.Builder.class);
+ }
+
+ // Construct using opi_api.storage.v1.ListCryptoResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getVolumesFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (volumesBuilder_ == null) {
+ volumes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ volumesBuilder_.clear();
+ }
+ nextPageToken_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return opi_api.storage.v1.MiddleendProto.internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.ListCryptoResponse getDefaultInstanceForType() {
+ return opi_api.storage.v1.ListCryptoResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.ListCryptoResponse build() {
+ opi_api.storage.v1.ListCryptoResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.ListCryptoResponse buildPartial() {
+ opi_api.storage.v1.ListCryptoResponse result = new opi_api.storage.v1.ListCryptoResponse(this);
+ int from_bitField0_ = bitField0_;
+ if (volumesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ volumes_ = java.util.Collections.unmodifiableList(volumes_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.volumes_ = volumes_;
+ } else {
+ result.volumes_ = volumesBuilder_.build();
+ }
+ result.nextPageToken_ = nextPageToken_;
+ 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 opi_api.storage.v1.ListCryptoResponse) {
+ return mergeFrom((opi_api.storage.v1.ListCryptoResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(opi_api.storage.v1.ListCryptoResponse other) {
+ if (other == opi_api.storage.v1.ListCryptoResponse.getDefaultInstance()) return this;
+ if (volumesBuilder_ == null) {
+ if (!other.volumes_.isEmpty()) {
+ if (volumes_.isEmpty()) {
+ volumes_ = other.volumes_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureVolumesIsMutable();
+ volumes_.addAll(other.volumes_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.volumes_.isEmpty()) {
+ if (volumesBuilder_.isEmpty()) {
+ volumesBuilder_.dispose();
+ volumesBuilder_ = null;
+ volumes_ = other.volumes_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ volumesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getVolumesFieldBuilder() : null;
+ } else {
+ volumesBuilder_.addAllMessages(other.volumes_);
+ }
+ }
+ }
+ if (!other.getNextPageToken().isEmpty()) {
+ nextPageToken_ = other.nextPageToken_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ opi_api.storage.v1.ListCryptoResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (opi_api.storage.v1.ListCryptoResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List volumes_ =
+ java.util.Collections.emptyList();
+ private void ensureVolumesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ volumes_ = new java.util.ArrayList(volumes_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder> volumesBuilder_;
+
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public java.util.List getVolumesList() {
+ if (volumesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(volumes_);
+ } else {
+ return volumesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public int getVolumesCount() {
+ if (volumesBuilder_ == null) {
+ return volumes_.size();
+ } else {
+ return volumesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public opi_api.storage.v1.Crypto getVolumes(int index) {
+ if (volumesBuilder_ == null) {
+ return volumes_.get(index);
+ } else {
+ return volumesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder setVolumes(
+ int index, opi_api.storage.v1.Crypto value) {
+ if (volumesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVolumesIsMutable();
+ volumes_.set(index, value);
+ onChanged();
+ } else {
+ volumesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder setVolumes(
+ int index, opi_api.storage.v1.Crypto.Builder builderForValue) {
+ if (volumesBuilder_ == null) {
+ ensureVolumesIsMutable();
+ volumes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ volumesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder addVolumes(opi_api.storage.v1.Crypto value) {
+ if (volumesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVolumesIsMutable();
+ volumes_.add(value);
+ onChanged();
+ } else {
+ volumesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder addVolumes(
+ int index, opi_api.storage.v1.Crypto value) {
+ if (volumesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureVolumesIsMutable();
+ volumes_.add(index, value);
+ onChanged();
+ } else {
+ volumesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder addVolumes(
+ opi_api.storage.v1.Crypto.Builder builderForValue) {
+ if (volumesBuilder_ == null) {
+ ensureVolumesIsMutable();
+ volumes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ volumesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder addVolumes(
+ int index, opi_api.storage.v1.Crypto.Builder builderForValue) {
+ if (volumesBuilder_ == null) {
+ ensureVolumesIsMutable();
+ volumes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ volumesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder addAllVolumes(
+ java.lang.Iterable extends opi_api.storage.v1.Crypto> values) {
+ if (volumesBuilder_ == null) {
+ ensureVolumesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, volumes_);
+ onChanged();
+ } else {
+ volumesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder clearVolumes() {
+ if (volumesBuilder_ == null) {
+ volumes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ volumesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public Builder removeVolumes(int index) {
+ if (volumesBuilder_ == null) {
+ ensureVolumesIsMutable();
+ volumes_.remove(index);
+ onChanged();
+ } else {
+ volumesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public opi_api.storage.v1.Crypto.Builder getVolumesBuilder(
+ int index) {
+ return getVolumesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public opi_api.storage.v1.CryptoOrBuilder getVolumesOrBuilder(
+ int index) {
+ if (volumesBuilder_ == null) {
+ return volumes_.get(index); } else {
+ return volumesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public java.util.List extends opi_api.storage.v1.CryptoOrBuilder>
+ getVolumesOrBuilderList() {
+ if (volumesBuilder_ != null) {
+ return volumesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(volumes_);
+ }
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public opi_api.storage.v1.Crypto.Builder addVolumesBuilder() {
+ return getVolumesFieldBuilder().addBuilder(
+ opi_api.storage.v1.Crypto.getDefaultInstance());
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public opi_api.storage.v1.Crypto.Builder addVolumesBuilder(
+ int index) {
+ return getVolumesFieldBuilder().addBuilder(
+ index, opi_api.storage.v1.Crypto.getDefaultInstance());
+ }
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ public java.util.List
+ getVolumesBuilderList() {
+ return getVolumesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder>
+ getVolumesFieldBuilder() {
+ if (volumesBuilder_ == null) {
+ volumesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ opi_api.storage.v1.Crypto, opi_api.storage.v1.Crypto.Builder, opi_api.storage.v1.CryptoOrBuilder>(
+ volumes_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ volumes_ = null;
+ }
+ return volumesBuilder_;
+ }
+
+ private java.lang.Object nextPageToken_ = "";
+ /**
+ * string next_page_token = 2;
+ * @return The nextPageToken.
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string next_page_token = 2;
+ * @return The bytes for nextPageToken.
+ */
+ public com.google.protobuf.ByteString
+ getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string next_page_token = 2;
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string next_page_token = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * string next_page_token = 2;
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ 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:opi_api.storage.v1.ListCryptoResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.ListCryptoResponse)
+ private static final opi_api.storage.v1.ListCryptoResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.ListCryptoResponse();
+ }
+
+ public static opi_api.storage.v1.ListCryptoResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ListCryptoResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ListCryptoResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public opi_api.storage.v1.ListCryptoResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponseOrBuilder.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponseOrBuilder.java
new file mode 100644
index 00000000..a76cde30
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ListCryptoResponseOrBuilder.java
@@ -0,0 +1,45 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: middleend.proto
+
+package opi_api.storage.v1;
+
+public interface ListCryptoResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:opi_api.storage.v1.ListCryptoResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ java.util.List
+ getVolumesList();
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ opi_api.storage.v1.Crypto getVolumes(int index);
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ int getVolumesCount();
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ java.util.List extends opi_api.storage.v1.CryptoOrBuilder>
+ getVolumesOrBuilderList();
+ /**
+ * repeated .opi_api.storage.v1.Crypto volumes = 1;
+ */
+ opi_api.storage.v1.CryptoOrBuilder getVolumesOrBuilder(
+ int index);
+
+ /**
+ * string next_page_token = 2;
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ * string next_page_token = 2;
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString
+ getNextPageTokenBytes();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendProto.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendProto.java
index 7109e868..62d7d885 100644
--- a/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendProto.java
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendProto.java
@@ -14,6 +14,51 @@ public static void registerAllExtensions(
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_Crypto_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_Crypto_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_CreateCryptoRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_DeleteCryptoRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_UpdateCryptoRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_ListCryptoRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_ListCryptoResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_GetCryptoRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_CryptoStatsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_CryptoStatsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@@ -23,15 +68,120 @@ public static void registerAllExtensions(
descriptor;
static {
java.lang.String[] descriptorData = {
- "\n\017middleend.proto\022\022opi_api.storage.v1B]\n" +
- "\022opi_api.storage.v1B\016MiddleendProtoP\001Z5g" +
- "ithub.com/opiproject/opi-api/storage/v1a" +
- "lpha1/gen/gob\006proto3"
+ "\n\017middleend.proto\022\022opi_api.storage.v1\032\017o" +
+ "picommon.proto\032\020object_key.proto\032\033google" +
+ "/protobuf/empty.proto\032\034google/api/annota" +
+ "tions.proto\"\247\001\n\006Crypto\022/\n\tcrypto_id\030\001 \001(" +
+ "\0132\034.opi_api.common.v1.ObjectKey\022/\n\tvolum" +
+ "e_id\030\002 \001(\0132\034.opi_api.common.v1.ObjectKey" +
+ "\022\013\n\003key\030\003 \001(\014\022.\n\006cipher\030\004 \001(\0162\036.opi_api." +
+ "storage.v1.CryptoType\"A\n\023CreateCryptoReq" +
+ "uest\022*\n\006volume\030\001 \001(\0132\032.opi_api.storage.v" +
+ "1.Crypto\"F\n\023DeleteCryptoRequest\022/\n\tcrypt" +
+ "o_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey" +
+ "\"A\n\023UpdateCryptoRequest\022*\n\006volume\030\001 \001(\0132" +
+ "\032.opi_api.storage.v1.Crypto\":\n\021ListCrypt" +
+ "oRequest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_toke" +
+ "n\030\002 \001(\t\"Z\n\022ListCryptoResponse\022+\n\007volumes" +
+ "\030\001 \003(\0132\032.opi_api.storage.v1.Crypto\022\027\n\017ne" +
+ "xt_page_token\030\002 \001(\t\"C\n\020GetCryptoRequest\022" +
+ "/\n\tcrypto_id\030\001 \001(\0132\034.opi_api.common.v1.O" +
+ "bjectKey\"E\n\022CryptoStatsRequest\022/\n\tcrypto" +
+ "_id\030\001 \001(\0132\034.opi_api.common.v1.ObjectKey\"" +
+ "U\n\023CryptoStatsResponse\022/\n\tcrypto_id\030\001 \001(" +
+ "\0132\034.opi_api.common.v1.ObjectKey\022\r\n\005stats" +
+ "\030\002 \001(\t2\246\005\n\020MiddleendService\022p\n\014CreateCry" +
+ "pto\022\'.opi_api.storage.v1.CreateCryptoReq" +
+ "uest\032\032.opi_api.storage.v1.Crypto\"\033\202\323\344\223\002\025" +
+ "\"\013/v1/volumes:\006volume\022m\n\014DeleteCrypto\022\'." +
+ "opi_api.storage.v1.DeleteCryptoRequest\032\026" +
+ ".google.protobuf.Empty\"\034\202\323\344\223\002\026*\024/v1/volu" +
+ "mes/{volume}\022p\n\014UpdateCrypto\022\'.opi_api.s" +
+ "torage.v1.UpdateCryptoRequest\032\032.opi_api." +
+ "storage.v1.Crypto\"\033\202\323\344\223\002\0252\013/v1/volumes:\006" +
+ "volume\022p\n\nListCrypto\022%.opi_api.storage.v" +
+ "1.ListCryptoRequest\032&.opi_api.storage.v1" +
+ ".ListCryptoResponse\"\023\202\323\344\223\002\r\022\013/v1/volumes" +
+ "\022k\n\tGetCrypto\022$.opi_api.storage.v1.GetCr" +
+ "yptoRequest\032\032.opi_api.storage.v1.Crypto\"" +
+ "\034\202\323\344\223\002\026\022\024/v1/volumes/{volume}\022`\n\013CryptoS" +
+ "tats\022&.opi_api.storage.v1.CryptoStatsReq" +
+ "uest\032\'.opi_api.storage.v1.CryptoStatsRes" +
+ "ponse\"\000B]\n\022opi_api.storage.v1B\016Middleend" +
+ "ProtoP\001Z5github.com/opiproject/opi-api/s" +
+ "torage/v1alpha1/gen/gob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
+ opi_api.storage.v1.OpiCommonProto.getDescriptor(),
+ opi_api.common.v1.ObjectKeyProto.getDescriptor(),
+ com.google.protobuf.EmptyProto.getDescriptor(),
+ com.google.api.AnnotationsProto.getDescriptor(),
});
+ internal_static_opi_api_storage_v1_Crypto_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_opi_api_storage_v1_Crypto_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_Crypto_descriptor,
+ new java.lang.String[] { "CryptoId", "VolumeId", "Key", "Cipher", });
+ internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_opi_api_storage_v1_CreateCryptoRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_CreateCryptoRequest_descriptor,
+ new java.lang.String[] { "Volume", });
+ internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_opi_api_storage_v1_DeleteCryptoRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_DeleteCryptoRequest_descriptor,
+ new java.lang.String[] { "CryptoId", });
+ internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_opi_api_storage_v1_UpdateCryptoRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_UpdateCryptoRequest_descriptor,
+ new java.lang.String[] { "Volume", });
+ internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_opi_api_storage_v1_ListCryptoRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_ListCryptoRequest_descriptor,
+ new java.lang.String[] { "PageSize", "PageToken", });
+ internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_opi_api_storage_v1_ListCryptoResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_ListCryptoResponse_descriptor,
+ new java.lang.String[] { "Volumes", "NextPageToken", });
+ internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_opi_api_storage_v1_GetCryptoRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_GetCryptoRequest_descriptor,
+ new java.lang.String[] { "CryptoId", });
+ internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_opi_api_storage_v1_CryptoStatsRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_CryptoStatsRequest_descriptor,
+ new java.lang.String[] { "CryptoId", });
+ internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_opi_api_storage_v1_CryptoStatsResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_CryptoStatsResponse_descriptor,
+ new java.lang.String[] { "CryptoId", "Stats", });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.AnnotationsProto.http);
+ com.google.protobuf.Descriptors.FileDescriptor
+ .internalUpdateFileDescriptor(descriptor, registry);
+ opi_api.storage.v1.OpiCommonProto.getDescriptor();
+ opi_api.common.v1.ObjectKeyProto.getDescriptor();
+ com.google.protobuf.EmptyProto.getDescriptor();
+ com.google.api.AnnotationsProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendServiceGrpc.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendServiceGrpc.java
new file mode 100644
index 00000000..f4cb8fb0
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/MiddleendServiceGrpc.java
@@ -0,0 +1,661 @@
+package opi_api.storage.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ * Middle End (Storage Services) APIs. For example, encryption, compression, raid, QoS, multipath, ...
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: middleend.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class MiddleendServiceGrpc {
+
+ private MiddleendServiceGrpc() {}
+
+ public static final String SERVICE_NAME = "opi_api.storage.v1.MiddleendService";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor getCreateCryptoMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateCrypto",
+ requestType = opi_api.storage.v1.CreateCryptoRequest.class,
+ responseType = opi_api.storage.v1.Crypto.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCreateCryptoMethod() {
+ io.grpc.MethodDescriptor getCreateCryptoMethod;
+ if ((getCreateCryptoMethod = MiddleendServiceGrpc.getCreateCryptoMethod) == null) {
+ synchronized (MiddleendServiceGrpc.class) {
+ if ((getCreateCryptoMethod = MiddleendServiceGrpc.getCreateCryptoMethod) == null) {
+ MiddleendServiceGrpc.getCreateCryptoMethod = getCreateCryptoMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCrypto"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.CreateCryptoRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.Crypto.getDefaultInstance()))
+ .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("CreateCrypto"))
+ .build();
+ }
+ }
+ }
+ return getCreateCryptoMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getDeleteCryptoMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DeleteCrypto",
+ requestType = opi_api.storage.v1.DeleteCryptoRequest.class,
+ responseType = com.google.protobuf.Empty.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getDeleteCryptoMethod() {
+ io.grpc.MethodDescriptor getDeleteCryptoMethod;
+ if ((getDeleteCryptoMethod = MiddleendServiceGrpc.getDeleteCryptoMethod) == null) {
+ synchronized (MiddleendServiceGrpc.class) {
+ if ((getDeleteCryptoMethod = MiddleendServiceGrpc.getDeleteCryptoMethod) == null) {
+ MiddleendServiceGrpc.getDeleteCryptoMethod = getDeleteCryptoMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCrypto"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.DeleteCryptoRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.protobuf.Empty.getDefaultInstance()))
+ .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("DeleteCrypto"))
+ .build();
+ }
+ }
+ }
+ return getDeleteCryptoMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getUpdateCryptoMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "UpdateCrypto",
+ requestType = opi_api.storage.v1.UpdateCryptoRequest.class,
+ responseType = opi_api.storage.v1.Crypto.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getUpdateCryptoMethod() {
+ io.grpc.MethodDescriptor getUpdateCryptoMethod;
+ if ((getUpdateCryptoMethod = MiddleendServiceGrpc.getUpdateCryptoMethod) == null) {
+ synchronized (MiddleendServiceGrpc.class) {
+ if ((getUpdateCryptoMethod = MiddleendServiceGrpc.getUpdateCryptoMethod) == null) {
+ MiddleendServiceGrpc.getUpdateCryptoMethod = getUpdateCryptoMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCrypto"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.UpdateCryptoRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.Crypto.getDefaultInstance()))
+ .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("UpdateCrypto"))
+ .build();
+ }
+ }
+ }
+ return getUpdateCryptoMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getListCryptoMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ListCrypto",
+ requestType = opi_api.storage.v1.ListCryptoRequest.class,
+ responseType = opi_api.storage.v1.ListCryptoResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getListCryptoMethod() {
+ io.grpc.MethodDescriptor getListCryptoMethod;
+ if ((getListCryptoMethod = MiddleendServiceGrpc.getListCryptoMethod) == null) {
+ synchronized (MiddleendServiceGrpc.class) {
+ if ((getListCryptoMethod = MiddleendServiceGrpc.getListCryptoMethod) == null) {
+ MiddleendServiceGrpc.getListCryptoMethod = getListCryptoMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrypto"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.ListCryptoRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.ListCryptoResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("ListCrypto"))
+ .build();
+ }
+ }
+ }
+ return getListCryptoMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetCryptoMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetCrypto",
+ requestType = opi_api.storage.v1.GetCryptoRequest.class,
+ responseType = opi_api.storage.v1.Crypto.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetCryptoMethod() {
+ io.grpc.MethodDescriptor getGetCryptoMethod;
+ if ((getGetCryptoMethod = MiddleendServiceGrpc.getGetCryptoMethod) == null) {
+ synchronized (MiddleendServiceGrpc.class) {
+ if ((getGetCryptoMethod = MiddleendServiceGrpc.getGetCryptoMethod) == null) {
+ MiddleendServiceGrpc.getGetCryptoMethod = getGetCryptoMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCrypto"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.GetCryptoRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ opi_api.storage.v1.Crypto.getDefaultInstance()))
+ .setSchemaDescriptor(new MiddleendServiceMethodDescriptorSupplier("GetCrypto"))
+ .build();
+ }
+ }
+ }
+ return getGetCryptoMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCryptoStatsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CryptoStats",
+ requestType = opi_api.storage.v1.CryptoStatsRequest.class,
+ responseType = opi_api.storage.v1.CryptoStatsResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor