diff --git a/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json b/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json index 4fe624b7aa7..b3291f2748a 100644 --- a/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json +++ b/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, @@ -3041,6 +3059,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.Instance$DefaultBackupScheduleType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.Instance$Edition", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json index c7f99fa6ead..15e53bae299 100644 --- a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json +++ b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.database.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json index cfe0908272e..1a2d3dd10d9 100644 --- a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json +++ b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, @@ -1952,6 +1970,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.Instance$DefaultBackupScheduleType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.Instance$Edition", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json index ffa070f1225..bcbb239a5be 100644 --- a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json +++ b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java index 1caf9592536..5ed73ef4173 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java @@ -46,6 +46,7 @@ private Instance() { state_ = 0; endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); edition_ = 0; + defaultBackupScheduleType_ = 0; } @java.lang.Override @@ -424,6 +425,177 @@ private Edition(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.Instance.Edition) } + /** + * + * + *
+   * Indicates the default backup behavior for new databases within the
+   * instance.
+   * 
+ * + * Protobuf enum {@code google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType} + */ + public enum DefaultBackupScheduleType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED = 0; + */ + DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * No default backup schedule will be created automatically on creation of a
+     * database within the instance.
+     * 
+ * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
+     * A default backup schedule will be created automatically on creation of a
+     * database within the instance. The default backup schedule creates a full
+     * backup every 24 hours and retains the backup for a period of 7 days. Once
+     * created, the default backup schedule can be edited/deleted similar to any
+     * other backup schedule.
+     * 
+ * + * AUTOMATIC = 2; + */ + AUTOMATIC(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED = 0; + */ + public static final int DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * No default backup schedule will be created automatically on creation of a
+     * database within the instance.
+     * 
+ * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + /** + * + * + *
+     * A default backup schedule will be created automatically on creation of a
+     * database within the instance. The default backup schedule creates a full
+     * backup every 24 hours and retains the backup for a period of 7 days. Once
+     * created, the default backup schedule can be edited/deleted similar to any
+     * other backup schedule.
+     * 
+ * + * AUTOMATIC = 2; + */ + public static final int AUTOMATIC_VALUE = 2; + + 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 DefaultBackupScheduleType 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 DefaultBackupScheduleType forNumber(int value) { + switch (value) { + case 0: + return DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED; + case 1: + return NONE; + case 2: + return AUTOMATIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DefaultBackupScheduleType findValueByNumber(int number) { + return DefaultBackupScheduleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.Instance.getDescriptor().getEnumTypes().get(2); + } + + private static final DefaultBackupScheduleType[] VALUES = values(); + + public static DefaultBackupScheduleType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DefaultBackupScheduleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -1266,6 +1438,65 @@ public com.google.spanner.admin.instance.v1.Instance.Edition getEdition() { : result; } + public static final int DEFAULT_BACKUP_SCHEDULE_TYPE_FIELD_NUMBER = 23; + private int defaultBackupScheduleType_ = 0; + /** + * + * + *
+   * Optional. Controls the default backup behavior for new databases within the
+   * instance.
+   *
+   * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+   * backup schedules are not allowed for free instances.
+   *
+   * In the `GetInstance` or `ListInstances` response, if the value of
+   * default_backup_schedule_type is unset or NONE, no default backup
+   * schedule will be created for new databases within the instance.
+   * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for defaultBackupScheduleType. + */ + @java.lang.Override + public int getDefaultBackupScheduleTypeValue() { + return defaultBackupScheduleType_; + } + /** + * + * + *
+   * Optional. Controls the default backup behavior for new databases within the
+   * instance.
+   *
+   * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+   * backup schedules are not allowed for free instances.
+   *
+   * In the `GetInstance` or `ListInstances` response, if the value of
+   * default_backup_schedule_type is unset or NONE, no default backup
+   * schedule will be created for new databases within the instance.
+   * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultBackupScheduleType. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType + getDefaultBackupScheduleType() { + com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType result = + com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType.forNumber( + defaultBackupScheduleType_); + return result == null + ? com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1320,6 +1551,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.spanner.admin.instance.v1.Instance.Edition.EDITION_UNSPECIFIED.getNumber()) { output.writeEnum(20, edition_); } + if (defaultBackupScheduleType_ + != com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType + .DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(23, defaultBackupScheduleType_); + } getUnknownFields().writeTo(output); } @@ -1384,6 +1621,12 @@ public int getSerializedSize() { != com.google.spanner.admin.instance.v1.Instance.Edition.EDITION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, edition_); } + if (defaultBackupScheduleType_ + != com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType + .DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(23, defaultBackupScheduleType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1423,6 +1666,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (edition_ != other.edition_) return false; + if (defaultBackupScheduleType_ != other.defaultBackupScheduleType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1472,6 +1716,8 @@ public int hashCode() { } hash = (37 * hash) + EDITION_FIELD_NUMBER; hash = (53 * hash) + edition_; + hash = (37 * hash) + DEFAULT_BACKUP_SCHEDULE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + defaultBackupScheduleType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1676,6 +1922,7 @@ public Builder clear() { updateTimeBuilder_ = null; } edition_ = 0; + defaultBackupScheduleType_ = 0; return this; } @@ -1770,6 +2017,9 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.Instance result) if (((from_bitField0_ & 0x00001000) != 0)) { result.edition_ = edition_; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.defaultBackupScheduleType_ = defaultBackupScheduleType_; + } result.bitField0_ |= to_bitField0_; } @@ -1893,6 +2143,9 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.Instance other) { if (other.edition_ != 0) { setEditionValue(other.getEditionValue()); } + if (other.defaultBackupScheduleType_ != 0) { + setDefaultBackupScheduleTypeValue(other.getDefaultBackupScheduleTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2013,6 +2266,12 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 160 + case 184: + { + defaultBackupScheduleType_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 184 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4401,6 +4660,151 @@ public Builder clearEdition() { return this; } + private int defaultBackupScheduleType_ = 0; + /** + * + * + *
+     * Optional. Controls the default backup behavior for new databases within the
+     * instance.
+     *
+     * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+     * backup schedules are not allowed for free instances.
+     *
+     * In the `GetInstance` or `ListInstances` response, if the value of
+     * default_backup_schedule_type is unset or NONE, no default backup
+     * schedule will be created for new databases within the instance.
+     * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for defaultBackupScheduleType. + */ + @java.lang.Override + public int getDefaultBackupScheduleTypeValue() { + return defaultBackupScheduleType_; + } + /** + * + * + *
+     * Optional. Controls the default backup behavior for new databases within the
+     * instance.
+     *
+     * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+     * backup schedules are not allowed for free instances.
+     *
+     * In the `GetInstance` or `ListInstances` response, if the value of
+     * default_backup_schedule_type is unset or NONE, no default backup
+     * schedule will be created for new databases within the instance.
+     * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for defaultBackupScheduleType to set. + * @return This builder for chaining. + */ + public Builder setDefaultBackupScheduleTypeValue(int value) { + defaultBackupScheduleType_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Controls the default backup behavior for new databases within the
+     * instance.
+     *
+     * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+     * backup schedules are not allowed for free instances.
+     *
+     * In the `GetInstance` or `ListInstances` response, if the value of
+     * default_backup_schedule_type is unset or NONE, no default backup
+     * schedule will be created for new databases within the instance.
+     * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultBackupScheduleType. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType + getDefaultBackupScheduleType() { + com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType result = + com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType.forNumber( + defaultBackupScheduleType_); + return result == null + ? com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Controls the default backup behavior for new databases within the
+     * instance.
+     *
+     * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+     * backup schedules are not allowed for free instances.
+     *
+     * In the `GetInstance` or `ListInstances` response, if the value of
+     * default_backup_schedule_type is unset or NONE, no default backup
+     * schedule will be created for new databases within the instance.
+     * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The defaultBackupScheduleType to set. + * @return This builder for chaining. + */ + public Builder setDefaultBackupScheduleType( + com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + defaultBackupScheduleType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Controls the default backup behavior for new databases within the
+     * instance.
+     *
+     * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+     * backup schedules are not allowed for free instances.
+     *
+     * In the `GetInstance` or `ListInstances` response, if the value of
+     * default_backup_schedule_type is unset or NONE, no default backup
+     * schedule will be created for new databases within the instance.
+     * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultBackupScheduleType() { + bitField0_ = (bitField0_ & ~0x00002000); + defaultBackupScheduleType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java index db7d23f94e0..6ebc4e67d45 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java @@ -655,4 +655,50 @@ java.lang.String getLabelsOrDefault( * @return The edition. */ com.google.spanner.admin.instance.v1.Instance.Edition getEdition(); + + /** + * + * + *
+   * Optional. Controls the default backup behavior for new databases within the
+   * instance.
+   *
+   * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+   * backup schedules are not allowed for free instances.
+   *
+   * In the `GetInstance` or `ListInstances` response, if the value of
+   * default_backup_schedule_type is unset or NONE, no default backup
+   * schedule will be created for new databases within the instance.
+   * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for defaultBackupScheduleType. + */ + int getDefaultBackupScheduleTypeValue(); + /** + * + * + *
+   * Optional. Controls the default backup behavior for new databases within the
+   * instance.
+   *
+   * Note that `AUTOMATIC` is not permitted for free instances, as backups and
+   * backup schedules are not allowed for free instances.
+   *
+   * In the `GetInstance` or `ListInstances` response, if the value of
+   * default_backup_schedule_type is unset or NONE, no default backup
+   * schedule will be created for new databases within the instance.
+   * 
+ * + * + * .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultBackupScheduleType. + */ + com.google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType + getDefaultBackupScheduleType(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java index 2edfb759d12..b286514fd32 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java @@ -278,7 +278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".admin.instance.v1.AutoscalingConfig.Aut" + "oscalingLimitsB\003\340A\001\022E\n8autoscaling_targe" + "t_high_priority_cpu_utilization_percent\030" - + "\002 \001(\005B\003\340A\001\"\305\007\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340" + + "\002 \001(\005B\003\340A\001\"\232\t\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340" + "A\002\022=\n\006config\030\002 \001(\tB-\340A\002\372A\'\n%spanner.goog" + "leapis.com/InstanceConfig\022\031\n\014display_nam" + "e\030\003 \001(\tB\003\340A\002\022\022\n\nnode_count\030\005 \001(\005\022\030\n\020proc" @@ -295,299 +295,305 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(" + "\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n\007ed" + "ition\030\024 \001(\01622.google.spanner.admin.insta" - + "nce.v1.Instance.EditionB\003\340A\001\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005S" - + "tate\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020" - + "\001\022\t\n\005READY\020\002\"U\n\007Edition\022\027\n\023EDITION_UNSPE" - + "CIFIED\020\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\022\023" - + "\n\017ENTERPRISE_PLUS\020\003:M\352AJ\n\037spanner.google" - + "apis.com/Instance\022\'projects/{project}/in" - + "stances/{instance}\"\210\001\n\032ListInstanceConfi" - + "gsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001" - + "\n\033ListInstanceConfigsResponse\022J\n\020instanc" - + "e_configs\030\001 \003(\01320.google.spanner.admin.i" - + "nstance.v1.InstanceConfig\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"W\n\030GetInstanceConfigRequest\022;" - + "\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%spanner.googleapis" - + ".com/InstanceConfig\"\352\001\n\033CreateInstanceCo" - + "nfigRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clo" - + "udresourcemanager.googleapis.com/Project" - + "\022\037\n\022instance_config_id\030\002 \001(\tB\003\340A\002\022N\n\017ins" - + "tance_config\030\003 \001(\01320.google.spanner.admi" - + "n.instance.v1.InstanceConfigB\003\340A\002\022\025\n\rval" - + "idate_only\030\004 \001(\010\"\272\001\n\033UpdateInstanceConfi" - + "gRequest\022N\n\017instance_config\030\001 \001(\01320.goog" - + "le.spanner.admin.instance.v1.InstanceCon" - + "figB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.p" - + "rotobuf.FieldMaskB\003\340A\002\022\025\n\rvalidate_only\030" - + "\003 \001(\010\"\177\n\033DeleteInstanceConfigRequest\022;\n\004" - + "name\030\001 \001(\tB-\340A\002\372A\'\n%spanner.googleapis.c" - + "om/InstanceConfig\022\014\n\004etag\030\002 \001(\t\022\025\n\rvalid" - + "ate_only\030\003 \001(\010\"\241\001\n#ListInstanceConfigOpe" - + "rationsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+" - + "cloudresourcemanager.googleapis.com/Proj" - + "ect\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022" - + "\n\npage_token\030\004 \001(\t\"r\n$ListInstanceConfig" - + "OperationsResponse\0221\n\noperations\030\001 \003(\0132\035" - + ".google.longrunning.Operation\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"{\n\022GetInstanceRequest\0225\n\004" - + "name\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.c" - + "om/Instance\022.\n\nfield_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMask\"\271\001\n\025CreateInstanceRe" + + "nce.v1.Instance.EditionB\003\340A\001\022o\n\034default_" + + "backup_schedule_type\030\027 \001(\0162D.google.span" + + "ner.admin.instance.v1.Instance.DefaultBa" + + "ckupScheduleTypeB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005RE" + + "ADY\020\002\"U\n\007Edition\022\027\n\023EDITION_UNSPECIFIED\020" + + "\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\022\023\n\017ENTER" + + "PRISE_PLUS\020\003\"b\n\031DefaultBackupScheduleTyp" + + "e\022,\n(DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPEC" + + "IFIED\020\000\022\010\n\004NONE\020\001\022\r\n\tAUTOMATIC\020\002:M\352AJ\n\037s" + + "panner.googleapis.com/Instance\022\'projects" + + "/{project}/instances/{instance}\"\210\001\n\032List" + + "InstanceConfigsRequest\022C\n\006parent\030\001 \001(\tB3" + + "\340A\002\372A-\n+cloudresourcemanager.googleapis." + + "com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"\202\001\n\033ListInstanceConfigsRespon" + + "se\022J\n\020instance_configs\030\001 \003(\01320.google.sp" + + "anner.admin.instance.v1.InstanceConfig\022\027" + + "\n\017next_page_token\030\002 \001(\t\"W\n\030GetInstanceCo" + + "nfigRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%spann" + + "er.googleapis.com/InstanceConfig\"\352\001\n\033Cre" + + "ateInstanceConfigRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022\037\n\022instance_config_id\030\002 \001(" + + "\tB\003\340A\002\022N\n\017instance_config\030\003 \001(\01320.google" + + ".spanner.admin.instance.v1.InstanceConfi" + + "gB\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\272\001\n\033Update" + + "InstanceConfigRequest\022N\n\017instance_config" + + "\030\001 \001(\01320.google.spanner.admin.instance.v" + + "1.InstanceConfigB\003\340A\002\0224\n\013update_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\025\n\rv" + + "alidate_only\030\003 \001(\010\"\177\n\033DeleteInstanceConf" + + "igRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%spanner" + + ".googleapis.com/InstanceConfig\022\014\n\004etag\030\002" + + " \001(\t\022\025\n\rvalidate_only\030\003 \001(\010\"\241\001\n#ListInst" + + "anceConfigOperationsRequest\022C\n\006parent\030\001 " + + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + + "apis.com/Project\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage" + + "_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"r\n$ListI" + + "nstanceConfigOperationsResponse\0221\n\nopera" + + "tions\030\001 \003(\0132\035.google.longrunning.Operati" + + "on\022\027\n\017next_page_token\030\002 \001(\t\"{\n\022GetInstan" + + "ceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spanner" + + ".googleapis.com/Instance\022.\n\nfield_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"\271\001\n\025Cre" + + "ateInstanceRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\022A\n\010ins" + + "tance\030\003 \001(\0132*.google.spanner.admin.insta" + + "nce.v1.InstanceB\003\340A\002\"\311\001\n\024ListInstancesRe" + "quest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudreso" - + "urcemanager.googleapis.com/Project\022\030\n\013in" - + "stance_id\030\002 \001(\tB\003\340A\002\022A\n\010instance\030\003 \001(\0132*" + + "urcemanager.googleapis.com/Project\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fil" + + "ter\030\004 \001(\t\0225\n\021instance_deadline\030\005 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\"\204\001\n\025ListInstanc" + + "esResponse\022=\n\tinstances\030\001 \003(\0132*.google.s" + + "panner.admin.instance.v1.Instance\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" + + "\217\001\n\025UpdateInstanceRequest\022A\n\010instance\030\001 " + + "\001(\0132*.google.spanner.admin.instance.v1.I" + + "nstanceB\003\340A\002\0223\n\nfield_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"N\n\025DeleteInsta" + + "nceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spanne" + + "r.googleapis.com/Instance\"\277\002\n\026CreateInst" + + "anceMetadata\022<\n\010instance\030\001 \001(\0132*.google." + + "spanner.admin.instance.v1.Instance\022.\n\nst" + + "art_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\022/\n\013cancel_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022X\n\033expected_fulfillmen" + + "t_period\030\005 \001(\01623.google.spanner.admin.in" + + "stance.v1.FulfillmentPeriod\"\277\002\n\026UpdateIn" + + "stanceMetadata\022<\n\010instance\030\001 \001(\0132*.googl" + + "e.spanner.admin.instance.v1.Instance\022.\n\n" + + "start_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\022/\n\013cancel_time\030\003 \001(\0132\032.google.proto" + + "buf.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\022X\n\033expected_fulfillm" + + "ent_period\030\005 \001(\01623.google.spanner.admin." + + "instance.v1.FulfillmentPeriod\"\341\001\n\034Create" + + "InstanceConfigMetadata\022I\n\017instance_confi" + + "g\030\001 \001(\01320.google.spanner.admin.instance." + + "v1.InstanceConfig\022E\n\010progress\030\002 \001(\01323.go" + + "ogle.spanner.admin.instance.v1.Operation" + + "Progress\022/\n\013cancel_time\030\003 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"\341\001\n\034UpdateInstanceConf" + + "igMetadata\022I\n\017instance_config\030\001 \001(\01320.go" + + "ogle.spanner.admin.instance.v1.InstanceC" + + "onfig\022E\n\010progress\030\002 \001(\01323.google.spanner" + + ".admin.instance.v1.OperationProgress\022/\n\013" + + "cancel_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stamp\"\216\005\n\021InstancePartition\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\002\022=\n\006config\030\002 \001(\tB-\340A\002\372A\'\n%spanner." + + "googleapis.com/InstanceConfig\022\031\n\014display" + + "_name\030\003 \001(\tB\003\340A\002\022\024\n\nnode_count\030\005 \001(\005H\000\022\032" + + "\n\020processing_units\030\006 \001(\005H\000\022M\n\005state\030\007 \001(" + + "\01629.google.spanner.admin.instance.v1.Ins" + + "tancePartition.StateB\003\340A\003\0224\n\013create_time" + + "\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\t \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\"\n\025referencing_databases\030\n" + + " \003(\tB\003\340A\003\022 \n\023referencing_backups\030\013 \003(\tB\003" + + "\340A\003\022\014\n\004etag\030\014 \001(\t\"7\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002:~\352A{\n" + + "(spanner.googleapis.com/InstancePartitio" + + "n\022Oprojects/{project}/instances/{instanc" + + "e}/instancePartitions/{instance_partitio" + + "n}B\022\n\020compute_capacity\"\201\002\n\037CreateInstanc" + + "ePartitionMetadata\022O\n\022instance_partition" + + "\030\001 \001(\01323.google.spanner.admin.instance.v" + + "1.InstancePartition\022.\n\nstart_time\030\002 \001(\0132" + + "\032.google.protobuf.Timestamp\022/\n\013cancel_ti" + + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + + "end_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\323\001\n\036CreateInstancePartitionRequest\0227\n" + + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapi" + + "s.com/Instance\022\"\n\025instance_partition_id\030" + + "\002 \001(\tB\003\340A\002\022T\n\022instance_partition\030\003 \001(\01323" + ".google.spanner.admin.instance.v1.Instan" - + "ceB\003\340A\002\"\311\001\n\024ListInstancesRequest\022C\n\006pare" - + "nt\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.g" - + "oogleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005" - + "\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\0225\n\021" - + "instance_deadline\030\005 \001(\0132\032.google.protobu" - + "f.Timestamp\"\204\001\n\025ListInstancesResponse\022=\n" - + "\tinstances\030\001 \003(\0132*.google.spanner.admin." - + "instance.v1.Instance\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\217\001\n\025UpdateIns" - + "tanceRequest\022A\n\010instance\030\001 \001(\0132*.google." - + "spanner.admin.instance.v1.InstanceB\003\340A\002\022" - + "3\n\nfield_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\002\"N\n\025DeleteInstanceRequest\0225\n" - + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis." - + "com/Instance\"\277\002\n\026CreateInstanceMetadata\022" - + "<\n\010instance\030\001 \001(\0132*.google.spanner.admin" - + ".instance.v1.Instance\022.\n\nstart_time\030\002 \001(" - + "\0132\032.google.protobuf.Timestamp\022/\n\013cancel_" - + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022," - + "\n\010end_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tamp\022X\n\033expected_fulfillment_period\030\005 \001(" - + "\01623.google.spanner.admin.instance.v1.Ful" - + "fillmentPeriod\"\277\002\n\026UpdateInstanceMetadat" - + "a\022<\n\010instance\030\001 \001(\0132*.google.spanner.adm" - + "in.instance.v1.Instance\022.\n\nstart_time\030\002 " - + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013cance" - + "l_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "\022,\n\010end_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estamp\022X\n\033expected_fulfillment_period\030\005 " - + "\001(\01623.google.spanner.admin.instance.v1.F" - + "ulfillmentPeriod\"\341\001\n\034CreateInstanceConfi" - + "gMetadata\022I\n\017instance_config\030\001 \001(\01320.goo" - + "gle.spanner.admin.instance.v1.InstanceCo" - + "nfig\022E\n\010progress\030\002 \001(\01323.google.spanner." - + "admin.instance.v1.OperationProgress\022/\n\013c" - + "ancel_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tamp\"\341\001\n\034UpdateInstanceConfigMetadata\022I\n" - + "\017instance_config\030\001 \001(\01320.google.spanner." - + "admin.instance.v1.InstanceConfig\022E\n\010prog" - + "ress\030\002 \001(\01323.google.spanner.admin.instan" - + "ce.v1.OperationProgress\022/\n\013cancel_time\030\003" - + " \001(\0132\032.google.protobuf.Timestamp\"\216\005\n\021Ins" - + "tancePartition\022\021\n\004name\030\001 \001(\tB\003\340A\002\022=\n\006con" - + "fig\030\002 \001(\tB-\340A\002\372A\'\n%spanner.googleapis.co" - + "m/InstanceConfig\022\031\n\014display_name\030\003 \001(\tB\003" - + "\340A\002\022\024\n\nnode_count\030\005 \001(\005H\000\022\032\n\020processing_" - + "units\030\006 \001(\005H\000\022M\n\005state\030\007 \001(\01629.google.sp" - + "anner.admin.instance.v1.InstancePartitio" - + "n.StateB\003\340A\003\0224\n\013create_time\030\010 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\0224\n\013update_tim" - + "e\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022\"\n\025referencing_databases\030\n \003(\tB\003\340A\003\022 \n\023" - + "referencing_backups\030\013 \003(\tB\003\340A\003\022\014\n\004etag\030\014" - + " \001(\t\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" - + "CREATING\020\001\022\t\n\005READY\020\002:~\352A{\n(spanner.goog" - + "leapis.com/InstancePartition\022Oprojects/{" - + "project}/instances/{instance}/instancePa" - + "rtitions/{instance_partition}B\022\n\020compute" - + "_capacity\"\201\002\n\037CreateInstancePartitionMet" - + "adata\022O\n\022instance_partition\030\001 \001(\01323.goog" - + "le.spanner.admin.instance.v1.InstancePar" - + "tition\022.\n\nstart_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp\022/\n\013cancel_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022,\n\010end_time\030\004 \001(" - + "\0132\032.google.protobuf.Timestamp\"\323\001\n\036Create" - + "InstancePartitionRequest\0227\n\006parent\030\001 \001(\t" - + "B\'\340A\002\372A!\n\037spanner.googleapis.com/Instanc" - + "e\022\"\n\025instance_partition_id\030\002 \001(\tB\003\340A\002\022T\n" - + "\022instance_partition\030\003 \001(\01323.google.spann" - + "er.admin.instance.v1.InstancePartitionB\003" - + "\340A\002\"n\n\036DeleteInstancePartitionRequest\022>\n" - + "\004name\030\001 \001(\tB0\340A\002\372A*\n(spanner.googleapis." - + "com/InstancePartition\022\014\n\004etag\030\002 \001(\t\"]\n\033G" - + "etInstancePartitionRequest\022>\n\004name\030\001 \001(\t" - + "B0\340A\002\372A*\n(spanner.googleapis.com/Instanc" - + "ePartition\"\253\001\n\036UpdateInstancePartitionRe" - + "quest\022T\n\022instance_partition\030\001 \001(\01323.goog" - + "le.spanner.admin.instance.v1.InstancePar" - + "titionB\003\340A\002\0223\n\nfield_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\"\201\002\n\037UpdateInsta" - + "ncePartitionMetadata\022O\n\022instance_partiti" - + "on\030\001 \001(\01323.google.spanner.admin.instance" - + ".v1.InstancePartition\022.\n\nstart_time\030\002 \001(" - + "\0132\032.google.protobuf.Timestamp\022/\n\013cancel_" - + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022," - + "\n\010end_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tamp\"\305\001\n\035ListInstancePartitionsRequest\0227" - + "\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleap" - + "is.com/Instance\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\022D\n\033instance_partition_dea" - + "dline\030\004 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\001\"\240\001\n\036ListInstancePartitionsResponse\022" - + "P\n\023instance_partitions\030\001 \003(\01323.google.sp" - + "anner.admin.instance.v1.InstancePartitio" - + "n\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" - + "e\030\003 \003(\t\"\355\001\n&ListInstancePartitionOperati" - + "onsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037span" - + "ner.googleapis.com/Instance\022\023\n\006filter\030\002 " - + "\001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\004 \001(\tB\003\340A\001\022D\n\033instance_partition_" - + "deadline\030\005 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\001\"\236\001\n\'ListInstancePartitionOperati" - + "onsResponse\0221\n\noperations\030\001 \003(\0132\035.google" - + ".longrunning.Operation\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\022\'\n\037unreachable_instance_partitio" - + "ns\030\003 \003(\t\"\222\001\n\023MoveInstanceRequest\0225\n\004name" - + "\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.com/I" - + "nstance\022D\n\rtarget_config\030\002 \001(\tB-\340A\002\372A\'\n%" - + "spanner.googleapis.com/InstanceConfig\"\026\n" - + "\024MoveInstanceResponse\"\245\001\n\024MoveInstanceMe" - + "tadata\022\025\n\rtarget_config\030\001 \001(\t\022E\n\010progres" - + "s\030\002 \001(\01323.google.spanner.admin.instance." - + "v1.OperationProgress\022/\n\013cancel_time\030\003 \001(" - + "\0132\032.google.protobuf.Timestamp2\332\'\n\rInstan" - + "ceAdmin\022\314\001\n\023ListInstanceConfigs\022<.google" - + ".spanner.admin.instance.v1.ListInstanceC" - + "onfigsRequest\032=.google.spanner.admin.ins" - + "tance.v1.ListInstanceConfigsResponse\"8\332A" - + "\006parent\202\323\344\223\002)\022\'/v1/{parent=projects/*}/i" - + "nstanceConfigs\022\271\001\n\021GetInstanceConfig\022:.g" - + "oogle.spanner.admin.instance.v1.GetInsta" - + "nceConfigRequest\0320.google.spanner.admin." - + "instance.v1.InstanceConfig\"6\332A\004name\202\323\344\223\002" - + ")\022\'/v1/{name=projects/*/instanceConfigs/" - + "*}\022\310\002\n\024CreateInstanceConfig\022=.google.spa" - + "nner.admin.instance.v1.CreateInstanceCon" - + "figRequest\032\035.google.longrunning.Operatio" - + "n\"\321\001\312Ap\n/google.spanner.admin.instance.v" - + "1.InstanceConfig\022=google.spanner.admin.i" - + "nstance.v1.CreateInstanceConfigMetadata\332" - + "A)parent,instance_config,instance_config" - + "_id\202\323\344\223\002,\"\'/v1/{parent=projects/*}/insta" - + "nceConfigs:\001*\022\312\002\n\024UpdateInstanceConfig\022=" - + ".google.spanner.admin.instance.v1.Update" - + "InstanceConfigRequest\032\035.google.longrunni" - + "ng.Operation\"\323\001\312Ap\n/google.spanner.admin" - + ".instance.v1.InstanceConfig\022=google.span" - + "ner.admin.instance.v1.UpdateInstanceConf" - + "igMetadata\332A\033instance_config,update_mask" - + "\202\323\344\223\002<27/v1/{instance_config.name=projec" - + "ts/*/instanceConfigs/*}:\001*\022\245\001\n\024DeleteIns" + + "cePartitionB\003\340A\002\"n\n\036DeleteInstancePartit" + + "ionRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(spanne" + + "r.googleapis.com/InstancePartition\022\014\n\004et" + + "ag\030\002 \001(\t\"]\n\033GetInstancePartitionRequest\022" + + ">\n\004name\030\001 \001(\tB0\340A\002\372A*\n(spanner.googleapi" + + "s.com/InstancePartition\"\253\001\n\036UpdateInstan" + + "cePartitionRequest\022T\n\022instance_partition" + + "\030\001 \001(\01323.google.spanner.admin.instance.v" + + "1.InstancePartitionB\003\340A\002\0223\n\nfield_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\201\002" + + "\n\037UpdateInstancePartitionMetadata\022O\n\022ins" + + "tance_partition\030\001 \001(\01323.google.spanner.a" + + "dmin.instance.v1.InstancePartition\022.\n\nst" + + "art_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\022/\n\013cancel_time\030\003 \001(\0132\032.google.protobu" + + "f.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\"\305\001\n\035ListInstancePartit" + + "ionsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spa" + + "nner.googleapis.com/Instance\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022D\n\033instance_" + + "partition_deadline\030\004 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\001\"\240\001\n\036ListInstancePartit" + + "ionsResponse\022P\n\023instance_partitions\030\001 \003(" + + "\01323.google.spanner.admin.instance.v1.Ins" + + "tancePartition\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"\355\001\n&ListInstancePar" + + "titionOperationsRequest\0227\n\006parent\030\001 \001(\tB" + + "\'\340A\002\372A!\n\037spanner.googleapis.com/Instance" + + "\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005" + + "B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\022D\n\033instan" + + "ce_partition_deadline\030\005 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\001\"\236\001\n\'ListInstancePar" + + "titionOperationsResponse\0221\n\noperations\030\001" + + " \003(\0132\035.google.longrunning.Operation\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\022\'\n\037unreachable_inst" + + "ance_partitions\030\003 \003(\t\"\222\001\n\023MoveInstanceRe" + + "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.goo" + + "gleapis.com/Instance\022D\n\rtarget_config\030\002 " + + "\001(\tB-\340A\002\372A\'\n%spanner.googleapis.com/Inst" + + "anceConfig\"\026\n\024MoveInstanceResponse\"\245\001\n\024M" + + "oveInstanceMetadata\022\025\n\rtarget_config\030\001 \001" + + "(\t\022E\n\010progress\030\002 \001(\01323.google.spanner.ad" + + "min.instance.v1.OperationProgress\022/\n\013can" + + "cel_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp2\332\'\n\rInstanceAdmin\022\314\001\n\023ListInstanceCon" + + "figs\022<.google.spanner.admin.instance.v1." + + "ListInstanceConfigsRequest\032=.google.span" + + "ner.admin.instance.v1.ListInstanceConfig" + + "sResponse\"8\332A\006parent\202\323\344\223\002)\022\'/v1/{parent=" + + "projects/*}/instanceConfigs\022\271\001\n\021GetInsta" + + "nceConfig\022:.google.spanner.admin.instanc" + + "e.v1.GetInstanceConfigRequest\0320.google.s" + + "panner.admin.instance.v1.InstanceConfig\"" + + "6\332A\004name\202\323\344\223\002)\022\'/v1/{name=projects/*/ins" + + "tanceConfigs/*}\022\310\002\n\024CreateInstanceConfig" + + "\022=.google.spanner.admin.instance.v1.Crea" + + "teInstanceConfigRequest\032\035.google.longrun" + + "ning.Operation\"\321\001\312Ap\n/google.spanner.adm" + + "in.instance.v1.InstanceConfig\022=google.sp" + + "anner.admin.instance.v1.CreateInstanceCo" + + "nfigMetadata\332A)parent,instance_config,in" + + "stance_config_id\202\323\344\223\002,\"\'/v1/{parent=proj" + + "ects/*}/instanceConfigs:\001*\022\312\002\n\024UpdateIns" + "tanceConfig\022=.google.spanner.admin.insta" - + "nce.v1.DeleteInstanceConfigRequest\032\026.goo" - + "gle.protobuf.Empty\"6\332A\004name\202\323\344\223\002)*\'/v1/{" - + "name=projects/*/instanceConfigs/*}\022\360\001\n\034L" - + "istInstanceConfigOperations\022E.google.spa" - + "nner.admin.instance.v1.ListInstanceConfi" - + "gOperationsRequest\032F.google.spanner.admi" - + "n.instance.v1.ListInstanceConfigOperatio" - + "nsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent" - + "=projects/*}/instanceConfigOperations\022\264\001" - + "\n\rListInstances\0226.google.spanner.admin.i" - + "nstance.v1.ListInstancesRequest\0327.google" - + ".spanner.admin.instance.v1.ListInstances" - + "Response\"2\332A\006parent\202\323\344\223\002#\022!/v1/{parent=p" - + "rojects/*}/instances\022\344\001\n\026ListInstancePar" - + "titions\022?.google.spanner.admin.instance." - + "v1.ListInstancePartitionsRequest\032@.googl" - + "e.spanner.admin.instance.v1.ListInstance" - + "PartitionsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1" - + "/{parent=projects/*/instances/*}/instanc" - + "ePartitions\022\241\001\n\013GetInstance\0224.google.spa" - + "nner.admin.instance.v1.GetInstanceReques" - + "t\032*.google.spanner.admin.instance.v1.Ins" - + "tance\"0\332A\004name\202\323\344\223\002#\022!/v1/{name=projects" - + "/*/instances/*}\022\234\002\n\016CreateInstance\0227.goo" - + "gle.spanner.admin.instance.v1.CreateInst" - + "anceRequest\032\035.google.longrunning.Operati" - + "on\"\261\001\312Ad\n)google.spanner.admin.instance." - + "v1.Instance\0227google.spanner.admin.instan" - + "ce.v1.CreateInstanceMetadata\332A\033parent,in" - + "stance_id,instance\202\323\344\223\002&\"!/v1/{parent=pr" - + "ojects/*}/instances:\001*\022\235\002\n\016UpdateInstanc" - + "e\0227.google.spanner.admin.instance.v1.Upd" - + "ateInstanceRequest\032\035.google.longrunning." - + "Operation\"\262\001\312Ad\n)google.spanner.admin.in" - + "stance.v1.Instance\0227google.spanner.admin" - + ".instance.v1.UpdateInstanceMetadata\332A\023in" - + "stance,field_mask\202\323\344\223\002/2*/v1/{instance.n" - + "ame=projects/*/instances/*}:\001*\022\223\001\n\016Delet" - + "eInstance\0227.google.spanner.admin.instanc" - + "e.v1.DeleteInstanceRequest\032\026.google.prot" - + "obuf.Empty\"0\332A\004name\202\323\344\223\002#*!/v1/{name=pro" - + "jects/*/instances/*}\022\232\001\n\014SetIamPolicy\022\"." - + "google.iam.v1.SetIamPolicyRequest\032\025.goog" - + "le.iam.v1.Policy\"O\332A\017resource,policy\202\323\344\223" - + "\0027\"2/v1/{resource=projects/*/instances/*" - + "}:setIamPolicy:\001*\022\223\001\n\014GetIamPolicy\022\".goo" - + "gle.iam.v1.GetIamPolicyRequest\032\025.google." - + "iam.v1.Policy\"H\332A\010resource\202\323\344\223\0027\"2/v1/{r" - + "esource=projects/*/instances/*}:getIamPo" - + "licy:\001*\022\305\001\n\022TestIamPermissions\022(.google." - + "iam.v1.TestIamPermissionsRequest\032).googl" - + "e.iam.v1.TestIamPermissionsResponse\"Z\332A\024" - + "resource,permissions\202\323\344\223\002=\"8/v1/{resourc" - + "e=projects/*/instances/*}:testIamPermiss" - + "ions:\001*\022\321\001\n\024GetInstancePartition\022=.googl" - + "e.spanner.admin.instance.v1.GetInstanceP" - + "artitionRequest\0323.google.spanner.admin.i" - + "nstance.v1.InstancePartition\"E\332A\004name\202\323\344" - + "\223\0028\0226/v1/{name=projects/*/instances/*/in" - + "stancePartitions/*}\022\351\002\n\027CreateInstancePa" - + "rtition\022@.google.spanner.admin.instance." - + "v1.CreateInstancePartitionRequest\032\035.goog" - + "le.longrunning.Operation\"\354\001\312Av\n2google.s" - + "panner.admin.instance.v1.InstancePartiti" - + "on\022@google.spanner.admin.instance.v1.Cre" - + "ateInstancePartitionMetadata\332A/parent,in" - + "stance_partition,instance_partition_id\202\323" - + "\344\223\002;\"6/v1/{parent=projects/*/instances/*" - + "}/instancePartitions:\001*\022\272\001\n\027DeleteInstan" - + "cePartition\022@.google.spanner.admin.insta" - + "nce.v1.DeleteInstancePartitionRequest\032\026." - + "google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6/v" - + "1/{name=projects/*/instances/*/instanceP" - + "artitions/*}\022\352\002\n\027UpdateInstancePartition" - + "\022@.google.spanner.admin.instance.v1.Upda" - + "teInstancePartitionRequest\032\035.google.long" - + "running.Operation\"\355\001\312Av\n2google.spanner." - + "admin.instance.v1.InstancePartition\022@goo" - + "gle.spanner.admin.instance.v1.UpdateInst" - + "ancePartitionMetadata\332A\035instance_partiti" - + "on,field_mask\202\323\344\223\002N2I/v1/{instance_parti" - + "tion.name=projects/*/instances/*/instanc" - + "ePartitions/*}:\001*\022\210\002\n\037ListInstancePartit" - + "ionOperations\022H.google.spanner.admin.ins" - + "tance.v1.ListInstancePartitionOperations" - + "Request\032I.google.spanner.admin.instance." - + "v1.ListInstancePartitionOperationsRespon" - + "se\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=project" - + "s/*/instances/*}/instancePartitionOperat" - + "ions\022\211\002\n\014MoveInstance\0225.google.spanner.a" - + "dmin.instance.v1.MoveInstanceRequest\032\035.g" - + "oogle.longrunning.Operation\"\242\001\312An\n5googl" - + "e.spanner.admin.instance.v1.MoveInstance" - + "Response\0225google.spanner.admin.instance." - + "v1.MoveInstanceMetadata\202\323\344\223\002+\"&/v1/{name" - + "=projects/*/instances/*}:move:\001*\032x\312A\026spa" - + "nner.googleapis.com\322A\\https://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/spanner.adminB\213\002\n$c" - + "om.google.spanner.admin.instance.v1B\031Spa" - + "nnerInstanceAdminProtoP\001ZFcloud.google.c" - + "om/go/spanner/admin/instance/apiv1/insta" - + "ncepb;instancepb\252\002&Google.Cloud.Spanner." - + "Admin.Instance.V1\312\002&Google\\Cloud\\Spanner" - + "\\Admin\\Instance\\V1\352\002+Google::Cloud::Span" - + "ner::Admin::Instance::V1b\006proto3" + + "nce.v1.UpdateInstanceConfigRequest\032\035.goo" + + "gle.longrunning.Operation\"\323\001\312Ap\n/google." + + "spanner.admin.instance.v1.InstanceConfig" + + "\022=google.spanner.admin.instance.v1.Updat" + + "eInstanceConfigMetadata\332A\033instance_confi" + + "g,update_mask\202\323\344\223\002<27/v1/{instance_confi" + + "g.name=projects/*/instanceConfigs/*}:\001*\022" + + "\245\001\n\024DeleteInstanceConfig\022=.google.spanne" + + "r.admin.instance.v1.DeleteInstanceConfig" + + "Request\032\026.google.protobuf.Empty\"6\332A\004name" + + "\202\323\344\223\002)*\'/v1/{name=projects/*/instanceCon" + + "figs/*}\022\360\001\n\034ListInstanceConfigOperations" + + "\022E.google.spanner.admin.instance.v1.List" + + "InstanceConfigOperationsRequest\032F.google" + + ".spanner.admin.instance.v1.ListInstanceC" + + "onfigOperationsResponse\"A\332A\006parent\202\323\344\223\0022" + + "\0220/v1/{parent=projects/*}/instanceConfig" + + "Operations\022\264\001\n\rListInstances\0226.google.sp" + + "anner.admin.instance.v1.ListInstancesReq" + + "uest\0327.google.spanner.admin.instance.v1." + + "ListInstancesResponse\"2\332A\006parent\202\323\344\223\002#\022!" + + "/v1/{parent=projects/*}/instances\022\344\001\n\026Li" + + "stInstancePartitions\022?.google.spanner.ad" + + "min.instance.v1.ListInstancePartitionsRe" + + "quest\032@.google.spanner.admin.instance.v1" + + ".ListInstancePartitionsResponse\"G\332A\006pare" + + "nt\202\323\344\223\0028\0226/v1/{parent=projects/*/instanc" + + "es/*}/instancePartitions\022\241\001\n\013GetInstance" + + "\0224.google.spanner.admin.instance.v1.GetI" + + "nstanceRequest\032*.google.spanner.admin.in" + + "stance.v1.Instance\"0\332A\004name\202\323\344\223\002#\022!/v1/{" + + "name=projects/*/instances/*}\022\234\002\n\016CreateI" + + "nstance\0227.google.spanner.admin.instance." + + "v1.CreateInstanceRequest\032\035.google.longru" + + "nning.Operation\"\261\001\312Ad\n)google.spanner.ad" + + "min.instance.v1.Instance\0227google.spanner" + + ".admin.instance.v1.CreateInstanceMetadat" + + "a\332A\033parent,instance_id,instance\202\323\344\223\002&\"!/" + + "v1/{parent=projects/*}/instances:\001*\022\235\002\n\016" + + "UpdateInstance\0227.google.spanner.admin.in" + + "stance.v1.UpdateInstanceRequest\032\035.google" + + ".longrunning.Operation\"\262\001\312Ad\n)google.spa" + + "nner.admin.instance.v1.Instance\0227google." + + "spanner.admin.instance.v1.UpdateInstance" + + "Metadata\332A\023instance,field_mask\202\323\344\223\002/2*/v" + + "1/{instance.name=projects/*/instances/*}" + + ":\001*\022\223\001\n\016DeleteInstance\0227.google.spanner." + + "admin.instance.v1.DeleteInstanceRequest\032" + + "\026.google.protobuf.Empty\"0\332A\004name\202\323\344\223\002#*!" + + "/v1/{name=projects/*/instances/*}\022\232\001\n\014Se" + + "tIamPolicy\022\".google.iam.v1.SetIamPolicyR" + + "equest\032\025.google.iam.v1.Policy\"O\332A\017resour" + + "ce,policy\202\323\344\223\0027\"2/v1/{resource=projects/" + + "*/instances/*}:setIamPolicy:\001*\022\223\001\n\014GetIa" + + "mPolicy\022\".google.iam.v1.GetIamPolicyRequ" + + "est\032\025.google.iam.v1.Policy\"H\332A\010resource\202" + + "\323\344\223\0027\"2/v1/{resource=projects/*/instance" + + "s/*}:getIamPolicy:\001*\022\305\001\n\022TestIamPermissi" + + "ons\022(.google.iam.v1.TestIamPermissionsRe" + + "quest\032).google.iam.v1.TestIamPermissions" + + "Response\"Z\332A\024resource,permissions\202\323\344\223\002=\"" + + "8/v1/{resource=projects/*/instances/*}:t" + + "estIamPermissions:\001*\022\321\001\n\024GetInstancePart" + + "ition\022=.google.spanner.admin.instance.v1" + + ".GetInstancePartitionRequest\0323.google.sp" + + "anner.admin.instance.v1.InstancePartitio" + + "n\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/i" + + "nstances/*/instancePartitions/*}\022\351\002\n\027Cre" + + "ateInstancePartition\022@.google.spanner.ad" + + "min.instance.v1.CreateInstancePartitionR" + + "equest\032\035.google.longrunning.Operation\"\354\001" + + "\312Av\n2google.spanner.admin.instance.v1.In" + + "stancePartition\022@google.spanner.admin.in" + + "stance.v1.CreateInstancePartitionMetadat" + + "a\332A/parent,instance_partition,instance_p" + + "artition_id\202\323\344\223\002;\"6/v1/{parent=projects/" + + "*/instances/*}/instancePartitions:\001*\022\272\001\n" + + "\027DeleteInstancePartition\022@.google.spanne" + + "r.admin.instance.v1.DeleteInstancePartit" + + "ionRequest\032\026.google.protobuf.Empty\"E\332A\004n" + + "ame\202\323\344\223\0028*6/v1/{name=projects/*/instance" + + "s/*/instancePartitions/*}\022\352\002\n\027UpdateInst" + + "ancePartition\022@.google.spanner.admin.ins" + + "tance.v1.UpdateInstancePartitionRequest\032" + + "\035.google.longrunning.Operation\"\355\001\312Av\n2go" + + "ogle.spanner.admin.instance.v1.InstanceP" + + "artition\022@google.spanner.admin.instance." + + "v1.UpdateInstancePartitionMetadata\332A\035ins" + + "tance_partition,field_mask\202\323\344\223\002N2I/v1/{i" + + "nstance_partition.name=projects/*/instan" + + "ces/*/instancePartitions/*}:\001*\022\210\002\n\037ListI" + + "nstancePartitionOperations\022H.google.span" + + "ner.admin.instance.v1.ListInstancePartit" + + "ionOperationsRequest\032I.google.spanner.ad" + + "min.instance.v1.ListInstancePartitionOpe" + + "rationsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/{p" + + "arent=projects/*/instances/*}/instancePa" + + "rtitionOperations\022\211\002\n\014MoveInstance\0225.goo" + + "gle.spanner.admin.instance.v1.MoveInstan" + + "ceRequest\032\035.google.longrunning.Operation" + + "\"\242\001\312An\n5google.spanner.admin.instance.v1" + + ".MoveInstanceResponse\0225google.spanner.ad" + + "min.instance.v1.MoveInstanceMetadata\202\323\344\223" + + "\002+\"&/v1/{name=projects/*/instances/*}:mo" + + "ve:\001*\032x\312A\026spanner.googleapis.com\322A\\https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/spanne" + + "r.adminB\213\002\n$com.google.spanner.admin.ins" + + "tance.v1B\031SpannerInstanceAdminProtoP\001ZFc" + + "loud.google.com/go/spanner/admin/instanc" + + "e/apiv1/instancepb;instancepb\252\002&Google.C" + + "loud.Spanner.Admin.Instance.V1\312\002&Google\\" + + "Cloud\\Spanner\\Admin\\Instance\\V1\352\002+Google" + + "::Cloud::Spanner::Admin::Instance::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -721,6 +727,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "Edition", + "DefaultBackupScheduleType", }); internal_static_google_spanner_admin_instance_v1_Instance_LabelsEntry_descriptor = internal_static_google_spanner_admin_instance_v1_Instance_descriptor diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto b/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto index ece99467a40..ba6726b31ba 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto @@ -972,6 +972,24 @@ message Instance { ENTERPRISE_PLUS = 3; } + // Indicates the default backup behavior for new databases within the + // instance. + enum DefaultBackupScheduleType { + // Not specified. + DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED = 0; + + // No default backup schedule will be created automatically on creation of a + // database within the instance. + NONE = 1; + + // A default backup schedule will be created automatically on creation of a + // database within the instance. The default backup schedule creates a full + // backup every 24 hours and retains the backup for a period of 7 days. Once + // created, the default backup schedule can be edited/deleted similar to any + // other backup schedule. + AUTOMATIC = 2; + } + // Required. A unique identifier for the instance, which cannot be changed // after the instance is created. Values are of the form // `projects//instances/[a-z][-a-z0-9]*[a-z0-9]`. The final @@ -1093,6 +1111,18 @@ message Instance { // Optional. The `Edition` of the current instance. Edition edition = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls the default backup behavior for new databases within the + // instance. + // + // Note that `AUTOMATIC` is not permitted for free instances, as backups and + // backup schedules are not allowed for free instances. + // + // In the `GetInstance` or `ListInstances` response, if the value of + // default_backup_schedule_type is unset or NONE, no default backup + // schedule will be created for new databases within the instance. + DefaultBackupScheduleType default_backup_schedule_type = 23 + [(google.api.field_behavior) = OPTIONAL]; } // The request for