.opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ * @return Whether the spec field is set.
+ */
+ @java.lang.Override
+ public boolean hasSpec() {
+ return spec_ != null;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ * @return The spec.
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.NVMeControllerNamespaceSpec getSpec() {
+ return spec_ == null ? opi_api.storage.v1.NVMeControllerNamespaceSpec.getDefaultInstance() : spec_;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.NVMeControllerNamespaceSpecOrBuilder getSpecOrBuilder() {
+ return getSpec();
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 2;
+ private opi_api.storage.v1.NVMeControllerNamespaceStatus status_;
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ * @return Whether the status field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatus() {
+ return status_ != null;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ * @return The status.
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.NVMeControllerNamespaceStatus getStatus() {
+ return status_ == null ? opi_api.storage.v1.NVMeControllerNamespaceStatus.getDefaultInstance() : status_;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.NVMeControllerNamespaceStatusOrBuilder getStatusOrBuilder() {
+ return getStatus();
+ }
+
+ 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 (spec_ != null) {
+ output.writeMessage(1, getSpec());
+ }
+ if (status_ != null) {
+ output.writeMessage(2, getStatus());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (spec_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getSpec());
+ }
+ if (status_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getStatus());
+ }
+ 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.ControllerNVMeNamespace)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.ControllerNVMeNamespace other = (opi_api.storage.v1.ControllerNVMeNamespace) obj;
+
+ if (hasSpec() != other.hasSpec()) return false;
+ if (hasSpec()) {
+ if (!getSpec()
+ .equals(other.getSpec())) return false;
+ }
+ if (hasStatus() != other.hasStatus()) return false;
+ if (hasStatus()) {
+ if (!getStatus()
+ .equals(other.getStatus())) 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 (hasSpec()) {
+ hash = (37 * hash) + SPEC_FIELD_NUMBER;
+ hash = (53 * hash) + getSpec().hashCode();
+ }
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.ControllerNVMeNamespace parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespace 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.ControllerNVMeNamespace parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespace 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.ControllerNVMeNamespace parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespace parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespace parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespace 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.ControllerNVMeNamespace parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespace 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.ControllerNVMeNamespace parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespace 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.ControllerNVMeNamespace 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.ControllerNVMeNamespace}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ * @return Whether the spec field is set.
+ */
+ public boolean hasSpec() {
+ return specBuilder_ != null || spec_ != null;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ * @return The spec.
+ */
+ public opi_api.storage.v1.NVMeControllerNamespaceSpec getSpec() {
+ if (specBuilder_ == null) {
+ return spec_ == null ? opi_api.storage.v1.NVMeControllerNamespaceSpec.getDefaultInstance() : spec_;
+ } else {
+ return specBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ public Builder setSpec(opi_api.storage.v1.NVMeControllerNamespaceSpec value) {
+ if (specBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ spec_ = value;
+ onChanged();
+ } else {
+ specBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ public Builder setSpec(
+ opi_api.storage.v1.NVMeControllerNamespaceSpec.Builder builderForValue) {
+ if (specBuilder_ == null) {
+ spec_ = builderForValue.build();
+ onChanged();
+ } else {
+ specBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ public Builder mergeSpec(opi_api.storage.v1.NVMeControllerNamespaceSpec value) {
+ if (specBuilder_ == null) {
+ if (spec_ != null) {
+ spec_ =
+ opi_api.storage.v1.NVMeControllerNamespaceSpec.newBuilder(spec_).mergeFrom(value).buildPartial();
+ } else {
+ spec_ = value;
+ }
+ onChanged();
+ } else {
+ specBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ public Builder clearSpec() {
+ if (specBuilder_ == null) {
+ spec_ = null;
+ onChanged();
+ } else {
+ spec_ = null;
+ specBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ public opi_api.storage.v1.NVMeControllerNamespaceSpec.Builder getSpecBuilder() {
+
+ onChanged();
+ return getSpecFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ public opi_api.storage.v1.NVMeControllerNamespaceSpecOrBuilder getSpecOrBuilder() {
+ if (specBuilder_ != null) {
+ return specBuilder_.getMessageOrBuilder();
+ } else {
+ return spec_ == null ?
+ opi_api.storage.v1.NVMeControllerNamespaceSpec.getDefaultInstance() : spec_;
+ }
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.storage.v1.NVMeControllerNamespaceSpec, opi_api.storage.v1.NVMeControllerNamespaceSpec.Builder, opi_api.storage.v1.NVMeControllerNamespaceSpecOrBuilder>
+ getSpecFieldBuilder() {
+ if (specBuilder_ == null) {
+ specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.storage.v1.NVMeControllerNamespaceSpec, opi_api.storage.v1.NVMeControllerNamespaceSpec.Builder, opi_api.storage.v1.NVMeControllerNamespaceSpecOrBuilder>(
+ getSpec(),
+ getParentForChildren(),
+ isClean());
+ spec_ = null;
+ }
+ return specBuilder_;
+ }
+
+ private opi_api.storage.v1.NVMeControllerNamespaceStatus status_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.storage.v1.NVMeControllerNamespaceStatus, opi_api.storage.v1.NVMeControllerNamespaceStatus.Builder, opi_api.storage.v1.NVMeControllerNamespaceStatusOrBuilder> statusBuilder_;
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ * @return Whether the status field is set.
+ */
+ public boolean hasStatus() {
+ return statusBuilder_ != null || status_ != null;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ * @return The status.
+ */
+ public opi_api.storage.v1.NVMeControllerNamespaceStatus getStatus() {
+ if (statusBuilder_ == null) {
+ return status_ == null ? opi_api.storage.v1.NVMeControllerNamespaceStatus.getDefaultInstance() : status_;
+ } else {
+ return statusBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ public Builder setStatus(opi_api.storage.v1.NVMeControllerNamespaceStatus value) {
+ if (statusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ status_ = value;
+ onChanged();
+ } else {
+ statusBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ public Builder setStatus(
+ opi_api.storage.v1.NVMeControllerNamespaceStatus.Builder builderForValue) {
+ if (statusBuilder_ == null) {
+ status_ = builderForValue.build();
+ onChanged();
+ } else {
+ statusBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ public Builder mergeStatus(opi_api.storage.v1.NVMeControllerNamespaceStatus value) {
+ if (statusBuilder_ == null) {
+ if (status_ != null) {
+ status_ =
+ opi_api.storage.v1.NVMeControllerNamespaceStatus.newBuilder(status_).mergeFrom(value).buildPartial();
+ } else {
+ status_ = value;
+ }
+ onChanged();
+ } else {
+ statusBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ public Builder clearStatus() {
+ if (statusBuilder_ == null) {
+ status_ = null;
+ onChanged();
+ } else {
+ status_ = null;
+ statusBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ public opi_api.storage.v1.NVMeControllerNamespaceStatus.Builder getStatusBuilder() {
+
+ onChanged();
+ return getStatusFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ public opi_api.storage.v1.NVMeControllerNamespaceStatusOrBuilder getStatusOrBuilder() {
+ if (statusBuilder_ != null) {
+ return statusBuilder_.getMessageOrBuilder();
+ } else {
+ return status_ == null ?
+ opi_api.storage.v1.NVMeControllerNamespaceStatus.getDefaultInstance() : status_;
+ }
+ }
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.storage.v1.NVMeControllerNamespaceStatus, opi_api.storage.v1.NVMeControllerNamespaceStatus.Builder, opi_api.storage.v1.NVMeControllerNamespaceStatusOrBuilder>
+ getStatusFieldBuilder() {
+ if (statusBuilder_ == null) {
+ statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.storage.v1.NVMeControllerNamespaceStatus, opi_api.storage.v1.NVMeControllerNamespaceStatus.Builder, opi_api.storage.v1.NVMeControllerNamespaceStatusOrBuilder>(
+ getStatus(),
+ getParentForChildren(),
+ isClean());
+ status_ = null;
+ }
+ return statusBuilder_;
+ }
+ @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.ControllerNVMeNamespace)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.ControllerNVMeNamespace)
+ private static final opi_api.storage.v1.ControllerNVMeNamespace DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.ControllerNVMeNamespace();
+ }
+
+ public static opi_api.storage.v1.ControllerNVMeNamespace getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ * @return Whether the spec field is set.
+ */
+ boolean hasSpec();
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ * @return The spec.
+ */
+ opi_api.storage.v1.NVMeControllerNamespaceSpec getSpec();
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceSpec spec = 1;
+ */
+ opi_api.storage.v1.NVMeControllerNamespaceSpecOrBuilder getSpecOrBuilder();
+
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ * @return Whether the status field is set.
+ */
+ boolean hasStatus();
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ * @return The status.
+ */
+ opi_api.storage.v1.NVMeControllerNamespaceStatus getStatus();
+ /**
+ * .opi_api.storage.v1.NVMeControllerNamespaceStatus status = 2;
+ */
+ opi_api.storage.v1.NVMeControllerNamespaceStatusOrBuilder getStatusOrBuilder();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/ControllerNVMeNamespaceRequest.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/ControllerNVMeNamespaceRequest.java
new file mode 100644
index 00000000..4dcc4709
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/ControllerNVMeNamespaceRequest.java
@@ -0,0 +1,933 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: frontend_nvme_pcie.proto
+
+package opi_api.storage.v1;
+
+/**
+ * Protobuf type {@code opi_api.storage.v1.ControllerNVMeNamespaceRequest}
+ */
+public final class ControllerNVMeNamespaceRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:opi_api.storage.v1.ControllerNVMeNamespaceRequest)
+ ControllerNVMeNamespaceRequestOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use ControllerNVMeNamespaceRequest.newBuilder() to construct.
+ private ControllerNVMeNamespaceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ControllerNVMeNamespaceRequest() {
+ subsystem_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ControllerNVMeNamespaceRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ControllerNVMeNamespaceRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ subsystem_ = s;
+ break;
+ }
+ case 18: {
+ opi_api.common.v1.ObjectKey.Builder subBuilder = null;
+ if (controller_ != null) {
+ subBuilder = controller_.toBuilder();
+ }
+ controller_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(controller_);
+ controller_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26: {
+ opi_api.common.v1.ObjectKey.Builder subBuilder = null;
+ if (nvMeNamespaceId_ != null) {
+ subBuilder = nvMeNamespaceId_.toBuilder();
+ }
+ nvMeNamespaceId_ = input.readMessage(opi_api.common.v1.ObjectKey.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(nvMeNamespaceId_);
+ nvMeNamespaceId_ = 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.FrontendNvmePcieProto.internal_static_opi_api_storage_v1_ControllerNVMeNamespaceRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.FrontendNvmePcieProto.internal_static_opi_api_storage_v1_ControllerNVMeNamespaceRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.ControllerNVMeNamespaceRequest.class, opi_api.storage.v1.ControllerNVMeNamespaceRequest.Builder.class);
+ }
+
+ public static final int SUBSYSTEM_FIELD_NUMBER = 1;
+ private volatile java.lang.Object subsystem_;
+ /**
+ * string subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return The subsystem.
+ */
+ @java.lang.Override
+ public java.lang.String getSubsystem() {
+ java.lang.Object ref = subsystem_;
+ 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();
+ subsystem_ = s;
+ return s;
+ }
+ }
+ /**
+ * string subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return The bytes for subsystem.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSubsystemBytes() {
+ java.lang.Object ref = subsystem_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ subsystem_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTROLLER_FIELD_NUMBER = 2;
+ private opi_api.common.v1.ObjectKey controller_;
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return Whether the controller field is set.
+ */
+ @java.lang.Override
+ public boolean hasController() {
+ return controller_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return The controller.
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKey getController() {
+ return controller_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : controller_;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKeyOrBuilder getControllerOrBuilder() {
+ return getController();
+ }
+
+ public static final int NV_ME_NAMESPACE_ID_FIELD_NUMBER = 3;
+ private opi_api.common.v1.ObjectKey nvMeNamespaceId_;
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ * @return Whether the nvMeNamespaceId field is set.
+ */
+ @java.lang.Override
+ public boolean hasNvMeNamespaceId() {
+ return nvMeNamespaceId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ * @return The nvMeNamespaceId.
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKey getNvMeNamespaceId() {
+ return nvMeNamespaceId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : nvMeNamespaceId_;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKeyOrBuilder getNvMeNamespaceIdOrBuilder() {
+ return getNvMeNamespaceId();
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subsystem_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subsystem_);
+ }
+ if (controller_ != null) {
+ output.writeMessage(2, getController());
+ }
+ if (nvMeNamespaceId_ != null) {
+ output.writeMessage(3, getNvMeNamespaceId());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subsystem_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subsystem_);
+ }
+ if (controller_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getController());
+ }
+ if (nvMeNamespaceId_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getNvMeNamespaceId());
+ }
+ 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.ControllerNVMeNamespaceRequest)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.ControllerNVMeNamespaceRequest other = (opi_api.storage.v1.ControllerNVMeNamespaceRequest) obj;
+
+ if (!getSubsystem()
+ .equals(other.getSubsystem())) return false;
+ if (hasController() != other.hasController()) return false;
+ if (hasController()) {
+ if (!getController()
+ .equals(other.getController())) return false;
+ }
+ if (hasNvMeNamespaceId() != other.hasNvMeNamespaceId()) return false;
+ if (hasNvMeNamespaceId()) {
+ if (!getNvMeNamespaceId()
+ .equals(other.getNvMeNamespaceId())) 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) + SUBSYSTEM_FIELD_NUMBER;
+ hash = (53 * hash) + getSubsystem().hashCode();
+ if (hasController()) {
+ hash = (37 * hash) + CONTROLLER_FIELD_NUMBER;
+ hash = (53 * hash) + getController().hashCode();
+ }
+ if (hasNvMeNamespaceId()) {
+ hash = (37 * hash) + NV_ME_NAMESPACE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getNvMeNamespaceId().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest 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.ControllerNVMeNamespaceRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest 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.ControllerNVMeNamespaceRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest 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.ControllerNVMeNamespaceRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest 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.ControllerNVMeNamespaceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest 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.ControllerNVMeNamespaceRequest 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.ControllerNVMeNamespaceRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return The subsystem.
+ */
+ public java.lang.String getSubsystem() {
+ java.lang.Object ref = subsystem_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ subsystem_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return The bytes for subsystem.
+ */
+ public com.google.protobuf.ByteString
+ getSubsystemBytes() {
+ java.lang.Object ref = subsystem_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ subsystem_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param value The subsystem to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubsystem(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ subsystem_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return This builder for chaining.
+ */
+ public Builder clearSubsystem() {
+
+ subsystem_ = getDefaultInstance().getSubsystem();
+ onChanged();
+ return this;
+ }
+ /**
+ * string subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param value The bytes for subsystem to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubsystemBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ subsystem_ = value;
+ onChanged();
+ return this;
+ }
+
+ private opi_api.common.v1.ObjectKey controller_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> controllerBuilder_;
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return Whether the controller field is set.
+ */
+ public boolean hasController() {
+ return controllerBuilder_ != null || controller_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return The controller.
+ */
+ public opi_api.common.v1.ObjectKey getController() {
+ if (controllerBuilder_ == null) {
+ return controller_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : controller_;
+ } else {
+ return controllerBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder setController(opi_api.common.v1.ObjectKey value) {
+ if (controllerBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ controller_ = value;
+ onChanged();
+ } else {
+ controllerBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder setController(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (controllerBuilder_ == null) {
+ controller_ = builderForValue.build();
+ onChanged();
+ } else {
+ controllerBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder mergeController(opi_api.common.v1.ObjectKey value) {
+ if (controllerBuilder_ == null) {
+ if (controller_ != null) {
+ controller_ =
+ opi_api.common.v1.ObjectKey.newBuilder(controller_).mergeFrom(value).buildPartial();
+ } else {
+ controller_ = value;
+ }
+ onChanged();
+ } else {
+ controllerBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder clearController() {
+ if (controllerBuilder_ == null) {
+ controller_ = null;
+ onChanged();
+ } else {
+ controller_ = null;
+ controllerBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public opi_api.common.v1.ObjectKey.Builder getControllerBuilder() {
+
+ onChanged();
+ return getControllerFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getControllerOrBuilder() {
+ if (controllerBuilder_ != null) {
+ return controllerBuilder_.getMessageOrBuilder();
+ } else {
+ return controller_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : controller_;
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getControllerFieldBuilder() {
+ if (controllerBuilder_ == null) {
+ controllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getController(),
+ getParentForChildren(),
+ isClean());
+ controller_ = null;
+ }
+ return controllerBuilder_;
+ }
+
+ private opi_api.common.v1.ObjectKey nvMeNamespaceId_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> nvMeNamespaceIdBuilder_;
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ * @return Whether the nvMeNamespaceId field is set.
+ */
+ public boolean hasNvMeNamespaceId() {
+ return nvMeNamespaceIdBuilder_ != null || nvMeNamespaceId_ != null;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ * @return The nvMeNamespaceId.
+ */
+ public opi_api.common.v1.ObjectKey getNvMeNamespaceId() {
+ if (nvMeNamespaceIdBuilder_ == null) {
+ return nvMeNamespaceId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : nvMeNamespaceId_;
+ } else {
+ return nvMeNamespaceIdBuilder_.getMessage();
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder setNvMeNamespaceId(opi_api.common.v1.ObjectKey value) {
+ if (nvMeNamespaceIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nvMeNamespaceId_ = value;
+ onChanged();
+ } else {
+ nvMeNamespaceIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder setNvMeNamespaceId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (nvMeNamespaceIdBuilder_ == null) {
+ nvMeNamespaceId_ = builderForValue.build();
+ onChanged();
+ } else {
+ nvMeNamespaceIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder mergeNvMeNamespaceId(opi_api.common.v1.ObjectKey value) {
+ if (nvMeNamespaceIdBuilder_ == null) {
+ if (nvMeNamespaceId_ != null) {
+ nvMeNamespaceId_ =
+ opi_api.common.v1.ObjectKey.newBuilder(nvMeNamespaceId_).mergeFrom(value).buildPartial();
+ } else {
+ nvMeNamespaceId_ = value;
+ }
+ onChanged();
+ } else {
+ nvMeNamespaceIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public Builder clearNvMeNamespaceId() {
+ if (nvMeNamespaceIdBuilder_ == null) {
+ nvMeNamespaceId_ = null;
+ onChanged();
+ } else {
+ nvMeNamespaceId_ = null;
+ nvMeNamespaceIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public opi_api.common.v1.ObjectKey.Builder getNvMeNamespaceIdBuilder() {
+
+ onChanged();
+ return getNvMeNamespaceIdFieldBuilder().getBuilder();
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getNvMeNamespaceIdOrBuilder() {
+ if (nvMeNamespaceIdBuilder_ != null) {
+ return nvMeNamespaceIdBuilder_.getMessageOrBuilder();
+ } else {
+ return nvMeNamespaceId_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : nvMeNamespaceId_;
+ }
+ }
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getNvMeNamespaceIdFieldBuilder() {
+ if (nvMeNamespaceIdBuilder_ == null) {
+ nvMeNamespaceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getNvMeNamespaceId(),
+ getParentForChildren(),
+ isClean());
+ nvMeNamespaceId_ = null;
+ }
+ return nvMeNamespaceIdBuilder_;
+ }
+ @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.ControllerNVMeNamespaceRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.ControllerNVMeNamespaceRequest)
+ private static final opi_api.storage.v1.ControllerNVMeNamespaceRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.ControllerNVMeNamespaceRequest();
+ }
+
+ public static opi_api.storage.v1.ControllerNVMeNamespaceRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return The subsystem.
+ */
+ java.lang.String getSubsystem();
+ /**
+ * string subsystem = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return The bytes for subsystem.
+ */
+ com.google.protobuf.ByteString
+ getSubsystemBytes();
+
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return Whether the controller field is set.
+ */
+ boolean hasController();
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ * @return The controller.
+ */
+ opi_api.common.v1.ObjectKey getController();
+ /**
+ * .opi_api.common.v1.ObjectKey controller = 2 [(.google.api.field_behavior) = REQUIRED];
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getControllerOrBuilder();
+
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ * @return Whether the nvMeNamespaceId field is set.
+ */
+ boolean hasNvMeNamespaceId();
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ * @return The nvMeNamespaceId.
+ */
+ opi_api.common.v1.ObjectKey getNvMeNamespaceId();
+ /**
+ * .opi_api.common.v1.ObjectKey nv_me_namespace_id = 3 [(.google.api.field_behavior) = REQUIRED];
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getNvMeNamespaceIdOrBuilder();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/FrontendNvmePcieProto.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/FrontendNvmePcieProto.java
index 51bd3b8e..f6b48715 100644
--- a/storage/v1alpha1/gen/java/opi_api/storage/v1/FrontendNvmePcieProto.java
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/FrontendNvmePcieProto.java
@@ -179,6 +179,11 @@ public static void registerAllExtensions(
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_opi_api_storage_v1_NVMeNamespaceStatsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_opi_api_storage_v1_ControllerNVMeNamespaceRequest_descriptor;
+ static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_opi_api_storage_v1_ControllerNVMeNamespaceRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
@@ -297,93 +302,108 @@ public static void registerAllExtensions(
".ObjectKey\"v\n\032NVMeNamespaceStatsResponse" +
"\022(\n\002id\030\001 \001(\0132\034.opi_api.common.v1.ObjectK" +
"ey\022.\n\005stats\030\002 \001(\0132\037.opi_api.storage.v1.V" +
- "olumeStats*\266\001\n\025NVMeNamespacePciState\022)\n%" +
- "NV_ME_NAMESPACE_PCI_STATE_UNSPECIFIED\020\000\022" +
- "%\n!NVME_NAMESPACE_PCI_STATE_DISABLED\020\001\022$" +
- "\n NVME_NAMESPACE_PCI_STATE_ENABLED\020\002\022%\n!" +
- "NVME_NAMESPACE_PCI_STATE_DELETING\020\003*\240\001\n\031" +
- "NVMeNamespacePciOperState\022.\n*NV_ME_NAMES" +
- "PACE_PCI_OPER_STATE_UNSPECIFIED\020\000\022(\n$NVM" +
- "E_NAMESPACE_PCI_OPER_STATE_ONLINE\020\001\022)\n%N" +
- "VME_NAMESPACE_PCI_OPER_STATE_OFFLINE\020\0022\245" +
- "\027\n\023FrontendNvmeService\022\306\001\n\023CreateNVMeSub" +
- "system\022..opi_api.storage.v1.CreateNVMeSu" +
- "bsystemRequest\032!.opi_api.storage.v1.NVMe" +
- "Subsystem\"\\\202\323\344\223\002*\"\027/v1/{parent=subsystem" +
- "s}:\017nv_me_subsystem\332A)parent,nv_me_subsy" +
- "stem,nv_me_subsystem_id\022\217\001\n\023DeleteNVMeSu" +
- "bsystem\022..opi_api.storage.v1.DeleteNVMeS" +
- "ubsystemRequest\032\026.google.protobuf.Empty\"" +
- "0\202\323\344\223\002#*!/v1/{name=subsystems}/{subsyste" +
- "m}\332A\004name\022\306\001\n\023UpdateNVMeSubsystem\022..opi_" +
- "api.storage.v1.UpdateNVMeSubsystemReques" +
- "t\032!.opi_api.storage.v1.NVMeSubsystem\"\\\202\323" +
- "\344\223\00282%/v1/{nv_me_subsystem.name=subsyste" +
- "ms}:\017nv_me_subsystem\332A\033nv_me_subsystem,u" +
- "pdate_mask\022\235\001\n\022ListNVMeSubsystems\022-.opi_" +
- "api.storage.v1.ListNVMeSubsystemsRequest" +
- "\032..opi_api.storage.v1.ListNVMeSubsystems" +
- "Response\"(\202\323\344\223\002\031\022\027/v1/{parent=subsystems" +
- "}\332A\006parent\022\224\001\n\020GetNVMeSubsystem\022+.opi_ap" +
- "i.storage.v1.GetNVMeSubsystemRequest\032!.o" +
- "pi_api.storage.v1.NVMeSubsystem\"0\202\323\344\223\002#\022" +
- "!/v1/{name=subsystems}/{subsystem}\332A\004nam" +
- "e\022u\n\022NVMeSubsystemStats\022-.opi_api.storag" +
- "e.v1.NVMeSubsystemStatsRequest\032..opi_api" +
- ".storage.v1.NVMeSubsystemStatsResponse\"\000" +
- "\022\314\001\n\024CreateNVMeController\022/.opi_api.stor" +
- "age.v1.CreateNVMeControllerRequest\032\".opi" +
- "_api.storage.v1.NVMeController\"_\202\323\344\223\002+\"\027" +
- "/v1/{parent=subsystems}:\020nv_me_controlle" +
- "r\332A+parent,nv_me_controller,nv_me_contro" +
- "ller_id\022\223\001\n\024DeleteNVMeController\022/.opi_a" +
- "pi.storage.v1.DeleteNVMeControllerReques" +
- "t\032\026.google.protobuf.Empty\"2\202\323\344\223\002%*#/v1/{" +
- "name=controllers}/{controller}\332A\004name\022\314\001" +
- "\n\024UpdateNVMeController\022/.opi_api.storage" +
- ".v1.UpdateNVMeControllerRequest\032\".opi_ap" +
- "i.storage.v1.NVMeController\"_\202\323\344\223\002:2&/v1" +
- "/{nv_me_controller.name=subsystems}:\020nv_" +
- "me_controller\332A\034nv_me_controller,update_" +
- "mask\022\240\001\n\023ListNVMeControllers\022..opi_api.s" +
- "torage.v1.ListNVMeControllersRequest\032/.o" +
- "pi_api.storage.v1.ListNVMeControllersRes" +
- "ponse\"(\202\323\344\223\002\031\022\027/v1/{parent=subsystems}\332A" +
- "\006parent\022\230\001\n\021GetNVMeController\022,.opi_api." +
- "storage.v1.GetNVMeControllerRequest\032\".op" +
- "i_api.storage.v1.NVMeController\"1\202\323\344\223\002$\022" +
- "\"/v1/{name=subsystems}/{controller}\332A\004na" +
- "me\022x\n\023NVMeControllerStats\022..opi_api.stor" +
- "age.v1.NVMeControllerStatsRequest\032/.opi_" +
- "api.storage.v1.NVMeControllerStatsRespon" +
- "se\"\000\022\306\001\n\023CreateNVMeNamespace\022..opi_api.s" +
- "torage.v1.CreateNVMeNamespaceRequest\032!.o" +
- "pi_api.storage.v1.NVMeNamespace\"\\\202\323\344\223\002*\"" +
- "\027/v1/{parent=subsystems}:\017nv_me_namespac" +
- "e\332A)parent,nv_me_namespace,nv_me_namespa" +
- "ce_id\022\217\001\n\023DeleteNVMeNamespace\022..opi_api." +
- "storage.v1.DeleteNVMeNamespaceRequest\032\026." +
- "google.protobuf.Empty\"0\202\323\344\223\002#*!/v1/{name" +
- "=namespaces}/{namespace}\332A\004name\022\306\001\n\023Upda" +
- "teNVMeNamespace\022..opi_api.storage.v1.Upd" +
- "ateNVMeNamespaceRequest\032!.opi_api.storag" +
- "e.v1.NVMeNamespace\"\\\202\323\344\223\00282%/v1/{nv_me_n" +
- "amespace.name=subsystems}:\017nv_me_namespa" +
- "ce\332A\033nv_me_namespace,update_mask\022\235\001\n\022Lis" +
- "tNVMeNamespaces\022-.opi_api.storage.v1.Lis" +
- "tNVMeNamespacesRequest\032..opi_api.storage" +
- ".v1.ListNVMeNamespacesResponse\"(\202\323\344\223\002\031\022\027" +
- "/v1/{parent=subsystems}\332A\006parent\022\224\001\n\020Get" +
- "NVMeNamespace\022+.opi_api.storage.v1.GetNV" +
- "MeNamespaceRequest\032!.opi_api.storage.v1." +
- "NVMeNamespace\"0\202\323\344\223\002#\022!/v1/{name=subsyst" +
- "ems}/{namespace}\332A\004name\022u\n\022NVMeNamespace" +
- "Stats\022-.opi_api.storage.v1.NVMeNamespace" +
- "StatsRequest\032..opi_api.storage.v1.NVMeNa" +
- "mespaceStatsResponse\"\000Bd\n\022opi_api.storag" +
- "e.v1B\025FrontendNvmePcieProtoP\001Z5github.co" +
- "m/opiproject/opi-api/storage/v1alpha1/ge" +
- "n/gob\006proto3"
+ "olumeStats\"\256\001\n\036ControllerNVMeNamespaceRe" +
+ "quest\022\026\n\tsubsystem\030\001 \001(\tB\003\340A\002\0225\n\ncontrol" +
+ "ler\030\002 \001(\0132\034.opi_api.common.v1.ObjectKeyB" +
+ "\003\340A\002\022=\n\022nv_me_namespace_id\030\003 \001(\0132\034.opi_a" +
+ "pi.common.v1.ObjectKeyB\003\340A\002*\266\001\n\025NVMeName" +
+ "spacePciState\022)\n%NV_ME_NAMESPACE_PCI_STA" +
+ "TE_UNSPECIFIED\020\000\022%\n!NVME_NAMESPACE_PCI_S" +
+ "TATE_DISABLED\020\001\022$\n NVME_NAMESPACE_PCI_ST" +
+ "ATE_ENABLED\020\002\022%\n!NVME_NAMESPACE_PCI_STAT" +
+ "E_DELETING\020\003*\240\001\n\031NVMeNamespacePciOperSta" +
+ "te\022.\n*NV_ME_NAMESPACE_PCI_OPER_STATE_UNS" +
+ "PECIFIED\020\000\022(\n$NVME_NAMESPACE_PCI_OPER_ST" +
+ "ATE_ONLINE\020\001\022)\n%NVME_NAMESPACE_PCI_OPER_" +
+ "STATE_OFFLINE\020\0022\315\032\n\023FrontendNvmeService\022" +
+ "\306\001\n\023CreateNVMeSubsystem\022..opi_api.storag" +
+ "e.v1.CreateNVMeSubsystemRequest\032!.opi_ap" +
+ "i.storage.v1.NVMeSubsystem\"\\\202\323\344\223\002*\"\027/v1/" +
+ "{parent=subsystems}:\017nv_me_subsystem\332A)p" +
+ "arent,nv_me_subsystem,nv_me_subsystem_id" +
+ "\022\217\001\n\023DeleteNVMeSubsystem\022..opi_api.stora" +
+ "ge.v1.DeleteNVMeSubsystemRequest\032\026.googl" +
+ "e.protobuf.Empty\"0\202\323\344\223\002#*!/v1/{name=subs" +
+ "ystems}/{subsystem}\332A\004name\022\306\001\n\023UpdateNVM" +
+ "eSubsystem\022..opi_api.storage.v1.UpdateNV" +
+ "MeSubsystemRequest\032!.opi_api.storage.v1." +
+ "NVMeSubsystem\"\\\202\323\344\223\00282%/v1/{nv_me_subsys" +
+ "tem.name=subsystems}:\017nv_me_subsystem\332A\033" +
+ "nv_me_subsystem,update_mask\022\235\001\n\022ListNVMe" +
+ "Subsystems\022-.opi_api.storage.v1.ListNVMe" +
+ "SubsystemsRequest\032..opi_api.storage.v1.L" +
+ "istNVMeSubsystemsResponse\"(\202\323\344\223\002\031\022\027/v1/{" +
+ "parent=subsystems}\332A\006parent\022\224\001\n\020GetNVMeS" +
+ "ubsystem\022+.opi_api.storage.v1.GetNVMeSub" +
+ "systemRequest\032!.opi_api.storage.v1.NVMeS" +
+ "ubsystem\"0\202\323\344\223\002#\022!/v1/{name=subsystems}/" +
+ "{subsystem}\332A\004name\022u\n\022NVMeSubsystemStats" +
+ "\022-.opi_api.storage.v1.NVMeSubsystemStats" +
+ "Request\032..opi_api.storage.v1.NVMeSubsyst" +
+ "emStatsResponse\"\000\022\314\001\n\024CreateNVMeControll" +
+ "er\022/.opi_api.storage.v1.CreateNVMeContro" +
+ "llerRequest\032\".opi_api.storage.v1.NVMeCon" +
+ "troller\"_\202\323\344\223\002+\"\027/v1/{parent=subsystems}" +
+ ":\020nv_me_controller\332A+parent,nv_me_contro" +
+ "ller,nv_me_controller_id\022\223\001\n\024DeleteNVMeC" +
+ "ontroller\022/.opi_api.storage.v1.DeleteNVM" +
+ "eControllerRequest\032\026.google.protobuf.Emp" +
+ "ty\"2\202\323\344\223\002%*#/v1/{name=controllers}/{cont" +
+ "roller}\332A\004name\022\314\001\n\024UpdateNVMeController\022" +
+ "/.opi_api.storage.v1.UpdateNVMeControlle" +
+ "rRequest\032\".opi_api.storage.v1.NVMeContro" +
+ "ller\"_\202\323\344\223\002:2&/v1/{nv_me_controller.name" +
+ "=subsystems}:\020nv_me_controller\332A\034nv_me_c" +
+ "ontroller,update_mask\022\240\001\n\023ListNVMeContro" +
+ "llers\022..opi_api.storage.v1.ListNVMeContr" +
+ "ollersRequest\032/.opi_api.storage.v1.ListN" +
+ "VMeControllersResponse\"(\202\323\344\223\002\031\022\027/v1/{par" +
+ "ent=subsystems}\332A\006parent\022\230\001\n\021GetNVMeCont" +
+ "roller\022,.opi_api.storage.v1.GetNVMeContr" +
+ "ollerRequest\032\".opi_api.storage.v1.NVMeCo" +
+ "ntroller\"1\202\323\344\223\002$\022\"/v1/{name=subsystems}/" +
+ "{controller}\332A\004name\022x\n\023NVMeControllerSta" +
+ "ts\022..opi_api.storage.v1.NVMeControllerSt" +
+ "atsRequest\032/.opi_api.storage.v1.NVMeCont" +
+ "rollerStatsResponse\"\000\022\306\001\n\023CreateNVMeName" +
+ "space\022..opi_api.storage.v1.CreateNVMeNam" +
+ "espaceRequest\032!.opi_api.storage.v1.NVMeN" +
+ "amespace\"\\\202\323\344\223\002*\"\027/v1/{parent=subsystems" +
+ "}:\017nv_me_namespace\332A)parent,nv_me_namesp" +
+ "ace,nv_me_namespace_id\022\217\001\n\023DeleteNVMeNam" +
+ "espace\022..opi_api.storage.v1.DeleteNVMeNa" +
+ "mespaceRequest\032\026.google.protobuf.Empty\"0" +
+ "\202\323\344\223\002#*!/v1/{name=namespaces}/{namespace" +
+ "}\332A\004name\022\306\001\n\023UpdateNVMeNamespace\022..opi_a" +
+ "pi.storage.v1.UpdateNVMeNamespaceRequest" +
+ "\032!.opi_api.storage.v1.NVMeNamespace\"\\\202\323\344" +
+ "\223\00282%/v1/{nv_me_namespace.name=subsystem" +
+ "s}:\017nv_me_namespace\332A\033nv_me_namespace,up" +
+ "date_mask\022\235\001\n\022ListNVMeNamespaces\022-.opi_a" +
+ "pi.storage.v1.ListNVMeNamespacesRequest\032" +
+ "..opi_api.storage.v1.ListNVMeNamespacesR" +
+ "esponse\"(\202\323\344\223\002\031\022\027/v1/{parent=subsystems}" +
+ "\332A\006parent\022\224\001\n\020GetNVMeNamespace\022+.opi_api" +
+ ".storage.v1.GetNVMeNamespaceRequest\032!.op" +
+ "i_api.storage.v1.NVMeNamespace\"0\202\323\344\223\002#\022!" +
+ "/v1/{name=subsystems}/{namespace}\332A\004name" +
+ "\022u\n\022NVMeNamespaceStats\022-.opi_api.storage" +
+ ".v1.NVMeNamespaceStatsRequest\032..opi_api." +
+ "storage.v1.NVMeNamespaceStatsResponse\"\000\022" +
+ "\321\001\n\035AttachControllerNVMeNamespace\0222.opi_" +
+ "api.storage.v1.ControllerNVMeNamespaceRe" +
+ "quest\032\026.google.protobuf.Empty\"d\202\323\344\223\002^\"Y/" +
+ "v1/{subsystem=subsystemId/*/controller=n" +
+ "vmeControllerId/*}:attachControllerNvMeN" +
+ "amespace:\001*\022\321\001\n\035DetachControllerNVMeName" +
+ "space\0222.opi_api.storage.v1.ControllerNVM" +
+ "eNamespaceRequest\032\026.google.protobuf.Empt" +
+ "y\"d\202\323\344\223\002^\"Y/v1/{subsystem=subsystemId/*/" +
+ "controller=nvmeControllerId/*}:detachCon" +
+ "trollerNvMeNamespace:\001*Bd\n\022opi_api.stora" +
+ "ge.v1B\025FrontendNvmePcieProtoP\001Z5github.c" +
+ "om/opiproject/opi-api/storage/v1alpha1/g" +
+ "en/gob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -596,6 +616,12 @@ public static void registerAllExtensions(
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_opi_api_storage_v1_NVMeNamespaceStatsResponse_descriptor,
new java.lang.String[] { "Id", "Stats", });
+ internal_static_opi_api_storage_v1_ControllerNVMeNamespaceRequest_descriptor =
+ getDescriptor().getMessageTypes().get(33);
+ internal_static_opi_api_storage_v1_ControllerNVMeNamespaceRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_opi_api_storage_v1_ControllerNVMeNamespaceRequest_descriptor,
+ new java.lang.String[] { "Subsystem", "Controller", "NvMeNamespaceId", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/FrontendNvmeServiceGrpc.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/FrontendNvmeServiceGrpc.java
index 38589080..e9fc4d98 100644
--- a/storage/v1alpha1/gen/java/opi_api/storage/v1/FrontendNvmeServiceGrpc.java
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/FrontendNvmeServiceGrpc.java
@@ -576,6 +576,68 @@ opi_api.storage.v1.NVMeNamespaceStatsResponse> getNVMeNamespaceStatsMethod() {
return getNVMeNamespaceStatsMethod;
}
+ private static volatile io.grpc.MethodDescriptor+ * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ * @return Whether the id field is set.
+ */
+ @java.lang.Override
+ public boolean hasId() {
+ return id_ != null;
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKey getId() {
+ return id_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : id_;
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKeyOrBuilder getIdOrBuilder() {
+ return getId();
+ }
+
+ public static final int SUBSYSTEM_ID_FIELD_NUMBER = 2;
+ private opi_api.common.v1.ObjectKey subsystemId_;
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ * @return Whether the subsystemId field is set.
+ */
+ @java.lang.Override
+ public boolean hasSubsystemId() {
+ return subsystemId_ != null;
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ * @return The subsystemId.
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKey getSubsystemId() {
+ return subsystemId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : subsystemId_;
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ @java.lang.Override
+ public opi_api.common.v1.ObjectKeyOrBuilder getSubsystemIdOrBuilder() {
+ return getSubsystemId();
+ }
+
+ public static final int NVME_CONTROLLER_ID_FIELD_NUMBER = 3;
+ private int nvmeControllerId_;
+ /**
+ * + * subsystem controller id range: 0 to 65535. + * must not be reused under the same subsystem + *+ * + *
int32 nvme_controller_id = 3;
+ * @return The nvmeControllerId.
+ */
+ @java.lang.Override
+ public int getNvmeControllerId() {
+ return nvmeControllerId_;
+ }
+
+ public static final int HOST_NSID_FIELD_NUMBER = 4;
+ private int hostNsid_;
+ /**
+ * + * NSID present to the host by the NVMe PCIe controller. + * If not provided, then the controller will assign an unused NSID + * within the max namespace range - auto assigned nsid may not work + * for live migration + *+ * + *
int32 host_nsid = 4;
+ * @return The hostNsid.
+ */
+ @java.lang.Override
+ public int getHostNsid() {
+ return hostNsid_;
+ }
+
+ 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 (id_ != null) {
+ output.writeMessage(1, getId());
+ }
+ if (subsystemId_ != null) {
+ output.writeMessage(2, getSubsystemId());
+ }
+ if (nvmeControllerId_ != 0) {
+ output.writeInt32(3, nvmeControllerId_);
+ }
+ if (hostNsid_ != 0) {
+ output.writeInt32(4, hostNsid_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (id_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getId());
+ }
+ if (subsystemId_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getSubsystemId());
+ }
+ if (nvmeControllerId_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, nvmeControllerId_);
+ }
+ if (hostNsid_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(4, hostNsid_);
+ }
+ 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.NVMeControllerNamespaceSpec)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.NVMeControllerNamespaceSpec other = (opi_api.storage.v1.NVMeControllerNamespaceSpec) obj;
+
+ if (hasId() != other.hasId()) return false;
+ if (hasId()) {
+ if (!getId()
+ .equals(other.getId())) return false;
+ }
+ if (hasSubsystemId() != other.hasSubsystemId()) return false;
+ if (hasSubsystemId()) {
+ if (!getSubsystemId()
+ .equals(other.getSubsystemId())) return false;
+ }
+ if (getNvmeControllerId()
+ != other.getNvmeControllerId()) return false;
+ if (getHostNsid()
+ != other.getHostNsid()) 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 (hasId()) {
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ }
+ if (hasSubsystemId()) {
+ hash = (37 * hash) + SUBSYSTEM_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSubsystemId().hashCode();
+ }
+ hash = (37 * hash) + NVME_CONTROLLER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getNvmeControllerId();
+ hash = (37 * hash) + HOST_NSID_FIELD_NUMBER;
+ hash = (53 * hash) + getHostNsid();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec 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.NVMeControllerNamespaceSpec parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec 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.NVMeControllerNamespaceSpec parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec 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.NVMeControllerNamespaceSpec parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec 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.NVMeControllerNamespaceSpec parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec 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.NVMeControllerNamespaceSpec 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.NVMeControllerNamespaceSpec}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ * @return Whether the id field is set.
+ */
+ public boolean hasId() {
+ return idBuilder_ != null || id_ != null;
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ * @return The id.
+ */
+ public opi_api.common.v1.ObjectKey getId() {
+ if (idBuilder_ == null) {
+ return id_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : id_;
+ } else {
+ return idBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ public Builder setId(opi_api.common.v1.ObjectKey value) {
+ if (idBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ id_ = value;
+ onChanged();
+ } else {
+ idBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ public Builder setId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (idBuilder_ == null) {
+ id_ = builderForValue.build();
+ onChanged();
+ } else {
+ idBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ public Builder mergeId(opi_api.common.v1.ObjectKey value) {
+ if (idBuilder_ == null) {
+ if (id_ != null) {
+ id_ =
+ opi_api.common.v1.ObjectKey.newBuilder(id_).mergeFrom(value).buildPartial();
+ } else {
+ id_ = value;
+ }
+ onChanged();
+ } else {
+ idBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ public Builder clearId() {
+ if (idBuilder_ == null) {
+ id_ = null;
+ onChanged();
+ } else {
+ id_ = null;
+ idBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ public opi_api.common.v1.ObjectKey.Builder getIdBuilder() {
+
+ onChanged();
+ return getIdFieldBuilder().getBuilder();
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getIdOrBuilder() {
+ if (idBuilder_ != null) {
+ return idBuilder_.getMessageOrBuilder();
+ } else {
+ return id_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : id_;
+ }
+ }
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getIdFieldBuilder() {
+ if (idBuilder_ == null) {
+ idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getId(),
+ getParentForChildren(),
+ isClean());
+ id_ = null;
+ }
+ return idBuilder_;
+ }
+
+ private opi_api.common.v1.ObjectKey subsystemId_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder> subsystemIdBuilder_;
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ * @return Whether the subsystemId field is set.
+ */
+ public boolean hasSubsystemId() {
+ return subsystemIdBuilder_ != null || subsystemId_ != null;
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ * @return The subsystemId.
+ */
+ public opi_api.common.v1.ObjectKey getSubsystemId() {
+ if (subsystemIdBuilder_ == null) {
+ return subsystemId_ == null ? opi_api.common.v1.ObjectKey.getDefaultInstance() : subsystemId_;
+ } else {
+ return subsystemIdBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ public Builder setSubsystemId(opi_api.common.v1.ObjectKey value) {
+ if (subsystemIdBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ subsystemId_ = value;
+ onChanged();
+ } else {
+ subsystemIdBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ public Builder setSubsystemId(
+ opi_api.common.v1.ObjectKey.Builder builderForValue) {
+ if (subsystemIdBuilder_ == null) {
+ subsystemId_ = builderForValue.build();
+ onChanged();
+ } else {
+ subsystemIdBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ public Builder mergeSubsystemId(opi_api.common.v1.ObjectKey value) {
+ if (subsystemIdBuilder_ == null) {
+ if (subsystemId_ != null) {
+ subsystemId_ =
+ opi_api.common.v1.ObjectKey.newBuilder(subsystemId_).mergeFrom(value).buildPartial();
+ } else {
+ subsystemId_ = value;
+ }
+ onChanged();
+ } else {
+ subsystemIdBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ public Builder clearSubsystemId() {
+ if (subsystemIdBuilder_ == null) {
+ subsystemId_ = null;
+ onChanged();
+ } else {
+ subsystemId_ = null;
+ subsystemIdBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ public opi_api.common.v1.ObjectKey.Builder getSubsystemIdBuilder() {
+
+ onChanged();
+ return getSubsystemIdFieldBuilder().getBuilder();
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ public opi_api.common.v1.ObjectKeyOrBuilder getSubsystemIdOrBuilder() {
+ if (subsystemIdBuilder_ != null) {
+ return subsystemIdBuilder_.getMessageOrBuilder();
+ } else {
+ return subsystemId_ == null ?
+ opi_api.common.v1.ObjectKey.getDefaultInstance() : subsystemId_;
+ }
+ }
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>
+ getSubsystemIdFieldBuilder() {
+ if (subsystemIdBuilder_ == null) {
+ subsystemIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ opi_api.common.v1.ObjectKey, opi_api.common.v1.ObjectKey.Builder, opi_api.common.v1.ObjectKeyOrBuilder>(
+ getSubsystemId(),
+ getParentForChildren(),
+ isClean());
+ subsystemId_ = null;
+ }
+ return subsystemIdBuilder_;
+ }
+
+ private int nvmeControllerId_ ;
+ /**
+ * + * subsystem controller id range: 0 to 65535. + * must not be reused under the same subsystem + *+ * + *
int32 nvme_controller_id = 3;
+ * @return The nvmeControllerId.
+ */
+ @java.lang.Override
+ public int getNvmeControllerId() {
+ return nvmeControllerId_;
+ }
+ /**
+ * + * subsystem controller id range: 0 to 65535. + * must not be reused under the same subsystem + *+ * + *
int32 nvme_controller_id = 3;
+ * @param value The nvmeControllerId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNvmeControllerId(int value) {
+
+ nvmeControllerId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * subsystem controller id range: 0 to 65535. + * must not be reused under the same subsystem + *+ * + *
int32 nvme_controller_id = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearNvmeControllerId() {
+
+ nvmeControllerId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int hostNsid_ ;
+ /**
+ * + * NSID present to the host by the NVMe PCIe controller. + * If not provided, then the controller will assign an unused NSID + * within the max namespace range - auto assigned nsid may not work + * for live migration + *+ * + *
int32 host_nsid = 4;
+ * @return The hostNsid.
+ */
+ @java.lang.Override
+ public int getHostNsid() {
+ return hostNsid_;
+ }
+ /**
+ * + * NSID present to the host by the NVMe PCIe controller. + * If not provided, then the controller will assign an unused NSID + * within the max namespace range - auto assigned nsid may not work + * for live migration + *+ * + *
int32 host_nsid = 4;
+ * @param value The hostNsid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHostNsid(int value) {
+
+ hostNsid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * NSID present to the host by the NVMe PCIe controller. + * If not provided, then the controller will assign an unused NSID + * within the max namespace range - auto assigned nsid may not work + * for live migration + *+ * + *
int32 host_nsid = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearHostNsid() {
+
+ hostNsid_ = 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.NVMeControllerNamespaceSpec)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.NVMeControllerNamespaceSpec)
+ private static final opi_api.storage.v1.NVMeControllerNamespaceSpec DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.NVMeControllerNamespaceSpec();
+ }
+
+ public static opi_api.storage.v1.NVMeControllerNamespaceSpec getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ * @return Whether the id field is set.
+ */
+ boolean hasId();
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ * @return The id.
+ */
+ opi_api.common.v1.ObjectKey getId();
+ /**
+ * + * namespace's unique key + *+ * + *
.opi_api.common.v1.ObjectKey id = 1;
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getIdOrBuilder();
+
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ * @return Whether the subsystemId field is set.
+ */
+ boolean hasSubsystemId();
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ * @return The subsystemId.
+ */
+ opi_api.common.v1.ObjectKey getSubsystemId();
+ /**
+ * + * subsystem for this namespace + *+ * + *
.opi_api.common.v1.ObjectKey subsystem_id = 2;
+ */
+ opi_api.common.v1.ObjectKeyOrBuilder getSubsystemIdOrBuilder();
+
+ /**
+ * + * subsystem controller id range: 0 to 65535. + * must not be reused under the same subsystem + *+ * + *
int32 nvme_controller_id = 3;
+ * @return The nvmeControllerId.
+ */
+ int getNvmeControllerId();
+
+ /**
+ * + * NSID present to the host by the NVMe PCIe controller. + * If not provided, then the controller will assign an unused NSID + * within the max namespace range - auto assigned nsid may not work + * for live migration + *+ * + *
int32 host_nsid = 4;
+ * @return The hostNsid.
+ */
+ int getHostNsid();
+}
diff --git a/storage/v1alpha1/gen/java/opi_api/storage/v1/NVMeControllerNamespaceStatus.java b/storage/v1alpha1/gen/java/opi_api/storage/v1/NVMeControllerNamespaceStatus.java
new file mode 100644
index 00000000..50b65942
--- /dev/null
+++ b/storage/v1alpha1/gen/java/opi_api/storage/v1/NVMeControllerNamespaceStatus.java
@@ -0,0 +1,667 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: frontend_nvme_pcie.proto
+
+package opi_api.storage.v1;
+
+/**
+ * Protobuf type {@code opi_api.storage.v1.NVMeControllerNamespaceStatus}
+ */
+public final class NVMeControllerNamespaceStatus extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:opi_api.storage.v1.NVMeControllerNamespaceStatus)
+ NVMeControllerNamespaceStatusOrBuilder {
+private static final long serialVersionUID = 0L;
+ // Use NVMeControllerNamespaceStatus.newBuilder() to construct.
+ private NVMeControllerNamespaceStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private NVMeControllerNamespaceStatus() {
+ pciState_ = 0;
+ pciOperState_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new NVMeControllerNamespaceStatus();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private NVMeControllerNamespaceStatus(
+ 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: {
+ int rawValue = input.readEnum();
+
+ pciOperState_ = rawValue;
+ break;
+ }
+ case 16: {
+ int rawValue = input.readEnum();
+
+ pciState_ = rawValue;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return opi_api.storage.v1.FrontendNvmePcieProto.internal_static_opi_api_storage_v1_NVMeControllerNamespaceStatus_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return opi_api.storage.v1.FrontendNvmePcieProto.internal_static_opi_api_storage_v1_NVMeControllerNamespaceStatus_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ opi_api.storage.v1.NVMeControllerNamespaceStatus.class, opi_api.storage.v1.NVMeControllerNamespaceStatus.Builder.class);
+ }
+
+ public static final int PCI_STATE_FIELD_NUMBER = 2;
+ private int pciState_;
+ /**
+ * + * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @return The enum numeric value on the wire for pciState.
+ */
+ @java.lang.Override public int getPciStateValue() {
+ return pciState_;
+ }
+ /**
+ * + * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @return The pciState.
+ */
+ @java.lang.Override public opi_api.storage.v1.NVMeNamespacePciState getPciState() {
+ @SuppressWarnings("deprecation")
+ opi_api.storage.v1.NVMeNamespacePciState result = opi_api.storage.v1.NVMeNamespacePciState.valueOf(pciState_);
+ return result == null ? opi_api.storage.v1.NVMeNamespacePciState.UNRECOGNIZED : result;
+ }
+
+ public static final int PCI_OPER_STATE_FIELD_NUMBER = 1;
+ private int pciOperState_;
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @return The enum numeric value on the wire for pciOperState.
+ */
+ @java.lang.Override public int getPciOperStateValue() {
+ return pciOperState_;
+ }
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @return The pciOperState.
+ */
+ @java.lang.Override public opi_api.storage.v1.NVMeNamespacePciOperState getPciOperState() {
+ @SuppressWarnings("deprecation")
+ opi_api.storage.v1.NVMeNamespacePciOperState result = opi_api.storage.v1.NVMeNamespacePciOperState.valueOf(pciOperState_);
+ return result == null ? opi_api.storage.v1.NVMeNamespacePciOperState.UNRECOGNIZED : result;
+ }
+
+ 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 (pciOperState_ != opi_api.storage.v1.NVMeNamespacePciOperState.NV_ME_NAMESPACE_PCI_OPER_STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(1, pciOperState_);
+ }
+ if (pciState_ != opi_api.storage.v1.NVMeNamespacePciState.NV_ME_NAMESPACE_PCI_STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, pciState_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (pciOperState_ != opi_api.storage.v1.NVMeNamespacePciOperState.NV_ME_NAMESPACE_PCI_OPER_STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, pciOperState_);
+ }
+ if (pciState_ != opi_api.storage.v1.NVMeNamespacePciState.NV_ME_NAMESPACE_PCI_STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, pciState_);
+ }
+ 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.NVMeControllerNamespaceStatus)) {
+ return super.equals(obj);
+ }
+ opi_api.storage.v1.NVMeControllerNamespaceStatus other = (opi_api.storage.v1.NVMeControllerNamespaceStatus) obj;
+
+ if (pciState_ != other.pciState_) return false;
+ if (pciOperState_ != other.pciOperState_) 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) + PCI_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + pciState_;
+ hash = (37 * hash) + PCI_OPER_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + pciOperState_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus 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.NVMeControllerNamespaceStatus parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus 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.NVMeControllerNamespaceStatus parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus 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.NVMeControllerNamespaceStatus parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus 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.NVMeControllerNamespaceStatus parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus 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.NVMeControllerNamespaceStatus 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.NVMeControllerNamespaceStatus}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @return The enum numeric value on the wire for pciState.
+ */
+ @java.lang.Override public int getPciStateValue() {
+ return pciState_;
+ }
+ /**
+ * + * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @param value The enum numeric value on the wire for pciState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPciStateValue(int value) {
+
+ pciState_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @return The pciState.
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.NVMeNamespacePciState getPciState() {
+ @SuppressWarnings("deprecation")
+ opi_api.storage.v1.NVMeNamespacePciState result = opi_api.storage.v1.NVMeNamespacePciState.valueOf(pciState_);
+ return result == null ? opi_api.storage.v1.NVMeNamespacePciState.UNRECOGNIZED : result;
+ }
+ /**
+ * + * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @param value The pciState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPciState(opi_api.storage.v1.NVMeNamespacePciState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pciState_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPciState() {
+
+ pciState_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int pciOperState_ = 0;
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @return The enum numeric value on the wire for pciOperState.
+ */
+ @java.lang.Override public int getPciOperStateValue() {
+ return pciOperState_;
+ }
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @param value The enum numeric value on the wire for pciOperState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPciOperStateValue(int value) {
+
+ pciOperState_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @return The pciOperState.
+ */
+ @java.lang.Override
+ public opi_api.storage.v1.NVMeNamespacePciOperState getPciOperState() {
+ @SuppressWarnings("deprecation")
+ opi_api.storage.v1.NVMeNamespacePciOperState result = opi_api.storage.v1.NVMeNamespacePciOperState.valueOf(pciOperState_);
+ return result == null ? opi_api.storage.v1.NVMeNamespacePciOperState.UNRECOGNIZED : result;
+ }
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @param value The pciOperState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPciOperState(opi_api.storage.v1.NVMeNamespacePciOperState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pciOperState_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearPciOperState() {
+
+ pciOperState_ = 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.NVMeControllerNamespaceStatus)
+ }
+
+ // @@protoc_insertion_point(class_scope:opi_api.storage.v1.NVMeControllerNamespaceStatus)
+ private static final opi_api.storage.v1.NVMeControllerNamespaceStatus DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new opi_api.storage.v1.NVMeControllerNamespaceStatus();
+ }
+
+ public static opi_api.storage.v1.NVMeControllerNamespaceStatus getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @return The enum numeric value on the wire for pciState.
+ */
+ int getPciStateValue();
+ /**
+ * + * config state of the namespace object, (enabled, disable, deleting) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciState pci_state = 2;
+ * @return The pciState.
+ */
+ opi_api.storage.v1.NVMeNamespacePciState getPciState();
+
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @return The enum numeric value on the wire for pciOperState.
+ */
+ int getPciOperStateValue();
+ /**
+ * + * Operational state of the namespace object, (connected, disconnected) + *+ * + *
.opi_api.storage.v1.NVMeNamespacePciOperState pci_oper_state = 1;
+ * @return The pciOperState.
+ */
+ opi_api.storage.v1.NVMeNamespacePciOperState getPciOperState();
+}
diff --git a/storage/v1alpha1/gen/python/frontend_nvme_pcie_pb2.py b/storage/v1alpha1/gen/python/frontend_nvme_pcie_pb2.py
index c54a0124..9cabc2f5 100644
--- a/storage/v1alpha1/gen/python/frontend_nvme_pcie_pb2.py
+++ b/storage/v1alpha1/gen/python/frontend_nvme_pcie_pb2.py
@@ -24,7 +24,7 @@
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
-DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x66rontend_nvme_pcie.proto\x12\x12opi_api.storage.v1\x1a\x0fopicommon.proto\x1a\x10object_key.proto\x1a\nuuid.proto\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\"}\n\rNVMeSubsystem\x12\x33\n\x04spec\x18\x01 \x01(\x0b\x32%.opi_api.storage.v1.NVMeSubsystemSpec\x12\x37\n\x06status\x18\x02 \x01(\x0b\x32\'.opi_api.storage.v1.NVMeSubsystemStatus\"\x8f\x01\n\x11NVMeSubsystemSpec\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x0b\n\x03nqn\x18\x02 \x01(\t\x12\x15\n\rserial_number\x18\x03 \x01(\t\x12\x14\n\x0cmodel_number\x18\x04 \x01(\t\x12\x16\n\x0emax_namespaces\x18\x05 \x01(\x03\"B\n\x13NVMeSubsystemStatus\x12\x19\n\x11\x66irmware_revision\x18\x01 \x01(\t\x12\x10\n\x08\x66ru_guid\x18\x02 \x01(\x0c\"\x80\x01\n\x0eNVMeController\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.opi_api.storage.v1.NVMeControllerSpec\x12\x38\n\x06status\x18\x02 \x01(\x0b\x32(.opi_api.storage.v1.NVMeControllerStatus\"\x96\x02\n\x12NVMeControllerSpec\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x1a\n\x12nvme_controller_id\x18\x02 \x01(\x05\x12\x32\n\x0csubsystem_id\x18\x03 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x30\n\x07pcie_id\x18\x04 \x01(\x0b\x32\x1f.opi_api.storage.v1.PciEndpoint\x12\x0f\n\x07max_nsq\x18\x05 \x01(\x05\x12\x0f\n\x07max_ncq\x18\x06 \x01(\x05\x12\x0c\n\x04sqes\x18\x07 \x01(\x05\x12\x0c\n\x04\x63qes\x18\x08 \x01(\x05\x12\x16\n\x0emax_namespaces\x18\t \x01(\x05\"&\n\x14NVMeControllerStatus\x12\x0e\n\x06\x61\x63tive\x18\x01 \x01(\x08\"}\n\rNVMeNamespace\x12\x33\n\x04spec\x18\x01 \x01(\x0b\x32%.opi_api.storage.v1.NVMeNamespaceSpec\x12\x37\n\x06status\x18\x02 \x01(\x0b\x32\'.opi_api.storage.v1.NVMeNamespaceStatus\"\xfa\x01\n\x11NVMeNamespaceSpec\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x32\n\x0csubsystem_id\x18\x02 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x11\n\thost_nsid\x18\x04 \x01(\x05\x12\r\n\x05nguid\x18\x07 \x01(\t\x12\r\n\x05\x65ui64\x18\x08 \x01(\x03\x12%\n\x04uuid\x18\t \x01(\x0b\x32\x17.opi_api.common.v1.Uuid\x12/\n\tvolume_id\x18\n \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"\x9a\x01\n\x13NVMeNamespaceStatus\x12<\n\tpci_state\x18\x01 \x01(\x0e\x32).opi_api.storage.v1.NVMeNamespacePciState\x12\x45\n\x0epci_oper_state\x18\x02 \x01(\x0e\x32-.opi_api.storage.v1.NVMeNamespacePciOperState\"\xb3\x01\n\x1a\x43reateNVMeSubsystemRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeSubsystem\x12?\n\x0fnv_me_subsystem\x18\x02 \x01(\x0b\x32!.opi_api.storage.v1.NVMeSubsystemB\x03\xe0\x41\x02\x12\x1a\n\x12nv_me_subsystem_id\x18\x03 \x01(\t\"T\n\x1a\x44\x65leteNVMeSubsystemRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeSubsystem\"\x89\x01\n\x1aUpdateNVMeSubsystemRequest\x12:\n\x0fnv_me_subsystem\x18\x01 \x01(\x0b\x32!.opi_api.storage.v1.NVMeSubsystem\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"|\n\x19ListNVMeSubsystemsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeSubsystem\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x1aListNVMeSubsystemsResponse\x12;\n\x10nv_me_subsystems\x18\x01 \x03(\x0b\x32!.opi_api.storage.v1.NVMeSubsystem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x17GetNVMeSubsystemRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeSubsystem\"O\n\x19NVMeSubsystemStatsRequest\x12\x32\n\x0csubsystem_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"L\n\x1aNVMeSubsystemStatsResponse\x12.\n\x05stats\x18\x01 \x01(\x0b\x32\x1f.opi_api.storage.v1.VolumeStats\"\xb8\x01\n\x1b\x43reateNVMeControllerRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!opi_api.storage.v1/NVMeController\x12\x41\n\x10nv_me_controller\x18\x02 \x01(\x0b\x32\".opi_api.storage.v1.NVMeControllerB\x03\xe0\x41\x02\x12\x1b\n\x13nv_me_controller_id\x18\x03 \x01(\t\"V\n\x1b\x44\x65leteNVMeControllerRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!opi_api.storage.v1/NVMeController\"\x8c\x01\n\x1bUpdateNVMeControllerRequest\x12<\n\x10nv_me_controller\x18\x01 \x01(\x0b\x32\".opi_api.storage.v1.NVMeController\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"~\n\x1aListNVMeControllersRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!opi_api.storage.v1/NVMeController\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"u\n\x1bListNVMeControllersResponse\x12=\n\x11nv_me_controllers\x18\x01 \x03(\x0b\x32\".opi_api.storage.v1.NVMeController\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x18GetNVMeControllerRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!opi_api.storage.v1/NVMeController\"F\n\x1aNVMeControllerStatsRequest\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"w\n\x1bNVMeControllerStatsResponse\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12.\n\x05stats\x18\x02 \x01(\x0b\x32\x1f.opi_api.storage.v1.VolumeStats\"\xb3\x01\n\x1a\x43reateNVMeNamespaceRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeNamespace\x12?\n\x0fnv_me_namespace\x18\x02 \x01(\x0b\x32!.opi_api.storage.v1.NVMeNamespaceB\x03\xe0\x41\x02\x12\x1a\n\x12nv_me_namespace_id\x18\x03 \x01(\t\"T\n\x1a\x44\x65leteNVMeNamespaceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeNamespace\"\x89\x01\n\x1aUpdateNVMeNamespaceRequest\x12:\n\x0fnv_me_namespace\x18\x01 \x01(\x0b\x32!.opi_api.storage.v1.NVMeNamespace\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"|\n\x19ListNVMeNamespacesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeNamespace\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x1aListNVMeNamespacesResponse\x12;\n\x10nv_me_namespaces\x18\x01 \x03(\x0b\x32!.opi_api.storage.v1.NVMeNamespace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x17GetNVMeNamespaceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeNamespace\"O\n\x19NVMeNamespaceStatsRequest\x12\x32\n\x0cnamespace_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"v\n\x1aNVMeNamespaceStatsResponse\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12.\n\x05stats\x18\x02 \x01(\x0b\x32\x1f.opi_api.storage.v1.VolumeStats*\xb6\x01\n\x15NVMeNamespacePciState\x12)\n%NV_ME_NAMESPACE_PCI_STATE_UNSPECIFIED\x10\x00\x12%\n!NVME_NAMESPACE_PCI_STATE_DISABLED\x10\x01\x12$\n NVME_NAMESPACE_PCI_STATE_ENABLED\x10\x02\x12%\n!NVME_NAMESPACE_PCI_STATE_DELETING\x10\x03*\xa0\x01\n\x19NVMeNamespacePciOperState\x12.\n*NV_ME_NAMESPACE_PCI_OPER_STATE_UNSPECIFIED\x10\x00\x12(\n$NVME_NAMESPACE_PCI_OPER_STATE_ONLINE\x10\x01\x12)\n%NVME_NAMESPACE_PCI_OPER_STATE_OFFLINE\x10\x02\x32\xa5\x17\n\x13\x46rontendNvmeService\x12\xc6\x01\n\x13\x43reateNVMeSubsystem\x12..opi_api.storage.v1.CreateNVMeSubsystemRequest\x1a!.opi_api.storage.v1.NVMeSubsystem\"\\\x82\xd3\xe4\x93\x02*\"\x17/v1/{parent=subsystems}:\x0fnv_me_subsystem\xda\x41)parent,nv_me_subsystem,nv_me_subsystem_id\x12\x8f\x01\n\x13\x44\x65leteNVMeSubsystem\x12..opi_api.storage.v1.DeleteNVMeSubsystemRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02#*!/v1/{name=subsystems}/{subsystem}\xda\x41\x04name\x12\xc6\x01\n\x13UpdateNVMeSubsystem\x12..opi_api.storage.v1.UpdateNVMeSubsystemRequest\x1a!.opi_api.storage.v1.NVMeSubsystem\"\\\x82\xd3\xe4\x93\x02\x38\x32%/v1/{nv_me_subsystem.name=subsystems}:\x0fnv_me_subsystem\xda\x41\x1bnv_me_subsystem,update_mask\x12\x9d\x01\n\x12ListNVMeSubsystems\x12-.opi_api.storage.v1.ListNVMeSubsystemsRequest\x1a..opi_api.storage.v1.ListNVMeSubsystemsResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=subsystems}\xda\x41\x06parent\x12\x94\x01\n\x10GetNVMeSubsystem\x12+.opi_api.storage.v1.GetNVMeSubsystemRequest\x1a!.opi_api.storage.v1.NVMeSubsystem\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=subsystems}/{subsystem}\xda\x41\x04name\x12u\n\x12NVMeSubsystemStats\x12-.opi_api.storage.v1.NVMeSubsystemStatsRequest\x1a..opi_api.storage.v1.NVMeSubsystemStatsResponse\"\x00\x12\xcc\x01\n\x14\x43reateNVMeController\x12/.opi_api.storage.v1.CreateNVMeControllerRequest\x1a\".opi_api.storage.v1.NVMeController\"_\x82\xd3\xe4\x93\x02+\"\x17/v1/{parent=subsystems}:\x10nv_me_controller\xda\x41+parent,nv_me_controller,nv_me_controller_id\x12\x93\x01\n\x14\x44\x65leteNVMeController\x12/.opi_api.storage.v1.DeleteNVMeControllerRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02%*#/v1/{name=controllers}/{controller}\xda\x41\x04name\x12\xcc\x01\n\x14UpdateNVMeController\x12/.opi_api.storage.v1.UpdateNVMeControllerRequest\x1a\".opi_api.storage.v1.NVMeController\"_\x82\xd3\xe4\x93\x02:2&/v1/{nv_me_controller.name=subsystems}:\x10nv_me_controller\xda\x41\x1cnv_me_controller,update_mask\x12\xa0\x01\n\x13ListNVMeControllers\x12..opi_api.storage.v1.ListNVMeControllersRequest\x1a/.opi_api.storage.v1.ListNVMeControllersResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=subsystems}\xda\x41\x06parent\x12\x98\x01\n\x11GetNVMeController\x12,.opi_api.storage.v1.GetNVMeControllerRequest\x1a\".opi_api.storage.v1.NVMeController\"1\x82\xd3\xe4\x93\x02$\x12\"/v1/{name=subsystems}/{controller}\xda\x41\x04name\x12x\n\x13NVMeControllerStats\x12..opi_api.storage.v1.NVMeControllerStatsRequest\x1a/.opi_api.storage.v1.NVMeControllerStatsResponse\"\x00\x12\xc6\x01\n\x13\x43reateNVMeNamespace\x12..opi_api.storage.v1.CreateNVMeNamespaceRequest\x1a!.opi_api.storage.v1.NVMeNamespace\"\\\x82\xd3\xe4\x93\x02*\"\x17/v1/{parent=subsystems}:\x0fnv_me_namespace\xda\x41)parent,nv_me_namespace,nv_me_namespace_id\x12\x8f\x01\n\x13\x44\x65leteNVMeNamespace\x12..opi_api.storage.v1.DeleteNVMeNamespaceRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02#*!/v1/{name=namespaces}/{namespace}\xda\x41\x04name\x12\xc6\x01\n\x13UpdateNVMeNamespace\x12..opi_api.storage.v1.UpdateNVMeNamespaceRequest\x1a!.opi_api.storage.v1.NVMeNamespace\"\\\x82\xd3\xe4\x93\x02\x38\x32%/v1/{nv_me_namespace.name=subsystems}:\x0fnv_me_namespace\xda\x41\x1bnv_me_namespace,update_mask\x12\x9d\x01\n\x12ListNVMeNamespaces\x12-.opi_api.storage.v1.ListNVMeNamespacesRequest\x1a..opi_api.storage.v1.ListNVMeNamespacesResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=subsystems}\xda\x41\x06parent\x12\x94\x01\n\x10GetNVMeNamespace\x12+.opi_api.storage.v1.GetNVMeNamespaceRequest\x1a!.opi_api.storage.v1.NVMeNamespace\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=subsystems}/{namespace}\xda\x41\x04name\x12u\n\x12NVMeNamespaceStats\x12-.opi_api.storage.v1.NVMeNamespaceStatsRequest\x1a..opi_api.storage.v1.NVMeNamespaceStatsResponse\"\x00\x42\x64\n\x12opi_api.storage.v1B\x15\x46rontendNvmePcieProtoP\x01Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/gob\x06proto3')
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x66rontend_nvme_pcie.proto\x12\x12opi_api.storage.v1\x1a\x0fopicommon.proto\x1a\x10object_key.proto\x1a\nuuid.proto\x1a\x17google/api/client.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\"}\n\rNVMeSubsystem\x12\x33\n\x04spec\x18\x01 \x01(\x0b\x32%.opi_api.storage.v1.NVMeSubsystemSpec\x12\x37\n\x06status\x18\x02 \x01(\x0b\x32\'.opi_api.storage.v1.NVMeSubsystemStatus\"\x8f\x01\n\x11NVMeSubsystemSpec\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x0b\n\x03nqn\x18\x02 \x01(\t\x12\x15\n\rserial_number\x18\x03 \x01(\t\x12\x14\n\x0cmodel_number\x18\x04 \x01(\t\x12\x16\n\x0emax_namespaces\x18\x05 \x01(\x03\"B\n\x13NVMeSubsystemStatus\x12\x19\n\x11\x66irmware_revision\x18\x01 \x01(\t\x12\x10\n\x08\x66ru_guid\x18\x02 \x01(\x0c\"\x80\x01\n\x0eNVMeController\x12\x34\n\x04spec\x18\x01 \x01(\x0b\x32&.opi_api.storage.v1.NVMeControllerSpec\x12\x38\n\x06status\x18\x02 \x01(\x0b\x32(.opi_api.storage.v1.NVMeControllerStatus\"\x96\x02\n\x12NVMeControllerSpec\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x1a\n\x12nvme_controller_id\x18\x02 \x01(\x05\x12\x32\n\x0csubsystem_id\x18\x03 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x30\n\x07pcie_id\x18\x04 \x01(\x0b\x32\x1f.opi_api.storage.v1.PciEndpoint\x12\x0f\n\x07max_nsq\x18\x05 \x01(\x05\x12\x0f\n\x07max_ncq\x18\x06 \x01(\x05\x12\x0c\n\x04sqes\x18\x07 \x01(\x05\x12\x0c\n\x04\x63qes\x18\x08 \x01(\x05\x12\x16\n\x0emax_namespaces\x18\t \x01(\x05\"&\n\x14NVMeControllerStatus\x12\x0e\n\x06\x61\x63tive\x18\x01 \x01(\x08\"}\n\rNVMeNamespace\x12\x33\n\x04spec\x18\x01 \x01(\x0b\x32%.opi_api.storage.v1.NVMeNamespaceSpec\x12\x37\n\x06status\x18\x02 \x01(\x0b\x32\'.opi_api.storage.v1.NVMeNamespaceStatus\"\xfa\x01\n\x11NVMeNamespaceSpec\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x32\n\x0csubsystem_id\x18\x02 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12\x11\n\thost_nsid\x18\x04 \x01(\x05\x12\r\n\x05nguid\x18\x07 \x01(\t\x12\r\n\x05\x65ui64\x18\x08 \x01(\x03\x12%\n\x04uuid\x18\t \x01(\x0b\x32\x17.opi_api.common.v1.Uuid\x12/\n\tvolume_id\x18\n \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"\x9a\x01\n\x13NVMeNamespaceStatus\x12<\n\tpci_state\x18\x01 \x01(\x0e\x32).opi_api.storage.v1.NVMeNamespacePciState\x12\x45\n\x0epci_oper_state\x18\x02 \x01(\x0e\x32-.opi_api.storage.v1.NVMeNamespacePciOperState\"\xb3\x01\n\x1a\x43reateNVMeSubsystemRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeSubsystem\x12?\n\x0fnv_me_subsystem\x18\x02 \x01(\x0b\x32!.opi_api.storage.v1.NVMeSubsystemB\x03\xe0\x41\x02\x12\x1a\n\x12nv_me_subsystem_id\x18\x03 \x01(\t\"T\n\x1a\x44\x65leteNVMeSubsystemRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeSubsystem\"\x89\x01\n\x1aUpdateNVMeSubsystemRequest\x12:\n\x0fnv_me_subsystem\x18\x01 \x01(\x0b\x32!.opi_api.storage.v1.NVMeSubsystem\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"|\n\x19ListNVMeSubsystemsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeSubsystem\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x1aListNVMeSubsystemsResponse\x12;\n\x10nv_me_subsystems\x18\x01 \x03(\x0b\x32!.opi_api.storage.v1.NVMeSubsystem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x17GetNVMeSubsystemRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeSubsystem\"O\n\x19NVMeSubsystemStatsRequest\x12\x32\n\x0csubsystem_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"L\n\x1aNVMeSubsystemStatsResponse\x12.\n\x05stats\x18\x01 \x01(\x0b\x32\x1f.opi_api.storage.v1.VolumeStats\"\xb8\x01\n\x1b\x43reateNVMeControllerRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!opi_api.storage.v1/NVMeController\x12\x41\n\x10nv_me_controller\x18\x02 \x01(\x0b\x32\".opi_api.storage.v1.NVMeControllerB\x03\xe0\x41\x02\x12\x1b\n\x13nv_me_controller_id\x18\x03 \x01(\t\"V\n\x1b\x44\x65leteNVMeControllerRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!opi_api.storage.v1/NVMeController\"\x8c\x01\n\x1bUpdateNVMeControllerRequest\x12<\n\x10nv_me_controller\x18\x01 \x01(\x0b\x32\".opi_api.storage.v1.NVMeController\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"~\n\x1aListNVMeControllersRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!opi_api.storage.v1/NVMeController\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"u\n\x1bListNVMeControllersResponse\x12=\n\x11nv_me_controllers\x18\x01 \x03(\x0b\x32\".opi_api.storage.v1.NVMeController\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"S\n\x18GetNVMeControllerRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!opi_api.storage.v1/NVMeController\"F\n\x1aNVMeControllerStatsRequest\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"w\n\x1bNVMeControllerStatsResponse\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12.\n\x05stats\x18\x02 \x01(\x0b\x32\x1f.opi_api.storage.v1.VolumeStats\"\xb3\x01\n\x1a\x43reateNVMeNamespaceRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeNamespace\x12?\n\x0fnv_me_namespace\x18\x02 \x01(\x0b\x32!.opi_api.storage.v1.NVMeNamespaceB\x03\xe0\x41\x02\x12\x1a\n\x12nv_me_namespace_id\x18\x03 \x01(\t\"T\n\x1a\x44\x65leteNVMeNamespaceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeNamespace\"\x89\x01\n\x1aUpdateNVMeNamespaceRequest\x12:\n\x0fnv_me_namespace\x18\x01 \x01(\x0b\x32!.opi_api.storage.v1.NVMeNamespace\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"|\n\x19ListNVMeNamespacesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeNamespace\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x1aListNVMeNamespacesResponse\x12;\n\x10nv_me_namespaces\x18\x01 \x03(\x0b\x32!.opi_api.storage.v1.NVMeNamespace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x17GetNVMeNamespaceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n opi_api.storage.v1/NVMeNamespace\"O\n\x19NVMeNamespaceStatsRequest\x12\x32\n\x0cnamespace_id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\"v\n\x1aNVMeNamespaceStatsResponse\x12(\n\x02id\x18\x01 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKey\x12.\n\x05stats\x18\x02 \x01(\x0b\x32\x1f.opi_api.storage.v1.VolumeStats\"\xae\x01\n\x1e\x43ontrollerNVMeNamespaceRequest\x12\x16\n\tsubsystem\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x35\n\ncontroller\x18\x02 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKeyB\x03\xe0\x41\x02\x12=\n\x12nv_me_namespace_id\x18\x03 \x01(\x0b\x32\x1c.opi_api.common.v1.ObjectKeyB\x03\xe0\x41\x02*\xb6\x01\n\x15NVMeNamespacePciState\x12)\n%NV_ME_NAMESPACE_PCI_STATE_UNSPECIFIED\x10\x00\x12%\n!NVME_NAMESPACE_PCI_STATE_DISABLED\x10\x01\x12$\n NVME_NAMESPACE_PCI_STATE_ENABLED\x10\x02\x12%\n!NVME_NAMESPACE_PCI_STATE_DELETING\x10\x03*\xa0\x01\n\x19NVMeNamespacePciOperState\x12.\n*NV_ME_NAMESPACE_PCI_OPER_STATE_UNSPECIFIED\x10\x00\x12(\n$NVME_NAMESPACE_PCI_OPER_STATE_ONLINE\x10\x01\x12)\n%NVME_NAMESPACE_PCI_OPER_STATE_OFFLINE\x10\x02\x32\xcd\x1a\n\x13\x46rontendNvmeService\x12\xc6\x01\n\x13\x43reateNVMeSubsystem\x12..opi_api.storage.v1.CreateNVMeSubsystemRequest\x1a!.opi_api.storage.v1.NVMeSubsystem\"\\\x82\xd3\xe4\x93\x02*\"\x17/v1/{parent=subsystems}:\x0fnv_me_subsystem\xda\x41)parent,nv_me_subsystem,nv_me_subsystem_id\x12\x8f\x01\n\x13\x44\x65leteNVMeSubsystem\x12..opi_api.storage.v1.DeleteNVMeSubsystemRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02#*!/v1/{name=subsystems}/{subsystem}\xda\x41\x04name\x12\xc6\x01\n\x13UpdateNVMeSubsystem\x12..opi_api.storage.v1.UpdateNVMeSubsystemRequest\x1a!.opi_api.storage.v1.NVMeSubsystem\"\\\x82\xd3\xe4\x93\x02\x38\x32%/v1/{nv_me_subsystem.name=subsystems}:\x0fnv_me_subsystem\xda\x41\x1bnv_me_subsystem,update_mask\x12\x9d\x01\n\x12ListNVMeSubsystems\x12-.opi_api.storage.v1.ListNVMeSubsystemsRequest\x1a..opi_api.storage.v1.ListNVMeSubsystemsResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=subsystems}\xda\x41\x06parent\x12\x94\x01\n\x10GetNVMeSubsystem\x12+.opi_api.storage.v1.GetNVMeSubsystemRequest\x1a!.opi_api.storage.v1.NVMeSubsystem\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=subsystems}/{subsystem}\xda\x41\x04name\x12u\n\x12NVMeSubsystemStats\x12-.opi_api.storage.v1.NVMeSubsystemStatsRequest\x1a..opi_api.storage.v1.NVMeSubsystemStatsResponse\"\x00\x12\xcc\x01\n\x14\x43reateNVMeController\x12/.opi_api.storage.v1.CreateNVMeControllerRequest\x1a\".opi_api.storage.v1.NVMeController\"_\x82\xd3\xe4\x93\x02+\"\x17/v1/{parent=subsystems}:\x10nv_me_controller\xda\x41+parent,nv_me_controller,nv_me_controller_id\x12\x93\x01\n\x14\x44\x65leteNVMeController\x12/.opi_api.storage.v1.DeleteNVMeControllerRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02%*#/v1/{name=controllers}/{controller}\xda\x41\x04name\x12\xcc\x01\n\x14UpdateNVMeController\x12/.opi_api.storage.v1.UpdateNVMeControllerRequest\x1a\".opi_api.storage.v1.NVMeController\"_\x82\xd3\xe4\x93\x02:2&/v1/{nv_me_controller.name=subsystems}:\x10nv_me_controller\xda\x41\x1cnv_me_controller,update_mask\x12\xa0\x01\n\x13ListNVMeControllers\x12..opi_api.storage.v1.ListNVMeControllersRequest\x1a/.opi_api.storage.v1.ListNVMeControllersResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=subsystems}\xda\x41\x06parent\x12\x98\x01\n\x11GetNVMeController\x12,.opi_api.storage.v1.GetNVMeControllerRequest\x1a\".opi_api.storage.v1.NVMeController\"1\x82\xd3\xe4\x93\x02$\x12\"/v1/{name=subsystems}/{controller}\xda\x41\x04name\x12x\n\x13NVMeControllerStats\x12..opi_api.storage.v1.NVMeControllerStatsRequest\x1a/.opi_api.storage.v1.NVMeControllerStatsResponse\"\x00\x12\xc6\x01\n\x13\x43reateNVMeNamespace\x12..opi_api.storage.v1.CreateNVMeNamespaceRequest\x1a!.opi_api.storage.v1.NVMeNamespace\"\\\x82\xd3\xe4\x93\x02*\"\x17/v1/{parent=subsystems}:\x0fnv_me_namespace\xda\x41)parent,nv_me_namespace,nv_me_namespace_id\x12\x8f\x01\n\x13\x44\x65leteNVMeNamespace\x12..opi_api.storage.v1.DeleteNVMeNamespaceRequest\x1a\x16.google.protobuf.Empty\"0\x82\xd3\xe4\x93\x02#*!/v1/{name=namespaces}/{namespace}\xda\x41\x04name\x12\xc6\x01\n\x13UpdateNVMeNamespace\x12..opi_api.storage.v1.UpdateNVMeNamespaceRequest\x1a!.opi_api.storage.v1.NVMeNamespace\"\\\x82\xd3\xe4\x93\x02\x38\x32%/v1/{nv_me_namespace.name=subsystems}:\x0fnv_me_namespace\xda\x41\x1bnv_me_namespace,update_mask\x12\x9d\x01\n\x12ListNVMeNamespaces\x12-.opi_api.storage.v1.ListNVMeNamespacesRequest\x1a..opi_api.storage.v1.ListNVMeNamespacesResponse\"(\x82\xd3\xe4\x93\x02\x19\x12\x17/v1/{parent=subsystems}\xda\x41\x06parent\x12\x94\x01\n\x10GetNVMeNamespace\x12+.opi_api.storage.v1.GetNVMeNamespaceRequest\x1a!.opi_api.storage.v1.NVMeNamespace\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=subsystems}/{namespace}\xda\x41\x04name\x12u\n\x12NVMeNamespaceStats\x12-.opi_api.storage.v1.NVMeNamespaceStatsRequest\x1a..opi_api.storage.v1.NVMeNamespaceStatsResponse\"\x00\x12\xd1\x01\n\x1d\x41ttachControllerNVMeNamespace\x12\x32.opi_api.storage.v1.ControllerNVMeNamespaceRequest\x1a\x16.google.protobuf.Empty\"d\x82\xd3\xe4\x93\x02^\"Y/v1/{subsystem=subsystemId/*/controller=nvmeControllerId/*}:attachControllerNvMeNamespace:\x01*\x12\xd1\x01\n\x1d\x44\x65tachControllerNVMeNamespace\x12\x32.opi_api.storage.v1.ControllerNVMeNamespaceRequest\x1a\x16.google.protobuf.Empty\"d\x82\xd3\xe4\x93\x02^\"Y/v1/{subsystem=subsystemId/*/controller=nvmeControllerId/*}:detachControllerNvMeNamespace:\x01*Bd\n\x12opi_api.storage.v1B\x15\x46rontendNvmePcieProtoP\x01Z5github.com/opiproject/opi-api/storage/v1alpha1/gen/gob\x06proto3')
_NVMENAMESPACEPCISTATE = DESCRIPTOR.enum_types_by_name['NVMeNamespacePciState']
NVMeNamespacePciState = enum_type_wrapper.EnumTypeWrapper(_NVMENAMESPACEPCISTATE)
@@ -72,6 +72,7 @@
_GETNVMENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name['GetNVMeNamespaceRequest']
_NVMENAMESPACESTATSREQUEST = DESCRIPTOR.message_types_by_name['NVMeNamespaceStatsRequest']
_NVMENAMESPACESTATSRESPONSE = DESCRIPTOR.message_types_by_name['NVMeNamespaceStatsResponse']
+_CONTROLLERNVMENAMESPACEREQUEST = DESCRIPTOR.message_types_by_name['ControllerNVMeNamespaceRequest']
NVMeSubsystem = _reflection.GeneratedProtocolMessageType('NVMeSubsystem', (_message.Message,), {
'DESCRIPTOR' : _NVMESUBSYSTEM,
'__module__' : 'frontend_nvme_pcie_pb2'
@@ -303,6 +304,13 @@
})
_sym_db.RegisterMessage(NVMeNamespaceStatsResponse)
+ControllerNVMeNamespaceRequest = _reflection.GeneratedProtocolMessageType('ControllerNVMeNamespaceRequest', (_message.Message,), {
+ 'DESCRIPTOR' : _CONTROLLERNVMENAMESPACEREQUEST,
+ '__module__' : 'frontend_nvme_pcie_pb2'
+ # @@protoc_insertion_point(class_scope:opi_api.storage.v1.ControllerNVMeNamespaceRequest)
+ })
+_sym_db.RegisterMessage(ControllerNVMeNamespaceRequest)
+
_FRONTENDNVMESERVICE = DESCRIPTOR.services_by_name['FrontendNvmeService']
if _descriptor._USE_C_DESCRIPTORS == False:
@@ -338,6 +346,12 @@
_LISTNVMENAMESPACESREQUEST.fields_by_name['parent']._serialized_options = b'\340A\002\372A\"\n opi_api.storage.v1/NVMeNamespace'
_GETNVMENAMESPACEREQUEST.fields_by_name['name']._options = None
_GETNVMENAMESPACEREQUEST.fields_by_name['name']._serialized_options = b'\340A\002\372A\"\n opi_api.storage.v1/NVMeNamespace'
+ _CONTROLLERNVMENAMESPACEREQUEST.fields_by_name['subsystem']._options = None
+ _CONTROLLERNVMENAMESPACEREQUEST.fields_by_name['subsystem']._serialized_options = b'\340A\002'
+ _CONTROLLERNVMENAMESPACEREQUEST.fields_by_name['controller']._options = None
+ _CONTROLLERNVMENAMESPACEREQUEST.fields_by_name['controller']._serialized_options = b'\340A\002'
+ _CONTROLLERNVMENAMESPACEREQUEST.fields_by_name['nv_me_namespace_id']._options = None
+ _CONTROLLERNVMENAMESPACEREQUEST.fields_by_name['nv_me_namespace_id']._serialized_options = b'\340A\002'
_FRONTENDNVMESERVICE.methods_by_name['CreateNVMeSubsystem']._options = None
_FRONTENDNVMESERVICE.methods_by_name['CreateNVMeSubsystem']._serialized_options = b'\202\323\344\223\002*\"\027/v1/{parent=subsystems}:\017nv_me_subsystem\332A)parent,nv_me_subsystem,nv_me_subsystem_id'
_FRONTENDNVMESERVICE.methods_by_name['DeleteNVMeSubsystem']._options = None
@@ -368,10 +382,14 @@
_FRONTENDNVMESERVICE.methods_by_name['ListNVMeNamespaces']._serialized_options = b'\202\323\344\223\002\031\022\027/v1/{parent=subsystems}\332A\006parent'
_FRONTENDNVMESERVICE.methods_by_name['GetNVMeNamespace']._options = None
_FRONTENDNVMESERVICE.methods_by_name['GetNVMeNamespace']._serialized_options = b'\202\323\344\223\002#\022!/v1/{name=subsystems}/{namespace}\332A\004name'
- _NVMENAMESPACEPCISTATE._serialized_start=4373
- _NVMENAMESPACEPCISTATE._serialized_end=4555
- _NVMENAMESPACEPCIOPERSTATE._serialized_start=4558
- _NVMENAMESPACEPCIOPERSTATE._serialized_end=4718
+ _FRONTENDNVMESERVICE.methods_by_name['AttachControllerNVMeNamespace']._options = None
+ _FRONTENDNVMESERVICE.methods_by_name['AttachControllerNVMeNamespace']._serialized_options = b'\202\323\344\223\002^\"Y/v1/{subsystem=subsystemId/*/controller=nvmeControllerId/*}:attachControllerNvMeNamespace:\001*'
+ _FRONTENDNVMESERVICE.methods_by_name['DetachControllerNVMeNamespace']._options = None
+ _FRONTENDNVMESERVICE.methods_by_name['DetachControllerNVMeNamespace']._serialized_options = b'\202\323\344\223\002^\"Y/v1/{subsystem=subsystemId/*/controller=nvmeControllerId/*}:detachControllerNvMeNamespace:\001*'
+ _NVMENAMESPACEPCISTATE._serialized_start=4550
+ _NVMENAMESPACEPCISTATE._serialized_end=4732
+ _NVMENAMESPACEPCIOPERSTATE._serialized_start=4735
+ _NVMENAMESPACEPCIOPERSTATE._serialized_end=4895
_NVMESUBSYSTEM._serialized_start=273
_NVMESUBSYSTEM._serialized_end=398
_NVMESUBSYSTEMSPEC._serialized_start=401
@@ -438,6 +456,8 @@
_NVMENAMESPACESTATSREQUEST._serialized_end=4250
_NVMENAMESPACESTATSRESPONSE._serialized_start=4252
_NVMENAMESPACESTATSRESPONSE._serialized_end=4370
- _FRONTENDNVMESERVICE._serialized_start=4721
- _FRONTENDNVMESERVICE._serialized_end=7702
+ _CONTROLLERNVMENAMESPACEREQUEST._serialized_start=4373
+ _CONTROLLERNVMENAMESPACEREQUEST._serialized_end=4547
+ _FRONTENDNVMESERVICE._serialized_start=4898
+ _FRONTENDNVMESERVICE._serialized_end=8303
# @@protoc_insertion_point(module_scope)
diff --git a/storage/v1alpha1/gen/python/frontend_nvme_pcie_pb2_grpc.py b/storage/v1alpha1/gen/python/frontend_nvme_pcie_pb2_grpc.py
index 3b785141..3abf441a 100644
--- a/storage/v1alpha1/gen/python/frontend_nvme_pcie_pb2_grpc.py
+++ b/storage/v1alpha1/gen/python/frontend_nvme_pcie_pb2_grpc.py
@@ -106,6 +106,16 @@ def __init__(self, channel):
request_serializer=frontend__nvme__pcie__pb2.NVMeNamespaceStatsRequest.SerializeToString,
response_deserializer=frontend__nvme__pcie__pb2.NVMeNamespaceStatsResponse.FromString,
)
+ self.AttachControllerNVMeNamespace = channel.unary_unary(
+ '/opi_api.storage.v1.FrontendNvmeService/AttachControllerNVMeNamespace',
+ request_serializer=frontend__nvme__pcie__pb2.ControllerNVMeNamespaceRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
+ self.DetachControllerNVMeNamespace = channel.unary_unary(
+ '/opi_api.storage.v1.FrontendNvmeService/DetachControllerNVMeNamespace',
+ request_serializer=frontend__nvme__pcie__pb2.ControllerNVMeNamespaceRequest.SerializeToString,
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ )
class FrontendNvmeServiceServicer(object):
@@ -220,6 +230,18 @@ def NVMeNamespaceStats(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
+ def AttachControllerNVMeNamespace(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
+ def DetachControllerNVMeNamespace(self, request, context):
+ """Missing associated documentation comment in .proto file."""
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
+ context.set_details('Method not implemented!')
+ raise NotImplementedError('Method not implemented!')
+
def add_FrontendNvmeServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
@@ -313,6 +335,16 @@ def add_FrontendNvmeServiceServicer_to_server(servicer, server):
request_deserializer=frontend__nvme__pcie__pb2.NVMeNamespaceStatsRequest.FromString,
response_serializer=frontend__nvme__pcie__pb2.NVMeNamespaceStatsResponse.SerializeToString,
),
+ 'AttachControllerNVMeNamespace': grpc.unary_unary_rpc_method_handler(
+ servicer.AttachControllerNVMeNamespace,
+ request_deserializer=frontend__nvme__pcie__pb2.ControllerNVMeNamespaceRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
+ 'DetachControllerNVMeNamespace': grpc.unary_unary_rpc_method_handler(
+ servicer.DetachControllerNVMeNamespace,
+ request_deserializer=frontend__nvme__pcie__pb2.ControllerNVMeNamespaceRequest.FromString,
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
+ ),
}
generic_handler = grpc.method_handlers_generic_handler(
'opi_api.storage.v1.FrontendNvmeService', rpc_method_handlers)
@@ -629,3 +661,37 @@ def NVMeNamespaceStats(request,
frontend__nvme__pcie__pb2.NVMeNamespaceStatsResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def AttachControllerNVMeNamespace(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.FrontendNvmeService/AttachControllerNVMeNamespace',
+ frontend__nvme__pcie__pb2.ControllerNVMeNamespaceRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
+
+ @staticmethod
+ def DetachControllerNVMeNamespace(request,
+ target,
+ options=(),
+ channel_credentials=None,
+ call_credentials=None,
+ insecure=False,
+ compression=None,
+ wait_for_ready=None,
+ timeout=None,
+ metadata=None):
+ return grpc.experimental.unary_unary(request, target, '/opi_api.storage.v1.FrontendNvmeService/DetachControllerNVMeNamespace',
+ frontend__nvme__pcie__pb2.ControllerNVMeNamespaceRequest.SerializeToString,
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
+ options, channel_credentials,
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)