Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (NetAppClient netAppClient = NetAppClient.create()) { + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (Location element : netAppClient.listLocations(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (NetAppClient netAppClient = NetAppClient.create()) { + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = netAppClient.listLocationsPagedCallable().futureCall(request); + * // Do something. + * for (Location element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (NetAppClient netAppClient = NetAppClient.create()) { + * ListLocationsRequest request = + * ListLocationsRequest.newBuilder() + * .setName("name3373707") + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListLocationsResponse response = netAppClient.listLocationsCallable().call(request); + * for (Location element : response.getLocationsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (NetAppClient netAppClient = NetAppClient.create()) { + * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + * Location response = netAppClient.getLocation(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *
Sample code: + * + *
{@code + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + * try (NetAppClient netAppClient = NetAppClient.create()) { + * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + * ApiFuture+ */ + public final UnaryCallablefuture = netAppClient.getLocationCallable().futureCall(request); + * // Do something. + * Location response = future.get(); + * } + * }
+ * CreateKmsConfigRequest creates a KMS Config. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.CreateKmsConfigRequest} + */ public final class CreateKmsConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.CreateKmsConfigRequest) @@ -403,7 +411,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.CreateKmsConfigRequest} */ + /** + * + * + *
+ * CreateKmsConfigRequest creates a KMS Config. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.CreateKmsConfigRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * CreateStoragePoolRequest creates a Storage Pool. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.CreateStoragePoolRequest} + */ public final class CreateStoragePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.CreateStoragePoolRequest) @@ -403,7 +411,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.CreateStoragePoolRequest} */ + /** + * + * + *
+ * CreateStoragePoolRequest creates a Storage Pool. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.CreateStoragePoolRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * DeleteKmsConfigRequest deletes a KMS Config. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.DeleteKmsConfigRequest} + */ public final class DeleteKmsConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.DeleteKmsConfigRequest) @@ -268,7 +276,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.DeleteKmsConfigRequest} */ + /** + * + * + *
+ * DeleteKmsConfigRequest deletes a KMS Config. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.DeleteKmsConfigRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * DeleteStoragePoolRequest deletes a Storage Pool. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.DeleteStoragePoolRequest} + */ public final class DeleteStoragePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.DeleteStoragePoolRequest) @@ -268,7 +276,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.DeleteStoragePoolRequest} */ + /** + * + * + *
+ * DeleteStoragePoolRequest deletes a Storage Pool. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.DeleteStoragePoolRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * GetKmsConfigRequest gets a KMS Config. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.GetKmsConfigRequest} + */ public final class GetKmsConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.GetKmsConfigRequest) @@ -268,7 +276,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.GetKmsConfigRequest} */ + /** + * + * + *
+ * GetKmsConfigRequest gets a KMS Config. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.GetKmsConfigRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * GetStoragePoolRequest gets a Storage Pool. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.GetStoragePoolRequest} + */ public final class GetStoragePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.GetStoragePoolRequest) @@ -268,7 +276,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.GetStoragePoolRequest} */ + /** + * + * + *
+ * GetStoragePoolRequest gets a Storage Pool. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.GetStoragePoolRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * ListKmsConfigsRequest lists KMS Configs. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.ListKmsConfigsRequest} + */ public final class ListKmsConfigsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ListKmsConfigsRequest) @@ -480,7 +488,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.ListKmsConfigsRequest} */ + /** + * + * + *
+ * ListKmsConfigsRequest lists KMS Configs. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.ListKmsConfigsRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * ListKmsConfigsResponse is the response to a ListKmsConfigsRequest. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.ListKmsConfigsResponse} + */ public final class ListKmsConfigsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ListKmsConfigsResponse) @@ -428,7 +436,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.ListKmsConfigsResponse} */ + /** + * + * + *
+ * ListKmsConfigsResponse is the response to a ListKmsConfigsRequest. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.ListKmsConfigsResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * ListStoragePoolsRequest lists Storage Pools. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.ListStoragePoolsRequest} + */ public final class ListStoragePoolsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ListStoragePoolsRequest) @@ -480,7 +488,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.ListStoragePoolsRequest} */ + /** + * + * + *
+ * ListStoragePoolsRequest lists Storage Pools. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.ListStoragePoolsRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * ListStoragePoolsResponse is the response to a ListStoragePoolsRequest. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.ListStoragePoolsResponse} + */ public final class ListStoragePoolsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.ListStoragePoolsResponse) @@ -428,7 +436,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.ListStoragePoolsResponse} */ + /** + * + * + *
+ * ListStoragePoolsResponse is the response to a ListStoragePoolsRequest. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.ListStoragePoolsResponse} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Actions to be restricted for a volume. + *+ * + * Protobuf enum {@code google.cloud.netapp.v1.RestrictedAction} + */ +public enum RestrictedAction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified restricted action + *+ * + *
RESTRICTED_ACTION_UNSPECIFIED = 0;
+ */
+ RESTRICTED_ACTION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Prevent volume from being deleted when mounted. + *+ * + *
DELETE = 1;
+ */
+ DELETE(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified restricted action + *+ * + *
RESTRICTED_ACTION_UNSPECIFIED = 0;
+ */
+ public static final int RESTRICTED_ACTION_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Prevent volume from being deleted when mounted. + *+ * + *
DELETE = 1;
+ */
+ public static final int DELETE_VALUE = 1;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static RestrictedAction valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static RestrictedAction forNumber(int value) {
+ switch (value) {
+ case 0:
+ return RESTRICTED_ACTION_UNSPECIFIED;
+ case 1:
+ return DELETE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Snapshot is a point-in-time version of a Volume's content. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.Snapshot} + */ public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.Snapshot) @@ -908,7 +916,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.Snapshot} */ + /** + * + * + *
+ * Snapshot is a point-in-time version of a Volume's content. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.Snapshot} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * UpdateKmsConfigRequest updates a KMS Config. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.UpdateKmsConfigRequest} + */ public final class UpdateKmsConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.UpdateKmsConfigRequest) @@ -347,7 +355,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.UpdateKmsConfigRequest} */ + /** + * + * + *
+ * UpdateKmsConfigRequest updates a KMS Config. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.UpdateKmsConfigRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * UpdateStoragePoolRequest updates a Storage Pool. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.UpdateStoragePoolRequest} + */ public final class UpdateStoragePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.UpdateStoragePoolRequest) @@ -347,7 +355,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.netapp.v1.UpdateStoragePoolRequest} */ + /** + * + * + *
+ * UpdateStoragePoolRequest updates a Storage Pool. + *+ * + * Protobuf type {@code google.cloud.netapp.v1.UpdateStoragePoolRequest} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the restrictedActions.
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of restrictedActions.
+ */
+ @java.lang.Override
+ public int getRestrictedActionsCount() {
+ return restrictedActions_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The restrictedActions at the given index.
+ */
+ @java.lang.Override
+ public com.google.cloud.netapp.v1.RestrictedAction getRestrictedActions(int index) {
+ return restrictedActions_converter_.convert(restrictedActions_.get(index));
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the enum numeric values on the wire for restrictedActions.
+ */
+ @java.lang.Override
+ public java.util.List+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of restrictedActions at the given index.
+ */
+ @java.lang.Override
+ public int getRestrictedActionsValue(int index) {
+ return restrictedActions_.get(index);
+ }
+
+ private int restrictedActionsMemoizedSerializedSize;
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1903,6 +2014,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (hasReplication_ != false) {
output.writeBool(29, hasReplication_);
}
+ if (getRestrictedActionsList().size() > 0) {
+ output.writeUInt32NoTag(250);
+ output.writeUInt32NoTag(restrictedActionsMemoizedSerializedSize);
+ }
+ for (int i = 0; i < restrictedActions_.size(); i++) {
+ output.writeEnumNoTag(restrictedActions_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -2027,6 +2145,19 @@ public int getSerializedSize() {
if (hasReplication_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(29, hasReplication_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < restrictedActions_.size(); i++) {
+ dataSize +=
+ com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(restrictedActions_.get(i));
+ }
+ size += dataSize;
+ if (!getRestrictedActionsList().isEmpty()) {
+ size += 2;
+ size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+ }
+ restrictedActionsMemoizedSerializedSize = dataSize;
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -2084,6 +2215,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getKmsConfig().equals(other.getKmsConfig())) return false;
if (encryptionType_ != other.encryptionType_) return false;
if (getHasReplication() != other.getHasReplication()) return false;
+ if (!restrictedActions_.equals(other.restrictedActions_)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -2172,6 +2304,10 @@ public int hashCode() {
hash = (53 * hash) + encryptionType_;
hash = (37 * hash) + HAS_REPLICATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasReplication());
+ if (getRestrictedActionsCount() > 0) {
+ hash = (37 * hash) + RESTRICTED_ACTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + restrictedActions_.hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -2383,6 +2519,8 @@ public Builder clear() {
kmsConfig_ = "";
encryptionType_ = 0;
hasReplication_ = false;
+ restrictedActions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x20000000);
return this;
}
@@ -2437,6 +2575,11 @@ private void buildPartialRepeatedFields(com.google.cloud.netapp.v1.Volume result
} else {
result.mountOptions_ = mountOptionsBuilder_.build();
}
+ if (((bitField0_ & 0x20000000) != 0)) {
+ restrictedActions_ = java.util.Collections.unmodifiableList(restrictedActions_);
+ bitField0_ = (bitField0_ & ~0x20000000);
+ }
+ result.restrictedActions_ = restrictedActions_;
}
private void buildPartial0(com.google.cloud.netapp.v1.Volume result) {
@@ -2716,6 +2859,16 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Volume other) {
if (other.getHasReplication() != false) {
setHasReplication(other.getHasReplication());
}
+ if (!other.restrictedActions_.isEmpty()) {
+ if (restrictedActions_.isEmpty()) {
+ restrictedActions_ = other.restrictedActions_;
+ bitField0_ = (bitField0_ & ~0x20000000);
+ } else {
+ ensureRestrictedActionsIsMutable();
+ restrictedActions_.addAll(other.restrictedActions_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -2956,6 +3109,25 @@ public Builder mergeFrom(
bitField0_ |= 0x10000000;
break;
} // case 232
+ case 248:
+ {
+ int tmpRaw = input.readEnum();
+ ensureRestrictedActionsIsMutable();
+ restrictedActions_.add(tmpRaw);
+ break;
+ } // case 248
+ case 250:
+ {
+ int length = input.readRawVarint32();
+ int oldLimit = input.pushLimit(length);
+ while (input.getBytesUntilLimit() > 0) {
+ int tmpRaw = input.readEnum();
+ ensureRestrictedActionsIsMutable();
+ restrictedActions_.add(tmpRaw);
+ }
+ input.popLimit(oldLimit);
+ break;
+ } // case 250
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -6726,6 +6898,253 @@ public Builder clearHasReplication() {
return this;
}
+ private java.util.List+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the restrictedActions.
+ */
+ public java.util.List+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of restrictedActions.
+ */
+ public int getRestrictedActionsCount() {
+ return restrictedActions_.size();
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The restrictedActions at the given index.
+ */
+ public com.google.cloud.netapp.v1.RestrictedAction getRestrictedActions(int index) {
+ return restrictedActions_converter_.convert(restrictedActions_.get(index));
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The restrictedActions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRestrictedActions(
+ int index, com.google.cloud.netapp.v1.RestrictedAction value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRestrictedActionsIsMutable();
+ restrictedActions_.set(index, value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The restrictedActions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addRestrictedActions(com.google.cloud.netapp.v1.RestrictedAction value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRestrictedActionsIsMutable();
+ restrictedActions_.add(value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param values The restrictedActions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllRestrictedActions(
+ java.lang.Iterable extends com.google.cloud.netapp.v1.RestrictedAction> values) {
+ ensureRestrictedActionsIsMutable();
+ for (com.google.cloud.netapp.v1.RestrictedAction value : values) {
+ restrictedActions_.add(value.getNumber());
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRestrictedActions() {
+ restrictedActions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x20000000);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the enum numeric values on the wire for restrictedActions.
+ */
+ public java.util.List+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of restrictedActions at the given index.
+ */
+ public int getRestrictedActionsValue(int index) {
+ return restrictedActions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The enum numeric value on the wire for restrictedActions to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRestrictedActionsValue(int index, int value) {
+ ensureRestrictedActionsIsMutable();
+ restrictedActions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for restrictedActions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addRestrictedActionsValue(int value) {
+ ensureRestrictedActionsIsMutable();
+ restrictedActions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param values The enum numeric values on the wire for restrictedActions to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllRestrictedActionsValue(java.lang.Iterable+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the restrictedActions.
+ */
+ java.util.List+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The count of restrictedActions.
+ */
+ int getRestrictedActionsCount();
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The restrictedActions at the given index.
+ */
+ com.google.cloud.netapp.v1.RestrictedAction getRestrictedActions(int index);
+ /**
+ *
+ *
+ * + * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return A list containing the enum numeric values on the wire for restrictedActions.
+ */
+ java.util.List+ * Optional. List of actions that are restricted on this volume. + *+ * + *
+ * repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The enum numeric value on the wire of restrictedActions at the given index.
+ */
+ int getRestrictedActionsValue(int index);
}
diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java
index dbe2b82105db..88c4d5accaa7 100644
--- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java
+++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java
@@ -134,7 +134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "pis.com/Volume\022\r\n\005force\030\002 \001(\010\"e\n\023RevertV"
+ "olumeRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034net"
+ "app.googleapis.com/Volume\022\031\n\013snapshot_id"
- + "\030\002 \001(\tB\004\342A\001\002\"\232\r\n\006Volume\022\022\n\004name\030\001 \001(\tB\004\342"
+ + "\030\002 \001(\tB\004\342A\001\002\"\346\r\n\006Volume\022\022\n\004name\030\001 \001(\tB\004\342"
+ "A\001\003\0229\n\005state\030\002 \001(\0162$.google.cloud.netapp"
+ ".v1.Volume.StateB\004\342A\001\003\022\033\n\rstate_details\030"
+ "\003 \001(\tB\004\342A\001\003\0225\n\013create_time\030\004 \001(\0132\032.googl"
@@ -170,77 +170,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "apis.com/KmsConfig\022E\n\017encryption_type\030\034 "
+ "\001(\0162&.google.cloud.netapp.v1.EncryptionT"
+ "ypeB\004\342A\001\003\022\035\n\017has_replication\030\035 \001(\010B\004\342A\001\003"
- + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
- + "\001(\t:\0028\001\"{\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022"
- + "\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\014"
- + "\n\010UPDATING\020\004\022\r\n\tRESTORING\020\005\022\014\n\010DISABLED\020"
- + "\006\022\t\n\005ERROR\020\007:[\352AX\n\034netapp.googleapis.com"
- + "/Volume\0228projects/{project}/locations/{l"
- + "ocation}/volumes/{volume}\"S\n\014ExportPolic"
- + "y\022C\n\005rules\030\001 \003(\0132..google.cloud.netapp.v"
- + "1.SimpleExportPolicyRuleB\004\342A\001\002\"\374\004\n\026Simpl"
- + "eExportPolicyRule\022\034\n\017allowed_clients\030\001 \001"
- + "(\tH\000\210\001\001\022\034\n\017has_root_access\030\002 \001(\tH\001\210\001\001\022<\n"
- + "\013access_type\030\003 \001(\0162\".google.cloud.netapp"
- + ".v1.AccessTypeH\002\210\001\001\022\022\n\005nfsv3\030\004 \001(\010H\003\210\001\001\022"
- + "\022\n\005nfsv4\030\005 \001(\010H\004\210\001\001\022!\n\024kerberos_5_read_o"
- + "nly\030\006 \001(\010H\005\210\001\001\022\"\n\025kerberos_5_read_write\030"
- + "\007 \001(\010H\006\210\001\001\022\"\n\025kerberos_5i_read_only\030\010 \001("
- + "\010H\007\210\001\001\022#\n\026kerberos_5i_read_write\030\t \001(\010H\010"
- + "\210\001\001\022\"\n\025kerberos_5p_read_only\030\n \001(\010H\t\210\001\001\022"
- + "#\n\026kerberos_5p_read_write\030\013 \001(\010H\n\210\001\001B\022\n\020"
- + "_allowed_clientsB\022\n\020_has_root_accessB\016\n\014"
- + "_access_typeB\010\n\006_nfsv3B\010\n\006_nfsv4B\027\n\025_ker"
- + "beros_5_read_onlyB\030\n\026_kerberos_5_read_wr"
- + "iteB\030\n\026_kerberos_5i_read_onlyB\031\n\027_kerber"
- + "os_5i_read_writeB\030\n\026_kerberos_5p_read_on"
- + "lyB\031\n\027_kerberos_5p_read_write\"\232\003\n\016Snapsh"
- + "otPolicy\022\024\n\007enabled\030\001 \001(\010H\000\210\001\001\022D\n\017hourly"
- + "_schedule\030\002 \001(\0132&.google.cloud.netapp.v1"
- + ".HourlyScheduleH\001\210\001\001\022B\n\016daily_schedule\030\003"
- + " \001(\0132%.google.cloud.netapp.v1.DailySched"
- + "uleH\002\210\001\001\022D\n\017weekly_schedule\030\004 \001(\0132&.goog"
- + "le.cloud.netapp.v1.WeeklyScheduleH\003\210\001\001\022F"
- + "\n\020monthly_schedule\030\005 \001(\0132\'.google.cloud."
- + "netapp.v1.MonthlyScheduleH\004\210\001\001B\n\n\010_enabl"
- + "edB\022\n\020_hourly_scheduleB\021\n\017_daily_schedul"
- + "eB\022\n\020_weekly_scheduleB\023\n\021_monthly_schedu"
- + "le\"f\n\016HourlySchedule\022\036\n\021snapshots_to_kee"
- + "p\030\001 \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001B\024\n\022_sn"
- + "apshots_to_keepB\t\n\007_minute\"\201\001\n\rDailySche"
- + "dule\022\036\n\021snapshots_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006"
- + "minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001(\001H\002\210\001\001B\024\n\022"
- + "_snapshots_to_keepB\t\n\007_minuteB\007\n\005_hour\"\234"
- + "\001\n\016WeeklySchedule\022\036\n\021snapshots_to_keep\030\001"
- + " \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003"
- + " \001(\001H\002\210\001\001\022\020\n\003day\030\004 \001(\tH\003\210\001\001B\024\n\022_snapshot"
- + "s_to_keepB\t\n\007_minuteB\007\n\005_hourB\006\n\004_day\"\261\001"
- + "\n\017MonthlySchedule\022\036\n\021snapshots_to_keep\030\001"
- + " \001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003"
- + " \001(\001H\002\210\001\001\022\032\n\rdays_of_month\030\004 \001(\tH\003\210\001\001B\024\n"
- + "\022_snapshots_to_keepB\t\n\007_minuteB\007\n\005_hourB"
- + "\020\n\016_days_of_month\"}\n\013MountOption\022\016\n\006expo"
- + "rt\030\001 \001(\t\022\023\n\013export_full\030\002 \001(\t\0223\n\010protoco"
- + "l\030\003 \001(\0162!.google.cloud.netapp.v1.Protoco"
- + "ls\022\024\n\014instructions\030\004 \001(\t\"8\n\021RestoreParam"
- + "eters\022\031\n\017source_snapshot\030\001 \001(\tH\000B\010\n\006sour"
- + "ce*E\n\tProtocols\022\031\n\025PROTOCOLS_UNSPECIFIED"
- + "\020\000\022\t\n\005NFSV3\020\001\022\t\n\005NFSV4\020\002\022\007\n\003SMB\020\003*W\n\nAcc"
- + "essType\022\033\n\027ACCESS_TYPE_UNSPECIFIED\020\000\022\r\n\t"
- + "READ_ONLY\020\001\022\016\n\nREAD_WRITE\020\002\022\r\n\tREAD_NONE"
- + "\020\003*\350\001\n\013SMBSettings\022\034\n\030SMB_SETTINGS_UNSPE"
- + "CIFIED\020\000\022\020\n\014ENCRYPT_DATA\020\001\022\r\n\tBROWSABLE\020"
- + "\002\022\021\n\rCHANGE_NOTIFY\020\003\022\021\n\rNON_BROWSABLE\020\004\022"
- + "\013\n\007OPLOCKS\020\005\022\021\n\rSHOW_SNAPSHOT\020\006\022\032\n\026SHOW_"
- + "PREVIOUS_VERSIONS\020\007\022\034\n\030ACCESS_BASED_ENUM"
- + "ERATION\020\010\022\032\n\026CONTINUOUSLY_AVAILABLE\020\t*C\n"
- + "\rSecurityStyle\022\036\n\032SECURITY_STYLE_UNSPECI"
- + "FIED\020\000\022\010\n\004NTFS\020\001\022\010\n\004UNIX\020\002B\255\001\n\032com.googl"
- + "e.cloud.netapp.v1B\013VolumeProtoP\001Z2cloud."
- + "google.com/go/netapp/apiv1/netapppb;neta"
- + "pppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Google\\C"
- + "loud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::"
- + "V1b\006proto3"
+ + "\022J\n\022restricted_actions\030\037 \003(\0162(.google.cl"
+ + "oud.netapp.v1.RestrictedActionB\004\342A\001\001\032-\n\013"
+ + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
+ + "\0028\001\"{\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005R"
+ + "EADY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELETING\020\003\022\014\n\010UP"
+ + "DATING\020\004\022\r\n\tRESTORING\020\005\022\014\n\010DISABLED\020\006\022\t\n"
+ + "\005ERROR\020\007:[\352AX\n\034netapp.googleapis.com/Vol"
+ + "ume\0228projects/{project}/locations/{locat"
+ + "ion}/volumes/{volume}\"S\n\014ExportPolicy\022C\n"
+ + "\005rules\030\001 \003(\0132..google.cloud.netapp.v1.Si"
+ + "mpleExportPolicyRuleB\004\342A\001\002\"\374\004\n\026SimpleExp"
+ + "ortPolicyRule\022\034\n\017allowed_clients\030\001 \001(\tH\000"
+ + "\210\001\001\022\034\n\017has_root_access\030\002 \001(\tH\001\210\001\001\022<\n\013acc"
+ + "ess_type\030\003 \001(\0162\".google.cloud.netapp.v1."
+ + "AccessTypeH\002\210\001\001\022\022\n\005nfsv3\030\004 \001(\010H\003\210\001\001\022\022\n\005n"
+ + "fsv4\030\005 \001(\010H\004\210\001\001\022!\n\024kerberos_5_read_only\030"
+ + "\006 \001(\010H\005\210\001\001\022\"\n\025kerberos_5_read_write\030\007 \001("
+ + "\010H\006\210\001\001\022\"\n\025kerberos_5i_read_only\030\010 \001(\010H\007\210"
+ + "\001\001\022#\n\026kerberos_5i_read_write\030\t \001(\010H\010\210\001\001\022"
+ + "\"\n\025kerberos_5p_read_only\030\n \001(\010H\t\210\001\001\022#\n\026k"
+ + "erberos_5p_read_write\030\013 \001(\010H\n\210\001\001B\022\n\020_all"
+ + "owed_clientsB\022\n\020_has_root_accessB\016\n\014_acc"
+ + "ess_typeB\010\n\006_nfsv3B\010\n\006_nfsv4B\027\n\025_kerbero"
+ + "s_5_read_onlyB\030\n\026_kerberos_5_read_writeB"
+ + "\030\n\026_kerberos_5i_read_onlyB\031\n\027_kerberos_5"
+ + "i_read_writeB\030\n\026_kerberos_5p_read_onlyB\031"
+ + "\n\027_kerberos_5p_read_write\"\232\003\n\016SnapshotPo"
+ + "licy\022\024\n\007enabled\030\001 \001(\010H\000\210\001\001\022D\n\017hourly_sch"
+ + "edule\030\002 \001(\0132&.google.cloud.netapp.v1.Hou"
+ + "rlyScheduleH\001\210\001\001\022B\n\016daily_schedule\030\003 \001(\013"
+ + "2%.google.cloud.netapp.v1.DailyScheduleH"
+ + "\002\210\001\001\022D\n\017weekly_schedule\030\004 \001(\0132&.google.c"
+ + "loud.netapp.v1.WeeklyScheduleH\003\210\001\001\022F\n\020mo"
+ + "nthly_schedule\030\005 \001(\0132\'.google.cloud.neta"
+ + "pp.v1.MonthlyScheduleH\004\210\001\001B\n\n\010_enabledB\022"
+ + "\n\020_hourly_scheduleB\021\n\017_daily_scheduleB\022\n"
+ + "\020_weekly_scheduleB\023\n\021_monthly_schedule\"f"
+ + "\n\016HourlySchedule\022\036\n\021snapshots_to_keep\030\001 "
+ + "\001(\001H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001B\024\n\022_snapsh"
+ + "ots_to_keepB\t\n\007_minute\"\201\001\n\rDailySchedule"
+ + "\022\036\n\021snapshots_to_keep\030\001 \001(\001H\000\210\001\001\022\023\n\006minu"
+ + "te\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001(\001H\002\210\001\001B\024\n\022_sna"
+ + "pshots_to_keepB\t\n\007_minuteB\007\n\005_hour\"\234\001\n\016W"
+ + "eeklySchedule\022\036\n\021snapshots_to_keep\030\001 \001(\001"
+ + "H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001(\001"
+ + "H\002\210\001\001\022\020\n\003day\030\004 \001(\tH\003\210\001\001B\024\n\022_snapshots_to"
+ + "_keepB\t\n\007_minuteB\007\n\005_hourB\006\n\004_day\"\261\001\n\017Mo"
+ + "nthlySchedule\022\036\n\021snapshots_to_keep\030\001 \001(\001"
+ + "H\000\210\001\001\022\023\n\006minute\030\002 \001(\001H\001\210\001\001\022\021\n\004hour\030\003 \001(\001"
+ + "H\002\210\001\001\022\032\n\rdays_of_month\030\004 \001(\tH\003\210\001\001B\024\n\022_sn"
+ + "apshots_to_keepB\t\n\007_minuteB\007\n\005_hourB\020\n\016_"
+ + "days_of_month\"}\n\013MountOption\022\016\n\006export\030\001"
+ + " \001(\t\022\023\n\013export_full\030\002 \001(\t\0223\n\010protocol\030\003 "
+ + "\001(\0162!.google.cloud.netapp.v1.Protocols\022\024"
+ + "\n\014instructions\030\004 \001(\t\"8\n\021RestoreParameter"
+ + "s\022\031\n\017source_snapshot\030\001 \001(\tH\000B\010\n\006source*E"
+ + "\n\tProtocols\022\031\n\025PROTOCOLS_UNSPECIFIED\020\000\022\t"
+ + "\n\005NFSV3\020\001\022\t\n\005NFSV4\020\002\022\007\n\003SMB\020\003*W\n\nAccessT"
+ + "ype\022\033\n\027ACCESS_TYPE_UNSPECIFIED\020\000\022\r\n\tREAD"
+ + "_ONLY\020\001\022\016\n\nREAD_WRITE\020\002\022\r\n\tREAD_NONE\020\003*\350"
+ + "\001\n\013SMBSettings\022\034\n\030SMB_SETTINGS_UNSPECIFI"
+ + "ED\020\000\022\020\n\014ENCRYPT_DATA\020\001\022\r\n\tBROWSABLE\020\002\022\021\n"
+ + "\rCHANGE_NOTIFY\020\003\022\021\n\rNON_BROWSABLE\020\004\022\013\n\007O"
+ + "PLOCKS\020\005\022\021\n\rSHOW_SNAPSHOT\020\006\022\032\n\026SHOW_PREV"
+ + "IOUS_VERSIONS\020\007\022\034\n\030ACCESS_BASED_ENUMERAT"
+ + "ION\020\010\022\032\n\026CONTINUOUSLY_AVAILABLE\020\t*C\n\rSec"
+ + "urityStyle\022\036\n\032SECURITY_STYLE_UNSPECIFIED"
+ + "\020\000\022\010\n\004NTFS\020\001\022\010\n\004UNIX\020\002*A\n\020RestrictedActi"
+ + "on\022!\n\035RESTRICTED_ACTION_UNSPECIFIED\020\000\022\n\n"
+ + "\006DELETE\020\001B\255\001\n\032com.google.cloud.netapp.v1"
+ + "B\013VolumeProtoP\001Z2cloud.google.com/go/net"
+ + "app/apiv1/netapppb;netapppb\252\002\026Google.Clo"
+ + "ud.NetApp.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031"
+ + "Google::Cloud::NetApp::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -343,6 +346,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"KmsConfig",
"EncryptionType",
"HasReplication",
+ "RestrictedActions",
});
internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor =
internal_static_google_cloud_netapp_v1_Volume_descriptor.getNestedTypes().get(0);
diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto
index 97221e3bfb84..0547e49d31dd 100644
--- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto
+++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/kms.proto
@@ -29,6 +29,7 @@ option java_package = "com.google.cloud.netapp.v1";
option php_namespace = "Google\\Cloud\\NetApp\\V1";
option ruby_package = "Google::Cloud::NetApp::V1";
+// GetKmsConfigRequest gets a KMS Config.
message GetKmsConfigRequest {
// Required. Name of the KmsConfig
string name = 1 [
@@ -39,6 +40,7 @@ message GetKmsConfigRequest {
];
}
+// ListKmsConfigsRequest lists KMS Configs.
message ListKmsConfigsRequest {
// Required. Parent value
string parent = 1 [
@@ -62,6 +64,7 @@ message ListKmsConfigsRequest {
string filter = 5;
}
+// ListKmsConfigsResponse is the response to a ListKmsConfigsRequest.
message ListKmsConfigsResponse {
// The list of KmsConfigs
repeated KmsConfig kms_configs = 1;
@@ -73,6 +76,7 @@ message ListKmsConfigsResponse {
repeated string unreachable = 3;
}
+// CreateKmsConfigRequest creates a KMS Config.
message CreateKmsConfigRequest {
// Required. Value for parent.
string parent = 1 [
@@ -91,6 +95,7 @@ message CreateKmsConfigRequest {
KmsConfig kms_config = 3 [(google.api.field_behavior) = REQUIRED];
}
+// UpdateKmsConfigRequest updates a KMS Config.
message UpdateKmsConfigRequest {
// Required. Field mask is used to specify the fields to be overwritten in the
// KmsConfig resource by the update.
@@ -104,6 +109,7 @@ message UpdateKmsConfigRequest {
KmsConfig kms_config = 2 [(google.api.field_behavior) = REQUIRED];
}
+// DeleteKmsConfigRequest deletes a KMS Config.
message DeleteKmsConfigRequest {
// Required. Name of the KmsConfig.
string name = 1 [
diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto
index 4dd2213ec275..a37ef7dd41d5 100644
--- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto
+++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/snapshot.proto
@@ -119,6 +119,7 @@ message UpdateSnapshotRequest {
Snapshot snapshot = 2 [(google.api.field_behavior) = REQUIRED];
}
+// Snapshot is a point-in-time version of a Volume's content.
message Snapshot {
option (google.api.resource) = {
type: "netapp.googleapis.com/Snapshot"
diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto
index a207204de7fb..1dcdbacf113c 100644
--- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto
+++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto
@@ -30,6 +30,7 @@ option java_package = "com.google.cloud.netapp.v1";
option php_namespace = "Google\\Cloud\\NetApp\\V1";
option ruby_package = "Google::Cloud::NetApp::V1";
+// GetStoragePoolRequest gets a Storage Pool.
message GetStoragePoolRequest {
// Required. Name of the storage pool
string name = 1 [
@@ -40,6 +41,7 @@ message GetStoragePoolRequest {
];
}
+// ListStoragePoolsRequest lists Storage Pools.
message ListStoragePoolsRequest {
// Required. Parent value
string parent = 1 [
@@ -63,6 +65,7 @@ message ListStoragePoolsRequest {
string filter = 5;
}
+// ListStoragePoolsResponse is the response to a ListStoragePoolsRequest.
message ListStoragePoolsResponse {
// The list of StoragePools
repeated StoragePool storage_pools = 1;
@@ -74,6 +77,7 @@ message ListStoragePoolsResponse {
repeated string unreachable = 3;
}
+// CreateStoragePoolRequest creates a Storage Pool.
message CreateStoragePoolRequest {
// Required. Value for parent.
string parent = 1 [
@@ -92,6 +96,7 @@ message CreateStoragePoolRequest {
StoragePool storage_pool = 3 [(google.api.field_behavior) = REQUIRED];
}
+// UpdateStoragePoolRequest updates a Storage Pool.
message UpdateStoragePoolRequest {
// Required. Field mask is used to specify the fields to be overwritten in the
// StoragePool resource by the update.
@@ -105,6 +110,7 @@ message UpdateStoragePoolRequest {
StoragePool storage_pool = 2 [(google.api.field_behavior) = REQUIRED];
}
+// DeleteStoragePoolRequest deletes a Storage Pool.
message DeleteStoragePoolRequest {
// Required. Name of the storage pool
string name = 1 [
diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto
index e1242e989353..b657dfa0d8e6 100644
--- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto
+++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto
@@ -104,6 +104,15 @@ enum SecurityStyle {
UNIX = 2;
}
+// Actions to be restricted for a volume.
+enum RestrictedAction {
+ // Unspecified restricted action
+ RESTRICTED_ACTION_UNSPECIFIED = 0;
+
+ // Prevent volume from being deleted when mounted.
+ DELETE = 1;
+}
+
// Message for requesting list of Volumes
message ListVolumesRequest {
// Required. Parent value for ListVolumesRequest
@@ -363,6 +372,10 @@ message Volume {
// Output only. Indicates whether the volume is part of a replication
// relationship.
bool has_replication = 29 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Optional. List of actions that are restricted on this volume.
+ repeated RestrictedAction restricted_actions = 31
+ [(google.api.field_behavior) = OPTIONAL];
}
// Defines the export policy for the volume.
diff --git a/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getlocation/AsyncGetLocation.java b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getlocation/AsyncGetLocation.java
new file mode 100644
index 000000000000..7706b80c562a
--- /dev/null
+++ b/java-netapp/samples/snippets/generated/com/google/cloud/netapp/v1/netapp/getlocation/AsyncGetLocation.java
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ */
+
+package com.google.cloud.netapp.v1.samples;
+
+// [START netapp_v1_generated_NetApp_GetLocation_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.location.GetLocationRequest;
+import com.google.cloud.location.Location;
+import com.google.cloud.netapp.v1.NetAppClient;
+
+public class AsyncGetLocation {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetLocation();
+ }
+
+ public static void asyncGetLocation() throws Exception {
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ try (NetAppClient netAppClient = NetAppClient.create()) {
+ GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+ ApiFuture