diff --git a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json index 7ea137690beb..5313512f8686 100644 --- a/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json +++ b/java-tpu/google-cloud-tpu/src/main/resources/META-INF/native-image/com.google.cloud.tpu.v2alpha1/reflect-config.json @@ -539,6 +539,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2alpha1.BootDiskConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.BootDiskConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2alpha1.CreateNodeRequest", "queryAllDeclaredConstructors": true, @@ -575,6 +593,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.tpu.v2alpha1.DeleteNodeRequest", "queryAllDeclaredConstructors": true, diff --git a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java index 6ee09ca8ebe7..39e44fef4832 100644 --- a/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java +++ b/java-tpu/google-cloud-tpu/src/test/java/com/google/cloud/tpu/v2alpha1/TpuClientTest.java @@ -210,6 +210,7 @@ public void getNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) .build(); mockTpu.addResponse(expectedResponse); @@ -268,6 +269,7 @@ public void getNodeTest2() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) .build(); mockTpu.addResponse(expectedResponse); @@ -326,6 +328,7 @@ public void createNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -398,6 +401,7 @@ public void createNodeTest2() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -554,6 +558,7 @@ public void stopNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -626,6 +631,7 @@ public void startNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -698,6 +704,7 @@ public void updateNodeTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1698,6 +1705,7 @@ public void simulateMaintenanceEventTest() throws Exception { .setAcceleratorConfig(AcceleratorConfig.newBuilder().build()) .setShieldedInstanceConfig(ShieldedInstanceConfig.newBuilder().build()) .setMultisliceNode(true) + .setBootDiskConfig(BootDiskConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/BootDiskConfig.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/BootDiskConfig.java new file mode 100644 index 000000000000..184ade41ec2b --- /dev/null +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/BootDiskConfig.java @@ -0,0 +1,837 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto + +package com.google.cloud.tpu.v2alpha1; + +/** + * + * + *
+ * Boot disk configurations. + *+ * + * Protobuf type {@code google.cloud.tpu.v2alpha1.BootDiskConfig} + */ +public final class BootDiskConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.BootDiskConfig) + BootDiskConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use BootDiskConfig.newBuilder() to construct. + private BootDiskConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BootDiskConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BootDiskConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.BootDiskConfig.class, + com.google.cloud.tpu.v2alpha1.BootDiskConfig.Builder.class); + } + + public static final int CUSTOMER_ENCRYPTION_KEY_FIELD_NUMBER = 1; + private com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey customerEncryptionKey_; + /** + * + * + *
+ * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the customerEncryptionKey field is set.
+ */
+ @java.lang.Override
+ public boolean hasCustomerEncryptionKey() {
+ return customerEncryptionKey_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The customerEncryptionKey.
+ */
+ @java.lang.Override
+ public com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey getCustomerEncryptionKey() {
+ return customerEncryptionKey_ == null
+ ? com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.getDefaultInstance()
+ : customerEncryptionKey_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.tpu.v2alpha1.CustomerEncryptionKeyOrBuilder
+ getCustomerEncryptionKeyOrBuilder() {
+ return customerEncryptionKey_ == null
+ ? com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.getDefaultInstance()
+ : customerEncryptionKey_;
+ }
+
+ public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 2;
+ private boolean enableConfidentialCompute_ = false;
+ /**
+ *
+ *
+ * + * Optional. Whether the boot disk will be created with confidential compute + * mode. + *+ * + *
bool enable_confidential_compute = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableConfidentialCompute.
+ */
+ @java.lang.Override
+ public boolean getEnableConfidentialCompute() {
+ return enableConfidentialCompute_;
+ }
+
+ 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 (customerEncryptionKey_ != null) {
+ output.writeMessage(1, getCustomerEncryptionKey());
+ }
+ if (enableConfidentialCompute_ != false) {
+ output.writeBool(2, enableConfidentialCompute_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (customerEncryptionKey_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomerEncryptionKey());
+ }
+ if (enableConfidentialCompute_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableConfidentialCompute_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tpu.v2alpha1.BootDiskConfig)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig other =
+ (com.google.cloud.tpu.v2alpha1.BootDiskConfig) obj;
+
+ if (hasCustomerEncryptionKey() != other.hasCustomerEncryptionKey()) return false;
+ if (hasCustomerEncryptionKey()) {
+ if (!getCustomerEncryptionKey().equals(other.getCustomerEncryptionKey())) return false;
+ }
+ if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCustomerEncryptionKey()) {
+ hash = (37 * hash) + CUSTOMER_ENCRYPTION_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getCustomerEncryptionKey().hashCode();
+ }
+ hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig 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 com.google.cloud.tpu.v2alpha1.BootDiskConfig parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig 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 com.google.cloud.tpu.v2alpha1.BootDiskConfig parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig 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(com.google.cloud.tpu.v2alpha1.BootDiskConfig 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;
+ }
+ /**
+ *
+ *
+ * + * Boot disk configurations. + *+ * + * Protobuf type {@code google.cloud.tpu.v2alpha1.BootDiskConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the customerEncryptionKey field is set.
+ */
+ public boolean hasCustomerEncryptionKey() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The customerEncryptionKey.
+ */
+ public com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey getCustomerEncryptionKey() {
+ if (customerEncryptionKeyBuilder_ == null) {
+ return customerEncryptionKey_ == null
+ ? com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.getDefaultInstance()
+ : customerEncryptionKey_;
+ } else {
+ return customerEncryptionKeyBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setCustomerEncryptionKey(
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey value) {
+ if (customerEncryptionKeyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ customerEncryptionKey_ = value;
+ } else {
+ customerEncryptionKeyBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setCustomerEncryptionKey(
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.Builder builderForValue) {
+ if (customerEncryptionKeyBuilder_ == null) {
+ customerEncryptionKey_ = builderForValue.build();
+ } else {
+ customerEncryptionKeyBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeCustomerEncryptionKey(
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey value) {
+ if (customerEncryptionKeyBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && customerEncryptionKey_ != null
+ && customerEncryptionKey_
+ != com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.getDefaultInstance()) {
+ getCustomerEncryptionKeyBuilder().mergeFrom(value);
+ } else {
+ customerEncryptionKey_ = value;
+ }
+ } else {
+ customerEncryptionKeyBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearCustomerEncryptionKey() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ customerEncryptionKey_ = null;
+ if (customerEncryptionKeyBuilder_ != null) {
+ customerEncryptionKeyBuilder_.dispose();
+ customerEncryptionKeyBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.Builder
+ getCustomerEncryptionKeyBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getCustomerEncryptionKeyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.tpu.v2alpha1.CustomerEncryptionKeyOrBuilder
+ getCustomerEncryptionKeyOrBuilder() {
+ if (customerEncryptionKeyBuilder_ != null) {
+ return customerEncryptionKeyBuilder_.getMessageOrBuilder();
+ } else {
+ return customerEncryptionKey_ == null
+ ? com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.getDefaultInstance()
+ : customerEncryptionKey_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey,
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.Builder,
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKeyOrBuilder>
+ getCustomerEncryptionKeyFieldBuilder() {
+ if (customerEncryptionKeyBuilder_ == null) {
+ customerEncryptionKeyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey,
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.Builder,
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKeyOrBuilder>(
+ getCustomerEncryptionKey(), getParentForChildren(), isClean());
+ customerEncryptionKey_ = null;
+ }
+ return customerEncryptionKeyBuilder_;
+ }
+
+ private boolean enableConfidentialCompute_;
+ /**
+ *
+ *
+ * + * Optional. Whether the boot disk will be created with confidential compute + * mode. + *+ * + *
bool enable_confidential_compute = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableConfidentialCompute.
+ */
+ @java.lang.Override
+ public boolean getEnableConfidentialCompute() {
+ return enableConfidentialCompute_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Whether the boot disk will be created with confidential compute + * mode. + *+ * + *
bool enable_confidential_compute = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The enableConfidentialCompute to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableConfidentialCompute(boolean value) {
+
+ enableConfidentialCompute_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Whether the boot disk will be created with confidential compute + * mode. + *+ * + *
bool enable_confidential_compute = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableConfidentialCompute() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ enableConfidentialCompute_ = false;
+ 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:google.cloud.tpu.v2alpha1.BootDiskConfig)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.BootDiskConfig)
+ private static final com.google.cloud.tpu.v2alpha1.BootDiskConfig DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.BootDiskConfig();
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.BootDiskConfig getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the customerEncryptionKey field is set.
+ */
+ boolean hasCustomerEncryptionKey();
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The customerEncryptionKey.
+ */
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey getCustomerEncryptionKey();
+ /**
+ *
+ *
+ * + * Optional. Customer encryption key for boot disk. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.CustomerEncryptionKey customer_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKeyOrBuilder getCustomerEncryptionKeyOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional. Whether the boot disk will be created with confidential compute + * mode. + *+ * + *
bool enable_confidential_compute = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The enableConfidentialCompute.
+ */
+ boolean getEnableConfidentialCompute();
+}
diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java
index 88c208bc18d2..54eb2459e781 100644
--- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java
+++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CloudTpuProto.java
@@ -271,6 +271,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_tpu_v2alpha1_ShieldedInstanceConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -310,7 +318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022\033\n\023"
+ "enable_external_ips\030\003 \001(\010\022\026\n\016can_ip_forw"
+ "ard\030\004 \001(\010\".\n\016ServiceAccount\022\r\n\005email\030\001 \001"
- + "(\t\022\r\n\005scope\030\002 \003(\t\"\372\r\n\004Node\022\023\n\004name\030\001 \001(\t"
+ + "(\t\022\r\n\005scope\030\002 \003(\t\"\305\016\n\004Node\022\023\n\004name\030\001 \001(\t"
+ "B\005\342A\002\003\005\022\023\n\013description\030\003 \001(\t\022\030\n\020accelera"
+ "tor_type\030\005 \001(\t\022:\n\005state\030\t \001(\0162%.google.c"
+ "loud.tpu.v2alpha1.Node.StateB\004\342A\001\003\022 \n\022he"
@@ -340,297 +348,304 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "orConfig\022S\n\030shielded_instance_config\030- \001"
+ "(\01321.google.cloud.tpu.v2alpha1.ShieldedI"
+ "nstanceConfig\022\035\n\017multislice_node\030/ \001(\010B\004"
- + "\342A\001\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
- + "e\030\002 \001(\t:\0028\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001("
- + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\341\001\n\005State\022\025\n\021STATE_"
- + "UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\016"
- + "\n\nRESTARTING\020\003\022\r\n\tREIMAGING\020\004\022\014\n\010DELETIN"
- + "G\020\005\022\r\n\tREPAIRING\020\006\022\013\n\007STOPPED\020\010\022\014\n\010STOPP"
- + "ING\020\t\022\014\n\010STARTING\020\n\022\r\n\tPREEMPTED\020\013\022\016\n\nTE"
- + "RMINATED\020\014\022\n\n\006HIDING\020\r\022\n\n\006HIDDEN\020\016\022\014\n\010UN"
- + "HIDING\020\017\"o\n\006Health\022\026\n\022HEALTH_UNSPECIFIED"
- + "\020\000\022\013\n\007HEALTHY\020\001\022\013\n\007TIMEOUT\020\003\022\030\n\024UNHEALTH"
- + "Y_TENSORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTENANCE\020"
- + "\005\"O\n\nApiVersion\022\033\n\027API_VERSION_UNSPECIFI"
- + "ED\020\000\022\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_ALPHA1"
- + "\020\003:R\352AO\n\027tpu.googleapis.com/Node\0224projec"
- + "ts/{project}/locations/{location}/nodes/"
- + "{node}\"\304\013\n\016QueuedResource\022\023\n\004name\030\001 \001(\tB"
- + "\005\342A\002\003\005\022<\n\003tpu\030\002 \001(\0132-.google.cloud.tpu.v"
- + "2alpha1.QueuedResource.TpuH\000\022K\n\013best_eff"
- + "ort\030\003 \001(\01324.google.cloud.tpu.v2alpha1.Qu"
- + "euedResource.BestEffortH\001\022J\n\nguaranteed\030"
- + "\004 \001(\01324.google.cloud.tpu.v2alpha1.Queued"
- + "Resource.GuaranteedH\001\022D\n\004spot\030\t \001(\0132..go"
- + "ogle.cloud.tpu.v2alpha1.QueuedResource.S"
- + "potB\004\342A\001\001H\001\022Q\n\017queueing_policy\030\005 \001(\01328.g"
- + "oogle.cloud.tpu.v2alpha1.QueuedResource."
- + "QueueingPolicy\022C\n\005state\030\006 \001(\0132..google.c"
- + "loud.tpu.v2alpha1.QueuedResourceStateB\004\342"
- + "A\001\003\022\030\n\020reservation_name\030\010 \001(\t\032\215\003\n\003Tpu\022I\n"
- + "\tnode_spec\030\001 \003(\01326.google.cloud.tpu.v2al"
- + "pha1.QueuedResource.Tpu.NodeSpec\032\272\002\n\010Nod"
- + "eSpec\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!location"
- + "s.googleapis.com/Location\022\017\n\007node_id\030\002 \001"
- + "(\t\022g\n\021multi_node_params\030\006 \001(\0132F.google.c"
- + "loud.tpu.v2alpha1.QueuedResource.Tpu.Nod"
- + "eSpec.MultiNodeParamsB\004\342A\001\001\0223\n\004node\030\003 \001("
- + "\0132\037.google.cloud.tpu.v2alpha1.NodeB\004\342A\001\002"
- + "\032C\n\017MultiNodeParams\022\030\n\nnode_count\030\001 \001(\005B"
- + "\004\342A\001\002\022\026\n\016node_id_prefix\030\002 \001(\t\032\014\n\nBestEff"
- + "ort\032\006\n\004Spot\032[\n\nGuaranteed\0225\n\014min_duratio"
- + "n\030\001 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001"
- + "\022\026\n\010reserved\030\002 \001(\010B\004\342A\001\001\032\303\002\n\016QueueingPol"
- + "icy\0229\n\024valid_until_duration\030\001 \001(\0132\031.goog"
- + "le.protobuf.DurationH\000\0226\n\020valid_until_ti"
- + "me\030\002 \001(\0132\032.google.protobuf.TimestampH\000\0229"
- + "\n\024valid_after_duration\030\003 \001(\0132\031.google.pr"
- + "otobuf.DurationH\000\0226\n\020valid_after_time\030\004 "
- + "\001(\0132\032.google.protobuf.TimestampH\000\022/\n\016val"
- + "id_interval\030\005 \001(\0132\025.google.type.Interval"
- + "H\000B\032\n\030start_timing_constraints:q\352An\n!tpu"
- + ".googleapis.com/QueuedResource\022Iprojects"
- + "/{project}/locations/{location}/queuedRe"
- + "sources/{queued_resource}B\n\n\010resourceB\006\n"
- + "\004tier\"\200\n\n\023QueuedResourceState\022C\n\005state\030\001"
- + " \001(\01624.google.cloud.tpu.v2alpha1.QueuedR"
- + "esourceState.State\022T\n\rcreating_data\030\002 \001("
- + "\0132;.google.cloud.tpu.v2alpha1.QueuedReso"
- + "urceState.CreatingDataH\000\022T\n\raccepted_dat"
- + "a\030\003 \001(\0132;.google.cloud.tpu.v2alpha1.Queu"
- + "edResourceState.AcceptedDataH\000\022\\\n\021provis"
- + "ioning_data\030\004 \001(\0132?.google.cloud.tpu.v2a"
- + "lpha1.QueuedResourceState.ProvisioningDa"
- + "taH\000\022P\n\013failed_data\030\005 \001(\01329.google.cloud"
- + ".tpu.v2alpha1.QueuedResourceState.Failed"
- + "DataH\000\022T\n\rdeleting_data\030\006 \001(\0132;.google.c"
- + "loud.tpu.v2alpha1.QueuedResourceState.De"
- + "letingDataH\000\022P\n\013active_data\030\007 \001(\01329.goog"
- + "le.cloud.tpu.v2alpha1.QueuedResourceStat"
- + "e.ActiveDataH\000\022X\n\017suspending_data\030\010 \001(\0132"
- + "=.google.cloud.tpu.v2alpha1.QueuedResour"
- + "ceState.SuspendingDataH\000\022V\n\016suspended_da"
- + "ta\030\t \001(\0132<.google.cloud.tpu.v2alpha1.Que"
- + "uedResourceState.SuspendedDataH\000\022\\\n\017stat"
- + "e_initiator\030\n \001(\0162=.google.cloud.tpu.v2a"
- + "lpha1.QueuedResourceState.StateInitiator"
- + "B\004\342A\001\003\032\016\n\014CreatingData\032\016\n\014AcceptedData\032\022"
- + "\n\020ProvisioningData\032/\n\nFailedData\022!\n\005erro"
- + "r\030\001 \001(\0132\022.google.rpc.Status\032\016\n\014DeletingD"
- + "ata\032\014\n\nActiveData\032\020\n\016SuspendingData\032\017\n\rS"
- + "uspendedData\"\221\001\n\005State\022\025\n\021STATE_UNSPECIF"
- + "IED\020\000\022\014\n\010CREATING\020\001\022\014\n\010ACCEPTED\020\002\022\020\n\014PRO"
- + "VISIONING\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005\022\n\n"
- + "\006ACTIVE\020\006\022\016\n\nSUSPENDING\020\007\022\r\n\tSUSPENDED\020\010"
- + "\"H\n\016StateInitiator\022\037\n\033STATE_INITIATOR_UN"
- + "SPECIFIED\020\000\022\010\n\004USER\020\001\022\013\n\007SERVICE\020\002B\014\n\nst"
- + "ate_data\"k\n\020ListNodesRequest\0220\n\006parent\030\001"
- + " \001(\tB \342A\001\002\372A\031\022\027tpu.googleapis.com/Node\022\021"
- + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"q\n"
- + "\021ListNodesResponse\022.\n\005nodes\030\001 \003(\0132\037.goog"
- + "le.cloud.tpu.v2alpha1.Node\022\027\n\017next_page_"
- + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"@\n\016GetN"
- + "odeRequest\022.\n\004name\030\001 \001(\tB \342A\001\002\372A\031\n\027tpu.g"
- + "oogleapis.com/Node\"\251\001\n\021CreateNodeRequest"
+ + "\342A\001\003\022I\n\020boot_disk_config\0301 \001(\0132).google."
+ + "cloud.tpu.v2alpha1.BootDiskConfigB\004\342A\001\001\032"
+ + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
+ + "(\t:\0028\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
+ + "value\030\002 \001(\t:\0028\001\"\341\001\n\005State\022\025\n\021STATE_UNSPE"
+ + "CIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\016\n\nRES"
+ + "TARTING\020\003\022\r\n\tREIMAGING\020\004\022\014\n\010DELETING\020\005\022\r"
+ + "\n\tREPAIRING\020\006\022\013\n\007STOPPED\020\010\022\014\n\010STOPPING\020\t"
+ + "\022\014\n\010STARTING\020\n\022\r\n\tPREEMPTED\020\013\022\016\n\nTERMINA"
+ + "TED\020\014\022\n\n\006HIDING\020\r\022\n\n\006HIDDEN\020\016\022\014\n\010UNHIDIN"
+ + "G\020\017\"o\n\006Health\022\026\n\022HEALTH_UNSPECIFIED\020\000\022\013\n"
+ + "\007HEALTHY\020\001\022\013\n\007TIMEOUT\020\003\022\030\n\024UNHEALTHY_TEN"
+ + "SORFLOW\020\004\022\031\n\025UNHEALTHY_MAINTENANCE\020\005\"O\n\n"
+ + "ApiVersion\022\033\n\027API_VERSION_UNSPECIFIED\020\000\022"
+ + "\r\n\tV1_ALPHA1\020\001\022\006\n\002V1\020\002\022\r\n\tV2_ALPHA1\020\003:R\352"
+ + "AO\n\027tpu.googleapis.com/Node\0224projects/{p"
+ + "roject}/locations/{location}/nodes/{node"
+ + "}\"\304\013\n\016QueuedResource\022\023\n\004name\030\001 \001(\tB\005\342A\002\003"
+ + "\005\022<\n\003tpu\030\002 \001(\0132-.google.cloud.tpu.v2alph"
+ + "a1.QueuedResource.TpuH\000\022K\n\013best_effort\030\003"
+ + " \001(\01324.google.cloud.tpu.v2alpha1.QueuedR"
+ + "esource.BestEffortH\001\022J\n\nguaranteed\030\004 \001(\013"
+ + "24.google.cloud.tpu.v2alpha1.QueuedResou"
+ + "rce.GuaranteedH\001\022D\n\004spot\030\t \001(\0132..google."
+ + "cloud.tpu.v2alpha1.QueuedResource.SpotB\004"
+ + "\342A\001\001H\001\022Q\n\017queueing_policy\030\005 \001(\01328.google"
+ + ".cloud.tpu.v2alpha1.QueuedResource.Queue"
+ + "ingPolicy\022C\n\005state\030\006 \001(\0132..google.cloud."
+ + "tpu.v2alpha1.QueuedResourceStateB\004\342A\001\003\022\030"
+ + "\n\020reservation_name\030\010 \001(\t\032\215\003\n\003Tpu\022I\n\tnode"
+ + "_spec\030\001 \003(\01326.google.cloud.tpu.v2alpha1."
+ + "QueuedResource.Tpu.NodeSpec\032\272\002\n\010NodeSpec"
+ "\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goo"
- + "gleapis.com/Location\022\017\n\007node_id\030\002 \001(\t\0223\n"
- + "\004node\030\003 \001(\0132\037.google.cloud.tpu.v2alpha1."
- + "NodeB\004\342A\001\002\022\022\n\nrequest_id\030\006 \001(\t\"W\n\021Delete"
- + "NodeRequest\022.\n\004name\030\001 \001(\tB \342A\001\002\372A\031\n\027tpu."
- + "googleapis.com/Node\022\022\n\nrequest_id\030\003 \001(\t\""
- + "A\n\017StopNodeRequest\022.\n\004name\030\001 \001(\tB \342A\001\002\372A"
- + "\031\n\027tpu.googleapis.com/Node\"B\n\020StartNodeR"
+ + "gleapis.com/Location\022\017\n\007node_id\030\002 \001(\t\022g\n"
+ + "\021multi_node_params\030\006 \001(\0132F.google.cloud."
+ + "tpu.v2alpha1.QueuedResource.Tpu.NodeSpec"
+ + ".MultiNodeParamsB\004\342A\001\001\0223\n\004node\030\003 \001(\0132\037.g"
+ + "oogle.cloud.tpu.v2alpha1.NodeB\004\342A\001\002\032C\n\017M"
+ + "ultiNodeParams\022\030\n\nnode_count\030\001 \001(\005B\004\342A\001\002"
+ + "\022\026\n\016node_id_prefix\030\002 \001(\t\032\014\n\nBestEffort\032\006"
+ + "\n\004Spot\032[\n\nGuaranteed\0225\n\014min_duration\030\001 \001"
+ + "(\0132\031.google.protobuf.DurationB\004\342A\001\001\022\026\n\010r"
+ + "eserved\030\002 \001(\010B\004\342A\001\001\032\303\002\n\016QueueingPolicy\0229"
+ + "\n\024valid_until_duration\030\001 \001(\0132\031.google.pr"
+ + "otobuf.DurationH\000\0226\n\020valid_until_time\030\002 "
+ + "\001(\0132\032.google.protobuf.TimestampH\000\0229\n\024val"
+ + "id_after_duration\030\003 \001(\0132\031.google.protobu"
+ + "f.DurationH\000\0226\n\020valid_after_time\030\004 \001(\0132\032"
+ + ".google.protobuf.TimestampH\000\022/\n\016valid_in"
+ + "terval\030\005 \001(\0132\025.google.type.IntervalH\000B\032\n"
+ + "\030start_timing_constraints:q\352An\n!tpu.goog"
+ + "leapis.com/QueuedResource\022Iprojects/{pro"
+ + "ject}/locations/{location}/queuedResourc"
+ + "es/{queued_resource}B\n\n\010resourceB\006\n\004tier"
+ + "\"\200\n\n\023QueuedResourceState\022C\n\005state\030\001 \001(\0162"
+ + "4.google.cloud.tpu.v2alpha1.QueuedResour"
+ + "ceState.State\022T\n\rcreating_data\030\002 \001(\0132;.g"
+ + "oogle.cloud.tpu.v2alpha1.QueuedResourceS"
+ + "tate.CreatingDataH\000\022T\n\raccepted_data\030\003 \001"
+ + "(\0132;.google.cloud.tpu.v2alpha1.QueuedRes"
+ + "ourceState.AcceptedDataH\000\022\\\n\021provisionin"
+ + "g_data\030\004 \001(\0132?.google.cloud.tpu.v2alpha1"
+ + ".QueuedResourceState.ProvisioningDataH\000\022"
+ + "P\n\013failed_data\030\005 \001(\01329.google.cloud.tpu."
+ + "v2alpha1.QueuedResourceState.FailedDataH"
+ + "\000\022T\n\rdeleting_data\030\006 \001(\0132;.google.cloud."
+ + "tpu.v2alpha1.QueuedResourceState.Deletin"
+ + "gDataH\000\022P\n\013active_data\030\007 \001(\01329.google.cl"
+ + "oud.tpu.v2alpha1.QueuedResourceState.Act"
+ + "iveDataH\000\022X\n\017suspending_data\030\010 \001(\0132=.goo"
+ + "gle.cloud.tpu.v2alpha1.QueuedResourceSta"
+ + "te.SuspendingDataH\000\022V\n\016suspended_data\030\t "
+ + "\001(\0132<.google.cloud.tpu.v2alpha1.QueuedRe"
+ + "sourceState.SuspendedDataH\000\022\\\n\017state_ini"
+ + "tiator\030\n \001(\0162=.google.cloud.tpu.v2alpha1"
+ + ".QueuedResourceState.StateInitiatorB\004\342A\001"
+ + "\003\032\016\n\014CreatingData\032\016\n\014AcceptedData\032\022\n\020Pro"
+ + "visioningData\032/\n\nFailedData\022!\n\005error\030\001 \001"
+ + "(\0132\022.google.rpc.Status\032\016\n\014DeletingData\032\014"
+ + "\n\nActiveData\032\020\n\016SuspendingData\032\017\n\rSuspen"
+ + "dedData\"\221\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000"
+ + "\022\014\n\010CREATING\020\001\022\014\n\010ACCEPTED\020\002\022\020\n\014PROVISIO"
+ + "NING\020\003\022\n\n\006FAILED\020\004\022\014\n\010DELETING\020\005\022\n\n\006ACTI"
+ + "VE\020\006\022\016\n\nSUSPENDING\020\007\022\r\n\tSUSPENDED\020\010\"H\n\016S"
+ + "tateInitiator\022\037\n\033STATE_INITIATOR_UNSPECI"
+ + "FIED\020\000\022\010\n\004USER\020\001\022\013\n\007SERVICE\020\002B\014\n\nstate_d"
+ + "ata\"k\n\020ListNodesRequest\0220\n\006parent\030\001 \001(\tB"
+ + " \342A\001\002\372A\031\022\027tpu.googleapis.com/Node\022\021\n\tpag"
+ + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"q\n\021List"
+ + "NodesResponse\022.\n\005nodes\030\001 \003(\0132\037.google.cl"
+ + "oud.tpu.v2alpha1.Node\022\027\n\017next_page_token"
+ + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"@\n\016GetNodeRe"
+ + "quest\022.\n\004name\030\001 \001(\tB \342A\001\002\372A\031\n\027tpu.google"
+ + "apis.com/Node\"\251\001\n\021CreateNodeRequest\022:\n\006p"
+ + "arent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleap"
+ + "is.com/Location\022\017\n\007node_id\030\002 \001(\t\0223\n\004node"
+ + "\030\003 \001(\0132\037.google.cloud.tpu.v2alpha1.NodeB"
+ + "\004\342A\001\002\022\022\n\nrequest_id\030\006 \001(\t\"W\n\021DeleteNodeR"
+ "equest\022.\n\004name\030\001 \001(\tB \342A\001\002\372A\031\n\027tpu.googl"
- + "eapis.com/Node\"\177\n\021UpdateNodeRequest\0225\n\013u"
- + "pdate_mask\030\001 \001(\0132\032.google.protobuf.Field"
- + "MaskB\004\342A\001\002\0223\n\004node\030\002 \001(\0132\037.google.cloud."
- + "tpu.v2alpha1.NodeB\004\342A\001\002\"\177\n\032ListQueuedRes"
- + "ourcesRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\022!"
- + "tpu.googleapis.com/QueuedResource\022\021\n\tpag"
- + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\220\001\n\033Lis"
- + "tQueuedResourcesResponse\022C\n\020queued_resou"
- + "rces\030\001 \003(\0132).google.cloud.tpu.v2alpha1.Q"
- + "ueuedResource\022\027\n\017next_page_token\030\002 \001(\t\022\023"
- + "\n\013unreachable\030\003 \003(\t\"T\n\030GetQueuedResource"
- + "Request\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!tpu.goog"
- + "leapis.com/QueuedResource\"\323\001\n\033CreateQueu"
- + "edResourceRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372"
- + "A#\n!locations.googleapis.com/Location\022\032\n"
- + "\022queued_resource_id\030\002 \001(\t\022H\n\017queued_reso"
- + "urce\030\003 \001(\0132).google.cloud.tpu.v2alpha1.Q"
- + "ueuedResourceB\004\342A\001\002\022\022\n\nrequest_id\030\004 \001(\t\""
- + "z\n\033DeleteQueuedResourceRequest\0228\n\004name\030\001"
- + " \001(\tB*\342A\001\002\372A#\n!tpu.googleapis.com/Queued"
- + "Resource\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005force\030\003 "
- + "\001(\010\"V\n\032ResetQueuedResourceRequest\0228\n\004nam"
- + "e\030\001 \001(\tB*\342A\001\002\372A#\n!tpu.googleapis.com/Que"
- + "uedResource\" \n\017ServiceIdentity\022\r\n\005email\030"
- + "\001 \001(\t\"\\\n\036GenerateServiceIdentityRequest\022"
- + ":\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goog"
- + "leapis.com/Location\"_\n\037GenerateServiceId"
- + "entityResponse\022<\n\010identity\030\001 \001(\0132*.googl"
- + "e.cloud.tpu.v2alpha1.ServiceIdentity\"\356\001\n"
- + "\017AcceleratorType\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002"
- + " \001(\t\022I\n\023accelerator_configs\030\003 \003(\0132,.goog"
- + "le.cloud.tpu.v2alpha1.AcceleratorConfig:"
- + "t\352Aq\n\"tpu.googleapis.com/AcceleratorType"
- + "\022Kprojects/{project}/locations/{location"
- + "}/acceleratorTypes/{accelerator_type}\"V\n"
- + "\031GetAcceleratorTypeRequest\0229\n\004name\030\001 \001(\t"
- + "B+\342A\001\002\372A$\n\"tpu.googleapis.com/Accelerato"
- + "rType\"\243\001\n\033ListAcceleratorTypesRequest\022;\n"
- + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\022\"tpu.googleapis.c"
- + "om/AcceleratorType\022\021\n\tpage_size\030\002 \001(\005\022\022\n"
+ + "eapis.com/Node\022\022\n\nrequest_id\030\003 \001(\t\"A\n\017St"
+ + "opNodeRequest\022.\n\004name\030\001 \001(\tB \342A\001\002\372A\031\n\027tp"
+ + "u.googleapis.com/Node\"B\n\020StartNodeReques"
+ + "t\022.\n\004name\030\001 \001(\tB \342A\001\002\372A\031\n\027tpu.googleapis"
+ + ".com/Node\"\177\n\021UpdateNodeRequest\0225\n\013update"
+ + "_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB"
+ + "\004\342A\001\002\0223\n\004node\030\002 \001(\0132\037.google.cloud.tpu.v"
+ + "2alpha1.NodeB\004\342A\001\002\"\177\n\032ListQueuedResource"
+ + "sRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\022!tpu.g"
+ + "oogleapis.com/QueuedResource\022\021\n\tpage_siz"
+ + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\220\001\n\033ListQueu"
+ + "edResourcesResponse\022C\n\020queued_resources\030"
+ + "\001 \003(\0132).google.cloud.tpu.v2alpha1.Queued"
+ + "Resource\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr"
+ + "eachable\030\003 \003(\t\"T\n\030GetQueuedResourceReque"
+ + "st\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!tpu.googleapi"
+ + "s.com/QueuedResource\"\323\001\n\033CreateQueuedRes"
+ + "ourceRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!l"
+ + "ocations.googleapis.com/Location\022\032\n\022queu"
+ + "ed_resource_id\030\002 \001(\t\022H\n\017queued_resource\030"
+ + "\003 \001(\0132).google.cloud.tpu.v2alpha1.Queued"
+ + "ResourceB\004\342A\001\002\022\022\n\nrequest_id\030\004 \001(\t\"z\n\033De"
+ + "leteQueuedResourceRequest\0228\n\004name\030\001 \001(\tB"
+ + "*\342A\001\002\372A#\n!tpu.googleapis.com/QueuedResou"
+ + "rce\022\022\n\nrequest_id\030\002 \001(\t\022\r\n\005force\030\003 \001(\010\"V"
+ + "\n\032ResetQueuedResourceRequest\0228\n\004name\030\001 \001"
+ + "(\tB*\342A\001\002\372A#\n!tpu.googleapis.com/QueuedRe"
+ + "source\" \n\017ServiceIdentity\022\r\n\005email\030\001 \001(\t"
+ + "\"\\\n\036GenerateServiceIdentityRequest\022:\n\006pa"
+ + "rent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapi"
+ + "s.com/Location\"_\n\037GenerateServiceIdentit"
+ + "yResponse\022<\n\010identity\030\001 \001(\0132*.google.clo"
+ + "ud.tpu.v2alpha1.ServiceIdentity\"\356\001\n\017Acce"
+ + "leratorType\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022"
+ + "I\n\023accelerator_configs\030\003 \003(\0132,.google.cl"
+ + "oud.tpu.v2alpha1.AcceleratorConfig:t\352Aq\n"
+ + "\"tpu.googleapis.com/AcceleratorType\022Kpro"
+ + "jects/{project}/locations/{location}/acc"
+ + "eleratorTypes/{accelerator_type}\"V\n\031GetA"
+ + "cceleratorTypeRequest\0229\n\004name\030\001 \001(\tB+\342A\001"
+ + "\002\372A$\n\"tpu.googleapis.com/AcceleratorType"
+ + "\"\243\001\n\033ListAcceleratorTypesRequest\022;\n\006pare"
+ + "nt\030\001 \001(\tB+\342A\001\002\372A$\022\"tpu.googleapis.com/Ac"
+ + "celeratorType\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
+ + "_token\030\003 \001(\t\022\016\n\006filter\030\005 \001(\t\022\020\n\010order_by"
+ + "\030\006 \001(\t\"\223\001\n\034ListAcceleratorTypesResponse\022"
+ + "E\n\021accelerator_types\030\001 \003(\0132*.google.clou"
+ + "d.tpu.v2alpha1.AcceleratorType\022\027\n\017next_p"
+ + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\242\001\n"
+ + "\016RuntimeVersion\022\014\n\004name\030\001 \001(\t\022\017\n\007version"
+ + "\030\002 \001(\t:q\352An\n!tpu.googleapis.com/RuntimeV"
+ + "ersion\022Iprojects/{project}/locations/{lo"
+ + "cation}/runtimeVersions/{runtime_version"
+ + "}\"T\n\030GetRuntimeVersionRequest\0228\n\004name\030\001 "
+ + "\001(\tB*\342A\001\002\372A#\n!tpu.googleapis.com/Runtime"
+ + "Version\"\241\001\n\032ListRuntimeVersionsRequest\022:"
+ + "\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\022!tpu.googleapis."
+ + "com/RuntimeVersion\022\021\n\tpage_size\030\002 \001(\005\022\022\n"
+ "\npage_token\030\003 \001(\t\022\016\n\006filter\030\005 \001(\t\022\020\n\010ord"
- + "er_by\030\006 \001(\t\"\223\001\n\034ListAcceleratorTypesResp"
- + "onse\022E\n\021accelerator_types\030\001 \003(\0132*.google"
- + ".cloud.tpu.v2alpha1.AcceleratorType\022\027\n\017n"
- + "ext_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003("
- + "\t\"\242\001\n\016RuntimeVersion\022\014\n\004name\030\001 \001(\t\022\017\n\007ve"
- + "rsion\030\002 \001(\t:q\352An\n!tpu.googleapis.com/Run"
- + "timeVersion\022Iprojects/{project}/location"
- + "s/{location}/runtimeVersions/{runtime_ve"
- + "rsion}\"T\n\030GetRuntimeVersionRequest\0228\n\004na"
- + "me\030\001 \001(\tB*\342A\001\002\372A#\n!tpu.googleapis.com/Ru"
- + "ntimeVersion\"\241\001\n\032ListRuntimeVersionsRequ"
- + "est\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\022!tpu.google"
- + "apis.com/RuntimeVersion\022\021\n\tpage_size\030\002 \001"
- + "(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\005 \001(\t\022\020"
- + "\n\010order_by\030\006 \001(\t\"\220\001\n\033ListRuntimeVersions"
- + "Response\022C\n\020runtime_versions\030\001 \003(\0132).goo"
- + "gle.cloud.tpu.v2alpha1.RuntimeVersion\022\027\n"
- + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 "
- + "\003(\t\"\326\001\n\021OperationMetadata\022/\n\013create_time"
- + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010en"
- + "d_time\030\002 \001(\0132\032.google.protobuf.Timestamp"
- + "\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus"
- + "_detail\030\005 \001(\t\022\030\n\020cancel_requested\030\006 \001(\010\022"
- + "\023\n\013api_version\030\007 \001(\t\"\313\002\n\007Symptom\022/\n\013crea"
- + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam"
- + "p\022D\n\014symptom_type\030\002 \001(\0162..google.cloud.t"
- + "pu.v2alpha1.Symptom.SymptomType\022\017\n\007detai"
- + "ls\030\003 \001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001\n\013SymptomT"
- + "ype\022\034\n\030SYMPTOM_TYPE_UNSPECIFIED\020\000\022\016\n\nLOW"
- + "_MEMORY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025\n\021EXECUTE_"
- + "TIMED_OUT\020\003\022\023\n\017MESH_BUILD_FAIL\020\004\022\025\n\021HBM_"
- + "OUT_OF_MEMORY\020\005\022\021\n\rPROJECT_ABUSE\020\006\"s\n\031Ge"
- + "tGuestAttributesRequest\022.\n\004name\030\001 \001(\tB \342"
- + "A\001\002\372A\031\n\027tpu.googleapis.com/Node\022\022\n\nquery"
- + "_path\030\002 \001(\t\022\022\n\nworker_ids\030\003 \003(\t\"b\n\032GetGu"
- + "estAttributesResponse\022D\n\020guest_attribute"
- + "s\030\001 \003(\0132*.google.cloud.tpu.v2alpha1.Gues"
- + "tAttributes\"e\n\037SimulateMaintenanceEventR"
- + "equest\022.\n\004name\030\001 \001(\tB \342A\001\002\372A\031\n\027tpu.googl"
- + "eapis.com/Node\022\022\n\nworker_ids\030\002 \003(\t\"\250\001\n\021A"
- + "cceleratorConfig\022E\n\004type\030\001 \001(\01621.google."
- + "cloud.tpu.v2alpha1.AcceleratorConfig.Typ"
- + "eB\004\342A\001\002\022\026\n\010topology\030\002 \001(\tB\004\342A\001\002\"4\n\004Type\022"
- + "\024\n\020TYPE_UNSPECIFIED\020\000\022\006\n\002V2\020\002\022\006\n\002V3\020\004\022\006\n"
- + "\002V4\020\007\"4\n\026ShieldedInstanceConfig\022\032\n\022enabl"
- + "e_secure_boot\030\001 \001(\0102\236\037\n\003Tpu\022\250\001\n\tListNode"
- + "s\022+.google.cloud.tpu.v2alpha1.ListNodesR"
- + "equest\032,.google.cloud.tpu.v2alpha1.ListN"
- + "odesResponse\"@\332A\006parent\202\323\344\223\0021\022//v2alpha1"
- + "/{parent=projects/*/locations/*}/nodes\022\225"
- + "\001\n\007GetNode\022).google.cloud.tpu.v2alpha1.G"
- + "etNodeRequest\032\037.google.cloud.tpu.v2alpha"
- + "1.Node\">\332A\004name\202\323\344\223\0021\022//v2alpha1/{name=p"
- + "rojects/*/locations/*/nodes/*}\022\312\001\n\nCreat"
- + "eNode\022,.google.cloud.tpu.v2alpha1.Create"
- + "NodeRequest\032\035.google.longrunning.Operati"
- + "on\"o\312A\031\n\004Node\022\021OperationMetadata\332A\023paren"
- + "t,node,node_id\202\323\344\223\0027\"//v2alpha1/{parent="
- + "projects/*/locations/*}/nodes:\004node\022\306\001\n\n"
- + "DeleteNode\022,.google.cloud.tpu.v2alpha1.D"
- + "eleteNodeRequest\032\035.google.longrunning.Op"
- + "eration\"k\312A*\n\025google.protobuf.Empty\022\021Ope"
- + "rationMetadata\332A\004name\202\323\344\223\0021*//v2alpha1/{"
- + "name=projects/*/locations/*/nodes/*}\022\262\001\n"
- + "\010StopNode\022*.google.cloud.tpu.v2alpha1.St"
- + "opNodeRequest\032\035.google.longrunning.Opera"
- + "tion\"[\312A\031\n\004Node\022\021OperationMetadata\202\323\344\223\0029"
- + "\"4/v2alpha1/{name=projects/*/locations/*"
- + "/nodes/*}:stop:\001*\022\265\001\n\tStartNode\022+.google"
- + ".cloud.tpu.v2alpha1.StartNodeRequest\032\035.g"
- + "oogle.longrunning.Operation\"\\\312A\031\n\004Node\022\021"
- + "OperationMetadata\202\323\344\223\002:\"5/v2alpha1/{name"
- + "=projects/*/locations/*/nodes/*}:start:\001"
- + "*\022\314\001\n\nUpdateNode\022,.google.cloud.tpu.v2al"
- + "pha1.UpdateNodeRequest\032\035.google.longrunn"
- + "ing.Operation\"q\312A\031\n\004Node\022\021OperationMetad"
- + "ata\332A\020node,update_mask\202\323\344\223\002<24/v2alpha1/"
- + "{node.name=projects/*/locations/*/nodes/"
- + "*}:\004node\022\320\001\n\023ListQueuedResources\0225.googl"
- + "e.cloud.tpu.v2alpha1.ListQueuedResources"
- + "Request\0326.google.cloud.tpu.v2alpha1.List"
- + "QueuedResourcesResponse\"J\332A\006parent\202\323\344\223\002;"
- + "\0229/v2alpha1/{parent=projects/*/locations"
- + "/*}/queuedResources\022\275\001\n\021GetQueuedResourc"
- + "e\0223.google.cloud.tpu.v2alpha1.GetQueuedR"
- + "esourceRequest\032).google.cloud.tpu.v2alph"
- + "a1.QueuedResource\"H\332A\004name\202\323\344\223\002;\0229/v2alp"
- + "ha1/{name=projects/*/locations/*/queuedR"
- + "esources/*}\022\224\002\n\024CreateQueuedResource\0226.g"
- + "oogle.cloud.tpu.v2alpha1.CreateQueuedRes"
- + "ourceRequest\032\035.google.longrunning.Operat"
- + "ion\"\244\001\312A#\n\016QueuedResource\022\021OperationMeta"
- + "data\332A)parent,queued_resource,queued_res"
- + "ource_id\202\323\344\223\002L\"9/v2alpha1/{parent=projec"
- + "ts/*/locations/*}/queuedResources:\017queue"
- + "d_resource\022\335\001\n\024DeleteQueuedResource\0226.go"
- + "ogle.cloud.tpu.v2alpha1.DeleteQueuedReso"
- + "urceRequest\032\035.google.longrunning.Operati"
- + "on\"n\312A#\n\016QueuedResource\022\021OperationMetada"
- + "ta\332A\004name\202\323\344\223\002;*9/v2alpha1/{name=project"
- + "s/*/locations/*/queuedResources/*}\022\344\001\n\023R"
- + "esetQueuedResource\0225.google.cloud.tpu.v2"
- + "alpha1.ResetQueuedResourceRequest\032\035.goog"
- + "le.longrunning.Operation\"w\312A#\n\016QueuedRes"
- + "ource\022\021OperationMetadata\332A\004name\202\323\344\223\002D\"?/"
- + "v2alpha1/{name=projects/*/locations/*/qu"
- + "euedResources/*}:reset:\001*\022\336\001\n\027GenerateSe"
- + "rviceIdentity\0229.google.cloud.tpu.v2alpha"
- + "1.GenerateServiceIdentityRequest\032:.googl"
- + "e.cloud.tpu.v2alpha1.GenerateServiceIden"
- + "tityResponse\"L\202\323\344\223\002F\"A/v2alpha1/{parent="
- + "projects/*/locations/*}:generateServiceI"
- + "dentity:\001*\022\324\001\n\024ListAcceleratorTypes\0226.go"
- + "ogle.cloud.tpu.v2alpha1.ListAcceleratorT"
- + "ypesRequest\0327.google.cloud.tpu.v2alpha1."
- + "ListAcceleratorTypesResponse\"K\332A\006parent\202"
- + "\323\344\223\002<\022:/v2alpha1/{parent=projects/*/loca"
- + "tions/*}/acceleratorTypes\022\301\001\n\022GetAcceler"
- + "atorType\0224.google.cloud.tpu.v2alpha1.Get"
- + "AcceleratorTypeRequest\032*.google.cloud.tp"
- + "u.v2alpha1.AcceleratorType\"I\332A\004name\202\323\344\223\002"
- + "<\022:/v2alpha1/{name=projects/*/locations/"
- + "*/acceleratorTypes/*}\022\320\001\n\023ListRuntimeVer"
- + "sions\0225.google.cloud.tpu.v2alpha1.ListRu"
- + "ntimeVersionsRequest\0326.google.cloud.tpu."
- + "v2alpha1.ListRuntimeVersionsResponse\"J\332A"
- + "\006parent\202\323\344\223\002;\0229/v2alpha1/{parent=project"
- + "s/*/locations/*}/runtimeVersions\022\275\001\n\021Get"
- + "RuntimeVersion\0223.google.cloud.tpu.v2alph"
- + "a1.GetRuntimeVersionRequest\032).google.clo"
- + "ud.tpu.v2alpha1.RuntimeVersion\"H\332A\004name\202"
- + "\323\344\223\002;\0229/v2alpha1/{name=projects/*/locati"
- + "ons/*/runtimeVersions/*}\022\320\001\n\022GetGuestAtt"
- + "ributes\0224.google.cloud.tpu.v2alpha1.GetG"
- + "uestAttributesRequest\0325.google.cloud.tpu"
- + ".v2alpha1.GetGuestAttributesResponse\"M\202\323"
- + "\344\223\002G\"B/v2alpha1/{name=projects/*/locatio"
- + "ns/*/nodes/*}:getGuestAttributes:\001*\022\346\001\n\030"
- + "SimulateMaintenanceEvent\022:.google.cloud."
- + "tpu.v2alpha1.SimulateMaintenanceEventReq"
- + "uest\032\035.google.longrunning.Operation\"o\312A\031"
- + "\n\004Node\022\021OperationMetadata\202\323\344\223\002M\"H/v2alph"
- + "a1/{name=projects/*/locations/*/nodes/*}"
- + ":simulateMaintenanceEvent:\001*\032F\312A\022tpu.goo"
- + "gleapis.com\322A.https://www.googleapis.com"
- + "/auth/cloud-platformBa\n\035com.google.cloud"
- + ".tpu.v2alpha1B\rCloudTpuProtoP\001Z/cloud.go"
- + "ogle.com/go/tpu/apiv2alpha1/tpupb;tpupbb"
- + "\006proto3"
+ + "er_by\030\006 \001(\t\"\220\001\n\033ListRuntimeVersionsRespo"
+ + "nse\022C\n\020runtime_versions\030\001 \003(\0132).google.c"
+ + "loud.tpu.v2alpha1.RuntimeVersion\022\027\n\017next"
+ + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\326"
+ + "\001\n\021OperationMetadata\022/\n\013create_time\030\001 \001("
+ + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim"
+ + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022\016\n\006t"
+ + "arget\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\025\n\rstatus_deta"
+ + "il\030\005 \001(\t\022\030\n\020cancel_requested\030\006 \001(\010\022\023\n\013ap"
+ + "i_version\030\007 \001(\t\"\313\002\n\007Symptom\022/\n\013create_ti"
+ + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\022D\n\014"
+ + "symptom_type\030\002 \001(\0162..google.cloud.tpu.v2"
+ + "alpha1.Symptom.SymptomType\022\017\n\007details\030\003 "
+ + "\001(\t\022\021\n\tworker_id\030\004 \001(\t\"\244\001\n\013SymptomType\022\034"
+ + "\n\030SYMPTOM_TYPE_UNSPECIFIED\020\000\022\016\n\nLOW_MEMO"
+ + "RY\020\001\022\021\n\rOUT_OF_MEMORY\020\002\022\025\n\021EXECUTE_TIMED"
+ + "_OUT\020\003\022\023\n\017MESH_BUILD_FAIL\020\004\022\025\n\021HBM_OUT_O"
+ + "F_MEMORY\020\005\022\021\n\rPROJECT_ABUSE\020\006\"s\n\031GetGues"
+ + "tAttributesRequest\022.\n\004name\030\001 \001(\tB \342A\001\002\372A"
+ + "\031\n\027tpu.googleapis.com/Node\022\022\n\nquery_path"
+ + "\030\002 \001(\t\022\022\n\nworker_ids\030\003 \003(\t\"b\n\032GetGuestAt"
+ + "tributesResponse\022D\n\020guest_attributes\030\001 \003"
+ + "(\0132*.google.cloud.tpu.v2alpha1.GuestAttr"
+ + "ibutes\"e\n\037SimulateMaintenanceEventReques"
+ + "t\022.\n\004name\030\001 \001(\tB \342A\001\002\372A\031\n\027tpu.googleapis"
+ + ".com/Node\022\022\n\nworker_ids\030\002 \003(\t\"\250\001\n\021Accele"
+ + "ratorConfig\022E\n\004type\030\001 \001(\01621.google.cloud"
+ + ".tpu.v2alpha1.AcceleratorConfig.TypeB\004\342A"
+ + "\001\002\022\026\n\010topology\030\002 \001(\tB\004\342A\001\002\"4\n\004Type\022\024\n\020TY"
+ + "PE_UNSPECIFIED\020\000\022\006\n\002V2\020\002\022\006\n\002V3\020\004\022\006\n\002V4\020\007"
+ + "\"4\n\026ShieldedInstanceConfig\022\032\n\022enable_sec"
+ + "ure_boot\030\001 \001(\010\"\224\001\n\016BootDiskConfig\022W\n\027cus"
+ + "tomer_encryption_key\030\001 \001(\01320.google.clou"
+ + "d.tpu.v2alpha1.CustomerEncryptionKeyB\004\342A"
+ + "\001\001\022)\n\033enable_confidential_compute\030\002 \001(\010B"
+ + "\004\342A\001\001\"6\n\025CustomerEncryptionKey\022\026\n\014kms_ke"
+ + "y_name\030\007 \001(\tH\000B\005\n\003key2\236\037\n\003Tpu\022\250\001\n\tListNo"
+ + "des\022+.google.cloud.tpu.v2alpha1.ListNode"
+ + "sRequest\032,.google.cloud.tpu.v2alpha1.Lis"
+ + "tNodesResponse\"@\332A\006parent\202\323\344\223\0021\022//v2alph"
+ + "a1/{parent=projects/*/locations/*}/nodes"
+ + "\022\225\001\n\007GetNode\022).google.cloud.tpu.v2alpha1"
+ + ".GetNodeRequest\032\037.google.cloud.tpu.v2alp"
+ + "ha1.Node\">\332A\004name\202\323\344\223\0021\022//v2alpha1/{name"
+ + "=projects/*/locations/*/nodes/*}\022\312\001\n\nCre"
+ + "ateNode\022,.google.cloud.tpu.v2alpha1.Crea"
+ + "teNodeRequest\032\035.google.longrunning.Opera"
+ + "tion\"o\312A\031\n\004Node\022\021OperationMetadata\332A\023par"
+ + "ent,node,node_id\202\323\344\223\0027\"//v2alpha1/{paren"
+ + "t=projects/*/locations/*}/nodes:\004node\022\306\001"
+ + "\n\nDeleteNode\022,.google.cloud.tpu.v2alpha1"
+ + ".DeleteNodeRequest\032\035.google.longrunning."
+ + "Operation\"k\312A*\n\025google.protobuf.Empty\022\021O"
+ + "perationMetadata\332A\004name\202\323\344\223\0021*//v2alpha1"
+ + "/{name=projects/*/locations/*/nodes/*}\022\262"
+ + "\001\n\010StopNode\022*.google.cloud.tpu.v2alpha1."
+ + "StopNodeRequest\032\035.google.longrunning.Ope"
+ + "ration\"[\312A\031\n\004Node\022\021OperationMetadata\202\323\344\223"
+ + "\0029\"4/v2alpha1/{name=projects/*/locations"
+ + "/*/nodes/*}:stop:\001*\022\265\001\n\tStartNode\022+.goog"
+ + "le.cloud.tpu.v2alpha1.StartNodeRequest\032\035"
+ + ".google.longrunning.Operation\"\\\312A\031\n\004Node"
+ + "\022\021OperationMetadata\202\323\344\223\002:\"5/v2alpha1/{na"
+ + "me=projects/*/locations/*/nodes/*}:start"
+ + ":\001*\022\314\001\n\nUpdateNode\022,.google.cloud.tpu.v2"
+ + "alpha1.UpdateNodeRequest\032\035.google.longru"
+ + "nning.Operation\"q\312A\031\n\004Node\022\021OperationMet"
+ + "adata\332A\020node,update_mask\202\323\344\223\002<24/v2alpha"
+ + "1/{node.name=projects/*/locations/*/node"
+ + "s/*}:\004node\022\320\001\n\023ListQueuedResources\0225.goo"
+ + "gle.cloud.tpu.v2alpha1.ListQueuedResourc"
+ + "esRequest\0326.google.cloud.tpu.v2alpha1.Li"
+ + "stQueuedResourcesResponse\"J\332A\006parent\202\323\344\223"
+ + "\002;\0229/v2alpha1/{parent=projects/*/locatio"
+ + "ns/*}/queuedResources\022\275\001\n\021GetQueuedResou"
+ + "rce\0223.google.cloud.tpu.v2alpha1.GetQueue"
+ + "dResourceRequest\032).google.cloud.tpu.v2al"
+ + "pha1.QueuedResource\"H\332A\004name\202\323\344\223\002;\0229/v2a"
+ + "lpha1/{name=projects/*/locations/*/queue"
+ + "dResources/*}\022\224\002\n\024CreateQueuedResource\0226"
+ + ".google.cloud.tpu.v2alpha1.CreateQueuedR"
+ + "esourceRequest\032\035.google.longrunning.Oper"
+ + "ation\"\244\001\312A#\n\016QueuedResource\022\021OperationMe"
+ + "tadata\332A)parent,queued_resource,queued_r"
+ + "esource_id\202\323\344\223\002L\"9/v2alpha1/{parent=proj"
+ + "ects/*/locations/*}/queuedResources:\017que"
+ + "ued_resource\022\335\001\n\024DeleteQueuedResource\0226."
+ + "google.cloud.tpu.v2alpha1.DeleteQueuedRe"
+ + "sourceRequest\032\035.google.longrunning.Opera"
+ + "tion\"n\312A#\n\016QueuedResource\022\021OperationMeta"
+ + "data\332A\004name\202\323\344\223\002;*9/v2alpha1/{name=proje"
+ + "cts/*/locations/*/queuedResources/*}\022\344\001\n"
+ + "\023ResetQueuedResource\0225.google.cloud.tpu."
+ + "v2alpha1.ResetQueuedResourceRequest\032\035.go"
+ + "ogle.longrunning.Operation\"w\312A#\n\016QueuedR"
+ + "esource\022\021OperationMetadata\332A\004name\202\323\344\223\002D\""
+ + "?/v2alpha1/{name=projects/*/locations/*/"
+ + "queuedResources/*}:reset:\001*\022\336\001\n\027Generate"
+ + "ServiceIdentity\0229.google.cloud.tpu.v2alp"
+ + "ha1.GenerateServiceIdentityRequest\032:.goo"
+ + "gle.cloud.tpu.v2alpha1.GenerateServiceId"
+ + "entityResponse\"L\202\323\344\223\002F\"A/v2alpha1/{paren"
+ + "t=projects/*/locations/*}:generateServic"
+ + "eIdentity:\001*\022\324\001\n\024ListAcceleratorTypes\0226."
+ + "google.cloud.tpu.v2alpha1.ListAccelerato"
+ + "rTypesRequest\0327.google.cloud.tpu.v2alpha"
+ + "1.ListAcceleratorTypesResponse\"K\332A\006paren"
+ + "t\202\323\344\223\002<\022:/v2alpha1/{parent=projects/*/lo"
+ + "cations/*}/acceleratorTypes\022\301\001\n\022GetAccel"
+ + "eratorType\0224.google.cloud.tpu.v2alpha1.G"
+ + "etAcceleratorTypeRequest\032*.google.cloud."
+ + "tpu.v2alpha1.AcceleratorType\"I\332A\004name\202\323\344"
+ + "\223\002<\022:/v2alpha1/{name=projects/*/location"
+ + "s/*/acceleratorTypes/*}\022\320\001\n\023ListRuntimeV"
+ + "ersions\0225.google.cloud.tpu.v2alpha1.List"
+ + "RuntimeVersionsRequest\0326.google.cloud.tp"
+ + "u.v2alpha1.ListRuntimeVersionsResponse\"J"
+ + "\332A\006parent\202\323\344\223\002;\0229/v2alpha1/{parent=proje"
+ + "cts/*/locations/*}/runtimeVersions\022\275\001\n\021G"
+ + "etRuntimeVersion\0223.google.cloud.tpu.v2al"
+ + "pha1.GetRuntimeVersionRequest\032).google.c"
+ + "loud.tpu.v2alpha1.RuntimeVersion\"H\332A\004nam"
+ + "e\202\323\344\223\002;\0229/v2alpha1/{name=projects/*/loca"
+ + "tions/*/runtimeVersions/*}\022\320\001\n\022GetGuestA"
+ + "ttributes\0224.google.cloud.tpu.v2alpha1.Ge"
+ + "tGuestAttributesRequest\0325.google.cloud.t"
+ + "pu.v2alpha1.GetGuestAttributesResponse\"M"
+ + "\202\323\344\223\002G\"B/v2alpha1/{name=projects/*/locat"
+ + "ions/*/nodes/*}:getGuestAttributes:\001*\022\346\001"
+ + "\n\030SimulateMaintenanceEvent\022:.google.clou"
+ + "d.tpu.v2alpha1.SimulateMaintenanceEventR"
+ + "equest\032\035.google.longrunning.Operation\"o\312"
+ + "A\031\n\004Node\022\021OperationMetadata\202\323\344\223\002M\"H/v2al"
+ + "pha1/{name=projects/*/locations/*/nodes/"
+ + "*}:simulateMaintenanceEvent:\001*\032F\312A\022tpu.g"
+ + "oogleapis.com\322A.https://www.googleapis.c"
+ + "om/auth/cloud-platformBa\n\035com.google.clo"
+ + "ud.tpu.v2alpha1B\rCloudTpuProtoP\001Z/cloud."
+ + "google.com/go/tpu/apiv2alpha1/tpupb;tpup"
+ + "bb\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -750,6 +765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"AcceleratorConfig",
"ShieldedInstanceConfig",
"MultisliceNode",
+ "BootDiskConfig",
});
internal_static_google_cloud_tpu_v2alpha1_Node_LabelsEntry_descriptor =
internal_static_google_cloud_tpu_v2alpha1_Node_descriptor.getNestedTypes().get(0);
@@ -1191,6 +1207,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"EnableSecureBoot",
});
+ internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_descriptor =
+ getDescriptor().getMessageTypes().get(44);
+ internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tpu_v2alpha1_BootDiskConfig_descriptor,
+ new java.lang.String[] {
+ "CustomerEncryptionKey", "EnableConfidentialCompute",
+ });
+ internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_descriptor =
+ getDescriptor().getMessageTypes().get(45);
+ internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_descriptor,
+ new java.lang.String[] {
+ "KmsKeyName", "Key",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CustomerEncryptionKey.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CustomerEncryptionKey.java
new file mode 100644
index 000000000000..0dbeae815ab1
--- /dev/null
+++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/CustomerEncryptionKey.java
@@ -0,0 +1,872 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/tpu/v2alpha1/cloud_tpu.proto
+
+package com.google.cloud.tpu.v2alpha1;
+
+/**
+ *
+ *
+ * + * Customer's encryption key. + *+ * + * Protobuf type {@code google.cloud.tpu.v2alpha1.CustomerEncryptionKey} + */ +public final class CustomerEncryptionKey extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.tpu.v2alpha1.CustomerEncryptionKey) + CustomerEncryptionKeyOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomerEncryptionKey.newBuilder() to construct. + private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CustomerEncryptionKey() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomerEncryptionKey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.tpu.v2alpha1.CloudTpuProto + .internal_static_google_cloud_tpu_v2alpha1_CustomerEncryptionKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.class, + com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.Builder.class); + } + + private int keyCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object key_; + + public enum KeyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + KMS_KEY_NAME(7), + KEY_NOT_SET(0); + private final int value; + + private KeyCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KeyCase valueOf(int value) { + return forNumber(value); + } + + public static KeyCase forNumber(int value) { + switch (value) { + case 7: + return KMS_KEY_NAME; + case 0: + return KEY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public KeyCase getKeyCase() { + return KeyCase.forNumber(keyCase_); + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 7; + /** + * + * + *
+ * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return Whether the kmsKeyName field is set.
+ */
+ public boolean hasKmsKeyName() {
+ return keyCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return The kmsKeyName.
+ */
+ public java.lang.String getKmsKeyName() {
+ java.lang.Object ref = "";
+ if (keyCase_ == 7) {
+ ref = key_;
+ }
+ 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();
+ if (keyCase_ == 7) {
+ key_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
+ java.lang.Object ref = "";
+ if (keyCase_ == 7) {
+ ref = key_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (keyCase_ == 7) {
+ key_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (keyCase_ == 7) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, key_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (keyCase_ == 7) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, key_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey other =
+ (com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey) obj;
+
+ if (!getKeyCase().equals(other.getKeyCase())) return false;
+ switch (keyCase_) {
+ case 7:
+ if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (keyCase_) {
+ case 7:
+ hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getKmsKeyName().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey 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 com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey 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 com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey 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(com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey 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;
+ }
+ /**
+ *
+ *
+ * + * Customer's encryption key. + *+ * + * Protobuf type {@code google.cloud.tpu.v2alpha1.CustomerEncryptionKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return Whether the kmsKeyName field is set.
+ */
+ @java.lang.Override
+ public boolean hasKmsKeyName() {
+ return keyCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return The kmsKeyName.
+ */
+ @java.lang.Override
+ public java.lang.String getKmsKeyName() {
+ java.lang.Object ref = "";
+ if (keyCase_ == 7) {
+ ref = key_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (keyCase_ == 7) {
+ key_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
+ java.lang.Object ref = "";
+ if (keyCase_ == 7) {
+ ref = key_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (keyCase_ == 7) {
+ key_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @param value The kmsKeyName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ keyCase_ = 7;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyName() {
+ if (keyCase_ == 7) {
+ keyCase_ = 0;
+ key_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @param value The bytes for kmsKeyName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ keyCase_ = 7;
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.tpu.v2alpha1.CustomerEncryptionKey)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.tpu.v2alpha1.CustomerEncryptionKey)
+ private static final com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey();
+ }
+
+ public static com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return Whether the kmsKeyName field is set.
+ */
+ boolean hasKmsKeyName();
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return The kmsKeyName.
+ */
+ java.lang.String getKmsKeyName();
+ /**
+ *
+ *
+ * + * The name of the encryption key that is stored in Google Cloud KMS. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * </pre> + * The fully-qualifed key name may be returned for resource GET requests. + * For example: + * <pre class="lang-html">"kmsKeyName": "projects/ + * <var class="apiparam">kms_project_id</var>/locations/ + * <var class="apiparam">region</var>/keyRings/<var class="apiparam"> + * key_region</var>/cryptoKeys/<var class="apiparam">key</var> + * /cryptoKeyVersions/1</pre> + *+ * + *
string kms_key_name = 7;
+ *
+ * @return The bytes for kmsKeyName.
+ */
+ com.google.protobuf.ByteString getKmsKeyNameBytes();
+
+ com.google.cloud.tpu.v2alpha1.CustomerEncryptionKey.KeyCase getKeyCase();
+}
diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java
index 78329e8d0de4..dc047c319f62 100644
--- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java
+++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/Node.java
@@ -2247,6 +2247,62 @@ public boolean getMultisliceNode() {
return multisliceNode_;
}
+ public static final int BOOT_DISK_CONFIG_FIELD_NUMBER = 49;
+ private com.google.cloud.tpu.v2alpha1.BootDiskConfig bootDiskConfig_;
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bootDiskConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasBootDiskConfig() {
+ return bootDiskConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bootDiskConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.tpu.v2alpha1.BootDiskConfig getBootDiskConfig() {
+ return bootDiskConfig_ == null
+ ? com.google.cloud.tpu.v2alpha1.BootDiskConfig.getDefaultInstance()
+ : bootDiskConfig_;
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder getBootDiskConfigOrBuilder() {
+ return bootDiskConfig_ == null
+ ? com.google.cloud.tpu.v2alpha1.BootDiskConfig.getDefaultInstance()
+ : bootDiskConfig_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -2332,6 +2388,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (multisliceNode_ != false) {
output.writeBool(47, multisliceNode_);
}
+ if (bootDiskConfig_ != null) {
+ output.writeMessage(49, getBootDiskConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -2435,6 +2494,9 @@ public int getSerializedSize() {
if (multisliceNode_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(47, multisliceNode_);
}
+ if (bootDiskConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, getBootDiskConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2492,6 +2554,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false;
}
if (getMultisliceNode() != other.getMultisliceNode()) return false;
+ if (hasBootDiskConfig() != other.hasBootDiskConfig()) return false;
+ if (hasBootDiskConfig()) {
+ if (!getBootDiskConfig().equals(other.getBootDiskConfig())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2575,6 +2641,10 @@ public int hashCode() {
}
hash = (37 * hash) + MULTISLICE_NODE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMultisliceNode());
+ if (hasBootDiskConfig()) {
+ hash = (37 * hash) + BOOT_DISK_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getBootDiskConfig().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2803,6 +2873,11 @@ public Builder clear() {
shieldedInstanceConfigBuilder_ = null;
}
multisliceNode_ = false;
+ bootDiskConfig_ = null;
+ if (bootDiskConfigBuilder_ != null) {
+ bootDiskConfigBuilder_.dispose();
+ bootDiskConfigBuilder_ = null;
+ }
return this;
}
@@ -2944,6 +3019,10 @@ private void buildPartial0(com.google.cloud.tpu.v2alpha1.Node result) {
if (((from_bitField0_ & 0x00800000) != 0)) {
result.multisliceNode_ = multisliceNode_;
}
+ if (((from_bitField0_ & 0x01000000) != 0)) {
+ result.bootDiskConfig_ =
+ bootDiskConfigBuilder_ == null ? bootDiskConfig_ : bootDiskConfigBuilder_.build();
+ }
}
@java.lang.Override
@@ -3154,6 +3233,9 @@ public Builder mergeFrom(com.google.cloud.tpu.v2alpha1.Node other) {
if (other.getMultisliceNode() != false) {
setMultisliceNode(other.getMultisliceNode());
}
+ if (other.hasBootDiskConfig()) {
+ mergeBootDiskConfig(other.getBootDiskConfig());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -3361,6 +3443,12 @@ public Builder mergeFrom(
bitField0_ |= 0x00800000;
break;
} // case 376
+ case 394:
+ {
+ input.readMessage(getBootDiskConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x01000000;
+ break;
+ } // case 394
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7396,6 +7484,209 @@ public Builder clearMultisliceNode() {
return this;
}
+ private com.google.cloud.tpu.v2alpha1.BootDiskConfig bootDiskConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig,
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig.Builder,
+ com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder>
+ bootDiskConfigBuilder_;
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bootDiskConfig field is set.
+ */
+ public boolean hasBootDiskConfig() {
+ return ((bitField0_ & 0x01000000) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bootDiskConfig.
+ */
+ public com.google.cloud.tpu.v2alpha1.BootDiskConfig getBootDiskConfig() {
+ if (bootDiskConfigBuilder_ == null) {
+ return bootDiskConfig_ == null
+ ? com.google.cloud.tpu.v2alpha1.BootDiskConfig.getDefaultInstance()
+ : bootDiskConfig_;
+ } else {
+ return bootDiskConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBootDiskConfig(com.google.cloud.tpu.v2alpha1.BootDiskConfig value) {
+ if (bootDiskConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bootDiskConfig_ = value;
+ } else {
+ bootDiskConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x01000000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setBootDiskConfig(
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig.Builder builderForValue) {
+ if (bootDiskConfigBuilder_ == null) {
+ bootDiskConfig_ = builderForValue.build();
+ } else {
+ bootDiskConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x01000000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeBootDiskConfig(com.google.cloud.tpu.v2alpha1.BootDiskConfig value) {
+ if (bootDiskConfigBuilder_ == null) {
+ if (((bitField0_ & 0x01000000) != 0)
+ && bootDiskConfig_ != null
+ && bootDiskConfig_
+ != com.google.cloud.tpu.v2alpha1.BootDiskConfig.getDefaultInstance()) {
+ getBootDiskConfigBuilder().mergeFrom(value);
+ } else {
+ bootDiskConfig_ = value;
+ }
+ } else {
+ bootDiskConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x01000000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearBootDiskConfig() {
+ bitField0_ = (bitField0_ & ~0x01000000);
+ bootDiskConfig_ = null;
+ if (bootDiskConfigBuilder_ != null) {
+ bootDiskConfigBuilder_.dispose();
+ bootDiskConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.tpu.v2alpha1.BootDiskConfig.Builder getBootDiskConfigBuilder() {
+ bitField0_ |= 0x01000000;
+ onChanged();
+ return getBootDiskConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder getBootDiskConfigOrBuilder() {
+ if (bootDiskConfigBuilder_ != null) {
+ return bootDiskConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return bootDiskConfig_ == null
+ ? com.google.cloud.tpu.v2alpha1.BootDiskConfig.getDefaultInstance()
+ : bootDiskConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig,
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig.Builder,
+ com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder>
+ getBootDiskConfigFieldBuilder() {
+ if (bootDiskConfigBuilder_ == null) {
+ bootDiskConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig,
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig.Builder,
+ com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder>(
+ getBootDiskConfig(), getParentForChildren(), isClean());
+ bootDiskConfig_ = null;
+ }
+ return bootDiskConfigBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java
index 39923477da7f..15599b68e3f8 100644
--- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java
+++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/NodeOrBuilder.java
@@ -907,4 +907,45 @@ java.lang.String getMetadataOrDefault(
* @return The multisliceNode.
*/
boolean getMultisliceNode();
+
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the bootDiskConfig field is set.
+ */
+ boolean hasBootDiskConfig();
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bootDiskConfig.
+ */
+ com.google.cloud.tpu.v2alpha1.BootDiskConfig getBootDiskConfig();
+ /**
+ *
+ *
+ * + * Optional. Boot disk configuration. + *+ * + *
+ * .google.cloud.tpu.v2alpha1.BootDiskConfig boot_disk_config = 49 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.tpu.v2alpha1.BootDiskConfigOrBuilder getBootDiskConfigOrBuilder();
}
diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto
index 12cc0a9e1238..7bead65aa972 100644
--- a/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto
+++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/proto/google/cloud/tpu/v2alpha1/cloud_tpu.proto
@@ -542,6 +542,9 @@ message Node {
// Output only. Whether the Node belongs to a Multislice group.
bool multislice_node = 47 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. Boot disk configuration.
+ BootDiskConfig boot_disk_config = 49 [(google.api.field_behavior) = OPTIONAL];
}
// A QueuedResource represents a request for resources that will be placed
@@ -1282,3 +1285,35 @@ message ShieldedInstanceConfig {
// Defines whether the instance has Secure Boot enabled.
bool enable_secure_boot = 1;
}
+
+// Boot disk configurations.
+message BootDiskConfig {
+ // Optional. Customer encryption key for boot disk.
+ CustomerEncryptionKey customer_encryption_key = 1
+ [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Whether the boot disk will be created with confidential compute
+ // mode.
+ bool enable_confidential_compute = 2 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Customer's encryption key.
+message CustomerEncryptionKey {
+ oneof key {
+ // The name of the encryption key that is stored in Google Cloud KMS.
+ // For example:
+ // "kmsKeyName": "projects/ + // kms_project_id/locations/ + // region/keyRings/ + // key_region/cryptoKeys/key + //+ // The fully-qualifed key name may be returned for resource GET requests. + // For example: + //
"kmsKeyName": "projects/ + // kms_project_id/locations/ + // region/keyRings/ + // key_region/cryptoKeys/key + // /cryptoKeyVersions/1+ string kms_key_name = 7; + } +}