+ * Properties for an AlloyDB cluster backup plan association. + *+ * + * Protobuf type {@code google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties} + */ +@com.google.protobuf.Generated +public final class AlloyDBClusterBackupPlanAssociationProperties + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) + AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AlloyDBClusterBackupPlanAssociationProperties"); + } + + // Use AlloyDBClusterBackupPlanAssociationProperties.newBuilder() to construct. + private AlloyDBClusterBackupPlanAssociationProperties( + com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + } + + private AlloyDBClusterBackupPlanAssociationProperties() { + clusterUid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto + .internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto + .internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.class, + com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder + .class); + } + + public static final int CLUSTER_UID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterUid_ = ""; + + /** + * + * + *
+ * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The clusterUid.
+ */
+ @java.lang.Override
+ public java.lang.String getClusterUid() {
+ java.lang.Object ref = clusterUid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clusterUid_ = s;
+ return s;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for clusterUid.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getClusterUidBytes() {
+ java.lang.Object ref = clusterUid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ clusterUid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterUid_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, clusterUid_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterUid_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clusterUid_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties other =
+ (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties) obj;
+
+ if (!getClusterUid().equals(other.getClusterUid())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CLUSTER_UID_FIELD_NUMBER;
+ hash = (53 * hash) + getClusterUid().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+
+ /**
+ *
+ *
+ * + * Properties for an AlloyDB cluster backup plan association. + *+ * + * Protobuf type {@code google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
+ * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The clusterUid.
+ */
+ public java.lang.String getClusterUid() {
+ java.lang.Object ref = clusterUid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clusterUid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for clusterUid.
+ */
+ public com.google.protobuf.ByteString getClusterUidBytes() {
+ java.lang.Object ref = clusterUid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ clusterUid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @param value The clusterUid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterUid(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ clusterUid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearClusterUid() {
+ clusterUid_ = getDefaultInstance().getClusterUid();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @param value The bytes for clusterUid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClusterUidBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ clusterUid_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ private static final com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties();
+ }
+
+ public static com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The clusterUid.
+ */
+ java.lang.String getClusterUid();
+
+ /**
+ *
+ *
+ * + * Output only. The cluster UID of the AlloyDB cluster. + *+ * + *
+ * string cluster_uid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
+ *
+ *
+ * @return The bytes for clusterUid.
+ */
+ com.google.protobuf.ByteString getClusterUidBytes();
+}
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java
index d0aa766e903d..f6d34b7eeda3 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociation.java
@@ -330,6 +330,7 @@ public enum ResourcePropertiesCase
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES(10),
+ ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES(15),
RESOURCEPROPERTIES_NOT_SET(0);
private final int value;
@@ -351,6 +352,8 @@ public static ResourcePropertiesCase forNumber(int value) {
switch (value) {
case 10:
return CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES;
+ case 15:
+ return ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES;
case 0:
return RESOURCEPROPERTIES_NOT_SET;
default:
@@ -974,6 +977,72 @@ public boolean hasCloudSqlInstanceBackupPlanAssociationProperties() {
.getDefaultInstance();
}
+ public static final int ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER = 15;
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the alloydbClusterBackupPlanAssociationProperties field is set.
+ */
+ @java.lang.Override
+ public boolean hasAlloydbClusterBackupPlanAssociationProperties() {
+ return resourcePropertiesCase_ == 15;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The alloydbClusterBackupPlanAssociationProperties.
+ */
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ getAlloydbClusterBackupPlanAssociationProperties() {
+ if (resourcePropertiesCase_ == 15) {
+ return (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ resourceProperties_;
+ }
+ return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ .getDefaultInstance();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder
+ getAlloydbClusterBackupPlanAssociationPropertiesOrBuilder() {
+ if (resourcePropertiesCase_ == 15) {
+ return (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ resourceProperties_;
+ }
+ return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ .getDefaultInstance();
+ }
+
public static final int BACKUP_PLAN_REVISION_ID_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
@@ -1146,6 +1215,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlanRevisionName_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 12, backupPlanRevisionName_);
}
+ if (resourcePropertiesCase_ == 15) {
+ output.writeMessage(
+ 15,
+ (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ resourceProperties_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1196,6 +1271,13 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupPlanRevisionName_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(12, backupPlanRevisionName_);
}
+ if (resourcePropertiesCase_ == 15) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 15,
+ (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ resourceProperties_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1235,6 +1317,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getCloudSqlInstanceBackupPlanAssociationProperties()
.equals(other.getCloudSqlInstanceBackupPlanAssociationProperties())) return false;
break;
+ case 15:
+ if (!getAlloydbClusterBackupPlanAssociationProperties()
+ .equals(other.getAlloydbClusterBackupPlanAssociationProperties())) return false;
+ break;
case 0:
default:
}
@@ -1282,6 +1368,10 @@ public int hashCode() {
hash = (37 * hash) + CLOUD_SQL_INSTANCE_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getCloudSqlInstanceBackupPlanAssociationProperties().hashCode();
break;
+ case 15:
+ hash = (37 * hash) + ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + getAlloydbClusterBackupPlanAssociationProperties().hashCode();
+ break;
case 0:
default:
}
@@ -1463,6 +1553,9 @@ public Builder clear() {
if (cloudSqlInstanceBackupPlanAssociationPropertiesBuilder_ != null) {
cloudSqlInstanceBackupPlanAssociationPropertiesBuilder_.clear();
}
+ if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ != null) {
+ alloydbClusterBackupPlanAssociationPropertiesBuilder_.clear();
+ }
backupPlanRevisionId_ = "";
backupPlanRevisionName_ = "";
resourcePropertiesCase_ = 0;
@@ -1545,10 +1638,10 @@ private void buildPartial0(com.google.cloud.backupdr.v1.BackupPlanAssociation re
if (((from_bitField0_ & 0x00000100) != 0)) {
result.dataSource_ = dataSource_;
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
result.backupPlanRevisionId_ = backupPlanRevisionId_;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.backupPlanRevisionName_ = backupPlanRevisionName_;
}
result.bitField0_ |= to_bitField0_;
@@ -1562,6 +1655,10 @@ private void buildPartialOneofs(com.google.cloud.backupdr.v1.BackupPlanAssociati
result.resourceProperties_ =
cloudSqlInstanceBackupPlanAssociationPropertiesBuilder_.build();
}
+ if (resourcePropertiesCase_ == 15
+ && alloydbClusterBackupPlanAssociationPropertiesBuilder_ != null) {
+ result.resourceProperties_ = alloydbClusterBackupPlanAssociationPropertiesBuilder_.build();
+ }
}
@java.lang.Override
@@ -1640,12 +1737,12 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupPlanAssociation othe
}
if (!other.getBackupPlanRevisionId().isEmpty()) {
backupPlanRevisionId_ = other.backupPlanRevisionId_;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
}
if (!other.getBackupPlanRevisionName().isEmpty()) {
backupPlanRevisionName_ = other.backupPlanRevisionName_;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
}
switch (other.getResourcePropertiesCase()) {
@@ -1655,6 +1752,12 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupPlanAssociation othe
other.getCloudSqlInstanceBackupPlanAssociationProperties());
break;
}
+ case ALLOYDB_CLUSTER_BACKUP_PLAN_ASSOCIATION_PROPERTIES:
+ {
+ mergeAlloydbClusterBackupPlanAssociationProperties(
+ other.getAlloydbClusterBackupPlanAssociationProperties());
+ break;
+ }
case RESOURCEPROPERTIES_NOT_SET:
{
break;
@@ -1761,15 +1864,24 @@ public Builder mergeFrom(
case 90:
{
backupPlanRevisionId_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
break;
} // case 90
case 98:
{
backupPlanRevisionName_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
break;
} // case 98
+ case 122:
+ {
+ input.readMessage(
+ internalGetAlloydbClusterBackupPlanAssociationPropertiesFieldBuilder()
+ .getBuilder(),
+ extensionRegistry);
+ resourcePropertiesCase_ = 15;
+ break;
+ } // case 122
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -3663,6 +3775,261 @@ public Builder clearCloudSqlInstanceBackupPlanAssociationProperties() {
return cloudSqlInstanceBackupPlanAssociationPropertiesBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties,
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder,
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder>
+ alloydbClusterBackupPlanAssociationPropertiesBuilder_;
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the alloydbClusterBackupPlanAssociationProperties field is set.
+ */
+ @java.lang.Override
+ public boolean hasAlloydbClusterBackupPlanAssociationProperties() {
+ return resourcePropertiesCase_ == 15;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The alloydbClusterBackupPlanAssociationProperties.
+ */
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ getAlloydbClusterBackupPlanAssociationProperties() {
+ if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) {
+ if (resourcePropertiesCase_ == 15) {
+ return (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ resourceProperties_;
+ }
+ return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ .getDefaultInstance();
+ } else {
+ if (resourcePropertiesCase_ == 15) {
+ return alloydbClusterBackupPlanAssociationPropertiesBuilder_.getMessage();
+ }
+ return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAlloydbClusterBackupPlanAssociationProperties(
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties value) {
+ if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resourceProperties_ = value;
+ onChanged();
+ } else {
+ alloydbClusterBackupPlanAssociationPropertiesBuilder_.setMessage(value);
+ }
+ resourcePropertiesCase_ = 15;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setAlloydbClusterBackupPlanAssociationProperties(
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder
+ builderForValue) {
+ if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) {
+ resourceProperties_ = builderForValue.build();
+ onChanged();
+ } else {
+ alloydbClusterBackupPlanAssociationPropertiesBuilder_.setMessage(builderForValue.build());
+ }
+ resourcePropertiesCase_ = 15;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeAlloydbClusterBackupPlanAssociationProperties(
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties value) {
+ if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) {
+ if (resourcePropertiesCase_ == 15
+ && resourceProperties_
+ != com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ .getDefaultInstance()) {
+ resourceProperties_ =
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.newBuilder(
+ (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ resourceProperties_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resourceProperties_ = value;
+ }
+ onChanged();
+ } else {
+ if (resourcePropertiesCase_ == 15) {
+ alloydbClusterBackupPlanAssociationPropertiesBuilder_.mergeFrom(value);
+ } else {
+ alloydbClusterBackupPlanAssociationPropertiesBuilder_.setMessage(value);
+ }
+ }
+ resourcePropertiesCase_ = 15;
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearAlloydbClusterBackupPlanAssociationProperties() {
+ if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) {
+ if (resourcePropertiesCase_ == 15) {
+ resourcePropertiesCase_ = 0;
+ resourceProperties_ = null;
+ onChanged();
+ }
+ } else {
+ if (resourcePropertiesCase_ == 15) {
+ resourcePropertiesCase_ = 0;
+ resourceProperties_ = null;
+ }
+ alloydbClusterBackupPlanAssociationPropertiesBuilder_.clear();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder
+ getAlloydbClusterBackupPlanAssociationPropertiesBuilder() {
+ return internalGetAlloydbClusterBackupPlanAssociationPropertiesFieldBuilder().getBuilder();
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder
+ getAlloydbClusterBackupPlanAssociationPropertiesOrBuilder() {
+ if ((resourcePropertiesCase_ == 15)
+ && (alloydbClusterBackupPlanAssociationPropertiesBuilder_ != null)) {
+ return alloydbClusterBackupPlanAssociationPropertiesBuilder_.getMessageOrBuilder();
+ } else {
+ if (resourcePropertiesCase_ == 15) {
+ return (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ resourceProperties_;
+ }
+ return com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ .getDefaultInstance();
+ }
+ }
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties,
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder,
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder>
+ internalGetAlloydbClusterBackupPlanAssociationPropertiesFieldBuilder() {
+ if (alloydbClusterBackupPlanAssociationPropertiesBuilder_ == null) {
+ if (!(resourcePropertiesCase_ == 15)) {
+ resourceProperties_ =
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ .getDefaultInstance();
+ }
+ alloydbClusterBackupPlanAssociationPropertiesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilder<
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties,
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties.Builder,
+ com.google.cloud.backupdr.v1
+ .AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder>(
+ (com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties)
+ resourceProperties_,
+ getParentForChildren(),
+ isClean());
+ resourceProperties_ = null;
+ }
+ resourcePropertiesCase_ = 15;
+ onChanged();
+ return alloydbClusterBackupPlanAssociationPropertiesBuilder_;
+ }
+
private java.lang.Object backupPlanRevisionId_ = "";
/**
@@ -3737,7 +4104,7 @@ public Builder setBackupPlanRevisionId(java.lang.String value) {
throw new NullPointerException();
}
backupPlanRevisionId_ = value;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -3758,7 +4125,7 @@ public Builder setBackupPlanRevisionId(java.lang.String value) {
*/
public Builder clearBackupPlanRevisionId() {
backupPlanRevisionId_ = getDefaultInstance().getBackupPlanRevisionId();
- bitField0_ = (bitField0_ & ~0x00000400);
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
@@ -3784,7 +4151,7 @@ public Builder setBackupPlanRevisionIdBytes(com.google.protobuf.ByteString value
}
checkByteStringIsUtf8(value);
backupPlanRevisionId_ = value;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -3866,7 +4233,7 @@ public Builder setBackupPlanRevisionName(java.lang.String value) {
throw new NullPointerException();
}
backupPlanRevisionName_ = value;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -3888,7 +4255,7 @@ public Builder setBackupPlanRevisionName(java.lang.String value) {
*/
public Builder clearBackupPlanRevisionName() {
backupPlanRevisionName_ = getDefaultInstance().getBackupPlanRevisionName();
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
@@ -3915,7 +4282,7 @@ public Builder setBackupPlanRevisionNameBytes(com.google.protobuf.ByteString val
}
checkByteStringIsUtf8(value);
backupPlanRevisionName_ = value;
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java
index cc1f98371490..23a0ebf09a3b 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationOrBuilder.java
@@ -419,6 +419,51 @@ public interface BackupPlanAssociationOrBuilder
com.google.cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder
getCloudSqlInstanceBackupPlanAssociationPropertiesOrBuilder();
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the alloydbClusterBackupPlanAssociationProperties field is set.
+ */
+ boolean hasAlloydbClusterBackupPlanAssociationProperties();
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The alloydbClusterBackupPlanAssociationProperties.
+ */
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties
+ getAlloydbClusterBackupPlanAssociationProperties();
+
+ /**
+ *
+ *
+ * + * Output only. AlloyDB cluster's backup plan association properties. + *+ * + *
+ * .google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationProperties alloydb_cluster_backup_plan_association_properties = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesOrBuilder
+ getAlloydbClusterBackupPlanAssociationPropertiesOrBuilder();
+
/**
*
*
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java
index 9624b6b99abd..54a7d4a0d653 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupPlanAssociationProto.java
@@ -97,8 +97,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "4google/cloud/backupdr/v1/backupplanassociation.proto\022\030google.cloud.backupdr.v1"
+ "\032\037google/api/field_behavior.proto\032\033googl"
+ "e/api/field_info.proto\032\031google/api/resou"
- + "rce.proto\0323google/cloud/backupdr/v1/backupvault_cloudsql.proto\032 google/protobuf/"
- + "field_mask.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\334\007\n"
+ + "rce.proto\0322google/cloud/backupdr/v1/back"
+ + "upvault_alloydb.proto\0323google/cloud/backupdr/v1/backupvault_cloudsql.proto\032 goog"
+ + "le/protobuf/field_mask.proto\032\037google/pro"
+ + "tobuf/timestamp.proto\032\027google/rpc/status.proto\"\351\010\n"
+ "\025BackupPlanAssociation\022\024\n"
+ "\004name\030\001 \001(\tB\006\340A\010\340A\003\022\035\n\r"
+ "resource_type\030\002 \001(\tB\006\340A\005\340A\002\022\030\n"
@@ -107,14 +109,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\"backupdr.googleapis.com/BackupPlan\0224\n"
+ "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n"
+ "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n"
- + "\005state\030\007"
- + " \001(\01625.google.cloud.backupdr.v1.BackupPlanAssociation.StateB\003\340A\003\022H\n"
+ + "\005state\030\007 \001(\01625.google.cloud.backu"
+ + "pdr.v1.BackupPlanAssociation.StateB\003\340A\003\022H\n"
+ "\021rules_config_info\030\010"
+ " \003(\0132(.google.cloud.backupdr.v1.RuleConfigInfoB\003\340A\003\022\030\n"
+ "\013data_source\030\t \001(\tB\003\340A\003\022\217\001\n"
+ "5cloud_sql_instance_backup_plan_association_properties\030\n"
- + " \001(\0132I.google"
- + ".cloud.backupdr.v1.CloudSqlInstanceBackupPlanAssociationPropertiesB\003\340A\003H\000\022$\n"
+ + " \001(\0132I.google.cloud.backupdr.v1.CloudSqlI"
+ + "nstanceBackupPlanAssociationPropertiesB\003\340A\003H\000\022\212\001\n"
+ + "2alloydb_cluster_backup_plan_association_properties\030\017 \001(\0132G.google.clou"
+ + "d.backupdr.v1.AlloyDBClusterBackupPlanAssociationPropertiesB\003\340A\003H\000\022$\n"
+ "\027backup_plan_revision_id\030\013 \001(\tB\003\340A\003\022&\n"
+ "\031backup_plan_revision_name\030\014 \001(\tB\003\340A\003\"b\n"
+ "\005State\022\025\n"
@@ -124,9 +128,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\010DELETING\020\003\022\014\n"
+ "\010INACTIVE\020\004\022\014\n"
+ "\010UPDATING\020\005:\274\001\352A\270\001\n"
- + "-backupdr.googleapis.com/BackupPlanAssociation\022Xprojects/{pro"
- + "ject}/locations/{location}/backupPlanAssociations/{backup_plan_association}*\026bac"
- + "kupPlanAssociations2\025backupPlanAssociationB\025\n"
+ + "-backupdr.googleapis.com/BackupPlanAssociation\022Xprojects/{project}/l"
+ + "ocations/{location}/backupPlanAssociatio"
+ + "ns/{backup_plan_association}*\026backupPlanAssociations2\025backupPlanAssociationB\025\n"
+ "\023resource_properties\"\211\003\n"
+ "\016RuleConfigInfo\022\024\n"
+ "\007rule_id\030\001 \001(\tB\003\340A\003\022X\n"
@@ -142,15 +146,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\tSUCCEEDED\020\003\022\n\n"
+ "\006FAILED\020\004\"\214\002\n"
+ "\"CreateBackupPlanAssociationRequest\022E\n"
- + "\006parent\030\001 \001(\tB5\340A"
- + "\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\'\n"
+ + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-b"
+ + "ackupdr.googleapis.com/BackupPlanAssociation\022\'\n"
+ "\032backup_plan_association_id\030\002 \001(\tB\003\340A\002\022U\n"
- + "\027backup_plan_association\030\003"
- + " \001(\0132/.google.cloud.backupdr.v1.BackupPlanAssociationB\003\340A\002\022\037\n\n"
+ + "\027backup_plan_association\030\003 \001(\0132/"
+ + ".google.cloud.backupdr.v1.BackupPlanAssociationB\003\340A\002\022\037\n\n"
+ "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\260\001\n"
+ "!ListBackupPlanAssociationsRequest\022E\n"
- + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-back"
- + "updr.googleapis.com/BackupPlanAssociation\022\026\n"
+ + "\006parent\030\001 \001("
+ + "\tB5\340A\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\026\n"
+ "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n"
+ "page_token\030\003 \001(\tB\003\340A\001\022\023\n"
+ "\006filter\030\004 \001(\tB\003\340A\001\"\245\001\n"
@@ -160,8 +164,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\017next_page_token\030\002 \001(\t\022\023\n"
+ "\013unreachable\030\003 \003(\t\"\363\001\n"
+ "1FetchBackupPlanAssociationsForResourceTypeRequest\022E\n"
- + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-b"
- + "ackupdr.googleapis.com/BackupPlanAssociation\022\032\n\r"
+ + "\006parent\030\001 \001("
+ + "\tB5\340A\002\372A/\022-backupdr.googleapis.com/BackupPlanAssociation\022\032\n"
+ + "\r"
+ "resource_type\030\002 \001(\tB\003\340A\002\022\026\n"
+ "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n"
+ "page_token\030\004 \001(\tB\003\340A\001\022\023\n"
@@ -189,11 +194,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "-backupdr.googleapis.com/BackupPlanAssociation\022\024\n"
+ "\007rule_id\030\002 \001(\tB\003\340A\002\022\037\n\n"
+ "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\312\001\n"
- + "\034com.google.cloud.backupdr.v1B\032BackupPlanAssociatio"
- + "nProtoP\001Z8cloud.google.com/go/backupdr/a"
- + "piv1/backupdrpb;backupdrpb\252\002\030Google.Clou"
- + "d.BackupDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1"
- + "\352\002\033Google::Cloud::BackupDR::V1b\006proto3"
+ + "\034com.google.cloud.backupdr.v1B\032BackupPlanAssociationProtoP"
+ + "\001Z8cloud.google.com/go/backupdr/apiv1/ba"
+ + "ckupdrpb;backupdrpb\252\002\030Google.Cloud.Backu"
+ + "pDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Goog"
+ + "le::Cloud::BackupDR::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -202,6 +207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.FieldInfoProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto.getDescriptor(),
com.google.cloud.backupdr.v1.BackupvaultCloudSqlProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
@@ -223,6 +229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"RulesConfigInfo",
"DataSource",
"CloudSqlInstanceBackupPlanAssociationProperties",
+ "AlloydbClusterBackupPlanAssociationProperties",
"BackupPlanRevisionId",
"BackupPlanRevisionName",
"ResourceProperties",
@@ -311,6 +318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.FieldInfoProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.backupdr.v1.BackupvaultAlloyDBProto.getDescriptor();
com.google.cloud.backupdr.v1.BackupvaultCloudSqlProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultAlloyDBProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultAlloyDBProto.java
index 6cdecc00d5fd..428bf4ef26fc 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultAlloyDBProto.java
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupvaultAlloyDBProto.java
@@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_backupdr_v1_AlloyDbClusterBackupProperties_descriptor;
static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_google_cloud_backupdr_v1_AlloyDbClusterBackupProperties_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor;
+ static final com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -60,7 +64,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n"
+ "2google/cloud/backupdr/v1/backupvault_a"
+ "lloydb.proto\022\030google.cloud.backupdr.v1\032\037"
- + "google/api/field_behavior.proto\032\031google/api/resource.proto\"Z\n"
+ + "google/api/field_behavior.proto\032\033google/"
+ + "api/field_info.proto\032\031google/api/resource.proto\"Z\n"
+ "\"AlloyDBClusterDataSourceProperties\0224\n"
+ "\004name\030\001 \001(\tB&\340A\003\372A \n"
+ "\036alloydb.googleapis.com/Cluster\"\233\001\n"
@@ -69,19 +74,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\014stored_bytes\030\002 \001(\003B\003\340A\003\022\025\n"
+ "\010chain_id\030\003 \001(\tB\003\340A\003\022\035\n"
+ "\020database_version\030\004 \001(\tB\003\340A\003B\016\n"
- + "\014_descriptionB\246\002\n"
- + "\034com.google.cloud.backupdr.v1B\027BackupvaultAlloyD"
- + "BProtoP\001Z8cloud.google.com/go/backupdr/a"
- + "piv1/backupdrpb;backupdrpb\252\002\030Google.Clou"
- + "d.BackupDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1\352A\\\n"
- + "\036alloydb.googleapis.com/Cluster\022:projects/{pro"
- + "ject}/locations/{location}/clusters/{cluster}b\006proto3"
+ + "\014_description\"Q\n"
+ + "-AlloyDBClusterBackupPlanAssociationProperties\022 \n"
+ + "\013cluster_uid\030\001 \001("
+ + "\tB\013\340A\003\342\214\317\327\010\002\010\001B\246\002\n"
+ + "\034com.google.cloud.backupdr.v1B\027BackupvaultAlloyDBProtoP\001"
+ + "Z8cloud.google.com/go/backupdr/apiv1/bac"
+ + "kupdrpb;backupdrpb\252\002\030Google.Cloud.Backup"
+ + "DR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1\352A\\\n"
+ + "\036alloydb.googleapis.com/Cluster\022:projects/{project}/lo"
+ + "cations/{location}/clusters/{cluster}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.FieldInfoProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
});
internal_static_google_cloud_backupdr_v1_AlloyDBClusterDataSourceProperties_descriptor =
@@ -100,12 +109,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"Description", "StoredBytes", "ChainId", "DatabaseVersion",
});
+ internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor =
+ getDescriptor().getMessageType(2);
+ internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_google_cloud_backupdr_v1_AlloyDBClusterBackupPlanAssociationProperties_descriptor,
+ new java.lang.String[] {
+ "ClusterUid",
+ });
descriptor.resolveAllFeaturesImmutable();
com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.FieldInfoProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ registry.add(com.google.api.FieldInfoProto.fieldInfo);
registry.add(com.google.api.ResourceProto.resourceDefinition);
registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto
index 2f97b4c8c179..d1f19c338880 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupplanassociation.proto
@@ -19,6 +19,7 @@ package google.cloud.backupdr.v1;
import "google/api/field_behavior.proto";
import "google/api/field_info.proto";
import "google/api/resource.proto";
+import "google/cloud/backupdr/v1/backupvault_alloydb.proto";
import "google/cloud/backupdr/v1/backupvault_cloudsql.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
@@ -126,6 +127,11 @@ message BackupPlanAssociation {
CloudSqlInstanceBackupPlanAssociationProperties
cloud_sql_instance_backup_plan_association_properties = 10
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. AlloyDB cluster's backup plan association properties.
+ AlloyDBClusterBackupPlanAssociationProperties
+ alloydb_cluster_backup_plan_association_properties = 15
+ [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Output only. The user friendly revision ID of the `BackupPlanRevision`.
diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_alloydb.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_alloydb.proto
index b97d684d911d..e6b39b933b53 100644
--- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_alloydb.proto
+++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault_alloydb.proto
@@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.backupdr.v1;
import "google/api/field_behavior.proto";
+import "google/api/field_info.proto";
import "google/api/resource.proto";
option csharp_namespace = "Google.Cloud.BackupDR.V1";
@@ -61,3 +62,12 @@ message AlloyDbClusterBackupProperties {
// backup was taken.
string database_version = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
}
+
+// Properties for an AlloyDB cluster backup plan association.
+message AlloyDBClusterBackupPlanAssociationProperties {
+ // Output only. The cluster UID of the AlloyDB cluster.
+ string cluster_uid = 1 [
+ (google.api.field_info).format = UUID4,
+ (google.api.field_behavior) = OUTPUT_ONLY
+ ];
+}
diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java
index a8cf4a8e8dbc..2555a783c586 100644
--- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java
+++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/AgentServiceClient.java
@@ -1012,8 +1012,10 @@
*
* ListLocations
Lists information about the supported locations for this service.This method can be called in two ways: - *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Lists information about the supported locations for this service. + *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *
* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * @@ -7879,13 +7894,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * @@ -7919,13 +7941,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java index ca2de5bb9dd7..eee67573da6d 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceClient.java @@ -24,6 +24,7 @@ import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1.stub.SessionServiceStub; import com.google.cloud.ces.v1.stub.SessionServiceStubSettings; @@ -72,7 +73,7 @@ *
RunSession
Initiates a single turn interaction with the CES agent within a session.
Initiates a single-turn interaction with the CES agent within a session.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*StreamRunSession
Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver incremental results and partial responses as they are generated. + *
By default, complete responses (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are available. To enable streaming individual text chunks directly from the model, set [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming] to true.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *streamRunSessionCallable() + *
BidiRunSession
Establishes a bidirectional streaming connection with the CES agent. The agent processes continuous multimodal inputs (e.g., text, audio) and generates real-time multimodal output streams. *
--- Client Request Stream --- The client streams requests in the following order: @@ -106,8 +118,10 @@ *
ListLocations
Lists information about the supported locations for this service.This method can be called in two ways: - *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Lists information about the supported locations for this service. + *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *
* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code: * @@ -270,7 +284,7 @@ public final RunSessionResponse runSession(RunSessionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Initiates a single turn interaction with the CES agent within a session. + * Initiates a single-turn interaction with the CES agent within a session. * *
Sample code:
*
@@ -297,6 +311,43 @@ public final UnaryCallable By default, complete responses (e.g., messages from callbacks or full LLM responses) are
+ * sent to the client as soon as they are available. To enable streaming individual text chunks
+ * directly from the model, set
+ * [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming] to true.
+ *
+ * Sample code:
+ *
+ * This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name] field:
+ *
+ * * **Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
*
- * * **List all public locations:** Use the path `GET /v1/locations`.*
- * **List project-visible locations:** Use the path`GET
- * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or
- * other locations specifically visibleto the project.
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
*
* Sample code:
*
@@ -412,13 +470,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.This method can be called in
- * two ways:
+ * Lists information about the supported locations for this service.
*
- * * **List all public locations:** Use the path `GET /v1/locations`.*
- * **List project-visible locations:** Use the path`GET
- * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or
- * other locations specifically visibleto the project.
+ * This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name] field:
+ *
+ * * **Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
+ *
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
*
* Sample code:
*
@@ -452,13 +517,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.This method can be called in
- * two ways:
+ * Lists information about the supported locations for this service.
+ *
+ * This method lists locations based on the resource scope provided inthe
+ * [ListLocationsRequest.name] field:
+ *
+ * * **Global locations**: If `name` is empty, the method lists thepublic
+ * locations available to all projects. * **Project-specificlocations**: If
+ * `name` follows the format`projects/{project}`, the method lists locations visible to
+ * thatspecific project. This includes public, private, or otherproject-specific locations enabled
+ * for the project.
*
- * * **List all public locations:** Use the path `GET /v1/locations`.*
- * **List project-visible locations:** Use the path`GET
- * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or
- * other locations specifically visibleto the project.
+ * For gRPC and client library implementations, the resource name ispassed as the `name` field.
+ * For direct service calls, the resourcename isincorporated into the request path based on the
+ * specific serviceimplementation and version.
*
* Sample code:
*
diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java
index e0c1f945b24b..0f166eb0f27c 100644
--- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java
+++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/SessionServiceSettings.java
@@ -28,6 +28,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.StreamingCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
@@ -98,6 +99,12 @@ public UnaryCallSettings{@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 (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+ * RunSessionRequest request =
+ * RunSessionRequest.newBuilder()
+ * .setConfig(SessionConfig.newBuilder().build())
+ * .addAllInputs(new ArrayList
+ */
+ public final ServerStreamingCallable
ListLocations
Lists information about the supported locations for this service.This method can be called in two ways: - *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Lists information about the supported locations for this service. + *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *
* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * @@ -462,13 +471,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * @@ -502,13 +518,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java index 5f0916d87336..0692ae2bd31c 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/WidgetServiceClient.java @@ -56,6 +56,7 @@ * .setDeployment( * DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString()) * .setRecaptchaToken("recaptchaToken1978277202") + * .setLiveHandoffEnabled(true) * .build(); * GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request); * } @@ -87,8 +88,10 @@ *
ListLocations
Lists information about the supported locations for this service.This method can be called in two ways: - *
* **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.
Lists information about the supported locations for this service. + *
This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: + *
* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
** **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * @@ -324,13 +336,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code: * @@ -364,13 +383,20 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *
This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name] field: + * + *
* **Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *
* **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *
For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *
Sample code:
*
diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json
index 0754a01df16e..5e690b173af2 100644
--- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json
+++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/gapic_metadata.json
@@ -180,6 +180,9 @@
},
"RunSession": {
"methods": ["runSession", "runSessionCallable"]
+ },
+ "StreamRunSession": {
+ "methods": ["streamRunSessionCallable"]
}
}
}
diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java
index 26a8eb667b37..717f98697cb6 100644
--- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java
+++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/package-info.java
@@ -101,6 +101,7 @@
* .setDeployment(
* DeploymentName.of("[PROJECT]", "[LOCATION]", "[APP]", "[DEPLOYMENT]").toString())
* .setRecaptchaToken("recaptchaToken1978277202")
+ * .setLiveHandoffEnabled(true)
* .build();
* GenerateChatTokenResponse response = widgetServiceClient.generateChatToken(request);
* }
diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java
index acea499bfce4..14a4e43f7c49 100644
--- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java
+++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/AgentServiceStubSettings.java
@@ -1375,6 +1375,7 @@ protected LibraryMetadata getLibraryMetadata() {
return LibraryMetadata.newBuilder()
.setArtifactName("com.google.cloud:google-cloud-ces")
.setRepository("googleapis/google-cloud-java")
+ .setVersion(Version.VERSION)
.build();
}
diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java
index e88f2c7c651f..0a93b3a158d4 100644
--- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java
+++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/GrpcAgentServiceStub.java
@@ -782,6 +782,7 @@ protected GrpcAgentServiceStub(
builder.add("parent", String.valueOf(request.getParent()));
return builder.build();
})
+ .setResourceNameExtractor(request -> request.getParent())
.build();
GrpcCallSettings